3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12.2
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --enable-shared[=PKGS] build shared libraries [default=yes]"
17 --enable-static[=PKGS] build static libraries [default=yes]"
19 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
21 --enable-bfd-assembler use BFD back end for writing object files"
23 targets alternative target configurations besides the primary"
25 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
27 --disable-nls do not use Native Language Support"
29 --with-included-gettext use the GNU gettext library included here"
31 --enable-maintainer-mode enable make rules and dependencies not useful
32 (and sometimes confusing) to the casual installer"
34 # Initialize some variables set by options.
35 # The variables have the same names as the options, with
36 # dashes changed to underlines.
38 cache_file
=.
/config.cache
47 program_transform_name
=s
,x
,x
,
55 bindir
='${exec_prefix}/bin'
56 sbindir
='${exec_prefix}/sbin'
57 libexecdir
='${exec_prefix}/libexec'
58 datadir
='${prefix}/share'
59 sysconfdir
='${prefix}/etc'
60 sharedstatedir
='${prefix}/com'
61 localstatedir
='${prefix}/var'
62 libdir
='${exec_prefix}/lib'
63 includedir
='${prefix}/include'
64 oldincludedir
='/usr/include'
65 infodir
='${prefix}/info'
66 mandir
='${prefix}/man'
68 # Initialize some other variables.
71 SHELL
=${CONFIG_SHELL-/bin/sh}
72 # Maximum number of lines to put in a shell here document.
79 # If the previous option needs an argument, assign it.
80 if test -n "$ac_prev"; then
81 eval "$ac_prev=\$ac_option"
87 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
91 # Accept the important Cygnus configure options, so we can diagnose typos.
95 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
97 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
98 bindir
="$ac_optarg" ;;
100 -build |
--build |
--buil |
--bui |
--bu)
102 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
103 build
="$ac_optarg" ;;
105 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
106 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
107 ac_prev
=cache_file
;;
108 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
109 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
110 cache_file
="$ac_optarg" ;;
112 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
114 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
116 datadir
="$ac_optarg" ;;
118 -disable-* |
--disable-*)
119 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
120 # Reject names that are not valid shell variable names.
121 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
122 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
124 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
125 eval "enable_${ac_feature}=no" ;;
127 -enable-* |
--enable-*)
128 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
129 # Reject names that are not valid shell variable names.
130 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
131 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
133 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
138 eval "enable_${ac_feature}='$ac_optarg'" ;;
140 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
141 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
142 |
--exec |
--exe |
--ex)
143 ac_prev
=exec_prefix
;;
144 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
145 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
146 |
--exec=* |
--exe=* |
--ex=*)
147 exec_prefix
="$ac_optarg" ;;
149 -gas |
--gas |
--ga |
--g)
150 # Obsolete; use --with-gas.
153 -help |
--help |
--hel |
--he)
154 # Omit some internal or obsolete options to make the list less imposing.
155 # This message is too long to be a string in the A/UX 3.1 sh.
157 Usage: configure [options] [host]
158 Options: [defaults in brackets after descriptions]
160 --cache-file=FILE cache test results in FILE
161 --help print this message
162 --no-create do not create output files
163 --quiet, --silent do not print \`checking...' messages
164 --version print the version of autoconf that created configure
165 Directory and file names:
166 --prefix=PREFIX install architecture-independent files in PREFIX
168 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
170 --bindir=DIR user executables in DIR [EPREFIX/bin]
171 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
172 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
173 --datadir=DIR read-only architecture-independent data in DIR
175 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
176 --sharedstatedir=DIR modifiable architecture-independent data in DIR
178 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
179 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
180 --includedir=DIR C header files in DIR [PREFIX/include]
181 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
182 --infodir=DIR info documentation in DIR [PREFIX/info]
183 --mandir=DIR man documentation in DIR [PREFIX/man]
184 --srcdir=DIR find the sources in DIR [configure dir or ..]
185 --program-prefix=PREFIX prepend PREFIX to installed program names
186 --program-suffix=SUFFIX append SUFFIX to installed program names
187 --program-transform-name=PROGRAM
188 run sed PROGRAM on installed program names
192 --build=BUILD configure for building on BUILD [BUILD=HOST]
193 --host=HOST configure for HOST [guessed]
194 --target=TARGET configure for TARGET [TARGET=HOST]
195 Features and packages:
196 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
197 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
198 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
199 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
200 --x-includes=DIR X include files are in DIR
201 --x-libraries=DIR X library files are in DIR
203 if test -n "$ac_help"; then
204 echo "--enable and --with options recognized:$ac_help"
208 -host |
--host |
--hos |
--ho)
210 -host=* |
--host=* |
--hos=* |
--ho=*)
213 -includedir |
--includedir |
--includedi |
--included |
--include \
214 |
--includ |
--inclu |
--incl |
--inc)
215 ac_prev
=includedir
;;
216 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
217 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
218 includedir
="$ac_optarg" ;;
220 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
222 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
223 infodir
="$ac_optarg" ;;
225 -libdir |
--libdir |
--libdi |
--libd)
227 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
228 libdir
="$ac_optarg" ;;
230 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
231 |
--libexe |
--libex |
--libe)
232 ac_prev
=libexecdir
;;
233 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
234 |
--libexe=* |
--libex=* |
--libe=*)
235 libexecdir
="$ac_optarg" ;;
237 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
238 |
--localstate |
--localstat |
--localsta |
--localst \
239 |
--locals |
--local |
--loca |
--loc |
--lo)
240 ac_prev
=localstatedir
;;
241 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
242 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
243 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
244 localstatedir
="$ac_optarg" ;;
246 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
248 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
249 mandir
="$ac_optarg" ;;
252 # Obsolete; use --without-fp.
255 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
259 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
260 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
263 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
264 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
265 |
--oldin |
--oldi |
--old |
--ol |
--o)
266 ac_prev
=oldincludedir
;;
267 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
268 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
269 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
270 oldincludedir
="$ac_optarg" ;;
272 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
274 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
275 prefix
="$ac_optarg" ;;
277 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
278 |
--program-pre |
--program-pr |
--program-p)
279 ac_prev
=program_prefix
;;
280 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
281 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
282 program_prefix
="$ac_optarg" ;;
284 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
285 |
--program-suf |
--program-su |
--program-s)
286 ac_prev
=program_suffix
;;
287 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
288 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
289 program_suffix
="$ac_optarg" ;;
291 -program-transform-name |
--program-transform-name \
292 |
--program-transform-nam |
--program-transform-na \
293 |
--program-transform-n |
--program-transform- \
294 |
--program-transform |
--program-transfor \
295 |
--program-transfo |
--program-transf \
296 |
--program-trans |
--program-tran \
297 |
--progr-tra |
--program-tr |
--program-t)
298 ac_prev
=program_transform_name
;;
299 -program-transform-name=* |
--program-transform-name=* \
300 |
--program-transform-nam=* |
--program-transform-na=* \
301 |
--program-transform-n=* |
--program-transform-=* \
302 |
--program-transform=* |
--program-transfor=* \
303 |
--program-transfo=* |
--program-transf=* \
304 |
--program-trans=* |
--program-tran=* \
305 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
306 program_transform_name
="$ac_optarg" ;;
308 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
309 |
-silent |
--silent |
--silen |
--sile |
--sil)
312 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
314 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
316 sbindir
="$ac_optarg" ;;
318 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
319 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
320 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
322 ac_prev
=sharedstatedir
;;
323 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
324 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
325 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
327 sharedstatedir
="$ac_optarg" ;;
329 -site |
--site |
--sit)
331 -site=* |
--site=* |
--sit=*)
334 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
336 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
337 srcdir
="$ac_optarg" ;;
339 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
340 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
341 ac_prev
=sysconfdir
;;
342 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
343 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
344 sysconfdir
="$ac_optarg" ;;
346 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
348 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
349 target
="$ac_optarg" ;;
351 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
354 -version |
--version |
--versio |
--versi |
--vers)
355 echo "configure generated by autoconf version 2.12.2"
359 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
360 # Reject names that are not valid shell variable names.
361 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
362 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
364 ac_package
=`echo $ac_package| sed 's/-/_/g'`
369 eval "with_${ac_package}='$ac_optarg'" ;;
371 -without-* |
--without-*)
372 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
373 # Reject names that are not valid shell variable names.
374 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
375 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
377 ac_package
=`echo $ac_package| sed 's/-/_/g'`
378 eval "with_${ac_package}=no" ;;
381 # Obsolete; use --with-x.
384 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
385 |
--x-incl |
--x-inc |
--x-in |
--x-i)
386 ac_prev
=x_includes
;;
387 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
388 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
389 x_includes
="$ac_optarg" ;;
391 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
392 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
393 ac_prev
=x_libraries
;;
394 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
395 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
396 x_libraries
="$ac_optarg" ;;
398 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
402 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
403 echo "configure: warning: $ac_option: invalid host type" 1>&2
405 if test "x$nonopt" != xNONE
; then
406 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
414 if test -n "$ac_prev"; then
415 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
418 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
420 # File descriptor usage:
423 # 2 errors and warnings
424 # 3 some systems may open it to /dev/tty
425 # 4 used on the Kubota Titan
426 # 6 checking for... messages and results
427 # 5 compiler messages saved in config.log
428 if test "$silent" = yes; then
436 This file contains any messages produced by compilers while
437 running configure, to aid debugging if configure makes a mistake.
440 # Strip out --no-create and --no-recursion so they do not pile up.
441 # Also quote any args containing shell metacharacters.
446 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
447 |
--no-cr |
--no-c) ;;
448 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
449 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
450 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
451 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
452 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
457 # Only set these to C if already set. These must not be set unconditionally
458 # because not all systems understand e.g. LANG=C (notably SCO).
459 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
460 # Non-C LC_CTYPE values break the ctype check.
461 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
462 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
463 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
464 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
466 # confdefs.h avoids OS command line length limits that DEFS can exceed.
467 rm -rf conftest
* confdefs.h
468 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
471 # A filename unique to this package, relative to the directory that
472 # configure is in, which we can look for to find out if srcdir is correct.
475 # Find the source files, if location was not specified.
476 if test -z "$srcdir"; then
477 ac_srcdir_defaulted
=yes
478 # Try the directory containing this script, then its parent.
480 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
481 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
483 if test ! -r $srcdir/$ac_unique_file; then
487 ac_srcdir_defaulted
=no
489 if test ! -r $srcdir/$ac_unique_file; then
490 if test "$ac_srcdir_defaulted" = yes; then
491 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
493 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
496 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
498 # Prefer explicitly selected file to automatically selected ones.
499 if test -z "$CONFIG_SITE"; then
500 if test "x$prefix" != xNONE
; then
501 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
503 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
506 for ac_site_file
in $CONFIG_SITE; do
507 if test -r "$ac_site_file"; then
508 echo "loading site script $ac_site_file"
513 if test -r "$cache_file"; then
514 echo "loading cache $cache_file"
517 echo "creating cache $cache_file"
522 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
523 ac_cpp
='$CPP $CPPFLAGS'
524 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
525 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
526 cross_compiling
=$ac_cv_prog_cc_cross
530 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
531 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
532 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
539 ac_n
= ac_c
='\c' ac_t
=
545 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
546 if test -f $ac_dir/install-sh
; then
548 ac_install_sh
="$ac_aux_dir/install-sh -c"
550 elif test -f $ac_dir/install.sh
; then
552 ac_install_sh
="$ac_aux_dir/install.sh -c"
556 if test -z "$ac_aux_dir"; then
557 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
559 ac_config_guess
=$ac_aux_dir/config.guess
560 ac_config_sub
=$ac_aux_dir/config.sub
561 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
564 # Do some error checking and defaulting for the host and target type.
566 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
569 # 1. You are not allowed to specify --host, --target, and nonopt at the
571 # 2. Host defaults to nonopt.
572 # 3. If nonopt is not specified, then host defaults to the current host,
573 # as determined by config.guess.
574 # 4. Target and build default to nonopt.
575 # 5. If nonopt is not specified, then target and build default to host.
577 # The aliases save the names the user supplied, while $host etc.
578 # will get canonicalized.
579 case $host---$target---$nonopt in
580 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
581 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
585 # Make sure we can run config.sub.
586 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
587 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
590 echo $ac_n "checking host system type""... $ac_c" 1>&6
591 echo "configure:592: checking host system type" >&5
594 case "$host_alias" in
598 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
599 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
601 *) host_alias
=$nonopt ;;
605 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
606 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
607 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
608 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
609 echo "$ac_t""$host" 1>&6
611 echo $ac_n "checking target system type""... $ac_c" 1>&6
612 echo "configure:613: checking target system type" >&5
615 case "$target_alias" in
618 NONE
) target_alias
=$host_alias ;;
619 *) target_alias
=$nonopt ;;
623 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
624 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
625 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
626 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
627 echo "$ac_t""$target" 1>&6
629 echo $ac_n "checking build system type""... $ac_c" 1>&6
630 echo "configure:631: checking build system type" >&5
633 case "$build_alias" in
636 NONE
) build_alias
=$host_alias ;;
637 *) build_alias
=$nonopt ;;
641 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
642 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
643 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
644 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
645 echo "$ac_t""$build" 1>&6
647 test "$host_alias" != "$target_alias" &&
648 test "$program_prefix$program_suffix$program_transform_name" = \
650 program_prefix
=${target_alias}-
653 # Find a good install program. We prefer a C program (faster),
654 # so one script is as good as another. But avoid the broken or
655 # incompatible versions:
656 # SysV /etc/install, /usr/sbin/install
657 # SunOS /usr/etc/install
660 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
661 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
662 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
663 # ./install, which can be erroneously created by make from ./install.sh.
664 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
665 echo "configure:666: checking for a BSD compatible install" >&5
666 if test -z "$INSTALL"; then
667 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
668 echo $ac_n "(cached) $ac_c" 1>&6
670 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
671 for ac_dir
in $PATH; do
672 # Account for people who put trailing slashes in PATH elements.
674 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
676 # OSF1 and SCO ODT 3.0 have their own names for install.
677 # Don't use installbsd from OSF since it installs stuff as root
679 for ac_prog
in ginstall scoinst
install; do
680 if test -f $ac_dir/$ac_prog; then
681 if test $ac_prog = install &&
682 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
683 # AIX install. It has an incompatible calling convention.
686 ac_cv_path_install
="$ac_dir/$ac_prog -c"
697 if test "${ac_cv_path_install+set}" = set; then
698 INSTALL
="$ac_cv_path_install"
700 # As a last resort, use the slow shell script. We don't cache a
701 # path for INSTALL within a source directory, because that will
702 # break other packages using the cache if that directory is
703 # removed, or if the path is relative.
704 INSTALL
="$ac_install_sh"
707 echo "$ac_t""$INSTALL" 1>&6
709 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
710 # It thinks the first close brace ends the variable substitution.
711 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
713 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
716 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
718 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
719 echo "configure:720: checking whether build environment is sane" >&5
722 echo timestamp
> conftestfile
723 # Do `set' in a subshell so we don't clobber the current shell's
724 # arguments. Must try -L first in case configure is actually a
725 # symlink; some systems play weird games with the mod time of symlinks
726 # (eg FreeBSD returns the mod time of the symlink's containing
729 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
730 if test "$*" = "X"; then
732 set X
`ls -t $srcdir/configure conftestfile`
734 if test "$*" != "X $srcdir/configure conftestfile" \
735 && test "$*" != "X conftestfile $srcdir/configure"; then
737 # If neither matched, then we have a broken ls. This can happen
738 # if, for instance, CONFIG_SHELL is bash and it inherits a
739 # broken ls alias from the environment. This has actually
740 # happened. Such a system could not be considered "sane".
741 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
742 alias in your environment" 1>&2; exit 1; }
745 test "$2" = conftestfile
751 { echo "configure: error: newly created file is older than distributed files!
752 Check your system clock" 1>&2; exit 1; }
755 echo "$ac_t""yes" 1>&6
756 if test "$program_transform_name" = s
,x
,x
,; then
757 program_transform_name
=
759 # Double any \ or $. echo might interpret backslashes.
760 cat <<\EOF_SED
> conftestsed
761 s
,\\,\\\\,g
; s
,\$
,$$
,g
763 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
766 test "$program_prefix" != NONE
&&
767 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
768 # Use a double $ so make ignores it.
769 test "$program_suffix" != NONE
&&
770 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
772 # sed with no file args requires a program.
773 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
775 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
776 echo "configure:777: checking whether ${MAKE-make} sets \${MAKE}" >&5
777 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
778 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
779 echo $ac_n "(cached) $ac_c" 1>&6
781 cat > conftestmake
<<\EOF
783 @
echo 'ac_maketemp="${MAKE}"'
785 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
786 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
787 if test -n "$ac_maketemp"; then
788 eval ac_cv_prog_make_
${ac_make}_set
=yes
790 eval ac_cv_prog_make_
${ac_make}_set
=no
794 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
795 echo "$ac_t""yes" 1>&6
798 echo "$ac_t""no" 1>&6
799 SET_MAKE
="MAKE=${MAKE-make}"
807 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
808 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
810 cat >> confdefs.h
<<EOF
811 #define PACKAGE "$PACKAGE"
814 cat >> confdefs.h
<<EOF
815 #define VERSION "$VERSION"
820 missing_dir
=`cd $ac_aux_dir && pwd`
821 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
822 echo "configure:823: checking for working aclocal" >&5
823 # Run test in a subshell; some versions of sh will print an error if
824 # an executable is not found, even if stderr is redirected.
825 # Redirect stdin to placate older versions of autoconf. Sigh.
826 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
828 echo "$ac_t""found" 1>&6
830 ACLOCAL
="$missing_dir/missing aclocal"
831 echo "$ac_t""missing" 1>&6
834 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
835 echo "configure:836: checking for working autoconf" >&5
836 # Run test in a subshell; some versions of sh will print an error if
837 # an executable is not found, even if stderr is redirected.
838 # Redirect stdin to placate older versions of autoconf. Sigh.
839 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
841 echo "$ac_t""found" 1>&6
843 AUTOCONF
="$missing_dir/missing autoconf"
844 echo "$ac_t""missing" 1>&6
847 echo $ac_n "checking for working automake""... $ac_c" 1>&6
848 echo "configure:849: checking for working automake" >&5
849 # Run test in a subshell; some versions of sh will print an error if
850 # an executable is not found, even if stderr is redirected.
851 # Redirect stdin to placate older versions of autoconf. Sigh.
852 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
854 echo "$ac_t""found" 1>&6
856 AUTOMAKE
="$missing_dir/missing automake"
857 echo "$ac_t""missing" 1>&6
860 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
861 echo "configure:862: checking for working autoheader" >&5
862 # Run test in a subshell; some versions of sh will print an error if
863 # an executable is not found, even if stderr is redirected.
864 # Redirect stdin to placate older versions of autoconf. Sigh.
865 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
866 AUTOHEADER
=autoheader
867 echo "$ac_t""found" 1>&6
869 AUTOHEADER
="$missing_dir/missing autoheader"
870 echo "$ac_t""missing" 1>&6
873 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
874 echo "configure:875: checking for working makeinfo" >&5
875 # Run test in a subshell; some versions of sh will print an error if
876 # an executable is not found, even if stderr is redirected.
877 # Redirect stdin to placate older versions of autoconf. Sigh.
878 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
880 echo "$ac_t""found" 1>&6
882 MAKEINFO
="$missing_dir/missing makeinfo"
883 echo "$ac_t""missing" 1>&6
888 # Check whether --enable-shared or --disable-shared was given.
889 if test "${enable_shared+set}" = set; then
890 enableval
="$enable_shared"
893 yes) enable_shared
=yes ;;
894 no
) enable_shared
=no
;;
897 # Look at the argument we got. We use all the common list separators.
898 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
899 for pkg
in $enableval; do
900 if test "X$pkg" = "X$p"; then
911 # Check whether --enable-static or --disable-static was given.
912 if test "${enable_static+set}" = set; then
913 enableval
="$enable_static"
916 yes) enable_static
=yes ;;
917 no
) enable_static
=no
;;
920 # Look at the argument we got. We use all the common list separators.
921 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
922 for pkg
in $enableval; do
923 if test "X$pkg" = "X$p"; then
934 # Extract the first word of "ranlib", so it can be a program name with args.
935 set dummy ranlib
; ac_word
=$2
936 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
937 echo "configure:938: checking for $ac_word" >&5
938 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
939 echo $ac_n "(cached) $ac_c" 1>&6
941 if test -n "$RANLIB"; then
942 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
944 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
945 for ac_dir
in $PATH; do
946 test -z "$ac_dir" && ac_dir
=.
947 if test -f $ac_dir/$ac_word; then
948 ac_cv_prog_RANLIB
="ranlib"
953 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
956 RANLIB
="$ac_cv_prog_RANLIB"
957 if test -n "$RANLIB"; then
958 echo "$ac_t""$RANLIB" 1>&6
960 echo "$ac_t""no" 1>&6
963 # Extract the first word of "gcc", so it can be a program name with args.
964 set dummy gcc
; ac_word
=$2
965 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
966 echo "configure:967: checking for $ac_word" >&5
967 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
968 echo $ac_n "(cached) $ac_c" 1>&6
970 if test -n "$CC"; then
971 ac_cv_prog_CC
="$CC" # Let the user override the test.
973 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
974 for ac_dir
in $PATH; do
975 test -z "$ac_dir" && ac_dir
=.
976 if test -f $ac_dir/$ac_word; then
985 if test -n "$CC"; then
986 echo "$ac_t""$CC" 1>&6
988 echo "$ac_t""no" 1>&6
991 if test -z "$CC"; then
992 # Extract the first word of "cc", so it can be a program name with args.
993 set dummy cc
; ac_word
=$2
994 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
995 echo "configure:996: checking for $ac_word" >&5
996 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
997 echo $ac_n "(cached) $ac_c" 1>&6
999 if test -n "$CC"; then
1000 ac_cv_prog_CC
="$CC" # Let the user override the test.
1002 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1004 for ac_dir
in $PATH; do
1005 test -z "$ac_dir" && ac_dir
=.
1006 if test -f $ac_dir/$ac_word; then
1007 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1008 ac_prog_rejected
=yes
1016 if test $ac_prog_rejected = yes; then
1017 # We found a bogon in the path, so make sure we never use it.
1018 set dummy
$ac_cv_prog_CC
1020 if test $# -gt 0; then
1021 # We chose a different compiler from the bogus one.
1022 # However, it has the same basename, so the bogon will be chosen
1023 # first if we set CC to just the basename; use the full file name.
1025 set dummy
"$ac_dir/$ac_word" "$@"
1033 if test -n "$CC"; then
1034 echo "$ac_t""$CC" 1>&6
1036 echo "$ac_t""no" 1>&6
1039 if test -z "$CC"; then
1040 case "`uname -s`" in
1042 # Extract the first word of "cl", so it can be a program name with args.
1043 set dummy cl
; ac_word
=$2
1044 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1045 echo "configure:1046: checking for $ac_word" >&5
1046 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1047 echo $ac_n "(cached) $ac_c" 1>&6
1049 if test -n "$CC"; then
1050 ac_cv_prog_CC
="$CC" # Let the user override the test.
1052 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1053 for ac_dir
in $PATH; do
1054 test -z "$ac_dir" && ac_dir
=.
1055 if test -f $ac_dir/$ac_word; then
1064 if test -n "$CC"; then
1065 echo "$ac_t""$CC" 1>&6
1067 echo "$ac_t""no" 1>&6
1072 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1075 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1076 echo "configure:1077: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1079 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1080 ac_cpp
='$CPP $CPPFLAGS'
1081 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1082 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1083 cross_compiling
=$ac_cv_prog_cc_cross
1085 cat > conftest.
$ac_ext <<EOF
1086 #line 1087 "configure"
1087 #include "confdefs.h"
1090 if { (eval echo configure
:1091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1091 ac_cv_prog_cc_works
=yes
1092 # If we can't run a trivial program, we are probably using a cross compiler.
1093 if (.
/conftest
; exit) 2>/dev
/null
; then
1094 ac_cv_prog_cc_cross
=no
1096 ac_cv_prog_cc_cross
=yes
1099 echo "configure: failed program was:" >&5
1100 cat conftest.
$ac_ext >&5
1101 ac_cv_prog_cc_works
=no
1105 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1106 if test $ac_cv_prog_cc_works = no
; then
1107 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1109 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1110 echo "configure:1111: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1111 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1112 cross_compiling
=$ac_cv_prog_cc_cross
1114 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1115 echo "configure:1116: checking whether we are using GNU C" >&5
1116 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1117 echo $ac_n "(cached) $ac_c" 1>&6
1119 cat > conftest.c
<<EOF
1124 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1131 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1133 if test $ac_cv_prog_gcc = yes; then
1139 ac_test_CFLAGS
="${CFLAGS+set}"
1140 ac_save_CFLAGS
="$CFLAGS"
1142 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1143 echo "configure:1144: checking whether ${CC-cc} accepts -g" >&5
1144 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1145 echo $ac_n "(cached) $ac_c" 1>&6
1147 echo 'void f(){}' > conftest.c
1148 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1157 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1158 if test "$ac_test_CFLAGS" = set; then
1159 CFLAGS
="$ac_save_CFLAGS"
1160 elif test $ac_cv_prog_cc_g = yes; then
1161 if test "$GCC" = yes; then
1167 if test "$GCC" = yes; then
1174 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1175 if test "${with_gnu_ld+set}" = set; then
1176 withval
="$with_gnu_ld"
1177 test "$withval" = no || with_gnu_ld
=yes
1184 if test "$ac_cv_prog_gcc" = yes; then
1185 # Check if gcc -print-prog-name=ld gives a path.
1186 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1187 echo "configure:1188: checking for ld used by GCC" >&5
1188 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1190 # Accept absolute paths.
1192 test -z "$LD" && LD
="$ac_prog"
1195 # If it fails, then pretend we aren't using GCC.
1199 # If it is relative, then search for the first ld in PATH.
1203 elif test "$with_gnu_ld" = yes; then
1204 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1205 echo "configure:1206: checking for GNU ld" >&5
1207 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1208 echo "configure:1209: checking for non-GNU ld" >&5
1210 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1211 echo $ac_n "(cached) $ac_c" 1>&6
1213 if test -z "$LD"; then
1214 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1215 for ac_dir
in $PATH; do
1216 test -z "$ac_dir" && ac_dir
=.
1217 if test -f "$ac_dir/$ac_prog"; then
1218 ac_cv_path_LD
="$ac_dir/$ac_prog"
1219 # Check to see if the program is GNU ld. I'd rather use --version,
1220 # but apparently some GNU ld's only accept -v.
1221 # Break only if it was the GNU/non-GNU ld that we prefer.
1222 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1223 test "$with_gnu_ld" != no
&& break
1225 test "$with_gnu_ld" != yes && break
1231 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1236 if test -n "$LD"; then
1237 echo "$ac_t""$LD" 1>&6
1239 echo "$ac_t""no" 1>&6
1241 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1243 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1244 echo "configure:1245: checking if the linker ($LD) is GNU ld" >&5
1245 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1246 echo $ac_n "(cached) $ac_c" 1>&6
1248 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1249 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1250 ac_cv_prog_gnu_ld
=yes
1252 ac_cv_prog_gnu_ld
=no
1256 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1259 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1260 echo "configure:1261: checking for BSD-compatible nm" >&5
1261 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1262 echo $ac_n "(cached) $ac_c" 1>&6
1264 if test -n "$NM"; then
1265 # Let the user override the test.
1268 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1269 for ac_dir
in /usr
/ucb
/usr
/ccs
/bin
$PATH /bin
; do
1270 test -z "$ac_dir" && ac_dir
=.
1271 if test -f $ac_dir/nm
; then
1272 # Check to see if the nm accepts a BSD-compat flag.
1273 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1274 # nm: unknown option "B" ignored
1275 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1276 ac_cv_path_NM
="$ac_dir/nm -B"
1277 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1278 ac_cv_path_NM
="$ac_dir/nm -p"
1280 ac_cv_path_NM
="$ac_dir/nm"
1286 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1291 echo "$ac_t""$NM" 1>&6
1294 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1295 echo "configure:1296: checking whether ln -s works" >&5
1296 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1297 echo $ac_n "(cached) $ac_c" 1>&6
1300 if ln -s X conftestdata
2>/dev
/null
1303 ac_cv_prog_LN_S
="ln -s"
1308 LN_S
="$ac_cv_prog_LN_S"
1309 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1310 echo "$ac_t""yes" 1>&6
1312 echo "$ac_t""no" 1>&6
1315 if test $host != $build; then
1316 ac_tool_prefix
=${host_alias}-
1321 # Always use our own libtool.
1322 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1324 # Check for any special flags to pass to ltconfig.
1326 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1327 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1328 test "$silent" = yes && libtool_flags
="$libtool_flags --silent"
1329 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1330 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1332 # Some flags need to be propagated to the compiler or linker for good
1336 # Find out which ABI we are using.
1337 echo '#line 1338 "configure"' > conftest.
$ac_ext
1338 if { (eval echo configure
:1339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1339 case "`/usr/bin/file conftest.o`" in
1355 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1356 CFLAGS
="$CFLAGS -belf"
1360 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
1361 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
1362 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1363 echo "configure:1364: checking for $ac_word" >&5
1364 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1365 echo $ac_n "(cached) $ac_c" 1>&6
1367 if test -n "$DLLTOOL"; then
1368 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
1370 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1371 for ac_dir
in $PATH; do
1372 test -z "$ac_dir" && ac_dir
=.
1373 if test -f $ac_dir/$ac_word; then
1374 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
1381 DLLTOOL
="$ac_cv_prog_DLLTOOL"
1382 if test -n "$DLLTOOL"; then
1383 echo "$ac_t""$DLLTOOL" 1>&6
1385 echo "$ac_t""no" 1>&6
1389 if test -z "$ac_cv_prog_DLLTOOL"; then
1390 if test -n "$ac_tool_prefix"; then
1391 # Extract the first word of "dlltool", so it can be a program name with args.
1392 set dummy dlltool
; ac_word
=$2
1393 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1394 echo "configure:1395: checking for $ac_word" >&5
1395 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1396 echo $ac_n "(cached) $ac_c" 1>&6
1398 if test -n "$DLLTOOL"; then
1399 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
1401 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1402 for ac_dir
in $PATH; do
1403 test -z "$ac_dir" && ac_dir
=.
1404 if test -f $ac_dir/$ac_word; then
1405 ac_cv_prog_DLLTOOL
="dlltool"
1410 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="false"
1413 DLLTOOL
="$ac_cv_prog_DLLTOOL"
1414 if test -n "$DLLTOOL"; then
1415 echo "$ac_t""$DLLTOOL" 1>&6
1417 echo "$ac_t""no" 1>&6
1425 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1426 set dummy
${ac_tool_prefix}as
; ac_word
=$2
1427 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1428 echo "configure:1429: checking for $ac_word" >&5
1429 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1430 echo $ac_n "(cached) $ac_c" 1>&6
1432 if test -n "$AS"; then
1433 ac_cv_prog_AS
="$AS" # Let the user override the test.
1435 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1436 for ac_dir
in $PATH; do
1437 test -z "$ac_dir" && ac_dir
=.
1438 if test -f $ac_dir/$ac_word; then
1439 ac_cv_prog_AS
="${ac_tool_prefix}as"
1447 if test -n "$AS"; then
1448 echo "$ac_t""$AS" 1>&6
1450 echo "$ac_t""no" 1>&6
1454 if test -z "$ac_cv_prog_AS"; then
1455 if test -n "$ac_tool_prefix"; then
1456 # Extract the first word of "as", so it can be a program name with args.
1457 set dummy as
; ac_word
=$2
1458 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1459 echo "configure:1460: checking for $ac_word" >&5
1460 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1461 echo $ac_n "(cached) $ac_c" 1>&6
1463 if test -n "$AS"; then
1464 ac_cv_prog_AS
="$AS" # Let the user override the test.
1466 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1467 for ac_dir
in $PATH; do
1468 test -z "$ac_dir" && ac_dir
=.
1469 if test -f $ac_dir/$ac_word; then
1475 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS
="false"
1479 if test -n "$AS"; then
1480 echo "$ac_t""$AS" 1>&6
1482 echo "$ac_t""no" 1>&6
1495 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1496 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1497 LD
="$LD" NM
="$NM" RANLIB
="$RANLIB" LN_S
="$LN_S" \
1498 DLLTOOL
="$DLLTOOL" AS
="$AS" \
1499 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1500 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
1501 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1503 # Redirect the config.log output again, so that the ltconfig log is not
1504 # clobbered by the next message.
1505 exec 5>>.
/config.log
1509 # Check whether --enable-bfd-assembler or --disable-bfd-assembler was given.
1510 if test "${enable_bfd_assembler+set}" = set; then
1511 enableval
="$enable_bfd_assembler"
1512 case "${enableval}" in
1513 yes) need_bfd
=yes user_bfd_gas
=yes ;;
1514 no
) user_bfd_gas
=no
;;
1515 *) { echo "configure: error: bad value ${enableval} given for bfd-assembler option" 1>&2; exit 1; } ;;
1518 # Check whether --enable-targets or --disable-targets was given.
1519 if test "${enable_targets+set}" = set; then
1520 enableval
="$enable_targets"
1521 case "${enableval}" in
1522 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
1524 no
) enable_targets
= ;;
1525 *) enable_targets
=$enableval ;;
1528 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
1529 if test "${enable_commonbfdlib+set}" = set; then
1530 enableval
="$enable_commonbfdlib"
1531 case "${enableval}" in
1532 yes) commonbfdlib
=true
;;
1533 no
) commonbfdlib
=false
;;
1534 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
1538 # Generate a header file
1546 if test -n "$enable_targets" ; then
1547 for t
in `echo $enable_targets | sed 's/,/ /g'`; do
1548 result
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $t 2>/dev/null`
1549 if test -n "$result" ; then
1550 canon_targets
="$canon_targets $result"
1552 # # Permit "all", etc. We don't support it yet though.
1553 # canon_targets="$canon_targets $t"
1556 _gas_uniq_list
="$canon_targets"
1557 _gas_uniq_newlist
=""
1558 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
1559 case $_gas_uniq_i in
1561 *) case " $_gas_uniq_newlist " in
1562 *" $_gas_uniq_i "*) ;;
1563 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
1567 canon_targets
=$_gas_uniq_newlist
1573 for this_target
in $target $canon_targets ; do
1575 eval `echo $this_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/cpu=\1 vendor=\2 os=\3/'`
1577 # check for architecture variants
1581 alpha
*) cpu_type
=alpha
;;
1582 armeb
) cpu_type
=arm endian
=big
;;
1583 arm
*) cpu_type
=arm endian
=little
;;
1584 thumb
*) cpu_type
=arm endian
=little
;;
1585 hppa
*) cpu_type
=hppa
;;
1586 i
[456]86) cpu_type
=i386
;;
1587 m680
[012346]0) cpu_type
=m68k
;;
1588 m68008
) cpu_type
=m68k
;;
1589 m683??
) cpu_type
=m68k
;;
1590 m5200
) cpu_type
=m68k
;;
1591 m8
*) cpu_type
=m88k
;;
1592 mips
*el
) cpu_type
=mips endian
=little
;;
1593 # start-sanitize-r5900
1594 mips
*5900*) cpu_type
=mips endian
=little
;;
1595 # end-sanitize-r5900
1596 mips
*) cpu_type
=mips endian
=big
;;
1597 powerpcle
*) cpu_type
=ppc endian
=little
;;
1598 powerpc
*) cpu_type
=ppc endian
=big
;;
1599 rs6000
*) cpu_type
=ppc
;;
1600 sparclite
*) cpu_type
=sparc arch
=sparclite
;;
1601 sparclet
*) cpu_type
=sparc arch
=sparclet
;;
1602 sparc64
*) cpu_type
=sparc arch
=v9-64
;;
1603 sparc86x
*) cpu_type
=sparc arch
=sparc86x
;;
1604 sparc
*) cpu_type
=sparc arch
=sparclite
;; # ??? See tc-sparc.c.
1605 v850
*) cpu_type
=v850
;;
1606 *) cpu_type
=${cpu} ;;
1609 if test ${this_target} = $target ; then
1610 target_cpu_type
=${cpu_type}
1611 if test x
${endian} = xbig
; then
1612 cat >> confdefs.h
<<\EOF
1613 #define TARGET_BYTES_BIG_ENDIAN 1
1616 elif test x
${endian} = xlittle
; then
1617 cat >> confdefs.h
<<\EOF
1618 #define TARGET_BYTES_BIG_ENDIAN 0
1622 elif test ${target_cpu_type} != ${cpu_type} ; then
1626 generic_target
=${cpu_type}-$vendor-$os
1631 # assign object format
1632 case ${generic_target} in
1633 a29k-
*-coff) fmt=coff
;;
1634 a29k-amd-udi
) fmt=coff
;;
1635 a29k-amd-ebmon
) fmt=coff
;;
1636 a29k-nyu-sym1
) fmt=coff
;;
1637 a29k-
*-vxworks*) fmt=coff
;;
1639 alpha
*-*-*vms
*) fmt=evax
;;
1640 alpha
*-*-netware*) fmt=ecoff
;;
1641 alpha
*-*-openbsd*) fmt=ecoff
;;
1642 alpha
*-*-osf*) fmt=ecoff
;;
1643 alpha
*-*-linuxecoff*) fmt=ecoff
;;
1644 alpha
*-*-linux-gnu*) fmt=elf em
=linux
;;
1645 alpha
*-*-netbsd*) fmt=elf em
=nbsd
;;
1647 arc-
*-elf*) fmt=elf bfd_gas
=yes ;;
1649 arm-
*-riscix*) fmt=aout em
=riscix
;;
1650 arm-
*-aout) fmt=aout
;;
1651 arm-
*-coff | thumb-
*-coff) fmt=coff
;;
1652 arm-
*-riscix*) fmt=aout
;;
1653 arm-
*-pe | thumb-
*-pe) fmt=coff em
=pe
;;
1655 d10v-
*-*) fmt=elf bfd_gas
=yes ;;
1656 d30v-
*-*) fmt=elf bfd_gas
=yes ;;
1658 hppa-
*-*elf
*) fmt=elf em
=hppa
;;
1659 hppa-
*-lites*) fmt=elf em
=hppa
;;
1660 hppa-
*-osf*) fmt=som em
=hppa
;;
1661 hppa-
*-rtems*) fmt=elf em
=hppa
;;
1662 hppa-
*-hpux*) fmt=som em
=hppa
;;
1663 hppa-
*-bsd*) fmt=som em
=hppa
;;
1664 hppa-
*-hiux*) fmt=som em
=hppa
;;
1666 h8300-
*-coff) fmt=coff
;;
1668 i386-ibm-aix
*) fmt=coff em
=i386aix
;;
1669 i386-sequent-bsd
*) fmt=aout em
=dynix bfd_gas
=yes ;;
1670 i386-
*-beospe*) fmt=coff em
=pe bfd_gas
=yes ;;
1671 i386-
*-beoself* | i386-
*-beos*) fmt=elf
;;
1672 i386-
*-bsd*) fmt=aout em
=386bsd
;;
1673 i386-
*-netbsd0.8
) fmt=aout em
=386bsd
;;
1674 i386-
*-netbsd*) fmt=aout em
=nbsd bfd_gas
=yes;;
1675 i386-
*-openbsd*) fmt=aout em
=nbsd bfd_gas
=yes;;
1676 i386-
*-linux*aout
* | i386-
*-linuxoldld) fmt=aout em
=linux
;;
1677 i386-
*-linux*coff
*) fmt=coff em
=linux
;;
1678 i386-
*-linux-gnu*) fmt=elf em
=linux
;;
1679 i386-
*-lynxos*) fmt=coff em
=lynx
;;
1680 i386-
*-sysv4* | i386-
*-solaris* | i386-
*-elf)
1682 i386-
*-freebsdelf*) fmt=elf
;;
1683 i386-
*-freebsd*) fmt=aout em
=386bsd
;;
1684 i386-
*-coff | i386-
*-sysv* | i386-
*-sco3.2v5
*coff | i386-
*-isc*)
1686 i386-
*-sco3.2v5
*) fmt=elf
1687 if test ${this_target} = $target; then
1688 cat >> confdefs.h
<<\EOF
1694 i386-
*-sco3.2
*) fmt=coff
;;
1695 i386-
*-vsta) fmt=aout
;;
1696 i386-
*-msdosdjgpp* | i386-
*-go32* | i386-go32-rtems
*)
1698 i386-
*-rtems*) fmt=coff
;;
1699 i386-
*-gnu*) fmt=elf
;;
1701 fmt=aout em
=mach bfd_gas
=yes ;;
1702 i386-
*-msdos*) fmt=aout
;;
1703 i386-
*-moss*) fmt=elf
;;
1704 i386-
*-pe) fmt=coff em
=pe
;;
1705 i386-
*-cygwin32*) fmt=coff em
=pe bfd_gas
=yes ;;
1706 i386-
*-mingw32*) fmt=coff em
=pe bfd_gas
=yes ;;
1707 i386-
*-*nt
*) fmt=coff em
=pe
;;
1708 i960-
*-bout) fmt=bout
;;
1709 i960-
*-coff) fmt=coff em
=ic960
;;
1710 i960-
*-rtems*) fmt=coff em
=ic960
;;
1711 i960-
*-nindy*) fmt=bout
;;
1712 i960-
*-vxworks4*) fmt=bout
;;
1713 i960-
*-vxworks5.0
) fmt=bout
;;
1714 i960-
*-vxworks5.
*) fmt=coff em
=ic960
;;
1715 i960-
*-vxworks*) fmt=bout
;;
1717 m32r-
*-*) fmt=elf bfd_gas
=yes ;;
1719 m68k-
*-vxworks* | m68k-ericsson-ose | m68k-
*-sunos*)
1721 m68k-motorola-sysv
*) fmt=coff em
=delta
;;
1722 m68k-bull-sysv3
*) fmt=coff em
=dpx2
;;
1723 m68k-apollo-
*) fmt=coff em
=apollo
;;
1724 m68k-
*-sysv4*) # must be before -sysv*
1726 m68k-
*-elf*) fmt=elf
;;
1727 m68k-
*-coff | m68k-
*-sysv* | m68k-
*-rtems*)
1729 m68k-
*-hpux*) fmt=hp300 em
=hp300
;;
1730 m68k-
*-linux*aout
*) fmt=aout em
=linux
;;
1731 m68k-
*-linux-gnu*) fmt=elf em
=linux
;;
1732 m68k-
*-lynxos*) fmt=coff em
=lynx
;;
1733 m68k-
*-netbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
1734 m68k-
*-openbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
1735 m68k-apple-aux
*) fmt=coff em
=aux
;;
1736 m68k-
*-psos*) fmt=elf em
=psos
;;
1738 m88k-motorola-sysv3
*) fmt=coff em
=delt88
;;
1739 m88k-
*-coff*) fmt=coff
;;
1741 # don't change em like *-*-bsd does
1742 mips-dec-netbsd
*) fmt=elf endian
=little
;;
1743 mips-dec-openbsd
*) fmt=elf endian
=little
;;
1744 mips-dec-bsd
*) fmt=aout
;;
1745 mips-sony-bsd
*) fmt=ecoff
;;
1746 mips-
*-bsd*) { echo "configure: error: Unknown vendor for mips-bsd configuration." 1>&2; exit 1; } ;;
1747 mips-
*-ultrix*) fmt=ecoff endian
=little
;;
1748 mips-
*-osf*) fmt=ecoff endian
=little
;;
1749 mips-
*-ecoff*) fmt=ecoff
;;
1750 mips-
*-ecoff*) fmt=ecoff
;;
1751 mips-
*-irix6*) fmt=elf
;;
1752 mips-
*-irix5*) fmt=elf
;;
1753 mips-
*-irix*) fmt=ecoff
;;
1754 mips-
*-lnews*) fmt=ecoff em
=lnews
;;
1755 mips-
*-riscos*) fmt=ecoff
;;
1756 mips-
*-sysv*) fmt=ecoff
;;
1757 mips-
*-elf* | mips-
*-rtems* | mips-
*-linux-gnu* | mips-
*-gnu* | mips-
*-openbsd*)
1759 mn10200-
*-*) fmt=elf bfd_gas
=yes ;;
1760 mn10300-
*-*) fmt=elf bfd_gas
=yes ;;
1761 ppc-
*-pe | ppc-
*-cygwin32 | ppc-
*-winnt*)
1763 ppc-
*-aix*) fmt=coff
;;
1764 ppc-
*-beos*) fmt=coff
;;
1765 ppc-
*-*bsd
* | ppc-
*-elf* | ppc-
*-eabi* | ppc-
*-sysv4*)
1767 ppc-
*-linux-gnu*) fmt=elf
1770 *) { echo "configure: error: GNU/Linux must be configured big endian" 1>&2; exit 1; } ;;
1773 ppc-
*-solaris*) fmt=elf
1774 if test ${this_target} = $target; then
1775 cat >> confdefs.h
<<\EOF
1776 #define TARGET_SOLARIS_COMMENT 1
1780 if test x
${endian} = xbig
; then
1781 { echo "configure: error: Solaris must be configured little endian" 1>&2; exit 1; }
1784 ppc-
*-rtems*) fmt=elf
;;
1785 ppc-
*-macos* | ppc-
*-mpw*)
1786 fmt=coff em
=macos
;;
1787 ppc-
*-netware*) fmt=elf em
=ppcnw
;;
1789 sh-
*-elf*) fmt=elf
;;
1790 sh-
*-coff*) fmt=coff
;;
1791 sh-
*-rtems*) fmt=coff
;;
1793 ns32k-pc532-mach
* | ns32k-pc532-ux
*) fmt=aout em
=pc532mach
;;
1794 ns32k-pc532-netbsd
* | ns32k-pc532-lites
*) fmt=aout em
=nbsd532
;;
1795 ns32k-pc532-openbsd
*) fmt=aout em
=nbsd532
;;
1797 sparc-
*-rtems*) fmt=aout
;;
1798 sparc-
*-sunos4*) fmt=aout em
=sun3
;;
1799 sparc-
*-aout | sparc
*-*-vxworks*)
1800 fmt=aout em
=sparcaout
;;
1801 sparc-
*-coff) fmt=coff
;;
1802 sparc-
*-linux*aout
*) fmt=aout em
=linux
;;
1803 sparc-
*-linux-gnu*) fmt=elf em
=linux
;;
1804 sparc-
*-lynxos*) fmt=coff em
=lynx
;;
1805 sparc-fujitsu-none
) fmt=aout
;;
1806 sparc-
*-elf | sparc-
*-sysv4* | sparc-
*-solaris*)
1808 sparc-
*-netbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
1809 sparc-
*-openbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
1811 tic30-
*-*aout
*) fmt=aout bfd_gas
=yes ;;
1812 tic30-
*-*coff
*) fmt=coff bfd_gas
=yes ;;
1813 # start-sanitize-tic80
1814 tic80-
*-*) fmt=coff
;;
1815 # end-sanitize-tic80
1817 # start-sanitize-sky
1818 dvp-
*-*) fmt=elf bfd_gas
=yes ;;
1821 v850-
*-*) fmt=elf bfd_gas
=yes ;;
1823 # start-sanitize-v850e
1824 v850e-
*-*) fmt=elf bfd_gas
=yes ;;
1825 v850ea-
*-*) fmt=elf bfd_gas
=yes ;;
1826 # end-sanitize-v850e
1827 vax-
*-bsd* | vax-
*-ultrix*)
1829 vax-
*-vms) fmt=vms
;;
1831 z8k-
*-coff | z8k-
*-sim)
1834 w65-
*-*) fmt=coff
;;
1836 *-*-aout |
*-*-scout)
1842 *-*-generic) fmt=generic
;;
1843 *-*-xray |
*-*-hms) fmt=coff
;;
1844 *-*-sim) fmt=coff
;;
1845 *-*-elf |
*-*-sysv4* |
*-*-solaris*)
1846 echo "configure: warning: GAS support for ${generic_target} is incomplete." 1>&2
1848 *-*-vxworks) fmt=aout
;;
1849 *-*-netware) fmt=elf
;;
1852 case ${cpu_type}-${fmt} in
1853 alpha
*-*) bfd_gas
=yes ;;
1854 arm-
*) bfd_gas
=yes ;;
1856 # i386-aout) bfd_gas=preferred ;;
1857 mips-
*) bfd_gas
=yes ;;
1858 ns32k-
*) bfd_gas
=yes ;;
1859 ppc-
*) bfd_gas
=yes ;;
1860 sparc-
*) bfd_gas
=yes ;;
1861 *-elf) bfd_gas
=yes ;;
1862 *-ecoff) bfd_gas
=yes ;;
1863 *-som) bfd_gas
=yes ;;
1867 # Other random stuff.
1869 # do we need the opcodes library?
1876 case "${enable_shared}" in
1877 yes) shared_opcodes
=true
;;
1878 *opcodes
*) shared_opcodes
=true
;;
1879 *) shared_opcodes
=false
;;
1881 if test "${shared_opcodes}" = "true"; then
1882 # A shared libopcodes must be linked against libbfd.
1890 case "x${extra_objects}" in
1892 *) extra_objects
="$extra_objects cgen.o"
1893 cat >> confdefs.h
<<\EOF
1894 #define USING_CGEN 1
1902 case ${extra_objects} in
1904 *) extra_objects
="$extra_objects m68k-parse.o" ;;
1909 echo ${extra_objects} |
grep -s "itbl-parse.o"
1910 if test $?
-ne 0 ; then
1911 extra_objects
="$extra_objects itbl-parse.o"
1914 echo ${extra_objects} |
grep -s "itbl-lex.o"
1915 if test $?
-ne 0 ; then
1916 extra_objects
="$extra_objects itbl-lex.o"
1919 echo ${extra_objects} |
grep -s "itbl-ops.o"
1920 if test $?
-ne 0 ; then
1921 extra_objects
="$extra_objects itbl-ops.o"
1926 if test $this_target = $target ; then
1927 cat >> confdefs.h
<<EOF
1928 #define DEFAULT_ARCH "${arch}"
1938 # See if we really can support this configuration with the emulation code.
1940 if test $this_target = $target ; then
1941 primary_bfd_gas
=$bfd_gas
1945 if test $bfd_gas = no
; then
1946 # Can't support other configurations this way.
1949 elif test $bfd_gas = no
; then
1950 # Can't support this configuration.
1954 # From target name and format, produce a list of supported emulations.
1956 case ${generic_target}-${fmt} in
1957 mips-
*-irix5*-*) emulation
="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
1958 mips-
*-linux-gnu*-*) case "$endian" in
1959 big
) emulation
="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
1960 *) emulation
="mipslelf mipsbelf mipself mipslecoff mipsbecoff mipsecoff" ;;
1962 mips-
*-lnews*-ecoff) ;;
1963 mips-
*-*-ecoff) case "$endian" in
1964 big
) emulation
="mipsbecoff mipslecoff mipsecoff" ;;
1965 *) emulation
="mipslecoff mipsbecoff mipsecoff" ;;
1967 mips-
*-*-elf) case "$endian" in
1968 big
) emulation
="mipsbelf mipslelf mipself" ;;
1969 *) emulation
="mipslelf mipsbelf mipself" ;;
1970 # Uncommenting the next line will turn on support for i386 COFF
1971 # in any i386 ELF configuration. This probably doesn't work
1973 # i386-*-*-elf) emulation="i386coff i386elf" ;;
1977 emulations
="$emulations $emulation"
1981 # Assign floating point type. Most processors with FP support
1982 # IEEE FP. On those that don't support FP at all, usually IEEE
1984 case ${target_cpu} in
1985 vax | tahoe
) atof
=${target_cpu} ;;
1989 case "${obj_format}" in
1990 "") { echo "configure: error: GAS does not know what format to use for target ${target}" 1>&2; exit 1; } ;;
1993 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
1995 case "x${extra_objects}" in
1997 case ${target_cpu} in
1998 *) cgen_cpu_prefix
=${target_cpu} ;;
2005 if test ! -r ${srcdir}/config
/tc-
${target_cpu_type}.c
; then
2006 { echo "configure: error: GAS does not support target CPU ${target_cpu_type}" 1>&2; exit 1; }
2009 if test ! -r ${srcdir}/config
/obj-
${obj_format}.c
; then
2010 { echo "configure: error: GAS does not have support for object file format ${obj_format}" 1>&2; exit 1; }
2013 case ${user_bfd_gas}-${primary_bfd_gas} in
2015 # We didn't override user's choice.
2018 echo "configure: warning: Use of BFD is required for ${target}; overriding config options." 1>&2
2030 # User specified nothing.
2034 # Some COFF configurations want these random other flags set.
2035 case ${obj_format} in
2037 case ${target_cpu_type} in
2038 i386
) cat >> confdefs.h
<<\EOF
2042 m68k
) cat >> confdefs.h
<<\EOF
2046 m88k
) cat >> confdefs.h
<<\EOF
2054 # Getting this done right is going to be a bitch. Each configuration specified
2055 # with --enable-targets=... should be checked for environment, format, cpu, and
2058 # For each configuration, the necessary object file support code must be linked
2059 # in. This might be only one, it might be up to four. The necessary emulation
2060 # code needs to be provided, too.
2062 # And then there's "--enable-targets=all"....
2064 # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
2066 formats
="${obj_format}"
2069 _gas_uniq_list
="$emulations"
2070 _gas_uniq_newlist
=""
2071 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
2072 case $_gas_uniq_i in
2074 *) case " $_gas_uniq_newlist " in
2075 *" $_gas_uniq_i "*) ;;
2076 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
2080 emulations
=$_gas_uniq_newlist
2082 for em
in .
$emulations ; do
2085 mipsbelf | mipslelf
)
2086 fmt=elf
file=mipself
;;
2087 mipsbecoff | mipslecoff
)
2088 fmt=ecoff
file=mipsecoff
;;
2090 fmt=coff
file=i386coff
;;
2092 fmt=elf
file=i386elf
;;
2094 formats
="$formats $fmt"
2095 emfiles
="$emfiles e-$file.o"
2096 EMULATIONS
="$EMULATIONS &$em,"
2098 _gas_uniq_list
="$formats"
2099 _gas_uniq_newlist
=""
2100 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
2101 case $_gas_uniq_i in
2103 *) case " $_gas_uniq_newlist " in
2104 *" $_gas_uniq_i "*) ;;
2105 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
2109 formats
=$_gas_uniq_newlist
2111 _gas_uniq_list
="$emfiles"
2112 _gas_uniq_newlist
=""
2113 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
2114 case $_gas_uniq_i in
2116 *) case " $_gas_uniq_newlist " in
2117 *" $_gas_uniq_i "*) ;;
2118 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
2122 emfiles
=$_gas_uniq_newlist
2124 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
2125 for fmt in $formats ; do
2127 aout
) cat >> confdefs.h
<<\EOF
2128 #define OBJ_MAYBE_AOUT 1
2131 bout
) cat >> confdefs.h
<<\EOF
2132 #define OBJ_MAYBE_BOUT 1
2135 coff
) cat >> confdefs.h
<<\EOF
2136 #define OBJ_MAYBE_COFF 1
2139 ecoff
) cat >> confdefs.h
<<\EOF
2140 #define OBJ_MAYBE_ECOFF 1
2143 elf
) cat >> confdefs.h
<<\EOF
2144 #define OBJ_MAYBE_ELF 1
2147 generic
) cat >> confdefs.h
<<\EOF
2148 #define OBJ_MAYBE_GENERIC 1
2151 hp300
) cat >> confdefs.h
<<\EOF
2152 #define OBJ_MAYBE_HP300 1
2155 ieee
) cat >> confdefs.h
<<\EOF
2156 #define OBJ_MAYBE_IEEE 1
2159 som
) cat >> confdefs.h
<<\EOF
2160 #define OBJ_MAYBE_SOM 1
2163 vms
) cat >> confdefs.h
<<\EOF
2164 #define OBJ_MAYBE_VMS 1
2168 extra_objects
="$extra_objects obj-$fmt.o"
2172 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
2174 extra_objects
="$extra_objects $emfiles"
2175 DEFAULT_EMULATION
=`set . $emulations ; echo $2`
2176 cat >> confdefs.h
<<\EOF
2177 #define USE_EMULATIONS 1
2182 cat >> confdefs.h
<<EOF
2183 #define EMULATIONS $EMULATIONS
2186 cat >> confdefs.h
<<EOF
2187 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
2191 case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in
2192 yes-
*-coff) need_bfd
=yes ;;
2193 no-
*-coff) need_bfd
=yes
2194 cat >> confdefs.h
<<\EOF
2195 #define MANY_SEGMENTS 1
2200 reject_dev_configs
=yes
2202 case ${reject_dev_configs}-${dev} in
2204 { echo "configure: error: GAS does not support the ${generic_target} configuration." 1>&2; exit 1; }
2213 case "${primary_bfd_gas}" in
2214 yes) cat >> confdefs.h
<<\EOF
2215 #define BFD_ASSEMBLER 1
2221 # do we need the opcodes library?
2222 case "${need_opcodes}" in
2224 OPCODES_LIB
=..
/opcodes
/libopcodes.la
2228 case "${need_bfd}" in
2230 BFDLIB
=..
/bfd
/libbfd.la
2231 ALL_OBJ_DEPS
="$ALL_OBJ_DEPS ../bfd/bfd.h"
2240 cat >> confdefs.h
<<EOF
2241 #define TARGET_ALIAS "${target_alias}"
2244 cat >> confdefs.h
<<EOF
2245 #define TARGET_CANONICAL "${target}"
2248 cat >> confdefs.h
<<EOF
2249 #define TARGET_CPU "${target_cpu}"
2252 cat >> confdefs.h
<<EOF
2253 #define TARGET_VENDOR "${target_vendor}"
2256 cat >> confdefs.h
<<EOF
2257 #define TARGET_OS "${target_os}"
2261 # Extract the first word of "gcc", so it can be a program name with args.
2262 set dummy gcc
; ac_word
=$2
2263 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2264 echo "configure:2265: checking for $ac_word" >&5
2265 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2266 echo $ac_n "(cached) $ac_c" 1>&6
2268 if test -n "$CC"; then
2269 ac_cv_prog_CC
="$CC" # Let the user override the test.
2271 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2272 for ac_dir
in $PATH; do
2273 test -z "$ac_dir" && ac_dir
=.
2274 if test -f $ac_dir/$ac_word; then
2283 if test -n "$CC"; then
2284 echo "$ac_t""$CC" 1>&6
2286 echo "$ac_t""no" 1>&6
2289 if test -z "$CC"; then
2290 # Extract the first word of "cc", so it can be a program name with args.
2291 set dummy cc
; ac_word
=$2
2292 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2293 echo "configure:2294: checking for $ac_word" >&5
2294 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2295 echo $ac_n "(cached) $ac_c" 1>&6
2297 if test -n "$CC"; then
2298 ac_cv_prog_CC
="$CC" # Let the user override the test.
2300 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2302 for ac_dir
in $PATH; do
2303 test -z "$ac_dir" && ac_dir
=.
2304 if test -f $ac_dir/$ac_word; then
2305 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2306 ac_prog_rejected
=yes
2314 if test $ac_prog_rejected = yes; then
2315 # We found a bogon in the path, so make sure we never use it.
2316 set dummy
$ac_cv_prog_CC
2318 if test $# -gt 0; then
2319 # We chose a different compiler from the bogus one.
2320 # However, it has the same basename, so the bogon will be chosen
2321 # first if we set CC to just the basename; use the full file name.
2323 set dummy
"$ac_dir/$ac_word" "$@"
2331 if test -n "$CC"; then
2332 echo "$ac_t""$CC" 1>&6
2334 echo "$ac_t""no" 1>&6
2337 if test -z "$CC"; then
2338 case "`uname -s`" in
2340 # Extract the first word of "cl", so it can be a program name with args.
2341 set dummy cl
; ac_word
=$2
2342 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2343 echo "configure:2344: checking for $ac_word" >&5
2344 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2345 echo $ac_n "(cached) $ac_c" 1>&6
2347 if test -n "$CC"; then
2348 ac_cv_prog_CC
="$CC" # Let the user override the test.
2350 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2351 for ac_dir
in $PATH; do
2352 test -z "$ac_dir" && ac_dir
=.
2353 if test -f $ac_dir/$ac_word; then
2362 if test -n "$CC"; then
2363 echo "$ac_t""$CC" 1>&6
2365 echo "$ac_t""no" 1>&6
2370 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2373 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2374 echo "configure:2375: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2377 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2378 ac_cpp
='$CPP $CPPFLAGS'
2379 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2380 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2381 cross_compiling
=$ac_cv_prog_cc_cross
2383 cat > conftest.
$ac_ext <<EOF
2384 #line 2385 "configure"
2385 #include "confdefs.h"
2388 if { (eval echo configure
:2389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2389 ac_cv_prog_cc_works
=yes
2390 # If we can't run a trivial program, we are probably using a cross compiler.
2391 if (.
/conftest
; exit) 2>/dev
/null
; then
2392 ac_cv_prog_cc_cross
=no
2394 ac_cv_prog_cc_cross
=yes
2397 echo "configure: failed program was:" >&5
2398 cat conftest.
$ac_ext >&5
2399 ac_cv_prog_cc_works
=no
2403 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2404 if test $ac_cv_prog_cc_works = no
; then
2405 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2407 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2408 echo "configure:2409: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2409 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2410 cross_compiling
=$ac_cv_prog_cc_cross
2412 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2413 echo "configure:2414: checking whether we are using GNU C" >&5
2414 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2415 echo $ac_n "(cached) $ac_c" 1>&6
2417 cat > conftest.c
<<EOF
2422 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2423: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2429 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2431 if test $ac_cv_prog_gcc = yes; then
2437 ac_test_CFLAGS
="${CFLAGS+set}"
2438 ac_save_CFLAGS
="$CFLAGS"
2440 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2441 echo "configure:2442: checking whether ${CC-cc} accepts -g" >&5
2442 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2443 echo $ac_n "(cached) $ac_c" 1>&6
2445 echo 'void f(){}' > conftest.c
2446 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2455 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2456 if test "$ac_test_CFLAGS" = set; then
2457 CFLAGS
="$ac_save_CFLAGS"
2458 elif test $ac_cv_prog_cc_g = yes; then
2459 if test "$GCC" = yes; then
2465 if test "$GCC" = yes; then
2473 for ac_prog
in 'bison -y' byacc
2475 # Extract the first word of "$ac_prog", so it can be a program name with args.
2476 set dummy
$ac_prog; ac_word
=$2
2477 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2478 echo "configure:2479: checking for $ac_word" >&5
2479 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2480 echo $ac_n "(cached) $ac_c" 1>&6
2482 if test -n "$YACC"; then
2483 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
2485 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2486 for ac_dir
in $PATH; do
2487 test -z "$ac_dir" && ac_dir
=.
2488 if test -f $ac_dir/$ac_word; then
2489 ac_cv_prog_YACC
="$ac_prog"
2496 YACC
="$ac_cv_prog_YACC"
2497 if test -n "$YACC"; then
2498 echo "$ac_t""$YACC" 1>&6
2500 echo "$ac_t""no" 1>&6
2503 test -n "$YACC" && break
2505 test -n "$YACC" || YACC
="yacc"
2507 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2508 echo "configure:2509: checking how to run the C preprocessor" >&5
2509 # On Suns, sometimes $CPP names a directory.
2510 if test -n "$CPP" && test -d "$CPP"; then
2513 if test -z "$CPP"; then
2514 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2515 echo $ac_n "(cached) $ac_c" 1>&6
2517 # This must be in double quotes, not single quotes, because CPP may get
2518 # substituted into the Makefile and "${CC-cc}" will confuse make.
2520 # On the NeXT, cc -E runs the code through the compiler's parser,
2521 # not just through cpp.
2522 cat > conftest.
$ac_ext <<EOF
2523 #line 2524 "configure"
2524 #include "confdefs.h"
2528 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2529 { (eval echo configure
:2530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2530 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2531 if test -z "$ac_err"; then
2535 echo "configure: failed program was:" >&5
2536 cat conftest.
$ac_ext >&5
2538 CPP
="${CC-cc} -E -traditional-cpp"
2539 cat > conftest.
$ac_ext <<EOF
2540 #line 2541 "configure"
2541 #include "confdefs.h"
2545 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2546 { (eval echo configure
:2547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2547 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2548 if test -z "$ac_err"; then
2552 echo "configure: failed program was:" >&5
2553 cat conftest.
$ac_ext >&5
2555 CPP
="${CC-cc} -nologo -E"
2556 cat > conftest.
$ac_ext <<EOF
2557 #line 2558 "configure"
2558 #include "confdefs.h"
2562 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2563 { (eval echo configure
:2564: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2564 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2565 if test -z "$ac_err"; then
2569 echo "configure: failed program was:" >&5
2570 cat conftest.
$ac_ext >&5
2579 ac_cv_prog_CPP
="$CPP"
2581 CPP
="$ac_cv_prog_CPP"
2583 ac_cv_prog_CPP
="$CPP"
2585 echo "$ac_t""$CPP" 1>&6
2587 missing_dir
=`cd $ac_aux_dir && pwd`
2588 for ac_prog
in flex
lex
2590 # Extract the first word of "$ac_prog", so it can be a program name with args.
2591 set dummy
$ac_prog; ac_word
=$2
2592 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2593 echo "configure:2594: checking for $ac_word" >&5
2594 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2595 echo $ac_n "(cached) $ac_c" 1>&6
2597 if test -n "$LEX"; then
2598 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
2600 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2601 for ac_dir
in $PATH; do
2602 test -z "$ac_dir" && ac_dir
=.
2603 if test -f $ac_dir/$ac_word; then
2604 ac_cv_prog_LEX
="$ac_prog"
2611 LEX
="$ac_cv_prog_LEX"
2612 if test -n "$LEX"; then
2613 echo "$ac_t""$LEX" 1>&6
2615 echo "$ac_t""no" 1>&6
2618 test -n "$LEX" && break
2620 test -n "$LEX" || LEX
=""$missing_dir/missing flex
""
2622 # Extract the first word of "flex", so it can be a program name with args.
2623 set dummy flex
; ac_word
=$2
2624 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2625 echo "configure:2626: checking for $ac_word" >&5
2626 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2627 echo $ac_n "(cached) $ac_c" 1>&6
2629 if test -n "$LEX"; then
2630 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
2632 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2633 for ac_dir
in $PATH; do
2634 test -z "$ac_dir" && ac_dir
=.
2635 if test -f $ac_dir/$ac_word; then
2636 ac_cv_prog_LEX
="flex"
2641 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
2644 LEX
="$ac_cv_prog_LEX"
2645 if test -n "$LEX"; then
2646 echo "$ac_t""$LEX" 1>&6
2648 echo "$ac_t""no" 1>&6
2651 if test -z "$LEXLIB"
2657 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
2658 echo "configure:2659: checking for yywrap in -l$ac_lib" >&5
2659 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
2660 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2661 echo $ac_n "(cached) $ac_c" 1>&6
2663 ac_save_LIBS
="$LIBS"
2664 LIBS
="-l$ac_lib $LIBS"
2665 cat > conftest.
$ac_ext <<EOF
2666 #line 2667 "configure"
2667 #include "confdefs.h"
2668 /* Override any gcc2 internal prototype to avoid an error. */
2669 /* We use char because int might match the return type of a gcc2
2670 builtin and then its argument prototype would still apply. */
2677 if { (eval echo configure
:2678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2679 eval "ac_cv_lib_$ac_lib_var=yes"
2681 echo "configure: failed program was:" >&5
2682 cat conftest.
$ac_ext >&5
2684 eval "ac_cv_lib_$ac_lib_var=no"
2687 LIBS
="$ac_save_LIBS"
2690 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2691 echo "$ac_t""yes" 1>&6
2694 echo "$ac_t""no" 1>&6
2699 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
2700 echo "configure:2701: checking lex output file root" >&5
2701 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
2702 echo $ac_n "(cached) $ac_c" 1>&6
2704 # The minimal lex program is just a single line: %%. But some broken lexes
2705 # (Solaris, I think it was) want two %% lines, so accommodate them.
2708 if test -f lex.yy.c
; then
2709 ac_cv_prog_lex_root
=lex.yy
2710 elif test -f lexyy.c
; then
2711 ac_cv_prog_lex_root
=lexyy
2713 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
2717 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
2718 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
2720 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
2721 echo "configure:2722: checking whether yytext is a pointer" >&5
2722 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
2723 echo $ac_n "(cached) $ac_c" 1>&6
2725 # POSIX says lex can declare yytext either as a pointer or an array; the
2726 # default is implementation-dependent. Figure out which it is, since
2727 # not all implementations provide the %pointer and %array declarations.
2728 ac_cv_prog_lex_yytext_pointer
=no
2729 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2730 ac_save_LIBS
="$LIBS"
2731 LIBS
="$LIBS $LEXLIB"
2732 cat > conftest.
$ac_ext <<EOF
2733 #line 2734 "configure"
2734 #include "confdefs.h"
2735 `cat $LEX_OUTPUT_ROOT.c`
2740 if { (eval echo configure
:2741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2742 ac_cv_prog_lex_yytext_pointer
=yes
2744 echo "configure: failed program was:" >&5
2745 cat conftest.
$ac_ext >&5
2748 LIBS
="$ac_save_LIBS"
2749 rm -f "${LEX_OUTPUT_ROOT}.c"
2753 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
2754 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2755 cat >> confdefs.h
<<\EOF
2756 #define YYTEXT_POINTER 1
2763 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2764 echo "configure:2765: checking for POSIXized ISC" >&5
2765 if test -d /etc
/conf
/kconfig.d
&&
2766 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
2768 echo "$ac_t""yes" 1>&6
2769 ISC
=yes # If later tests want to check for ISC.
2770 cat >> confdefs.h
<<\EOF
2771 #define _POSIX_SOURCE 1
2774 if test "$GCC" = yes; then
2780 echo "$ac_t""no" 1>&6
2784 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2785 echo "configure:2786: checking for ANSI C header files" >&5
2786 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2787 echo $ac_n "(cached) $ac_c" 1>&6
2789 cat > conftest.
$ac_ext <<EOF
2790 #line 2791 "configure"
2791 #include "confdefs.h"
2797 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2798 { (eval echo configure
:2799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2799 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2800 if test -z "$ac_err"; then
2802 ac_cv_header_stdc
=yes
2805 echo "configure: failed program was:" >&5
2806 cat conftest.
$ac_ext >&5
2808 ac_cv_header_stdc
=no
2812 if test $ac_cv_header_stdc = yes; then
2813 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2814 cat > conftest.
$ac_ext <<EOF
2815 #line 2816 "configure"
2816 #include "confdefs.h"
2819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2820 egrep "memchr" >/dev
/null
2>&1; then
2824 ac_cv_header_stdc
=no
2830 if test $ac_cv_header_stdc = yes; then
2831 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2832 cat > conftest.
$ac_ext <<EOF
2833 #line 2834 "configure"
2834 #include "confdefs.h"
2837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2838 egrep "free" >/dev
/null
2>&1; then
2842 ac_cv_header_stdc
=no
2848 if test $ac_cv_header_stdc = yes; then
2849 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2850 if test "$cross_compiling" = yes; then
2853 cat > conftest.
$ac_ext <<EOF
2854 #line 2855 "configure"
2855 #include "confdefs.h"
2857 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2858 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2859 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2860 int main () { int i; for (i = 0; i < 256; i++)
2861 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2865 if { (eval echo configure
:2866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2869 echo "configure: failed program was:" >&5
2870 cat conftest.
$ac_ext >&5
2872 ac_cv_header_stdc
=no
2880 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2881 if test $ac_cv_header_stdc = yes; then
2882 cat >> confdefs.h
<<\EOF
2883 #define STDC_HEADERS 1
2888 echo $ac_n "checking for working const""... $ac_c" 1>&6
2889 echo "configure:2890: checking for working const" >&5
2890 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2891 echo $ac_n "(cached) $ac_c" 1>&6
2893 cat > conftest.
$ac_ext <<EOF
2894 #line 2895 "configure"
2895 #include "confdefs.h"
2899 /* Ultrix mips cc rejects this. */
2900 typedef int charset[2]; const charset x;
2901 /* SunOS 4.1.1 cc rejects this. */
2902 char const *const *ccp;
2904 /* NEC SVR4.0.2 mips cc rejects this. */
2905 struct point {int x, y;};
2906 static struct point const zero = {0,0};
2907 /* AIX XL C 1.02.0.0 rejects this.
2908 It does not let you subtract one const X* pointer from another in an arm
2909 of an if-expression whose if-part is not a constant expression */
2910 const char *g = "string";
2911 ccp = &g + (g ? g-g : 0);
2912 /* HPUX 7.0 cc rejects these. */
2915 ccp = (char const *const *) p;
2916 { /* SCO 3.2v4 cc rejects this. */
2918 char const *s = 0 ? (char *) 0 : (char const *) 0;
2922 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2924 const int *foo = &x[0];
2927 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2928 typedef const int *iptr;
2932 { /* AIX XL C 1.02.0.0 rejects this saying
2933 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2934 struct s { int j; const int *ap[3]; };
2935 struct s *b; b->j = 5;
2937 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2943 if { (eval echo configure
:2944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2947 echo "configure: failed program was:" >&5
2948 cat conftest.
$ac_ext >&5
2955 echo "$ac_t""$ac_cv_c_const" 1>&6
2956 if test $ac_cv_c_const = no
; then
2957 cat >> confdefs.h
<<\EOF
2963 echo $ac_n "checking for inline""... $ac_c" 1>&6
2964 echo "configure:2965: checking for inline" >&5
2965 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2966 echo $ac_n "(cached) $ac_c" 1>&6
2969 for ac_kw
in inline __inline__ __inline
; do
2970 cat > conftest.
$ac_ext <<EOF
2971 #line 2972 "configure"
2972 #include "confdefs.h"
2978 if { (eval echo configure
:2979: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2980 ac_cv_c_inline
=$ac_kw; break
2982 echo "configure: failed program was:" >&5
2983 cat conftest.
$ac_ext >&5
2990 echo "$ac_t""$ac_cv_c_inline" 1>&6
2991 case "$ac_cv_c_inline" in
2993 no
) cat >> confdefs.h
<<\EOF
2997 *) cat >> confdefs.h
<<EOF
2998 #define inline $ac_cv_c_inline
3003 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3004 echo "configure:3005: checking for off_t" >&5
3005 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3006 echo $ac_n "(cached) $ac_c" 1>&6
3008 cat > conftest.
$ac_ext <<EOF
3009 #line 3010 "configure"
3010 #include "confdefs.h"
3011 #include <sys/types.h>
3017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3018 egrep "off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3020 ac_cv_type_off_t
=yes
3028 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3029 if test $ac_cv_type_off_t = no
; then
3030 cat >> confdefs.h
<<\EOF
3036 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3037 echo "configure:3038: checking for size_t" >&5
3038 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3039 echo $ac_n "(cached) $ac_c" 1>&6
3041 cat > conftest.
$ac_ext <<EOF
3042 #line 3043 "configure"
3043 #include "confdefs.h"
3044 #include <sys/types.h>
3050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3051 egrep "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3053 ac_cv_type_size_t
=yes
3056 ac_cv_type_size_t
=no
3061 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3062 if test $ac_cv_type_size_t = no
; then
3063 cat >> confdefs.h
<<\EOF
3064 #define size_t unsigned
3069 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3070 # for constant arguments. Useless!
3071 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3072 echo "configure:3073: checking for working alloca.h" >&5
3073 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3074 echo $ac_n "(cached) $ac_c" 1>&6
3076 cat > conftest.
$ac_ext <<EOF
3077 #line 3078 "configure"
3078 #include "confdefs.h"
3081 char *p = alloca(2 * sizeof(int));
3084 if { (eval echo configure
:3085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3086 ac_cv_header_alloca_h
=yes
3088 echo "configure: failed program was:" >&5
3089 cat conftest.
$ac_ext >&5
3091 ac_cv_header_alloca_h
=no
3096 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3097 if test $ac_cv_header_alloca_h = yes; then
3098 cat >> confdefs.h
<<\EOF
3099 #define HAVE_ALLOCA_H 1
3104 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3105 echo "configure:3106: checking for alloca" >&5
3106 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3107 echo $ac_n "(cached) $ac_c" 1>&6
3109 cat > conftest.
$ac_ext <<EOF
3110 #line 3111 "configure"
3111 #include "confdefs.h"
3114 # define alloca __builtin_alloca
3117 # include <malloc.h>
3118 # define alloca _alloca
3121 # include <alloca.h>
3126 # ifndef alloca /* predefined by HP cc +Olibcalls */
3135 char *p = (char *) alloca(1);
3138 if { (eval echo configure
:3139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3140 ac_cv_func_alloca_works
=yes
3142 echo "configure: failed program was:" >&5
3143 cat conftest.
$ac_ext >&5
3145 ac_cv_func_alloca_works
=no
3150 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3151 if test $ac_cv_func_alloca_works = yes; then
3152 cat >> confdefs.h
<<\EOF
3153 #define HAVE_ALLOCA 1
3158 if test $ac_cv_func_alloca_works = no
; then
3159 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3160 # that cause trouble. Some versions do not even contain alloca or
3161 # contain a buggy version. If you still want to use their alloca,
3162 # use ar to extract alloca.o from them instead of compiling alloca.c.
3163 ALLOCA
=alloca.
${ac_objext}
3164 cat >> confdefs.h
<<\EOF
3169 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3170 echo "configure:3171: checking whether alloca needs Cray hooks" >&5
3171 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3172 echo $ac_n "(cached) $ac_c" 1>&6
3174 cat > conftest.
$ac_ext <<EOF
3175 #line 3176 "configure"
3176 #include "confdefs.h"
3177 #if defined(CRAY) && ! defined(CRAY2)
3184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3185 egrep "webecray" >/dev
/null
2>&1; then
3196 echo "$ac_t""$ac_cv_os_cray" 1>&6
3197 if test $ac_cv_os_cray = yes; then
3198 for ac_func
in _getb67 GETB67 getb67
; do
3199 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3200 echo "configure:3201: checking for $ac_func" >&5
3201 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3202 echo $ac_n "(cached) $ac_c" 1>&6
3204 cat > conftest.
$ac_ext <<EOF
3205 #line 3206 "configure"
3206 #include "confdefs.h"
3207 /* System header to define __stub macros and hopefully few prototypes,
3208 which can conflict with char $ac_func(); below. */
3210 /* Override any gcc2 internal prototype to avoid an error. */
3211 /* We use char because int might match the return type of a gcc2
3212 builtin and then its argument prototype would still apply. */
3217 /* The GNU C library defines this for functions which it implements
3218 to always fail with ENOSYS. Some functions are actually named
3219 something starting with __ and the normal name is an alias. */
3220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3228 if { (eval echo configure
:3229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3230 eval "ac_cv_func_$ac_func=yes"
3232 echo "configure: failed program was:" >&5
3233 cat conftest.
$ac_ext >&5
3235 eval "ac_cv_func_$ac_func=no"
3240 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3241 echo "$ac_t""yes" 1>&6
3242 cat >> confdefs.h
<<EOF
3243 #define CRAY_STACKSEG_END $ac_func
3248 echo "$ac_t""no" 1>&6
3254 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3255 echo "configure:3256: checking stack direction for C alloca" >&5
3256 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3257 echo $ac_n "(cached) $ac_c" 1>&6
3259 if test "$cross_compiling" = yes; then
3260 ac_cv_c_stack_direction
=0
3262 cat > conftest.
$ac_ext <<EOF
3263 #line 3264 "configure"
3264 #include "confdefs.h"
3265 find_stack_direction ()
3267 static char *addr = 0;
3272 return find_stack_direction ();
3275 return (&dummy > addr) ? 1 : -1;
3279 exit (find_stack_direction() < 0);
3282 if { (eval echo configure
:3283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3284 ac_cv_c_stack_direction
=1
3286 echo "configure: failed program was:" >&5
3287 cat conftest.
$ac_ext >&5
3289 ac_cv_c_stack_direction
=-1
3296 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3297 cat >> confdefs.h
<<EOF
3298 #define STACK_DIRECTION $ac_cv_c_stack_direction
3303 for ac_hdr
in unistd.h
3305 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3306 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3307 echo "configure:3308: checking for $ac_hdr" >&5
3308 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3309 echo $ac_n "(cached) $ac_c" 1>&6
3311 cat > conftest.
$ac_ext <<EOF
3312 #line 3313 "configure"
3313 #include "confdefs.h"
3316 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3317 { (eval echo configure
:3318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3318 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3319 if test -z "$ac_err"; then
3321 eval "ac_cv_header_$ac_safe=yes"
3324 echo "configure: failed program was:" >&5
3325 cat conftest.
$ac_ext >&5
3327 eval "ac_cv_header_$ac_safe=no"
3331 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3332 echo "$ac_t""yes" 1>&6
3333 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3334 cat >> confdefs.h
<<EOF
3335 #define $ac_tr_hdr 1
3339 echo "$ac_t""no" 1>&6
3343 for ac_func
in getpagesize
3345 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3346 echo "configure:3347: checking for $ac_func" >&5
3347 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3348 echo $ac_n "(cached) $ac_c" 1>&6
3350 cat > conftest.
$ac_ext <<EOF
3351 #line 3352 "configure"
3352 #include "confdefs.h"
3353 /* System header to define __stub macros and hopefully few prototypes,
3354 which can conflict with char $ac_func(); below. */
3356 /* Override any gcc2 internal prototype to avoid an error. */
3357 /* We use char because int might match the return type of a gcc2
3358 builtin and then its argument prototype would still apply. */
3363 /* The GNU C library defines this for functions which it implements
3364 to always fail with ENOSYS. Some functions are actually named
3365 something starting with __ and the normal name is an alias. */
3366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3374 if { (eval echo configure
:3375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3376 eval "ac_cv_func_$ac_func=yes"
3378 echo "configure: failed program was:" >&5
3379 cat conftest.
$ac_ext >&5
3381 eval "ac_cv_func_$ac_func=no"
3386 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3387 echo "$ac_t""yes" 1>&6
3388 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3389 cat >> confdefs.h
<<EOF
3390 #define $ac_tr_func 1
3394 echo "$ac_t""no" 1>&6
3398 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3399 echo "configure:3400: checking for working mmap" >&5
3400 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3401 echo $ac_n "(cached) $ac_c" 1>&6
3403 if test "$cross_compiling" = yes; then
3404 ac_cv_func_mmap_fixed_mapped
=no
3406 cat > conftest.
$ac_ext <<EOF
3407 #line 3408 "configure"
3408 #include "confdefs.h"
3410 /* Thanks to Mike Haertel and Jim Avera for this test.
3411 Here is a matrix of mmap possibilities:
3412 mmap private not fixed
3413 mmap private fixed at somewhere currently unmapped
3414 mmap private fixed at somewhere already mapped
3415 mmap shared not fixed
3416 mmap shared fixed at somewhere currently unmapped
3417 mmap shared fixed at somewhere already mapped
3418 For private mappings, we should verify that changes cannot be read()
3419 back from the file, nor mmap's back from the file at a different
3420 address. (There have been systems where private was not correctly
3421 implemented like the infamous i386 svr4.0, and systems where the
3422 VM page cache was not coherent with the filesystem buffer cache
3423 like early versions of FreeBSD and possibly contemporary NetBSD.)
3424 For shared mappings, we should conversely verify that changes get
3425 propogated back to all the places they're supposed to be.
3427 Grep wants private fixed already mapped.
3428 The main things grep needs to know about mmap are:
3429 * does it exist and is it safe to write into the mmap'd area
3430 * how to use it (BSD variants) */
3431 #include <sys/types.h>
3433 #include <sys/mman.h>
3435 /* This mess was copied from the GNU getpagesize.h. */
3436 #ifndef HAVE_GETPAGESIZE
3437 # ifdef HAVE_UNISTD_H
3438 # include <unistd.h>
3441 /* Assume that all systems that can run configure have sys/param.h. */
3442 # ifndef HAVE_SYS_PARAM_H
3443 # define HAVE_SYS_PARAM_H 1
3446 # ifdef _SC_PAGESIZE
3447 # define getpagesize() sysconf(_SC_PAGESIZE)
3448 # else /* no _SC_PAGESIZE */
3449 # ifdef HAVE_SYS_PARAM_H
3450 # include <sys/param.h>
3451 # ifdef EXEC_PAGESIZE
3452 # define getpagesize() EXEC_PAGESIZE
3453 # else /* no EXEC_PAGESIZE */
3455 # define getpagesize() NBPG * CLSIZE
3458 # endif /* no CLSIZE */
3459 # else /* no NBPG */
3461 # define getpagesize() NBPC
3462 # else /* no NBPC */
3464 # define getpagesize() PAGESIZE
3465 # endif /* PAGESIZE */
3466 # endif /* no NBPC */
3467 # endif /* no NBPG */
3468 # endif /* no EXEC_PAGESIZE */
3469 # else /* no HAVE_SYS_PARAM_H */
3470 # define getpagesize() 8192 /* punt totally */
3471 # endif /* no HAVE_SYS_PARAM_H */
3472 # endif /* no _SC_PAGESIZE */
3474 #endif /* no HAVE_GETPAGESIZE */
3477 extern "C" { void *malloc(unsigned); }
3485 char *data, *data2, *data3;
3489 pagesize = getpagesize();
3492 * First, make a file with some known garbage in it.
3494 data = malloc(pagesize);
3497 for (i = 0; i < pagesize; ++i)
3498 *(data + i) = rand();
3500 fd = creat("conftestmmap", 0600);
3503 if (write(fd, data, pagesize) != pagesize)
3508 * Next, try to mmap the file at a fixed address which
3509 * already has something else allocated at it. If we can,
3510 * also make sure that we see the same garbage.
3512 fd = open("conftestmmap", O_RDWR);
3515 data2 = malloc(2 * pagesize);
3518 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3519 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3520 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3522 for (i = 0; i < pagesize; ++i)
3523 if (*(data + i) != *(data2 + i))
3527 * Finally, make sure that changes to the mapped area
3528 * do not percolate back to the file as seen by read().
3529 * (This is a bug on some variants of i386 svr4.0.)
3531 for (i = 0; i < pagesize; ++i)
3532 *(data2 + i) = *(data2 + i) + 1;
3533 data3 = malloc(pagesize);
3536 if (read(fd, data3, pagesize) != pagesize)
3538 for (i = 0; i < pagesize; ++i)
3539 if (*(data + i) != *(data3 + i))
3542 unlink("conftestmmap");
3547 if { (eval echo configure
:3548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3549 ac_cv_func_mmap_fixed_mapped
=yes
3551 echo "configure: failed program was:" >&5
3552 cat conftest.
$ac_ext >&5
3554 ac_cv_func_mmap_fixed_mapped
=no
3561 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3562 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3563 cat >> confdefs.h
<<\EOF
3570 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3571 unistd.h values.h sys
/param.h
3573 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3574 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3575 echo "configure:3576: checking for $ac_hdr" >&5
3576 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3577 echo $ac_n "(cached) $ac_c" 1>&6
3579 cat > conftest.
$ac_ext <<EOF
3580 #line 3581 "configure"
3581 #include "confdefs.h"
3584 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3585 { (eval echo configure
:3586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3586 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3587 if test -z "$ac_err"; then
3589 eval "ac_cv_header_$ac_safe=yes"
3592 echo "configure: failed program was:" >&5
3593 cat conftest.
$ac_ext >&5
3595 eval "ac_cv_header_$ac_safe=no"
3599 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3600 echo "$ac_t""yes" 1>&6
3601 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3602 cat >> confdefs.h
<<EOF
3603 #define $ac_tr_hdr 1
3607 echo "$ac_t""no" 1>&6
3611 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3612 __argz_count __argz_stringify __argz_next
3614 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3615 echo "configure:3616: checking for $ac_func" >&5
3616 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3617 echo $ac_n "(cached) $ac_c" 1>&6
3619 cat > conftest.
$ac_ext <<EOF
3620 #line 3621 "configure"
3621 #include "confdefs.h"
3622 /* System header to define __stub macros and hopefully few prototypes,
3623 which can conflict with char $ac_func(); below. */
3625 /* Override any gcc2 internal prototype to avoid an error. */
3626 /* We use char because int might match the return type of a gcc2
3627 builtin and then its argument prototype would still apply. */
3632 /* The GNU C library defines this for functions which it implements
3633 to always fail with ENOSYS. Some functions are actually named
3634 something starting with __ and the normal name is an alias. */
3635 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3643 if { (eval echo configure
:3644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3645 eval "ac_cv_func_$ac_func=yes"
3647 echo "configure: failed program was:" >&5
3648 cat conftest.
$ac_ext >&5
3650 eval "ac_cv_func_$ac_func=no"
3655 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3656 echo "$ac_t""yes" 1>&6
3657 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3658 cat >> confdefs.h
<<EOF
3659 #define $ac_tr_func 1
3663 echo "$ac_t""no" 1>&6
3668 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3669 for ac_func
in stpcpy
3671 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3672 echo "configure:3673: checking for $ac_func" >&5
3673 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3674 echo $ac_n "(cached) $ac_c" 1>&6
3676 cat > conftest.
$ac_ext <<EOF
3677 #line 3678 "configure"
3678 #include "confdefs.h"
3679 /* System header to define __stub macros and hopefully few prototypes,
3680 which can conflict with char $ac_func(); below. */
3682 /* Override any gcc2 internal prototype to avoid an error. */
3683 /* We use char because int might match the return type of a gcc2
3684 builtin and then its argument prototype would still apply. */
3689 /* The GNU C library defines this for functions which it implements
3690 to always fail with ENOSYS. Some functions are actually named
3691 something starting with __ and the normal name is an alias. */
3692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3700 if { (eval echo configure
:3701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3702 eval "ac_cv_func_$ac_func=yes"
3704 echo "configure: failed program was:" >&5
3705 cat conftest.
$ac_ext >&5
3707 eval "ac_cv_func_$ac_func=no"
3712 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3713 echo "$ac_t""yes" 1>&6
3714 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3715 cat >> confdefs.h
<<EOF
3716 #define $ac_tr_func 1
3720 echo "$ac_t""no" 1>&6
3725 if test "${ac_cv_func_stpcpy}" = "yes"; then
3726 cat >> confdefs.h
<<\EOF
3727 #define HAVE_STPCPY 1
3732 if test $ac_cv_header_locale_h = yes; then
3733 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3734 echo "configure:3735: checking for LC_MESSAGES" >&5
3735 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3736 echo $ac_n "(cached) $ac_c" 1>&6
3738 cat > conftest.
$ac_ext <<EOF
3739 #line 3740 "configure"
3740 #include "confdefs.h"
3746 if { (eval echo configure
:3747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3748 am_cv_val_LC_MESSAGES
=yes
3750 echo "configure: failed program was:" >&5
3751 cat conftest.
$ac_ext >&5
3753 am_cv_val_LC_MESSAGES
=no
3758 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3759 if test $am_cv_val_LC_MESSAGES = yes; then
3760 cat >> confdefs.h
<<\EOF
3761 #define HAVE_LC_MESSAGES 1
3766 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3767 echo "configure:3768: checking whether NLS is requested" >&5
3768 # Check whether --enable-nls or --disable-nls was given.
3769 if test "${enable_nls+set}" = set; then
3770 enableval
="$enable_nls"
3776 echo "$ac_t""$USE_NLS" 1>&6
3779 USE_INCLUDED_LIBINTL
=no
3781 if test "$USE_NLS" = "yes"; then
3782 cat >> confdefs.h
<<\EOF
3783 #define ENABLE_NLS 1
3786 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3787 echo "configure:3788: checking whether included gettext is requested" >&5
3788 # Check whether --with-included-gettext or --without-included-gettext was given.
3789 if test "${with_included_gettext+set}" = set; then
3790 withval
="$with_included_gettext"
3791 nls_cv_force_use_gnu_gettext
=$withval
3793 nls_cv_force_use_gnu_gettext
=no
3796 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3798 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
3799 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3801 nls_cv_header_libgt
=
3804 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3805 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3806 echo "configure:3807: checking for libintl.h" >&5
3807 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3808 echo $ac_n "(cached) $ac_c" 1>&6
3810 cat > conftest.
$ac_ext <<EOF
3811 #line 3812 "configure"
3812 #include "confdefs.h"
3813 #include <libintl.h>
3815 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3816 { (eval echo configure
:3817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3817 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3818 if test -z "$ac_err"; then
3820 eval "ac_cv_header_$ac_safe=yes"
3823 echo "configure: failed program was:" >&5
3824 cat conftest.
$ac_ext >&5
3826 eval "ac_cv_header_$ac_safe=no"
3830 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3831 echo "$ac_t""yes" 1>&6
3832 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3833 echo "configure:3834: checking for gettext in libc" >&5
3834 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3835 echo $ac_n "(cached) $ac_c" 1>&6
3837 cat > conftest.
$ac_ext <<EOF
3838 #line 3839 "configure"
3839 #include "confdefs.h"
3840 #include <libintl.h>
3842 return (int) gettext ("")
3845 if { (eval echo configure
:3846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3847 gt_cv_func_gettext_libc
=yes
3849 echo "configure: failed program was:" >&5
3850 cat conftest.
$ac_ext >&5
3852 gt_cv_func_gettext_libc
=no
3857 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3859 if test "$gt_cv_func_gettext_libc" != "yes"; then
3860 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3861 echo "configure:3862: checking for bindtextdomain in -lintl" >&5
3862 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3863 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3864 echo $ac_n "(cached) $ac_c" 1>&6
3866 ac_save_LIBS
="$LIBS"
3868 cat > conftest.
$ac_ext <<EOF
3869 #line 3870 "configure"
3870 #include "confdefs.h"
3871 /* Override any gcc2 internal prototype to avoid an error. */
3872 /* We use char because int might match the return type of a gcc2
3873 builtin and then its argument prototype would still apply. */
3874 char bindtextdomain();
3880 if { (eval echo configure
:3881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3882 eval "ac_cv_lib_$ac_lib_var=yes"
3884 echo "configure: failed program was:" >&5
3885 cat conftest.
$ac_ext >&5
3887 eval "ac_cv_lib_$ac_lib_var=no"
3890 LIBS
="$ac_save_LIBS"
3893 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3894 echo "$ac_t""yes" 1>&6
3895 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3896 echo "configure:3897: checking for gettext in libintl" >&5
3897 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3898 echo $ac_n "(cached) $ac_c" 1>&6
3900 cat > conftest.
$ac_ext <<EOF
3901 #line 3902 "configure"
3902 #include "confdefs.h"
3905 return (int) gettext ("")
3908 if { (eval echo configure
:3909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3910 gt_cv_func_gettext_libintl
=yes
3912 echo "configure: failed program was:" >&5
3913 cat conftest.
$ac_ext >&5
3915 gt_cv_func_gettext_libintl
=no
3920 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3922 echo "$ac_t""no" 1>&6
3927 if test "$gt_cv_func_gettext_libc" = "yes" \
3928 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
3929 cat >> confdefs.h
<<\EOF
3930 #define HAVE_GETTEXT 1
3933 # Extract the first word of "msgfmt", so it can be a program name with args.
3934 set dummy msgfmt
; ac_word
=$2
3935 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3936 echo "configure:3937: checking for $ac_word" >&5
3937 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3938 echo $ac_n "(cached) $ac_c" 1>&6
3942 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3945 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3946 for ac_dir
in $PATH; do
3947 test -z "$ac_dir" && ac_dir
=.
3948 if test -f $ac_dir/$ac_word; then
3949 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3950 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3956 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
3960 MSGFMT
="$ac_cv_path_MSGFMT"
3961 if test -n "$MSGFMT"; then
3962 echo "$ac_t""$MSGFMT" 1>&6
3964 echo "$ac_t""no" 1>&6
3966 if test "$MSGFMT" != "no"; then
3967 for ac_func
in dcgettext
3969 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3970 echo "configure:3971: checking for $ac_func" >&5
3971 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3972 echo $ac_n "(cached) $ac_c" 1>&6
3974 cat > conftest.
$ac_ext <<EOF
3975 #line 3976 "configure"
3976 #include "confdefs.h"
3977 /* System header to define __stub macros and hopefully few prototypes,
3978 which can conflict with char $ac_func(); below. */
3980 /* Override any gcc2 internal prototype to avoid an error. */
3981 /* We use char because int might match the return type of a gcc2
3982 builtin and then its argument prototype would still apply. */
3987 /* The GNU C library defines this for functions which it implements
3988 to always fail with ENOSYS. Some functions are actually named
3989 something starting with __ and the normal name is an alias. */
3990 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3998 if { (eval echo configure
:3999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4000 eval "ac_cv_func_$ac_func=yes"
4002 echo "configure: failed program was:" >&5
4003 cat conftest.
$ac_ext >&5
4005 eval "ac_cv_func_$ac_func=no"
4010 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4011 echo "$ac_t""yes" 1>&6
4012 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4013 cat >> confdefs.h
<<EOF
4014 #define $ac_tr_func 1
4018 echo "$ac_t""no" 1>&6
4022 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4023 set dummy gmsgfmt
; ac_word
=$2
4024 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4025 echo "configure:4026: checking for $ac_word" >&5
4026 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4027 echo $ac_n "(cached) $ac_c" 1>&6
4031 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4034 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4037 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4038 for ac_dir
in $PATH; do
4039 test -z "$ac_dir" && ac_dir
=.
4040 if test -f $ac_dir/$ac_word; then
4041 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4046 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4050 GMSGFMT
="$ac_cv_path_GMSGFMT"
4051 if test -n "$GMSGFMT"; then
4052 echo "$ac_t""$GMSGFMT" 1>&6
4054 echo "$ac_t""no" 1>&6
4057 # Extract the first word of "xgettext", so it can be a program name with args.
4058 set dummy xgettext
; ac_word
=$2
4059 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4060 echo "configure:4061: checking for $ac_word" >&5
4061 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4062 echo $ac_n "(cached) $ac_c" 1>&6
4066 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4069 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4070 for ac_dir
in $PATH; do
4071 test -z "$ac_dir" && ac_dir
=.
4072 if test -f $ac_dir/$ac_word; then
4073 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4074 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4080 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4084 XGETTEXT
="$ac_cv_path_XGETTEXT"
4085 if test -n "$XGETTEXT"; then
4086 echo "$ac_t""$XGETTEXT" 1>&6
4088 echo "$ac_t""no" 1>&6
4091 cat > conftest.
$ac_ext <<EOF
4092 #line 4093 "configure"
4093 #include "confdefs.h"
4096 extern int _nl_msg_cat_cntr;
4097 return _nl_msg_cat_cntr
4100 if { (eval echo configure
:4101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4105 echo "configure: failed program was:" >&5
4106 cat conftest.
$ac_ext >&5
4117 echo "$ac_t""no" 1>&6
4122 if test "$CATOBJEXT" = "NONE"; then
4123 nls_cv_use_gnu_gettext
=yes
4127 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4128 INTLOBJS
="\$(GETTOBJS)"
4129 # Extract the first word of "msgfmt", so it can be a program name with args.
4130 set dummy msgfmt
; ac_word
=$2
4131 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4132 echo "configure:4133: checking for $ac_word" >&5
4133 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4134 echo $ac_n "(cached) $ac_c" 1>&6
4138 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
4141 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4142 for ac_dir
in $PATH; do
4143 test -z "$ac_dir" && ac_dir
=.
4144 if test -f $ac_dir/$ac_word; then
4145 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4146 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
4152 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
4156 MSGFMT
="$ac_cv_path_MSGFMT"
4157 if test -n "$MSGFMT"; then
4158 echo "$ac_t""$MSGFMT" 1>&6
4160 echo "$ac_t""no" 1>&6
4163 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4164 set dummy gmsgfmt
; ac_word
=$2
4165 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4166 echo "configure:4167: checking for $ac_word" >&5
4167 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4168 echo $ac_n "(cached) $ac_c" 1>&6
4172 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4175 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4178 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4179 for ac_dir
in $PATH; do
4180 test -z "$ac_dir" && ac_dir
=.
4181 if test -f $ac_dir/$ac_word; then
4182 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4187 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4191 GMSGFMT
="$ac_cv_path_GMSGFMT"
4192 if test -n "$GMSGFMT"; then
4193 echo "$ac_t""$GMSGFMT" 1>&6
4195 echo "$ac_t""no" 1>&6
4198 # Extract the first word of "xgettext", so it can be a program name with args.
4199 set dummy xgettext
; ac_word
=$2
4200 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4201 echo "configure:4202: checking for $ac_word" >&5
4202 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4203 echo $ac_n "(cached) $ac_c" 1>&6
4207 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4210 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4211 for ac_dir
in $PATH; do
4212 test -z "$ac_dir" && ac_dir
=.
4213 if test -f $ac_dir/$ac_word; then
4214 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4215 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4221 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4225 XGETTEXT
="$ac_cv_path_XGETTEXT"
4226 if test -n "$XGETTEXT"; then
4227 echo "$ac_t""$XGETTEXT" 1>&6
4229 echo "$ac_t""no" 1>&6
4233 USE_INCLUDED_LIBINTL
=yes
4237 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
4239 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
4240 nls_cv_header_intl
=libintl.h
4241 nls_cv_header_libgt
=libgettext.h
4244 if test "$XGETTEXT" != ":"; then
4245 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
4248 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4253 # We need to process the po/ directory.
4257 nls_cv_header_intl
=libintl.h
4258 nls_cv_header_libgt
=libgettext.h
4261 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4262 # because some of the sources are only built for this goal.
4263 if test "$PACKAGE" = gettext; then
4265 USE_INCLUDED_LIBINTL
=yes
4268 for lang
in $ALL_LINGUAS; do
4269 GMOFILES
="$GMOFILES $lang.gmo"
4270 POFILES
="$POFILES $lang.po"
4286 if test "x$CATOBJEXT" != "x"; then
4287 if test "x$ALL_LINGUAS" = "x"; then
4290 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4291 echo "configure:4292: checking for catalogs to be installed" >&5
4293 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
4294 case "$ALL_LINGUAS" in
4295 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
4298 LINGUAS
=$NEW_LINGUAS
4299 echo "$ac_t""$LINGUAS" 1>&6
4302 if test -n "$LINGUAS"; then
4303 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
4307 if test $ac_cv_header_locale_h = yes; then
4308 INCLUDE_LOCALE_H
="#include <locale.h>"
4311 /* The system does not provide the header <locale.h>. Take care yourself. */"
4315 if test -f $srcdir/po2tbl.
sed.
in; then
4316 if test "$CATOBJEXT" = ".cat"; then
4317 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4318 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4319 echo "configure:4320: checking for linux/version.h" >&5
4320 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4321 echo $ac_n "(cached) $ac_c" 1>&6
4323 cat > conftest.
$ac_ext <<EOF
4324 #line 4325 "configure"
4325 #include "confdefs.h"
4326 #include <linux/version.h>
4328 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4329 { (eval echo configure
:4330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4330 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4331 if test -z "$ac_err"; then
4333 eval "ac_cv_header_$ac_safe=yes"
4336 echo "configure: failed program was:" >&5
4337 cat conftest.
$ac_ext >&5
4339 eval "ac_cv_header_$ac_safe=no"
4343 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4344 echo "$ac_t""yes" 1>&6
4347 echo "$ac_t""no" 1>&6
4352 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
4354 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4355 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
4358 if test "$PACKAGE" = "gettext"; then
4368 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
4374 if test -d $srcdir/po
; then
4375 test -d po || mkdir po
4376 if test "x$srcdir" != "x."; then
4377 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4378 posrcprefix
="$srcdir/"
4380 posrcprefix
="../$srcdir/"
4386 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4387 < $srcdir/po
/POTFILES.
in > po
/POTFILES
4391 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4392 echo "configure:4393: checking whether to enable maintainer-specific portions of Makefiles" >&5
4393 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4394 if test "${enable_maintainer_mode+set}" = set; then
4395 enableval
="$enable_maintainer_mode"
4396 USE_MAINTAINER_MODE
=$enableval
4398 USE_MAINTAINER_MODE
=no
4401 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4402 if test $USE_MAINTAINER_MODE = yes; then
4409 echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
4410 echo "configure:4411: checking for Cygwin32 environment" >&5
4411 if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
4412 echo $ac_n "(cached) $ac_c" 1>&6
4414 cat > conftest.
$ac_ext <<EOF
4415 #line 4416 "configure"
4416 #include "confdefs.h"
4419 return __CYGWIN32__;
4422 if { (eval echo configure
:4423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4426 echo "configure: failed program was:" >&5
4427 cat conftest.
$ac_ext >&5
4435 echo "$ac_t""$am_cv_cygwin32" 1>&6
4437 test "$am_cv_cygwin32" = yes && CYGWIN32
=yes
4438 echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6
4439 echo "configure:4440: checking for Mingw32 environment" >&5
4440 if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then
4441 echo $ac_n "(cached) $ac_c" 1>&6
4443 cat > conftest.
$ac_ext <<EOF
4444 #line 4445 "configure"
4445 #include "confdefs.h"
4451 if { (eval echo configure
:4452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4455 echo "configure: failed program was:" >&5
4456 cat conftest.
$ac_ext >&5
4464 echo "$ac_t""$am_cv_mingw32" 1>&6
4466 test "$am_cv_mingw32" = yes && MINGW32
=yes
4469 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4470 echo "configure:4471: checking for executable suffix" >&5
4471 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
4472 echo $ac_n "(cached) $ac_c" 1>&6
4474 if test "$CYGWIN32" = yes ||
test "$MINGW32" = yes; then
4477 cat > am_c_test.c
<< 'EOF'
4479 /* Nothing needed here
*/
4482 ${CC-cc} -o am_c_test
$CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c
$LIBS 1>&5
4484 for file in am_c_test.
*; do
4488 *) am_cv_exeext
=`echo $file | sed -e s/am_c_test//` ;;
4494 test x
"${am_cv_exeext}" = x
&& am_cv_exeext
=no
4497 test x
"${am_cv_exeext}" != xno
&& EXEEXT
=${am_cv_exeext}
4498 echo "$ac_t""${am_cv_exeext}" 1>&6
4501 for ac_hdr
in string.h stdlib.h memory.h
strings.h unistd.h stdarg.h varargs.h errno.h sys
/types.h
4503 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4504 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4505 echo "configure:4506: checking for $ac_hdr" >&5
4506 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4507 echo $ac_n "(cached) $ac_c" 1>&6
4509 cat > conftest.
$ac_ext <<EOF
4510 #line 4511 "configure"
4511 #include "confdefs.h"
4514 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4515 { (eval echo configure
:4516: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4516 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4517 if test -z "$ac_err"; then
4519 eval "ac_cv_header_$ac_safe=yes"
4522 echo "configure: failed program was:" >&5
4523 cat conftest.
$ac_ext >&5
4525 eval "ac_cv_header_$ac_safe=no"
4529 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4530 echo "$ac_t""yes" 1>&6
4531 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4532 cat >> confdefs.h
<<EOF
4533 #define $ac_tr_hdr 1
4537 echo "$ac_t""no" 1>&6
4542 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
4543 # people who are not cross-compiling but are compiling cross-assemblers.
4544 echo $ac_n "checking whether compiling a cross-assembler""... $ac_c" 1>&6
4545 echo "configure:4546: checking whether compiling a cross-assembler" >&5
4546 if test "${host}" = "${target}"; then
4550 cat >> confdefs.h
<<\EOF
4551 #define CROSS_COMPILE 1
4555 echo "$ac_t""$cross_gas" 1>&6
4557 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4558 # for constant arguments. Useless!
4559 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4560 echo "configure:4561: checking for working alloca.h" >&5
4561 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4562 echo $ac_n "(cached) $ac_c" 1>&6
4564 cat > conftest.
$ac_ext <<EOF
4565 #line 4566 "configure"
4566 #include "confdefs.h"
4569 char *p = alloca(2 * sizeof(int));
4572 if { (eval echo configure
:4573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4574 ac_cv_header_alloca_h
=yes
4576 echo "configure: failed program was:" >&5
4577 cat conftest.
$ac_ext >&5
4579 ac_cv_header_alloca_h
=no
4584 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4585 if test $ac_cv_header_alloca_h = yes; then
4586 cat >> confdefs.h
<<\EOF
4587 #define HAVE_ALLOCA_H 1
4592 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4593 echo "configure:4594: checking for alloca" >&5
4594 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4595 echo $ac_n "(cached) $ac_c" 1>&6
4597 cat > conftest.
$ac_ext <<EOF
4598 #line 4599 "configure"
4599 #include "confdefs.h"
4602 # define alloca __builtin_alloca
4605 # include <malloc.h>
4606 # define alloca _alloca
4609 # include <alloca.h>
4614 # ifndef alloca /* predefined by HP cc +Olibcalls */
4623 char *p = (char *) alloca(1);
4626 if { (eval echo configure
:4627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4628 ac_cv_func_alloca_works
=yes
4630 echo "configure: failed program was:" >&5
4631 cat conftest.
$ac_ext >&5
4633 ac_cv_func_alloca_works
=no
4638 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4639 if test $ac_cv_func_alloca_works = yes; then
4640 cat >> confdefs.h
<<\EOF
4641 #define HAVE_ALLOCA 1
4646 if test $ac_cv_func_alloca_works = no
; then
4647 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4648 # that cause trouble. Some versions do not even contain alloca or
4649 # contain a buggy version. If you still want to use their alloca,
4650 # use ar to extract alloca.o from them instead of compiling alloca.c.
4651 ALLOCA
=alloca.
${ac_objext}
4652 cat >> confdefs.h
<<\EOF
4657 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4658 echo "configure:4659: checking whether alloca needs Cray hooks" >&5
4659 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4660 echo $ac_n "(cached) $ac_c" 1>&6
4662 cat > conftest.
$ac_ext <<EOF
4663 #line 4664 "configure"
4664 #include "confdefs.h"
4665 #if defined(CRAY) && ! defined(CRAY2)
4672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4673 egrep "webecray" >/dev
/null
2>&1; then
4684 echo "$ac_t""$ac_cv_os_cray" 1>&6
4685 if test $ac_cv_os_cray = yes; then
4686 for ac_func
in _getb67 GETB67 getb67
; do
4687 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4688 echo "configure:4689: checking for $ac_func" >&5
4689 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4690 echo $ac_n "(cached) $ac_c" 1>&6
4692 cat > conftest.
$ac_ext <<EOF
4693 #line 4694 "configure"
4694 #include "confdefs.h"
4695 /* System header to define __stub macros and hopefully few prototypes,
4696 which can conflict with char $ac_func(); below. */
4698 /* Override any gcc2 internal prototype to avoid an error. */
4699 /* We use char because int might match the return type of a gcc2
4700 builtin and then its argument prototype would still apply. */
4705 /* The GNU C library defines this for functions which it implements
4706 to always fail with ENOSYS. Some functions are actually named
4707 something starting with __ and the normal name is an alias. */
4708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4716 if { (eval echo configure
:4717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4718 eval "ac_cv_func_$ac_func=yes"
4720 echo "configure: failed program was:" >&5
4721 cat conftest.
$ac_ext >&5
4723 eval "ac_cv_func_$ac_func=no"
4728 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4729 echo "$ac_t""yes" 1>&6
4730 cat >> confdefs.h
<<EOF
4731 #define CRAY_STACKSEG_END $ac_func
4736 echo "$ac_t""no" 1>&6
4742 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4743 echo "configure:4744: checking stack direction for C alloca" >&5
4744 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4745 echo $ac_n "(cached) $ac_c" 1>&6
4747 if test "$cross_compiling" = yes; then
4748 ac_cv_c_stack_direction
=0
4750 cat > conftest.
$ac_ext <<EOF
4751 #line 4752 "configure"
4752 #include "confdefs.h"
4753 find_stack_direction ()
4755 static char *addr = 0;
4760 return find_stack_direction ();
4763 return (&dummy > addr) ? 1 : -1;
4767 exit (find_stack_direction() < 0);
4770 if { (eval echo configure
:4771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4772 ac_cv_c_stack_direction
=1
4774 echo "configure: failed program was:" >&5
4775 cat conftest.
$ac_ext >&5
4777 ac_cv_c_stack_direction
=-1
4784 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4785 cat >> confdefs.h
<<EOF
4786 #define STACK_DIRECTION $ac_cv_c_stack_direction
4791 echo $ac_n "checking for inline""... $ac_c" 1>&6
4792 echo "configure:4793: checking for inline" >&5
4793 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
4794 echo $ac_n "(cached) $ac_c" 1>&6
4797 for ac_kw
in inline __inline__ __inline
; do
4798 cat > conftest.
$ac_ext <<EOF
4799 #line 4800 "configure"
4800 #include "confdefs.h"
4806 if { (eval echo configure
:4807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4808 ac_cv_c_inline
=$ac_kw; break
4810 echo "configure: failed program was:" >&5
4811 cat conftest.
$ac_ext >&5
4818 echo "$ac_t""$ac_cv_c_inline" 1>&6
4819 case "$ac_cv_c_inline" in
4821 no
) cat >> confdefs.h
<<\EOF
4825 *) cat >> confdefs.h
<<EOF
4826 #define inline $ac_cv_c_inline
4832 # VMS doesn't have unlink.
4833 for ac_func
in unlink remove
4835 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4836 echo "configure:4837: checking for $ac_func" >&5
4837 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4838 echo $ac_n "(cached) $ac_c" 1>&6
4840 cat > conftest.
$ac_ext <<EOF
4841 #line 4842 "configure"
4842 #include "confdefs.h"
4843 /* System header to define __stub macros and hopefully few prototypes,
4844 which can conflict with char $ac_func(); below. */
4846 /* Override any gcc2 internal prototype to avoid an error. */
4847 /* We use char because int might match the return type of a gcc2
4848 builtin and then its argument prototype would still apply. */
4853 /* The GNU C library defines this for functions which it implements
4854 to always fail with ENOSYS. Some functions are actually named
4855 something starting with __ and the normal name is an alias. */
4856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4864 if { (eval echo configure
:4865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4866 eval "ac_cv_func_$ac_func=yes"
4868 echo "configure: failed program was:" >&5
4869 cat conftest.
$ac_ext >&5
4871 eval "ac_cv_func_$ac_func=no"
4876 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4877 echo "$ac_t""yes" 1>&6
4878 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4879 cat >> confdefs.h
<<EOF
4880 #define $ac_tr_func 1
4884 echo "$ac_t""no" 1>&6
4889 # Some systems don't have sbrk().
4892 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4893 echo "configure:4894: checking for $ac_func" >&5
4894 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4895 echo $ac_n "(cached) $ac_c" 1>&6
4897 cat > conftest.
$ac_ext <<EOF
4898 #line 4899 "configure"
4899 #include "confdefs.h"
4900 /* System header to define __stub macros and hopefully few prototypes,
4901 which can conflict with char $ac_func(); below. */
4903 /* Override any gcc2 internal prototype to avoid an error. */
4904 /* We use char because int might match the return type of a gcc2
4905 builtin and then its argument prototype would still apply. */
4910 /* The GNU C library defines this for functions which it implements
4911 to always fail with ENOSYS. Some functions are actually named
4912 something starting with __ and the normal name is an alias. */
4913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4921 if { (eval echo configure
:4922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4923 eval "ac_cv_func_$ac_func=yes"
4925 echo "configure: failed program was:" >&5
4926 cat conftest.
$ac_ext >&5
4928 eval "ac_cv_func_$ac_func=no"
4933 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4934 echo "$ac_t""yes" 1>&6
4935 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4936 cat >> confdefs.h
<<EOF
4937 #define $ac_tr_func 1
4941 echo "$ac_t""no" 1>&6
4946 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
4947 # enough, but on some of those systems, the assert macro relies on requoting
4949 echo $ac_n "checking for working assert macro""... $ac_c" 1>&6
4950 echo "configure:4951: checking for working assert macro" >&5
4951 if eval "test \"`echo '$''{'gas_cv_assert_ok'+set}'`\" = set"; then
4952 echo $ac_n "(cached) $ac_c" 1>&6
4954 cat > conftest.
$ac_ext <<EOF
4955 #line 4956 "configure"
4956 #include "confdefs.h"
4961 /* check for requoting problems */
4962 static int a, b, c, d;
4964 assert (!strcmp(s, "foo bar baz quux"));
4965 /* check for newline handling */
4971 if { (eval echo configure
:4972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4973 gas_cv_assert_ok
=yes
4975 echo "configure: failed program was:" >&5
4976 cat conftest.
$ac_ext >&5
4982 echo "$ac_t""$gas_cv_assert_ok" 1>&6
4983 test $gas_cv_assert_ok = yes ||
cat >> confdefs.h
<<\EOF
4984 #define BROKEN_ASSERT 1
4989 # On some systems, the system header files may not declare malloc, realloc,
4990 # and free. There are places where gas needs these functions to have been
4991 # declared -- such as when taking their addresses.
4993 #ifdef HAVE_MEMORY_H
4996 #ifdef HAVE_STRING_H
4999 #ifdef HAVE_STRINGS_H
5000 #include <strings.h>
5003 #ifdef HAVE_STDLIB_H
5006 #ifdef HAVE_UNISTD_H
5011 echo $ac_n "checking whether declaration is required for strstr""... $ac_c" 1>&6
5012 echo "configure:5013: checking whether declaration is required for strstr" >&5
5013 if eval "test \"`echo '$''{'gas_cv_decl_needed_strstr'+set}'`\" = set"; then
5014 echo $ac_n "(cached) $ac_c" 1>&6
5016 cat > conftest.
$ac_ext <<EOF
5017 #line 5018 "configure"
5018 #include "confdefs.h"
5022 typedef char *(*f)();
5028 if { (eval echo configure
:5029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5030 gas_cv_decl_needed_strstr
=no
5032 echo "configure: failed program was:" >&5
5033 cat conftest.
$ac_ext >&5
5035 gas_cv_decl_needed_strstr
=yes
5039 echo "$ac_t""$gas_cv_decl_needed_strstr" 1>&6
5040 test $gas_cv_decl_needed_strstr = no ||
{
5041 cat >> confdefs.h
<<\EOF
5042 #define NEED_DECLARATION_STRSTR 1
5048 echo $ac_n "checking whether declaration is required for malloc""... $ac_c" 1>&6
5049 echo "configure:5050: checking whether declaration is required for malloc" >&5
5050 if eval "test \"`echo '$''{'gas_cv_decl_needed_malloc'+set}'`\" = set"; then
5051 echo $ac_n "(cached) $ac_c" 1>&6
5053 cat > conftest.
$ac_ext <<EOF
5054 #line 5055 "configure"
5055 #include "confdefs.h"
5059 typedef char *(*f)();
5065 if { (eval echo configure
:5066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5067 gas_cv_decl_needed_malloc
=no
5069 echo "configure: failed program was:" >&5
5070 cat conftest.
$ac_ext >&5
5072 gas_cv_decl_needed_malloc
=yes
5076 echo "$ac_t""$gas_cv_decl_needed_malloc" 1>&6
5077 test $gas_cv_decl_needed_malloc = no ||
{
5078 cat >> confdefs.h
<<\EOF
5079 #define NEED_DECLARATION_MALLOC 1
5085 echo $ac_n "checking whether declaration is required for free""... $ac_c" 1>&6
5086 echo "configure:5087: checking whether declaration is required for free" >&5
5087 if eval "test \"`echo '$''{'gas_cv_decl_needed_free'+set}'`\" = set"; then
5088 echo $ac_n "(cached) $ac_c" 1>&6
5090 cat > conftest.
$ac_ext <<EOF
5091 #line 5092 "configure"
5092 #include "confdefs.h"
5096 typedef void (*f)();
5102 if { (eval echo configure
:5103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5104 gas_cv_decl_needed_free
=no
5106 echo "configure: failed program was:" >&5
5107 cat conftest.
$ac_ext >&5
5109 gas_cv_decl_needed_free
=yes
5113 echo "$ac_t""$gas_cv_decl_needed_free" 1>&6
5114 test $gas_cv_decl_needed_free = no ||
{
5115 cat >> confdefs.h
<<\EOF
5116 #define NEED_DECLARATION_FREE 1
5122 echo $ac_n "checking whether declaration is required for sbrk""... $ac_c" 1>&6
5123 echo "configure:5124: checking whether declaration is required for sbrk" >&5
5124 if eval "test \"`echo '$''{'gas_cv_decl_needed_sbrk'+set}'`\" = set"; then
5125 echo $ac_n "(cached) $ac_c" 1>&6
5127 cat > conftest.
$ac_ext <<EOF
5128 #line 5129 "configure"
5129 #include "confdefs.h"
5133 typedef char *(*f)();
5139 if { (eval echo configure
:5140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5141 gas_cv_decl_needed_sbrk
=no
5143 echo "configure: failed program was:" >&5
5144 cat conftest.
$ac_ext >&5
5146 gas_cv_decl_needed_sbrk
=yes
5150 echo "$ac_t""$gas_cv_decl_needed_sbrk" 1>&6
5151 test $gas_cv_decl_needed_sbrk = no ||
{
5152 cat >> confdefs.h
<<\EOF
5153 #define NEED_DECLARATION_SBRK 1
5159 # Does errno.h declare errno, or do we have to add a separate declaration
5162 echo $ac_n "checking whether declaration is required for errno""... $ac_c" 1>&6
5163 echo "configure:5164: checking whether declaration is required for errno" >&5
5164 if eval "test \"`echo '$''{'gas_cv_decl_needed_errno'+set}'`\" = set"; then
5165 echo $ac_n "(cached) $ac_c" 1>&6
5167 cat > conftest.
$ac_ext <<EOF
5168 #line 5169 "configure"
5169 #include "confdefs.h"
5183 if { (eval echo configure
:5184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5185 gas_cv_decl_needed_errno
=no
5187 echo "configure: failed program was:" >&5
5188 cat conftest.
$ac_ext >&5
5190 gas_cv_decl_needed_errno
=yes
5194 echo "$ac_t""$gas_cv_decl_needed_errno" 1>&6
5195 test $gas_cv_decl_needed_errno = no ||
{
5196 cat >> confdefs.h
<<\EOF
5197 #define NEED_DECLARATION_ERRNO 1
5206 cat > confcache
<<\EOF
5207 # This file is a shell script that caches the results of configure
5208 # tests run on this system so they can be shared between configure
5209 # scripts and configure runs. It is not useful on other systems.
5210 # If it contains results you don't want to keep, you may remove or edit it.
5212 # By default, configure uses ./config.cache as the cache file,
5213 # creating it if it does not exist already. You can give configure
5214 # the --cache-file=FILE option to use a different cache file; that is
5215 # what configure does when it calls configure scripts in
5216 # subdirectories, so they share the cache.
5217 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5218 # config.status only pays attention to the cache file if you give it the
5219 # --recheck option to rerun configure.
5222 # The following way of writing the cache mishandles newlines in values,
5223 # but we know of no workaround that is simple, portable, and efficient.
5224 # So, don't put newlines in cache variables' values.
5225 # Ultrix sh set writes to stderr and can't be redirected directly,
5226 # and sets the high bit in the cache file unless we assign to the vars.
5228 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
5230 # `set' does not quote correctly, so add quotes (double-quote substitution
5231 # turns \\\\ into \\, and sed turns \\ into \).
5233 -e "s/'/'\\\\''/g" \
5234 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5237 # `set' quotes correctly as required by POSIX, so do not add quotes.
5238 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5241 if cmp -s $cache_file confcache
; then
5244 if test -w $cache_file; then
5245 echo "updating cache $cache_file"
5246 cat confcache
> $cache_file
5248 echo "not updating unwritable cache $cache_file"
5253 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5255 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5256 # Let make expand exec_prefix.
5257 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5259 # Any assignment to VPATH causes Sun make to only execute
5260 # the first set of double-colon rules, so remove it if not needed.
5261 # If there is a colon in the path, we need to keep it.
5262 if test "x$srcdir" = x.
; then
5263 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5266 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5268 DEFS
=-DHAVE_CONFIG_H
5270 # Without the "./", some shells look in PATH for config.status.
5271 : ${CONFIG_STATUS=./config.status}
5273 echo creating
$CONFIG_STATUS
5274 rm -f $CONFIG_STATUS
5275 cat > $CONFIG_STATUS <<EOF
5277 # Generated automatically by configure.
5278 # Run this file to recreate the current configuration.
5279 # This directory was configured as follows,
5280 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5282 # $0 $ac_configure_args
5284 # Compiler output produced by configure, useful for debugging
5285 # configure, is in ./config.log if it exists.
5287 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5290 case "\$ac_option" in
5291 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5292 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5293 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5294 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5295 echo "$CONFIG_STATUS generated by autoconf version 2.12.2"
5297 -help | --help | --hel | --he | --h)
5298 echo "\$ac_cs_usage"; exit 0 ;;
5299 *) echo "\$ac_cs_usage"; exit 1 ;;
5303 ac_given_srcdir=$srcdir
5304 ac_given_INSTALL="$INSTALL"
5306 trap 'rm -fr `echo "Makefile doc/Makefile .gdbinit:gdbinit.in po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5308 cat >> $CONFIG_STATUS <<EOF
5310 # Protect against being on the right side of a sed subst in config.status.
5311 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5312 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5316 s%@CFLAGS@%$CFLAGS%g
5317 s%@CPPFLAGS@%$CPPFLAGS%g
5318 s%@CXXFLAGS@%$CXXFLAGS%g
5320 s%@LDFLAGS@%$LDFLAGS%g
5322 s%@exec_prefix@%$exec_prefix%g
5323 s%@prefix@%$prefix%g
5324 s%@program_transform_name@%$program_transform_name%g
5325 s%@bindir@%$bindir%g
5326 s%@sbindir@%$sbindir%g
5327 s%@libexecdir@%$libexecdir%g
5328 s%@datadir@%$datadir%g
5329 s%@sysconfdir@%$sysconfdir%g
5330 s%@sharedstatedir@%$sharedstatedir%g
5331 s%@localstatedir@%$localstatedir%g
5332 s%@libdir@%$libdir%g
5333 s%@includedir@%$includedir%g
5334 s%@oldincludedir@%$oldincludedir%g
5335 s%@infodir@%$infodir%g
5336 s%@mandir@%$mandir%g
5338 s%@host_alias@%$host_alias%g
5339 s%@host_cpu@%$host_cpu%g
5340 s%@host_vendor@%$host_vendor%g
5341 s%@host_os@%$host_os%g
5342 s%@target@%$target%g
5343 s%@target_alias@%$target_alias%g
5344 s%@target_cpu@%$target_cpu%g
5345 s%@target_vendor@%$target_vendor%g
5346 s%@target_os@%$target_os%g
5348 s%@build_alias@%$build_alias%g
5349 s%@build_cpu@%$build_cpu%g
5350 s%@build_vendor@%$build_vendor%g
5351 s%@build_os@%$build_os%g
5352 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5353 s%@INSTALL_DATA@%$INSTALL_DATA%g
5354 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5355 s%@PACKAGE@%$PACKAGE%g
5356 s%@VERSION@%$VERSION%g
5357 s%@ACLOCAL@%$ACLOCAL%g
5358 s%@AUTOCONF@%$AUTOCONF%g
5359 s%@AUTOMAKE@%$AUTOMAKE%g
5360 s%@AUTOHEADER@%$AUTOHEADER%g
5361 s%@MAKEINFO@%$MAKEINFO%g
5362 s%@SET_MAKE@%$SET_MAKE%g
5363 s%@RANLIB@%$RANLIB%g
5368 s%@LIBTOOL@%$LIBTOOL%g
5369 s%@DLLTOOL@%$DLLTOOL%g
5371 s%@cgen_cpu_prefix@%$cgen_cpu_prefix%g
5372 s%@extra_objects@%$extra_objects%g
5373 s%@target_cpu_type@%$target_cpu_type%g
5374 s%@obj_format@%$obj_format%g
5375 s%@te_file@%$te_file%g
5377 s%@BFDLIB@%$BFDLIB%g
5378 s%@OPCODES_LIB@%$OPCODES_LIB%g
5379 s%@ALL_OBJ_DEPS@%$ALL_OBJ_DEPS%g
5382 s%@LEXLIB@%$LEXLIB%g
5384 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
5385 s%@ALLOCA@%$ALLOCA%g
5386 s%@USE_NLS@%$USE_NLS%g
5387 s%@MSGFMT@%$MSGFMT%g
5388 s%@GMSGFMT@%$GMSGFMT%g
5389 s%@XGETTEXT@%$XGETTEXT%g
5390 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5391 s%@CATALOGS@%$CATALOGS%g
5392 s%@CATOBJEXT@%$CATOBJEXT%g
5393 s%@DATADIRNAME@%$DATADIRNAME%g
5394 s%@GMOFILES@%$GMOFILES%g
5395 s%@INSTOBJEXT@%$INSTOBJEXT%g
5396 s%@INTLDEPS@%$INTLDEPS%g
5397 s%@INTLLIBS@%$INTLLIBS%g
5398 s%@INTLOBJS@%$INTLOBJS%g
5399 s%@POFILES@%$POFILES%g
5401 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5403 s%@GT_YES@%$GT_YES%g
5404 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5407 s%@EXEEXT@%$EXEEXT%g
5412 cat >> $CONFIG_STATUS <<\EOF
5414 # Split the substitutions into bite-sized pieces for seds with
5415 # small command number limits, like on Digital OSF/1 and HP-UX.
5416 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5417 ac_file
=1 # Number of current file.
5418 ac_beg
=1 # First line for current file.
5419 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5422 while $ac_more_lines; do
5423 if test $ac_beg -gt 1; then
5424 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5426 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5428 if test ! -s conftest.s
$ac_file; then
5430 rm -f conftest.s
$ac_file
5432 if test -z "$ac_sed_cmds"; then
5433 ac_sed_cmds
="sed -f conftest.s$ac_file"
5435 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5437 ac_file
=`expr $ac_file + 1`
5439 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5442 if test -z "$ac_sed_cmds"; then
5447 cat >> $CONFIG_STATUS <<EOF
5449 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile .gdbinit:gdbinit.in po/Makefile.in:po/Make-in"}
5451 cat >> $CONFIG_STATUS <<\EOF
5452 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5453 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5455 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5456 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5457 *) ac_file_in
="${ac_file}.in" ;;
5460 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5462 # Remove last slash and all that follows it. Not all systems have dirname.
5463 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5464 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5465 # The file is in a subdirectory.
5466 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5467 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5468 # A "../" for each directory in $ac_dir_suffix.
5469 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5471 ac_dir_suffix
= ac_dots
=
5474 case "$ac_given_srcdir" in
5476 if test -z "$ac_dots"; then top_srcdir
=.
5477 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5478 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5480 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5481 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5484 case "$ac_given_INSTALL" in
5485 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5486 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5489 echo creating
"$ac_file"
5491 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5493 *Makefile
*) ac_comsub
="1i\\
5494 # $configure_input" ;;
5498 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5500 s%@configure_input@%$configure_input%g
5501 s%@srcdir@%$srcdir%g
5502 s%@top_srcdir@%$top_srcdir%g
5503 s%@INSTALL@%$INSTALL%g
5504 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5508 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5509 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5511 # ac_d sets the value in "#define NAME VALUE" lines.
5512 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5513 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5516 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5517 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5518 ac_uB
='\([ ]\)%\1#\2define\3'
5521 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5522 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5523 ac_eB
='$%\1#\2define\3'
5527 if test "${CONFIG_HEADERS+set}" != set; then
5529 cat >> $CONFIG_STATUS <<EOF
5530 CONFIG_HEADERS="config.h:config.in"
5532 cat >> $CONFIG_STATUS <<\EOF
5534 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5535 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5537 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5538 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5539 *) ac_file_in
="${ac_file}.in" ;;
5542 echo creating
$ac_file
5544 rm -f conftest.frag conftest.
in conftest.out
5545 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5546 cat $ac_file_inputs > conftest.
in
5550 # Transform confdefs.h into a sed script conftest.vals that substitutes
5551 # the proper values into config.h.in to produce config.h. And first:
5552 # Protect against being on the right side of a sed subst in config.status.
5553 # Protect against being in an unquoted here document in config.status.
5555 cat > conftest.hdr
<<\EOF
5558 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5562 sed -n -f conftest.hdr confdefs.h > conftest.vals
5565 # This sed command replaces #undef with comments. This is necessary, for
5566 # example, in the case of _POSIX_SOURCE, which is predefined and required
5567 # on some systems where configure will not decide to define it.
5568 cat >> conftest.vals <<\EOF
5569 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5572 # Break up conftest.vals because some shells have a limit on
5573 # the size of here documents, and old seds have small limits too.
5578 ac_lines=`grep -c . conftest.vals
`
5579 # grep -c gives empty output for an empty file on some AIX systems.
5580 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5581 # Write a limited-size here document to conftest.frag.
5582 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5583 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5585 sed -f conftest.frag conftest.in > conftest.out
5587 mv conftest.out conftest.in
5589 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5591 mv conftest.tail conftest.vals
5595 cat >> $CONFIG_STATUS <<\EOF
5596 rm -f conftest.frag conftest.h
5597 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5598 cat conftest.in >> conftest.h
5600 if cmp -s $ac_file conftest.h 2>/dev/null; then
5601 echo "$ac_file is unchanged"
5604 # Remove last slash and all that follows it. Not all systems have dirname.
5605 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5606 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5607 # The file is in a subdirectory.
5608 test ! -d "$ac_dir" && mkdir "$ac_dir"
5611 mv conftest.h $ac_file
5616 cat >> $CONFIG_STATUS <<EOF
5618 target_cpu_type=${target_cpu_type}
5619 obj_format=${obj_format}
5622 cat >> $CONFIG_STATUS <<\EOF
5623 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5624 rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
5625 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
5626 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
5627 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
5628 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
5629 case ${target_cpu_type} in
5630 m32r) echo '#include "opcodes/'"${target_cpu_type}"'-opc.h"' > cgen-opc.h ;;
5633 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
5636 chmod +x $CONFIG_STATUS
5637 rm -fr confdefs* $ac_clean_files
5638 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1