3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
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 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
23 --disable-libtool-lock avoid locking (might break parallel builds)"
25 --with-pic try to use only PIC/non-PIC objects [default=use both]"
27 --with-lib-path=dir1:dir2... set default LIB_PATH"
29 --enable-targets alternative target configurations"
31 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)"
33 --with-sysroot[=DIR] Search for usr/lib et al within DIR."
35 --enable-build-warnings enable build-time compiler warnings if gcc is used"
37 --disable-nls do not use Native Language Support"
39 --with-included-gettext use the GNU gettext library included here"
41 --enable-maintainer-mode enable make rules and dependencies not useful
42 (and sometimes confusing) to the casual installer"
44 # Initialize some variables set by options.
45 # The variables have the same names as the options, with
46 # dashes changed to underlines.
48 cache_file
=.
/config.cache
57 program_transform_name
=s
,x
,x
,
66 bindir
='${exec_prefix}/bin'
67 sbindir
='${exec_prefix}/sbin'
68 libexecdir
='${exec_prefix}/libexec'
69 datadir
='${prefix}/share'
70 sysconfdir
='${prefix}/etc'
71 sharedstatedir
='${prefix}/com'
72 localstatedir
='${prefix}/var'
73 libdir
='${exec_prefix}/lib'
74 includedir
='${prefix}/include'
75 oldincludedir
='/usr/include'
76 infodir
='${prefix}/info'
77 mandir
='${prefix}/man'
79 # Initialize some other variables.
82 SHELL
=${CONFIG_SHELL-/bin/sh}
83 # Maximum number of lines to put in a shell here document.
90 # If the previous option needs an argument, assign it.
91 if test -n "$ac_prev"; then
92 eval "$ac_prev=\$ac_option"
98 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
102 # Accept the important Cygnus configure options, so we can diagnose typos.
106 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
108 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
109 bindir
="$ac_optarg" ;;
111 -build |
--build |
--buil |
--bui |
--bu)
113 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
114 build
="$ac_optarg" ;;
116 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
117 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
118 ac_prev
=cache_file
;;
119 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
120 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
121 cache_file
="$ac_optarg" ;;
123 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
125 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
127 datadir
="$ac_optarg" ;;
129 -disable-* |
--disable-*)
130 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
131 # Reject names that are not valid shell variable names.
132 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
133 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
136 eval "enable_${ac_feature}=no" ;;
138 -enable-* |
--enable-*)
139 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
140 # Reject names that are not valid shell variable names.
141 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
142 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
144 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
149 eval "enable_${ac_feature}='$ac_optarg'" ;;
151 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
152 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
153 |
--exec |
--exe |
--ex)
154 ac_prev
=exec_prefix
;;
155 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
156 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
157 |
--exec=* |
--exe=* |
--ex=*)
158 exec_prefix
="$ac_optarg" ;;
160 -gas |
--gas |
--ga |
--g)
161 # Obsolete; use --with-gas.
164 -help |
--help |
--hel |
--he)
165 # Omit some internal or obsolete options to make the list less imposing.
166 # This message is too long to be a string in the A/UX 3.1 sh.
168 Usage: configure [options] [host]
169 Options: [defaults in brackets after descriptions]
171 --cache-file=FILE cache test results in FILE
172 --help print this message
173 --no-create do not create output files
174 --quiet, --silent do not print \`checking...' messages
175 --site-file=FILE use FILE as the site file
176 --version print the version of autoconf that created configure
177 Directory and file names:
178 --prefix=PREFIX install architecture-independent files in PREFIX
180 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
182 --bindir=DIR user executables in DIR [EPREFIX/bin]
183 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
184 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
185 --datadir=DIR read-only architecture-independent data in DIR
187 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
188 --sharedstatedir=DIR modifiable architecture-independent data in DIR
190 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
191 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
192 --includedir=DIR C header files in DIR [PREFIX/include]
193 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
194 --infodir=DIR info documentation in DIR [PREFIX/info]
195 --mandir=DIR man documentation in DIR [PREFIX/man]
196 --srcdir=DIR find the sources in DIR [configure dir or ..]
197 --program-prefix=PREFIX prepend PREFIX to installed program names
198 --program-suffix=SUFFIX append SUFFIX to installed program names
199 --program-transform-name=PROGRAM
200 run sed PROGRAM on installed program names
204 --build=BUILD configure for building on BUILD [BUILD=HOST]
205 --host=HOST configure for HOST [guessed]
206 --target=TARGET configure for TARGET [TARGET=HOST]
207 Features and packages:
208 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
209 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
210 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
211 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
212 --x-includes=DIR X include files are in DIR
213 --x-libraries=DIR X library files are in DIR
215 if test -n "$ac_help"; then
216 echo "--enable and --with options recognized:$ac_help"
220 -host |
--host |
--hos |
--ho)
222 -host=* |
--host=* |
--hos=* |
--ho=*)
225 -includedir |
--includedir |
--includedi |
--included |
--include \
226 |
--includ |
--inclu |
--incl |
--inc)
227 ac_prev
=includedir
;;
228 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
229 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
230 includedir
="$ac_optarg" ;;
232 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
234 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
235 infodir
="$ac_optarg" ;;
237 -libdir |
--libdir |
--libdi |
--libd)
239 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
240 libdir
="$ac_optarg" ;;
242 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
243 |
--libexe |
--libex |
--libe)
244 ac_prev
=libexecdir
;;
245 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
246 |
--libexe=* |
--libex=* |
--libe=*)
247 libexecdir
="$ac_optarg" ;;
249 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
250 |
--localstate |
--localstat |
--localsta |
--localst \
251 |
--locals |
--local |
--loca |
--loc |
--lo)
252 ac_prev
=localstatedir
;;
253 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
254 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
255 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
256 localstatedir
="$ac_optarg" ;;
258 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
260 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
261 mandir
="$ac_optarg" ;;
264 # Obsolete; use --without-fp.
267 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
271 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
272 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
275 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
276 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
277 |
--oldin |
--oldi |
--old |
--ol |
--o)
278 ac_prev
=oldincludedir
;;
279 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
280 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
281 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
282 oldincludedir
="$ac_optarg" ;;
284 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
286 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
287 prefix
="$ac_optarg" ;;
289 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
290 |
--program-pre |
--program-pr |
--program-p)
291 ac_prev
=program_prefix
;;
292 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
293 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
294 program_prefix
="$ac_optarg" ;;
296 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
297 |
--program-suf |
--program-su |
--program-s)
298 ac_prev
=program_suffix
;;
299 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
300 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
301 program_suffix
="$ac_optarg" ;;
303 -program-transform-name |
--program-transform-name \
304 |
--program-transform-nam |
--program-transform-na \
305 |
--program-transform-n |
--program-transform- \
306 |
--program-transform |
--program-transfor \
307 |
--program-transfo |
--program-transf \
308 |
--program-trans |
--program-tran \
309 |
--progr-tra |
--program-tr |
--program-t)
310 ac_prev
=program_transform_name
;;
311 -program-transform-name=* |
--program-transform-name=* \
312 |
--program-transform-nam=* |
--program-transform-na=* \
313 |
--program-transform-n=* |
--program-transform-=* \
314 |
--program-transform=* |
--program-transfor=* \
315 |
--program-transfo=* |
--program-transf=* \
316 |
--program-trans=* |
--program-tran=* \
317 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
318 program_transform_name
="$ac_optarg" ;;
320 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
321 |
-silent |
--silent |
--silen |
--sile |
--sil)
324 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
326 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
328 sbindir
="$ac_optarg" ;;
330 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
331 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
332 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
334 ac_prev
=sharedstatedir
;;
335 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
336 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
337 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
339 sharedstatedir
="$ac_optarg" ;;
341 -site |
--site |
--sit)
343 -site=* |
--site=* |
--sit=*)
346 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
348 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
349 sitefile
="$ac_optarg" ;;
351 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
353 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
354 srcdir
="$ac_optarg" ;;
356 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
357 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
358 ac_prev
=sysconfdir
;;
359 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
360 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
361 sysconfdir
="$ac_optarg" ;;
363 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
365 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
366 target
="$ac_optarg" ;;
368 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
371 -version |
--version |
--versio |
--versi |
--vers)
372 echo "configure generated by autoconf version 2.13"
376 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
377 # Reject names that are not valid shell variable names.
378 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
379 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
381 ac_package
=`echo $ac_package| sed 's/-/_/g'`
386 eval "with_${ac_package}='$ac_optarg'" ;;
388 -without-* |
--without-*)
389 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
390 # Reject names that are not valid shell variable names.
391 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
392 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
394 ac_package
=`echo $ac_package| sed 's/-/_/g'`
395 eval "with_${ac_package}=no" ;;
398 # Obsolete; use --with-x.
401 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
402 |
--x-incl |
--x-inc |
--x-in |
--x-i)
403 ac_prev
=x_includes
;;
404 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
405 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
406 x_includes
="$ac_optarg" ;;
408 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
409 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
410 ac_prev
=x_libraries
;;
411 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
412 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
413 x_libraries
="$ac_optarg" ;;
415 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
419 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
420 echo "configure: warning: $ac_option: invalid host type" 1>&2
422 if test "x$nonopt" != xNONE
; then
423 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
431 if test -n "$ac_prev"; then
432 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
435 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
437 # File descriptor usage:
440 # 2 errors and warnings
441 # 3 some systems may open it to /dev/tty
442 # 4 used on the Kubota Titan
443 # 6 checking for... messages and results
444 # 5 compiler messages saved in config.log
445 if test "$silent" = yes; then
453 This file contains any messages produced by compilers while
454 running configure, to aid debugging if configure makes a mistake.
457 # Strip out --no-create and --no-recursion so they do not pile up.
458 # Also quote any args containing shell metacharacters.
463 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
464 |
--no-cr |
--no-c) ;;
465 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
466 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
467 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
468 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
469 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
474 # Only set these to C if already set. These must not be set unconditionally
475 # because not all systems understand e.g. LANG=C (notably SCO).
476 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
477 # Non-C LC_CTYPE values break the ctype check.
478 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
479 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
480 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
481 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
483 # confdefs.h avoids OS command line length limits that DEFS can exceed.
484 rm -rf conftest
* confdefs.h
485 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
488 # A filename unique to this package, relative to the directory that
489 # configure is in, which we can look for to find out if srcdir is correct.
490 ac_unique_file
=ldmain.c
492 # Find the source files, if location was not specified.
493 if test -z "$srcdir"; then
494 ac_srcdir_defaulted
=yes
495 # Try the directory containing this script, then its parent.
497 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
498 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
500 if test ! -r $srcdir/$ac_unique_file; then
504 ac_srcdir_defaulted
=no
506 if test ! -r $srcdir/$ac_unique_file; then
507 if test "$ac_srcdir_defaulted" = yes; then
508 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
510 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
513 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
515 # Prefer explicitly selected file to automatically selected ones.
516 if test -z "$sitefile"; then
517 if test -z "$CONFIG_SITE"; then
518 if test "x$prefix" != xNONE
; then
519 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
521 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
525 CONFIG_SITE
="$sitefile"
527 for ac_site_file
in $CONFIG_SITE; do
528 if test -r "$ac_site_file"; then
529 echo "loading site script $ac_site_file"
534 if test -r "$cache_file"; then
535 echo "loading cache $cache_file"
538 echo "creating cache $cache_file"
543 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
544 ac_cpp
='$CPP $CPPFLAGS'
545 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
546 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
547 cross_compiling
=$ac_cv_prog_cc_cross
551 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
552 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
553 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
560 ac_n
= ac_c
='\c' ac_t
=
563 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
564 echo "configure:565: checking for Cygwin environment" >&5
565 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
566 echo $ac_n "(cached) $ac_c" 1>&6
568 cat > conftest.
$ac_ext <<EOF
569 #line 570 "configure"
570 #include "confdefs.h"
575 #define __CYGWIN__ __CYGWIN32__
580 if { (eval echo configure
:581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
584 echo "configure: failed program was:" >&5
585 cat conftest.
$ac_ext >&5
593 echo "$ac_t""$ac_cv_cygwin" 1>&6
595 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
596 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
597 echo "configure:598: checking for mingw32 environment" >&5
598 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
599 echo $ac_n "(cached) $ac_c" 1>&6
601 cat > conftest.
$ac_ext <<EOF
602 #line 603 "configure"
603 #include "confdefs.h"
609 if { (eval echo configure
:610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
613 echo "configure: failed program was:" >&5
614 cat conftest.
$ac_ext >&5
622 echo "$ac_t""$ac_cv_mingw32" 1>&6
624 test "$ac_cv_mingw32" = yes && MINGW32
=yes
628 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
629 if test -f $ac_dir/install-sh
; then
631 ac_install_sh
="$ac_aux_dir/install-sh -c"
633 elif test -f $ac_dir/install.sh
; then
635 ac_install_sh
="$ac_aux_dir/install.sh -c"
639 if test -z "$ac_aux_dir"; then
640 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
642 ac_config_guess
=$ac_aux_dir/config.guess
643 ac_config_sub
=$ac_aux_dir/config.sub
644 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
647 # Do some error checking and defaulting for the host and target type.
649 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
652 # 1. You are not allowed to specify --host, --target, and nonopt at the
654 # 2. Host defaults to nonopt.
655 # 3. If nonopt is not specified, then host defaults to the current host,
656 # as determined by config.guess.
657 # 4. Target and build default to nonopt.
658 # 5. If nonopt is not specified, then target and build default to host.
660 # The aliases save the names the user supplied, while $host etc.
661 # will get canonicalized.
662 case $host---$target---$nonopt in
663 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
664 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
668 # Make sure we can run config.sub.
669 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
670 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
673 echo $ac_n "checking host system type""... $ac_c" 1>&6
674 echo "configure:675: checking host system type" >&5
677 case "$host_alias" in
681 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
682 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
684 *) host_alias
=$nonopt ;;
688 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
689 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
690 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
691 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
692 echo "$ac_t""$host" 1>&6
694 echo $ac_n "checking target system type""... $ac_c" 1>&6
695 echo "configure:696: checking target system type" >&5
698 case "$target_alias" in
701 NONE
) target_alias
=$host_alias ;;
702 *) target_alias
=$nonopt ;;
706 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
707 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
708 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
709 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
710 echo "$ac_t""$target" 1>&6
712 echo $ac_n "checking build system type""... $ac_c" 1>&6
713 echo "configure:714: checking build system type" >&5
716 case "$build_alias" in
719 NONE
) build_alias
=$host_alias ;;
720 *) build_alias
=$nonopt ;;
724 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
725 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
726 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
727 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
728 echo "$ac_t""$build" 1>&6
730 test "$host_alias" != "$target_alias" &&
731 test "$program_prefix$program_suffix$program_transform_name" = \
733 program_prefix
=${target_alias}-
736 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
737 echo "configure:738: checking for strerror in -lcposix" >&5
738 ac_lib_var
=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
739 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
740 echo $ac_n "(cached) $ac_c" 1>&6
743 LIBS
="-lcposix $LIBS"
744 cat > conftest.
$ac_ext <<EOF
745 #line 746 "configure"
746 #include "confdefs.h"
747 /* Override any gcc2 internal prototype to avoid an error. */
748 /* We use char because int might match the return type of a gcc2
749 builtin and then its argument prototype would still apply. */
756 if { (eval echo configure
:757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
758 eval "ac_cv_lib_$ac_lib_var=yes"
760 echo "configure: failed program was:" >&5
761 cat conftest.
$ac_ext >&5
763 eval "ac_cv_lib_$ac_lib_var=no"
769 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
770 echo "$ac_t""yes" 1>&6
771 LIBS
="$LIBS -lcposix"
773 echo "$ac_t""no" 1>&6
779 BFD_VERSION
=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
780 # Find a good install program. We prefer a C program (faster),
781 # so one script is as good as another. But avoid the broken or
782 # incompatible versions:
783 # SysV /etc/install, /usr/sbin/install
784 # SunOS /usr/etc/install
787 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
788 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
789 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
790 # ./install, which can be erroneously created by make from ./install.sh.
791 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
792 echo "configure:793: checking for a BSD compatible install" >&5
793 if test -z "$INSTALL"; then
794 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
795 echo $ac_n "(cached) $ac_c" 1>&6
797 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
798 for ac_dir
in $PATH; do
799 # Account for people who put trailing slashes in PATH elements.
801 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
803 # OSF1 and SCO ODT 3.0 have their own names for install.
804 # Don't use installbsd from OSF since it installs stuff as root
806 for ac_prog
in ginstall scoinst
install; do
807 if test -f $ac_dir/$ac_prog; then
808 if test $ac_prog = install &&
809 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
810 # AIX install. It has an incompatible calling convention.
813 ac_cv_path_install
="$ac_dir/$ac_prog -c"
824 if test "${ac_cv_path_install+set}" = set; then
825 INSTALL
="$ac_cv_path_install"
827 # As a last resort, use the slow shell script. We don't cache a
828 # path for INSTALL within a source directory, because that will
829 # break other packages using the cache if that directory is
830 # removed, or if the path is relative.
831 INSTALL
="$ac_install_sh"
834 echo "$ac_t""$INSTALL" 1>&6
836 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
837 # It thinks the first close brace ends the variable substitution.
838 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
840 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
842 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
844 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
845 echo "configure:846: checking whether build environment is sane" >&5
848 echo timestamp
> conftestfile
849 # Do `set' in a subshell so we don't clobber the current shell's
850 # arguments. Must try -L first in case configure is actually a
851 # symlink; some systems play weird games with the mod time of symlinks
852 # (eg FreeBSD returns the mod time of the symlink's containing
855 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
856 if test "$*" = "X"; then
858 set X
`ls -t $srcdir/configure conftestfile`
860 if test "$*" != "X $srcdir/configure conftestfile" \
861 && test "$*" != "X conftestfile $srcdir/configure"; then
863 # If neither matched, then we have a broken ls. This can happen
864 # if, for instance, CONFIG_SHELL is bash and it inherits a
865 # broken ls alias from the environment. This has actually
866 # happened. Such a system could not be considered "sane".
867 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
868 alias in your environment" 1>&2; exit 1; }
871 test "$2" = conftestfile
877 { echo "configure: error: newly created file is older than distributed files!
878 Check your system clock" 1>&2; exit 1; }
881 echo "$ac_t""yes" 1>&6
882 if test "$program_transform_name" = s
,x
,x
,; then
883 program_transform_name
=
885 # Double any \ or $. echo might interpret backslashes.
886 cat <<\EOF_SED
> conftestsed
887 s
,\\,\\\\,g
; s
,\$
,$$
,g
889 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
892 test "$program_prefix" != NONE
&&
893 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
894 # Use a double $ so make ignores it.
895 test "$program_suffix" != NONE
&&
896 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
898 # sed with no file args requires a program.
899 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
901 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
902 echo "configure:903: checking whether ${MAKE-make} sets \${MAKE}" >&5
903 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
904 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
905 echo $ac_n "(cached) $ac_c" 1>&6
907 cat > conftestmake
<<\EOF
909 @
echo 'ac_maketemp="${MAKE}"'
911 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
912 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
913 if test -n "$ac_maketemp"; then
914 eval ac_cv_prog_make_
${ac_make}_set
=yes
916 eval ac_cv_prog_make_
${ac_make}_set
=no
920 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
921 echo "$ac_t""yes" 1>&6
924 echo "$ac_t""no" 1>&6
925 SET_MAKE
="MAKE=${MAKE-make}"
931 VERSION
=${BFD_VERSION}
933 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
934 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
936 cat >> confdefs.h
<<EOF
937 #define PACKAGE "$PACKAGE"
940 cat >> confdefs.h
<<EOF
941 #define VERSION "$VERSION"
946 missing_dir
=`cd $ac_aux_dir && pwd`
947 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
948 echo "configure:949: checking for working aclocal" >&5
949 # Run test in a subshell; some versions of sh will print an error if
950 # an executable is not found, even if stderr is redirected.
951 # Redirect stdin to placate older versions of autoconf. Sigh.
952 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
954 echo "$ac_t""found" 1>&6
956 ACLOCAL
="$missing_dir/missing aclocal"
957 echo "$ac_t""missing" 1>&6
960 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
961 echo "configure:962: checking for working autoconf" >&5
962 # Run test in a subshell; some versions of sh will print an error if
963 # an executable is not found, even if stderr is redirected.
964 # Redirect stdin to placate older versions of autoconf. Sigh.
965 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
967 echo "$ac_t""found" 1>&6
969 AUTOCONF
="$missing_dir/missing autoconf"
970 echo "$ac_t""missing" 1>&6
973 echo $ac_n "checking for working automake""... $ac_c" 1>&6
974 echo "configure:975: checking for working automake" >&5
975 # Run test in a subshell; some versions of sh will print an error if
976 # an executable is not found, even if stderr is redirected.
977 # Redirect stdin to placate older versions of autoconf. Sigh.
978 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
980 echo "$ac_t""found" 1>&6
982 AUTOMAKE
="$missing_dir/missing automake"
983 echo "$ac_t""missing" 1>&6
986 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
987 echo "configure:988: checking for working autoheader" >&5
988 # Run test in a subshell; some versions of sh will print an error if
989 # an executable is not found, even if stderr is redirected.
990 # Redirect stdin to placate older versions of autoconf. Sigh.
991 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
992 AUTOHEADER
=autoheader
993 echo "$ac_t""found" 1>&6
995 AUTOHEADER
="$missing_dir/missing autoheader"
996 echo "$ac_t""missing" 1>&6
999 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1000 echo "configure:1001: checking for working makeinfo" >&5
1001 # Run test in a subshell; some versions of sh will print an error if
1002 # an executable is not found, even if stderr is redirected.
1003 # Redirect stdin to placate older versions of autoconf. Sigh.
1004 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
1006 echo "$ac_t""found" 1>&6
1008 MAKEINFO
="$missing_dir/missing makeinfo"
1009 echo "$ac_t""missing" 1>&6
1014 # Check whether --enable-shared or --disable-shared was given.
1015 if test "${enable_shared+set}" = set; then
1016 enableval
="$enable_shared"
1017 p
=${PACKAGE-default}
1019 yes) enable_shared
=yes ;;
1020 no
) enable_shared
=no
;;
1023 # Look at the argument we got. We use all the common list separators.
1024 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1025 for pkg
in $enableval; do
1026 if test "X$pkg" = "X$p"; then
1037 # Check whether --enable-static or --disable-static was given.
1038 if test "${enable_static+set}" = set; then
1039 enableval
="$enable_static"
1040 p
=${PACKAGE-default}
1042 yes) enable_static
=yes ;;
1043 no
) enable_static
=no
;;
1046 # Look at the argument we got. We use all the common list separators.
1047 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1048 for pkg
in $enableval; do
1049 if test "X$pkg" = "X$p"; then
1060 # Check whether --enable-fast-install or --disable-fast-install was given.
1061 if test "${enable_fast_install+set}" = set; then
1062 enableval
="$enable_fast_install"
1063 p
=${PACKAGE-default}
1065 yes) enable_fast_install
=yes ;;
1066 no
) enable_fast_install
=no
;;
1068 enable_fast_install
=no
1069 # Look at the argument we got. We use all the common list separators.
1070 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1071 for pkg
in $enableval; do
1072 if test "X$pkg" = "X$p"; then
1073 enable_fast_install
=yes
1080 enable_fast_install
=yes
1083 # Extract the first word of "gcc", so it can be a program name with args.
1084 set dummy gcc
; ac_word
=$2
1085 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1086 echo "configure:1087: checking for $ac_word" >&5
1087 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1088 echo $ac_n "(cached) $ac_c" 1>&6
1090 if test -n "$CC"; then
1091 ac_cv_prog_CC
="$CC" # Let the user override the test.
1093 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1095 for ac_dir
in $ac_dummy; do
1096 test -z "$ac_dir" && ac_dir
=.
1097 if test -f $ac_dir/$ac_word; then
1106 if test -n "$CC"; then
1107 echo "$ac_t""$CC" 1>&6
1109 echo "$ac_t""no" 1>&6
1112 if test -z "$CC"; then
1113 # Extract the first word of "cc", so it can be a program name with args.
1114 set dummy cc
; ac_word
=$2
1115 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1116 echo "configure:1117: checking for $ac_word" >&5
1117 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1118 echo $ac_n "(cached) $ac_c" 1>&6
1120 if test -n "$CC"; then
1121 ac_cv_prog_CC
="$CC" # Let the user override the test.
1123 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1126 for ac_dir
in $ac_dummy; do
1127 test -z "$ac_dir" && ac_dir
=.
1128 if test -f $ac_dir/$ac_word; then
1129 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1130 ac_prog_rejected
=yes
1138 if test $ac_prog_rejected = yes; then
1139 # We found a bogon in the path, so make sure we never use it.
1140 set dummy
$ac_cv_prog_CC
1142 if test $# -gt 0; then
1143 # We chose a different compiler from the bogus one.
1144 # However, it has the same basename, so the bogon will be chosen
1145 # first if we set CC to just the basename; use the full file name.
1147 set dummy
"$ac_dir/$ac_word" "$@"
1155 if test -n "$CC"; then
1156 echo "$ac_t""$CC" 1>&6
1158 echo "$ac_t""no" 1>&6
1161 if test -z "$CC"; then
1162 case "`uname -s`" in
1164 # Extract the first word of "cl", so it can be a program name with args.
1165 set dummy cl
; ac_word
=$2
1166 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1167 echo "configure:1168: checking for $ac_word" >&5
1168 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1169 echo $ac_n "(cached) $ac_c" 1>&6
1171 if test -n "$CC"; then
1172 ac_cv_prog_CC
="$CC" # Let the user override the test.
1174 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1176 for ac_dir
in $ac_dummy; do
1177 test -z "$ac_dir" && ac_dir
=.
1178 if test -f $ac_dir/$ac_word; then
1187 if test -n "$CC"; then
1188 echo "$ac_t""$CC" 1>&6
1190 echo "$ac_t""no" 1>&6
1195 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1198 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1199 echo "configure:1200: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1202 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1203 ac_cpp
='$CPP $CPPFLAGS'
1204 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1205 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1206 cross_compiling
=$ac_cv_prog_cc_cross
1208 cat > conftest.
$ac_ext << EOF
1210 #line 1211 "configure"
1211 #include "confdefs.h"
1215 if { (eval echo configure
:1216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1216 ac_cv_prog_cc_works
=yes
1217 # If we can't run a trivial program, we are probably using a cross compiler.
1218 if (.
/conftest
; exit) 2>/dev
/null
; then
1219 ac_cv_prog_cc_cross
=no
1221 ac_cv_prog_cc_cross
=yes
1224 echo "configure: failed program was:" >&5
1225 cat conftest.
$ac_ext >&5
1226 ac_cv_prog_cc_works
=no
1230 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1231 ac_cpp
='$CPP $CPPFLAGS'
1232 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1233 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1234 cross_compiling
=$ac_cv_prog_cc_cross
1236 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1237 if test $ac_cv_prog_cc_works = no
; then
1238 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1240 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1241 echo "configure:1242: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1242 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1243 cross_compiling
=$ac_cv_prog_cc_cross
1245 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1246 echo "configure:1247: checking whether we are using GNU C" >&5
1247 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1248 echo $ac_n "(cached) $ac_c" 1>&6
1250 cat > conftest.c
<<EOF
1255 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1262 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1264 if test $ac_cv_prog_gcc = yes; then
1270 ac_test_CFLAGS
="${CFLAGS+set}"
1271 ac_save_CFLAGS
="$CFLAGS"
1273 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1274 echo "configure:1275: checking whether ${CC-cc} accepts -g" >&5
1275 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1276 echo $ac_n "(cached) $ac_c" 1>&6
1278 echo 'void f(){}' > conftest.c
1279 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1288 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1289 if test "$ac_test_CFLAGS" = set; then
1290 CFLAGS
="$ac_save_CFLAGS"
1291 elif test $ac_cv_prog_cc_g = yes; then
1292 if test "$GCC" = yes; then
1298 if test "$GCC" = yes; then
1305 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1306 if test "${with_gnu_ld+set}" = set; then
1307 withval
="$with_gnu_ld"
1308 test "$withval" = no || with_gnu_ld
=yes
1314 if test "$GCC" = yes; then
1315 # Check if gcc -print-prog-name=ld gives a path.
1316 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1317 echo "configure:1318: checking for ld used by GCC" >&5
1320 # gcc leaves a trailing carriage return which upsets mingw
1321 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1323 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
1326 # Accept absolute paths.
1327 [\\/]* |
[A-Za-z
]:[\\/]*)
1328 re_direlt
='/[^/][^/]*/\.\./'
1329 # Canonicalize the path of ld
1330 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1331 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1332 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1334 test -z "$LD" && LD
="$ac_prog"
1337 # If it fails, then pretend we aren't using GCC.
1341 # If it is relative, then search for the first ld in PATH.
1345 elif test "$with_gnu_ld" = yes; then
1346 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1347 echo "configure:1348: checking for GNU ld" >&5
1349 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1350 echo "configure:1351: checking for non-GNU ld" >&5
1352 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1353 echo $ac_n "(cached) $ac_c" 1>&6
1355 if test -z "$LD"; then
1356 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1357 for ac_dir
in $PATH; do
1358 test -z "$ac_dir" && ac_dir
=.
1359 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1360 lt_cv_path_LD
="$ac_dir/$ac_prog"
1361 # Check to see if the program is GNU ld. I'd rather use --version,
1362 # but apparently some GNU ld's only accept -v.
1363 # Break only if it was the GNU/non-GNU ld that we prefer.
1364 if "$lt_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1365 test "$with_gnu_ld" != no
&& break
1367 test "$with_gnu_ld" != yes && break
1373 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
1378 if test -n "$LD"; then
1379 echo "$ac_t""$LD" 1>&6
1381 echo "$ac_t""no" 1>&6
1383 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1384 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1385 echo "configure:1386: checking if the linker ($LD) is GNU ld" >&5
1386 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1387 echo $ac_n "(cached) $ac_c" 1>&6
1389 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1390 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1391 lt_cv_prog_gnu_ld
=yes
1393 lt_cv_prog_gnu_ld
=no
1397 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1398 with_gnu_ld
=$lt_cv_prog_gnu_ld
1401 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1402 echo "configure:1403: checking for $LD option to reload object files" >&5
1403 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1404 echo $ac_n "(cached) $ac_c" 1>&6
1406 lt_cv_ld_reload_flag
='-r'
1409 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1410 reload_flag
=$lt_cv_ld_reload_flag
1411 test -n "$reload_flag" && reload_flag
=" $reload_flag"
1413 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1414 echo "configure:1415: checking for BSD-compatible nm" >&5
1415 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1416 echo $ac_n "(cached) $ac_c" 1>&6
1418 if test -n "$NM"; then
1419 # Let the user override the test.
1422 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1423 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1424 test -z "$ac_dir" && ac_dir
=.
1425 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
1426 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
1427 # Check to see if the nm accepts a BSD-compat flag.
1428 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1429 # nm: unknown option "B" ignored
1430 # Tru64's nm complains that /dev/null is an invalid object file
1431 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep '(/dev/null|Invalid file or object type)' >/dev
/null
; then
1432 lt_cv_path_NM
="$tmp_nm -B"
1434 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1435 lt_cv_path_NM
="$tmp_nm -p"
1438 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1439 continue # so that we can try to find one that supports BSD flags
1444 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
1449 echo "$ac_t""$NM" 1>&6
1451 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1452 echo "configure:1453: checking whether ln -s works" >&5
1453 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1454 echo $ac_n "(cached) $ac_c" 1>&6
1457 if ln -s X conftestdata
2>/dev
/null
1460 ac_cv_prog_LN_S
="ln -s"
1465 LN_S
="$ac_cv_prog_LN_S"
1466 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1467 echo "$ac_t""yes" 1>&6
1469 echo "$ac_t""no" 1>&6
1472 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1473 echo "configure:1474: checking how to recognise dependant libraries" >&5
1474 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1475 echo $ac_n "(cached) $ac_c" 1>&6
1477 lt_cv_file_magic_cmd
='$MAGIC_CMD'
1478 lt_cv_file_magic_test_file
=
1479 lt_cv_deplibs_check_method
='unknown'
1480 # Need to set the preceding variable on all platforms that support
1481 # interlibrary dependencies.
1482 # 'none' -- dependencies not supported.
1483 # `unknown' -- same as none, but documents that we really don't know.
1484 # 'pass_all' -- all dependencies passed with no checks.
1485 # 'test_compile' -- check by making test program.
1486 # 'file_magic [regex]' -- check by looking for files in library path
1487 # which responds to the $file_magic_cmd with a given egrep regex.
1488 # If you have `file' or equivalent on your system and you're not sure
1489 # whether `pass_all' will *always* work, you probably want this one.
1493 lt_cv_deplibs_check_method
=pass_all
1497 lt_cv_deplibs_check_method
=pass_all
1501 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1502 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1503 lt_cv_file_magic_test_file
=/shlib
/libc.so
1506 cygwin
* | mingw
* |pw32
*)
1507 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
1508 lt_cv_file_magic_cmd
='$OBJDUMP -f'
1511 darwin
* | rhapsody
*)
1512 lt_cv_deplibs_check_method
='file_magic Mach-O dynamically linked shared library'
1513 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1515 rhapsody
* | darwin1.012
)
1516 lt_cv_file_magic_test_file
='/System/Library/Frameworks/System.framework/System'
1519 lt_cv_file_magic_test_file
='/usr/lib/libSystem.dylib'
1525 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1528 # Not sure whether the presence of OpenBSD here was a mistake.
1529 # Let's accept both of them until this is cleared up.
1530 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1531 lt_cv_file_magic_cmd
=/usr
/bin
/file
1532 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
1536 lt_cv_deplibs_check_method
=pass_all
1541 lt_cv_deplibs_check_method
=pass_all
1547 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1548 lt_cv_file_magic_cmd
=/usr
/bin
/file
1549 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
1552 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1553 lt_cv_file_magic_cmd
=/usr
/bin
/file
1554 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
1562 # this will be overridden with pass_all, but let us keep it just in case
1563 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1567 *-32|
*"-32 ") libmagic
=32-bit;;
1568 *-n32|
*"-n32 ") libmagic
=N32
;;
1569 *-64|
*"-64 ") libmagic
=64-bit;;
1570 *) libmagic
=never-match
;;
1572 # this will be overridden with pass_all, but let us keep it just in case
1573 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1576 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
1577 lt_cv_deplibs_check_method
=pass_all
1580 # This must be Linux ELF.
1583 alpha
* | hppa
* | i
*86 | powerpc
* | sparc
* | ia64
* )
1584 lt_cv_deplibs_check_method
=pass_all
;;
1586 # glibc up to 2.1.1 does not perform some relocations on ARM
1587 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1589 lt_cv_file_magic_test_file
=`echo /lib/libc.so* /lib/libc-*.so`
1593 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1594 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1596 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so$'
1601 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1602 lt_cv_file_magic_cmd
=/usr
/bin
/file
1603 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
1606 osf3
* | osf4
* | osf5
*)
1607 # this will be overridden with pass_all, but let us keep it just in case
1608 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
1609 lt_cv_file_magic_test_file
=/shlib
/libc.so
1610 lt_cv_deplibs_check_method
=pass_all
1614 lt_cv_deplibs_check_method
=pass_all
1618 lt_cv_deplibs_check_method
=pass_all
1619 lt_cv_file_magic_test_file
=/lib
/libc.so
1622 sysv5uw
[78]* | sysv4
*uw2
*)
1623 lt_cv_deplibs_check_method
=pass_all
1626 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
1627 case $host_vendor in
1629 lt_cv_deplibs_check_method
=pass_all
1632 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
1633 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
1641 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1642 file_magic_cmd
=$lt_cv_file_magic_cmd
1643 deplibs_check_method
=$lt_cv_deplibs_check_method
1645 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1646 echo "configure:1647: checking for object suffix" >&5
1647 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1648 echo $ac_n "(cached) $ac_c" 1>&6
1651 echo 'int i = 1;' > conftest.
$ac_ext
1652 if { (eval echo configure
:1653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1653 for ac_file
in conftest.
*; do
1656 *) ac_cv_objext
=`echo $ac_file | sed -e s/conftest.//` ;;
1660 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1665 echo "$ac_t""$ac_cv_objext" 1>&6
1666 OBJEXT
=$ac_cv_objext
1667 ac_objext
=$ac_cv_objext
1671 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1672 echo "configure:1673: checking for executable suffix" >&5
1673 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1674 echo $ac_n "(cached) $ac_c" 1>&6
1676 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1680 echo 'int main () { return 0; }' > conftest.
$ac_ext
1682 if { (eval echo configure
:1683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1683 for file in conftest.
*; do
1685 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
1686 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1690 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1693 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1698 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1699 echo "$ac_t""${ac_cv_exeext}" 1>&6
1702 if test $host != $build; then
1703 ac_tool_prefix
=${host_alias}-
1708 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1710 # Only perform the check for file, if the check method requires it
1711 case $deplibs_check_method in
1713 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1714 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1715 echo "configure:1716: checking for ${ac_tool_prefix}file" >&5
1716 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1717 echo $ac_n "(cached) $ac_c" 1>&6
1721 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
1724 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
1727 ac_save_MAGIC_CMD
="$MAGIC_CMD"
1728 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1729 ac_dummy
="/usr/bin:$PATH"
1730 for ac_dir
in $ac_dummy; do
1731 test -z "$ac_dir" && ac_dir
=.
1732 if test -f $ac_dir/${ac_tool_prefix}file; then
1733 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
1734 if test -n "$file_magic_test_file"; then
1735 case $deplibs_check_method in
1737 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1738 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1739 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1740 egrep "$file_magic_regex" > /dev
/null
; then
1745 *** Warning: the command libtool uses to detect shared libraries,
1746 *** $file_magic_cmd, produces output that libtool cannot recognize.
1747 *** The result is that libtool may fail to recognize shared libraries
1748 *** as such. This will affect the creation of libtool libraries that
1749 *** depend on shared libraries, but programs linked with such libtool
1750 *** libraries will work regardless of this problem. Nevertheless, you
1751 *** may want to report the problem to your system manager and/or to
1752 *** bug-libtool@gnu.org
1762 MAGIC_CMD
="$ac_save_MAGIC_CMD"
1767 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1768 if test -n "$MAGIC_CMD"; then
1769 echo "$ac_t""$MAGIC_CMD" 1>&6
1771 echo "$ac_t""no" 1>&6
1774 if test -z "$lt_cv_path_MAGIC_CMD"; then
1775 if test -n "$ac_tool_prefix"; then
1776 echo $ac_n "checking for file""... $ac_c" 1>&6
1777 echo "configure:1778: checking for file" >&5
1778 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1779 echo $ac_n "(cached) $ac_c" 1>&6
1783 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
1786 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
1789 ac_save_MAGIC_CMD
="$MAGIC_CMD"
1790 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1791 ac_dummy
="/usr/bin:$PATH"
1792 for ac_dir
in $ac_dummy; do
1793 test -z "$ac_dir" && ac_dir
=.
1794 if test -f $ac_dir/file; then
1795 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
1796 if test -n "$file_magic_test_file"; then
1797 case $deplibs_check_method in
1799 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1800 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1801 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1802 egrep "$file_magic_regex" > /dev
/null
; then
1807 *** Warning: the command libtool uses to detect shared libraries,
1808 *** $file_magic_cmd, produces output that libtool cannot recognize.
1809 *** The result is that libtool may fail to recognize shared libraries
1810 *** as such. This will affect the creation of libtool libraries that
1811 *** depend on shared libraries, but programs linked with such libtool
1812 *** libraries will work regardless of this problem. Nevertheless, you
1813 *** may want to report the problem to your system manager and/or to
1814 *** bug-libtool@gnu.org
1824 MAGIC_CMD
="$ac_save_MAGIC_CMD"
1829 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1830 if test -n "$MAGIC_CMD"; then
1831 echo "$ac_t""$MAGIC_CMD" 1>&6
1833 echo "$ac_t""no" 1>&6
1845 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1846 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1847 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1848 echo "configure:1849: checking for $ac_word" >&5
1849 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1850 echo $ac_n "(cached) $ac_c" 1>&6
1852 if test -n "$RANLIB"; then
1853 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1855 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1857 for ac_dir
in $ac_dummy; do
1858 test -z "$ac_dir" && ac_dir
=.
1859 if test -f $ac_dir/$ac_word; then
1860 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1867 RANLIB
="$ac_cv_prog_RANLIB"
1868 if test -n "$RANLIB"; then
1869 echo "$ac_t""$RANLIB" 1>&6
1871 echo "$ac_t""no" 1>&6
1875 if test -z "$ac_cv_prog_RANLIB"; then
1876 if test -n "$ac_tool_prefix"; then
1877 # Extract the first word of "ranlib", so it can be a program name with args.
1878 set dummy ranlib
; ac_word
=$2
1879 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1880 echo "configure:1881: checking for $ac_word" >&5
1881 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1882 echo $ac_n "(cached) $ac_c" 1>&6
1884 if test -n "$RANLIB"; then
1885 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1887 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1889 for ac_dir
in $ac_dummy; do
1890 test -z "$ac_dir" && ac_dir
=.
1891 if test -f $ac_dir/$ac_word; then
1892 ac_cv_prog_RANLIB
="ranlib"
1897 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1900 RANLIB
="$ac_cv_prog_RANLIB"
1901 if test -n "$RANLIB"; then
1902 echo "$ac_t""$RANLIB" 1>&6
1904 echo "$ac_t""no" 1>&6
1912 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1913 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1914 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1915 echo "configure:1916: checking for $ac_word" >&5
1916 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1917 echo $ac_n "(cached) $ac_c" 1>&6
1919 if test -n "$STRIP"; then
1920 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1922 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1924 for ac_dir
in $ac_dummy; do
1925 test -z "$ac_dir" && ac_dir
=.
1926 if test -f $ac_dir/$ac_word; then
1927 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
1934 STRIP
="$ac_cv_prog_STRIP"
1935 if test -n "$STRIP"; then
1936 echo "$ac_t""$STRIP" 1>&6
1938 echo "$ac_t""no" 1>&6
1942 if test -z "$ac_cv_prog_STRIP"; then
1943 if test -n "$ac_tool_prefix"; then
1944 # Extract the first word of "strip", so it can be a program name with args.
1945 set dummy strip
; ac_word
=$2
1946 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1947 echo "configure:1948: checking for $ac_word" >&5
1948 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1949 echo $ac_n "(cached) $ac_c" 1>&6
1951 if test -n "$STRIP"; then
1952 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1954 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1956 for ac_dir
in $ac_dummy; do
1957 test -z "$ac_dir" && ac_dir
=.
1958 if test -f $ac_dir/$ac_word; then
1959 ac_cv_prog_STRIP
="strip"
1964 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
=":"
1967 STRIP
="$ac_cv_prog_STRIP"
1968 if test -n "$STRIP"; then
1969 echo "$ac_t""$STRIP" 1>&6
1971 echo "$ac_t""no" 1>&6
1980 # Check for any special flags to pass to ltconfig.
1981 libtool_flags
="--cache-file=$cache_file"
1982 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1983 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1984 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1985 test "$GCC" = yes && libtool_flags
="$libtool_flags --with-gcc"
1986 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1989 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1990 if test "${enable_libtool_lock+set}" = set; then
1991 enableval
="$enable_libtool_lock"
1995 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
1996 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
1998 # Check whether --with-pic or --without-pic was given.
1999 if test "${with_pic+set}" = set; then
2006 test x
"$pic_mode" = xyes
&& libtool_flags
="$libtool_flags --prefer-pic"
2007 test x
"$pic_mode" = xno
&& libtool_flags
="$libtool_flags --prefer-non-pic"
2009 # Some flags need to be propagated to the compiler or linker for good
2013 # Find out which ABI we are using.
2014 echo '#line 2015 "configure"' > conftest.
$ac_ext
2015 if { (eval echo configure
:2016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2016 if test "$lt_cv_prog_gnu_ld" = yes; then
2017 case `/usr/bin/file conftest.$ac_objext` in
2019 LD
="${LD-ld} -melf32bsmip"
2022 LD
="${LD-ld} -melf32bmipn32"
2025 LD
="${LD-ld} -melf64bmip"
2029 case `/usr/bin/file conftest.$ac_objext` in
2046 # Find out which ABI we are using.
2047 echo 'int i;' > conftest.
$ac_ext
2048 if { (eval echo configure
:2049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2049 case "`/usr/bin/file conftest.o`" in
2062 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2063 SAVE_CFLAGS
="$CFLAGS"
2064 CFLAGS
="$CFLAGS -belf"
2065 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2066 echo "configure:2067: checking whether the C compiler needs -belf" >&5
2067 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2068 echo $ac_n "(cached) $ac_c" 1>&6
2072 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2073 ac_cpp
='$CPP $CPPFLAGS'
2074 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2075 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2076 cross_compiling
=$ac_cv_prog_cc_cross
2078 cat > conftest.
$ac_ext <<EOF
2079 #line 2080 "configure"
2080 #include "confdefs.h"
2086 if { (eval echo configure
:2087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2088 lt_cv_cc_needs_belf
=yes
2090 echo "configure: failed program was:" >&5
2091 cat conftest.
$ac_ext >&5
2093 lt_cv_cc_needs_belf
=no
2097 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2098 ac_cpp
='$CPP $CPPFLAGS'
2099 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2100 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2101 cross_compiling
=$ac_cv_prog_cc_cross
2105 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2106 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
2107 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2108 CFLAGS
="$SAVE_CFLAGS"
2116 # Save cache, so that ltconfig can load it
2117 cat > confcache
<<\EOF
2118 # This file is a shell script that caches the results of configure
2119 # tests run on this system so they can be shared between configure
2120 # scripts and configure runs. It is not useful on other systems.
2121 # If it contains results you don't want to keep, you may remove or edit it.
2123 # By default, configure uses ./config.cache as the cache file,
2124 # creating it if it does not exist already. You can give configure
2125 # the --cache-file=FILE option to use a different cache file; that is
2126 # what configure does when it calls configure scripts in
2127 # subdirectories, so they share the cache.
2128 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2129 # config.status only pays attention to the cache file if you give it the
2130 # --recheck option to rerun configure.
2133 # The following way of writing the cache mishandles newlines in values,
2134 # but we know of no workaround that is simple, portable, and efficient.
2135 # So, don't put newlines in cache variables' values.
2136 # Ultrix sh set writes to stderr and can't be redirected directly,
2137 # and sets the high bit in the cache file unless we assign to the vars.
2139 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2141 # `set' does not quote correctly, so add quotes (double-quote substitution
2142 # turns \\\\ into \\, and sed turns \\ into \).
2144 -e "s/'/'\\\\''/g" \
2145 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2148 # `set' quotes correctly as required by POSIX, so do not add quotes.
2149 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2152 if cmp -s $cache_file confcache
; then
2155 if test -w $cache_file; then
2156 echo "updating cache $cache_file"
2157 cat confcache
> $cache_file
2159 echo "not updating unwritable cache $cache_file"
2165 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2166 AR
="$AR" LTCC
="$CC" CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
2167 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
2168 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
2169 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
2170 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
2171 deplibs_check_method
="$deplibs_check_method" file_magic_cmd
="$file_magic_cmd" \
2172 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
2173 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh
$host \
2174 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2176 # Reload cache, that may have been modified by ltconfig
2177 if test -r "$cache_file"; then
2178 echo "loading cache $cache_file"
2181 echo "creating cache $cache_file"
2186 # This can be used to rebuild libtool when needed
2187 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2189 # Always use our own libtool.
2190 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
2192 # Redirect the config.log output again, so that the ltconfig log is not
2193 # clobbered by the next message.
2194 exec 5>>.
/config.log
2202 # Check whether --with-lib-path or --without-lib-path was given.
2203 if test "${with_lib_path+set}" = set; then
2204 withval
="$with_lib_path"
2208 # Check whether --enable-targets or --disable-targets was given.
2209 if test "${enable_targets+set}" = set; then
2210 enableval
="$enable_targets"
2211 case "${enableval}" in
2212 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2214 no
) enable_targets
= ;;
2215 *) enable_targets
=$enableval ;;
2218 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
2219 if test "${enable_64_bit_bfd+set}" = set; then
2220 enableval
="$enable_64_bit_bfd"
2221 case "${enableval}" in
2224 *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
2230 # Check whether --with-sysroot or --without-sysroot was given.
2231 if test "${with_sysroot+set}" = set; then
2232 withval
="$with_sysroot"
2234 case ${with_sysroot} in
2235 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_alias}/sys-root' ;;
2236 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
2239 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
2242 if test "x$exec_prefix" = xNONE
; then
2243 if test "x$prefix" = xNONE
; then
2244 test_prefix
=/usr
/local
2249 test_prefix
=$exec_prefix
2251 case ${TARGET_SYSTEM_ROOT} in
2252 "${test_prefix}"|
"${test_prefix}/"*|\
2253 '${exec_prefix}'|
'${exec_prefix}/'*)
2254 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
2255 TARGET_SYSTEM_ROOT_DEFINE
="$t"
2263 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"\"'
2271 build_warnings
="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
2272 # Check whether --enable-build-warnings or --disable-build-warnings was given.
2273 if test "${enable_build_warnings+set}" = set; then
2274 enableval
="$enable_build_warnings"
2275 case "${enableval}" in
2277 no
) build_warnings
="-w";;
2278 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
2279 build_warnings
="${build_warnings} ${t}";;
2280 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
2281 build_warnings
="${t} ${build_warnings}";;
2282 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2284 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
2285 echo "Setting warning flags = $build_warnings" 6>&1
2289 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
; then
2290 WARN_CFLAGS
="${build_warnings}"
2298 if test -z "$target" ; then
2299 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
2301 if test -z "$host" ; then
2302 { echo "configure: error: Unrecognized host system type; please check config.sub." 1>&2; exit 1; }
2305 # host-specific stuff:
2307 # Extract the first word of "gcc", so it can be a program name with args.
2308 set dummy gcc
; ac_word
=$2
2309 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2310 echo "configure:2311: checking for $ac_word" >&5
2311 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2312 echo $ac_n "(cached) $ac_c" 1>&6
2314 if test -n "$CC"; then
2315 ac_cv_prog_CC
="$CC" # Let the user override the test.
2317 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2319 for ac_dir
in $ac_dummy; do
2320 test -z "$ac_dir" && ac_dir
=.
2321 if test -f $ac_dir/$ac_word; then
2330 if test -n "$CC"; then
2331 echo "$ac_t""$CC" 1>&6
2333 echo "$ac_t""no" 1>&6
2336 if test -z "$CC"; then
2337 # Extract the first word of "cc", so it can be a program name with args.
2338 set dummy cc
; ac_word
=$2
2339 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2340 echo "configure:2341: checking for $ac_word" >&5
2341 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2342 echo $ac_n "(cached) $ac_c" 1>&6
2344 if test -n "$CC"; then
2345 ac_cv_prog_CC
="$CC" # Let the user override the test.
2347 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2350 for ac_dir
in $ac_dummy; do
2351 test -z "$ac_dir" && ac_dir
=.
2352 if test -f $ac_dir/$ac_word; then
2353 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2354 ac_prog_rejected
=yes
2362 if test $ac_prog_rejected = yes; then
2363 # We found a bogon in the path, so make sure we never use it.
2364 set dummy
$ac_cv_prog_CC
2366 if test $# -gt 0; then
2367 # We chose a different compiler from the bogus one.
2368 # However, it has the same basename, so the bogon will be chosen
2369 # first if we set CC to just the basename; use the full file name.
2371 set dummy
"$ac_dir/$ac_word" "$@"
2379 if test -n "$CC"; then
2380 echo "$ac_t""$CC" 1>&6
2382 echo "$ac_t""no" 1>&6
2385 if test -z "$CC"; then
2386 case "`uname -s`" in
2388 # Extract the first word of "cl", so it can be a program name with args.
2389 set dummy cl
; ac_word
=$2
2390 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2391 echo "configure:2392: checking for $ac_word" >&5
2392 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2393 echo $ac_n "(cached) $ac_c" 1>&6
2395 if test -n "$CC"; then
2396 ac_cv_prog_CC
="$CC" # Let the user override the test.
2398 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2400 for ac_dir
in $ac_dummy; do
2401 test -z "$ac_dir" && ac_dir
=.
2402 if test -f $ac_dir/$ac_word; then
2411 if test -n "$CC"; then
2412 echo "$ac_t""$CC" 1>&6
2414 echo "$ac_t""no" 1>&6
2419 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2422 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2423 echo "configure:2424: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2426 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2427 ac_cpp
='$CPP $CPPFLAGS'
2428 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2429 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2430 cross_compiling
=$ac_cv_prog_cc_cross
2432 cat > conftest.
$ac_ext << EOF
2434 #line 2435 "configure"
2435 #include "confdefs.h"
2439 if { (eval echo configure
:2440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2440 ac_cv_prog_cc_works
=yes
2441 # If we can't run a trivial program, we are probably using a cross compiler.
2442 if (.
/conftest
; exit) 2>/dev
/null
; then
2443 ac_cv_prog_cc_cross
=no
2445 ac_cv_prog_cc_cross
=yes
2448 echo "configure: failed program was:" >&5
2449 cat conftest.
$ac_ext >&5
2450 ac_cv_prog_cc_works
=no
2454 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2455 ac_cpp
='$CPP $CPPFLAGS'
2456 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2457 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2458 cross_compiling
=$ac_cv_prog_cc_cross
2460 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2461 if test $ac_cv_prog_cc_works = no
; then
2462 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2464 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2465 echo "configure:2466: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2466 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2467 cross_compiling
=$ac_cv_prog_cc_cross
2469 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2470 echo "configure:2471: checking whether we are using GNU C" >&5
2471 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2472 echo $ac_n "(cached) $ac_c" 1>&6
2474 cat > conftest.c
<<EOF
2479 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2486 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2488 if test $ac_cv_prog_gcc = yes; then
2494 ac_test_CFLAGS
="${CFLAGS+set}"
2495 ac_save_CFLAGS
="$CFLAGS"
2497 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2498 echo "configure:2499: checking whether ${CC-cc} accepts -g" >&5
2499 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2500 echo $ac_n "(cached) $ac_c" 1>&6
2502 echo 'void f(){}' > conftest.c
2503 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2512 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2513 if test "$ac_test_CFLAGS" = set; then
2514 CFLAGS
="$ac_save_CFLAGS"
2515 elif test $ac_cv_prog_cc_g = yes; then
2516 if test "$GCC" = yes; then
2522 if test "$GCC" = yes; then
2529 # Find a good install program. We prefer a C program (faster),
2530 # so one script is as good as another. But avoid the broken or
2531 # incompatible versions:
2532 # SysV /etc/install, /usr/sbin/install
2533 # SunOS /usr/etc/install
2534 # IRIX /sbin/install
2536 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2537 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2538 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2539 # ./install, which can be erroneously created by make from ./install.sh.
2540 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2541 echo "configure:2542: checking for a BSD compatible install" >&5
2542 if test -z "$INSTALL"; then
2543 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2544 echo $ac_n "(cached) $ac_c" 1>&6
2546 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2547 for ac_dir
in $PATH; do
2548 # Account for people who put trailing slashes in PATH elements.
2550 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2552 # OSF1 and SCO ODT 3.0 have their own names for install.
2553 # Don't use installbsd from OSF since it installs stuff as root
2555 for ac_prog
in ginstall scoinst
install; do
2556 if test -f $ac_dir/$ac_prog; then
2557 if test $ac_prog = install &&
2558 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2559 # AIX install. It has an incompatible calling convention.
2562 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2573 if test "${ac_cv_path_install+set}" = set; then
2574 INSTALL
="$ac_cv_path_install"
2576 # As a last resort, use the slow shell script. We don't cache a
2577 # path for INSTALL within a source directory, because that will
2578 # break other packages using the cache if that directory is
2579 # removed, or if the path is relative.
2580 INSTALL
="$ac_install_sh"
2583 echo "$ac_t""$INSTALL" 1>&6
2585 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2586 # It thinks the first close brace ends the variable substitution.
2587 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2589 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2591 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2594 ALL_LINGUAS
="fr sv tr es da"
2595 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2596 echo "configure:2597: checking how to run the C preprocessor" >&5
2597 # On Suns, sometimes $CPP names a directory.
2598 if test -n "$CPP" && test -d "$CPP"; then
2601 if test -z "$CPP"; then
2602 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2603 echo $ac_n "(cached) $ac_c" 1>&6
2605 # This must be in double quotes, not single quotes, because CPP may get
2606 # substituted into the Makefile and "${CC-cc}" will confuse make.
2608 # On the NeXT, cc -E runs the code through the compiler's parser,
2609 # not just through cpp.
2610 cat > conftest.
$ac_ext <<EOF
2611 #line 2612 "configure"
2612 #include "confdefs.h"
2616 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2617 { (eval echo configure
:2618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2618 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2619 if test -z "$ac_err"; then
2623 echo "configure: failed program was:" >&5
2624 cat conftest.
$ac_ext >&5
2626 CPP
="${CC-cc} -E -traditional-cpp"
2627 cat > conftest.
$ac_ext <<EOF
2628 #line 2629 "configure"
2629 #include "confdefs.h"
2633 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2634 { (eval echo configure
:2635: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2635 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2636 if test -z "$ac_err"; then
2640 echo "configure: failed program was:" >&5
2641 cat conftest.
$ac_ext >&5
2643 CPP
="${CC-cc} -nologo -E"
2644 cat > conftest.
$ac_ext <<EOF
2645 #line 2646 "configure"
2646 #include "confdefs.h"
2650 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2651 { (eval echo configure
:2652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2652 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2653 if test -z "$ac_err"; then
2657 echo "configure: failed program was:" >&5
2658 cat conftest.
$ac_ext >&5
2667 ac_cv_prog_CPP
="$CPP"
2669 CPP
="$ac_cv_prog_CPP"
2671 ac_cv_prog_CPP
="$CPP"
2673 echo "$ac_t""$CPP" 1>&6
2675 # Extract the first word of "ranlib", so it can be a program name with args.
2676 set dummy ranlib
; ac_word
=$2
2677 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2678 echo "configure:2679: checking for $ac_word" >&5
2679 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2680 echo $ac_n "(cached) $ac_c" 1>&6
2682 if test -n "$RANLIB"; then
2683 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2685 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2687 for ac_dir
in $ac_dummy; do
2688 test -z "$ac_dir" && ac_dir
=.
2689 if test -f $ac_dir/$ac_word; then
2690 ac_cv_prog_RANLIB
="ranlib"
2695 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2698 RANLIB
="$ac_cv_prog_RANLIB"
2699 if test -n "$RANLIB"; then
2700 echo "$ac_t""$RANLIB" 1>&6
2702 echo "$ac_t""no" 1>&6
2705 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2706 echo "configure:2707: checking for ANSI C header files" >&5
2707 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2708 echo $ac_n "(cached) $ac_c" 1>&6
2710 cat > conftest.
$ac_ext <<EOF
2711 #line 2712 "configure"
2712 #include "confdefs.h"
2718 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2719 { (eval echo configure
:2720: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2720 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2721 if test -z "$ac_err"; then
2723 ac_cv_header_stdc
=yes
2726 echo "configure: failed program was:" >&5
2727 cat conftest.
$ac_ext >&5
2729 ac_cv_header_stdc
=no
2733 if test $ac_cv_header_stdc = yes; then
2734 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2735 cat > conftest.
$ac_ext <<EOF
2736 #line 2737 "configure"
2737 #include "confdefs.h"
2740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2741 egrep "memchr" >/dev
/null
2>&1; then
2745 ac_cv_header_stdc
=no
2751 if test $ac_cv_header_stdc = yes; then
2752 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2753 cat > conftest.
$ac_ext <<EOF
2754 #line 2755 "configure"
2755 #include "confdefs.h"
2758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2759 egrep "free" >/dev
/null
2>&1; then
2763 ac_cv_header_stdc
=no
2769 if test $ac_cv_header_stdc = yes; then
2770 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2771 if test "$cross_compiling" = yes; then
2774 cat > conftest.
$ac_ext <<EOF
2775 #line 2776 "configure"
2776 #include "confdefs.h"
2778 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2779 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2780 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2781 int main () { int i; for (i = 0; i < 256; i++)
2782 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2786 if { (eval echo configure
:2787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2790 echo "configure: failed program was:" >&5
2791 cat conftest.
$ac_ext >&5
2793 ac_cv_header_stdc
=no
2801 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2802 if test $ac_cv_header_stdc = yes; then
2803 cat >> confdefs.h
<<\EOF
2804 #define STDC_HEADERS 1
2809 echo $ac_n "checking for working const""... $ac_c" 1>&6
2810 echo "configure:2811: checking for working const" >&5
2811 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2812 echo $ac_n "(cached) $ac_c" 1>&6
2814 cat > conftest.
$ac_ext <<EOF
2815 #line 2816 "configure"
2816 #include "confdefs.h"
2820 /* Ultrix mips cc rejects this. */
2821 typedef int charset[2]; const charset x;
2822 /* SunOS 4.1.1 cc rejects this. */
2823 char const *const *ccp;
2825 /* NEC SVR4.0.2 mips cc rejects this. */
2826 struct point {int x, y;};
2827 static struct point const zero = {0,0};
2828 /* AIX XL C 1.02.0.0 rejects this.
2829 It does not let you subtract one const X* pointer from another in an arm
2830 of an if-expression whose if-part is not a constant expression */
2831 const char *g = "string";
2832 ccp = &g + (g ? g-g : 0);
2833 /* HPUX 7.0 cc rejects these. */
2836 ccp = (char const *const *) p;
2837 { /* SCO 3.2v4 cc rejects this. */
2839 char const *s = 0 ? (char *) 0 : (char const *) 0;
2843 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2845 const int *foo = &x[0];
2848 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2849 typedef const int *iptr;
2853 { /* AIX XL C 1.02.0.0 rejects this saying
2854 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2855 struct s { int j; const int *ap[3]; };
2856 struct s *b; b->j = 5;
2858 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2864 if { (eval echo configure
:2865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2868 echo "configure: failed program was:" >&5
2869 cat conftest.
$ac_ext >&5
2876 echo "$ac_t""$ac_cv_c_const" 1>&6
2877 if test $ac_cv_c_const = no
; then
2878 cat >> confdefs.h
<<\EOF
2884 echo $ac_n "checking for inline""... $ac_c" 1>&6
2885 echo "configure:2886: checking for inline" >&5
2886 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2887 echo $ac_n "(cached) $ac_c" 1>&6
2890 for ac_kw
in inline __inline__ __inline
; do
2891 cat > conftest.
$ac_ext <<EOF
2892 #line 2893 "configure"
2893 #include "confdefs.h"
2899 if { (eval echo configure
:2900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2901 ac_cv_c_inline
=$ac_kw; break
2903 echo "configure: failed program was:" >&5
2904 cat conftest.
$ac_ext >&5
2911 echo "$ac_t""$ac_cv_c_inline" 1>&6
2912 case "$ac_cv_c_inline" in
2914 no
) cat >> confdefs.h
<<\EOF
2918 *) cat >> confdefs.h
<<EOF
2919 #define inline $ac_cv_c_inline
2924 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2925 echo "configure:2926: checking for off_t" >&5
2926 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2927 echo $ac_n "(cached) $ac_c" 1>&6
2929 cat > conftest.
$ac_ext <<EOF
2930 #line 2931 "configure"
2931 #include "confdefs.h"
2932 #include <sys/types.h>
2938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2939 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2941 ac_cv_type_off_t
=yes
2949 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2950 if test $ac_cv_type_off_t = no
; then
2951 cat >> confdefs.h
<<\EOF
2957 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2958 echo "configure:2959: checking for size_t" >&5
2959 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2960 echo $ac_n "(cached) $ac_c" 1>&6
2962 cat > conftest.
$ac_ext <<EOF
2963 #line 2964 "configure"
2964 #include "confdefs.h"
2965 #include <sys/types.h>
2971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2972 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2974 ac_cv_type_size_t
=yes
2977 ac_cv_type_size_t
=no
2982 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2983 if test $ac_cv_type_size_t = no
; then
2984 cat >> confdefs.h
<<\EOF
2985 #define size_t unsigned
2990 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2991 # for constant arguments. Useless!
2992 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2993 echo "configure:2994: checking for working alloca.h" >&5
2994 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2995 echo $ac_n "(cached) $ac_c" 1>&6
2997 cat > conftest.
$ac_ext <<EOF
2998 #line 2999 "configure"
2999 #include "confdefs.h"
3002 char *p = alloca(2 * sizeof(int));
3005 if { (eval echo configure
:3006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3007 ac_cv_header_alloca_h
=yes
3009 echo "configure: failed program was:" >&5
3010 cat conftest.
$ac_ext >&5
3012 ac_cv_header_alloca_h
=no
3017 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3018 if test $ac_cv_header_alloca_h = yes; then
3019 cat >> confdefs.h
<<\EOF
3020 #define HAVE_ALLOCA_H 1
3025 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3026 echo "configure:3027: checking for alloca" >&5
3027 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3028 echo $ac_n "(cached) $ac_c" 1>&6
3030 cat > conftest.
$ac_ext <<EOF
3031 #line 3032 "configure"
3032 #include "confdefs.h"
3035 # define alloca __builtin_alloca
3038 # include <malloc.h>
3039 # define alloca _alloca
3042 # include <alloca.h>
3047 # ifndef alloca /* predefined by HP cc +Olibcalls */
3056 char *p = (char *) alloca(1);
3059 if { (eval echo configure
:3060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3061 ac_cv_func_alloca_works
=yes
3063 echo "configure: failed program was:" >&5
3064 cat conftest.
$ac_ext >&5
3066 ac_cv_func_alloca_works
=no
3071 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3072 if test $ac_cv_func_alloca_works = yes; then
3073 cat >> confdefs.h
<<\EOF
3074 #define HAVE_ALLOCA 1
3079 if test $ac_cv_func_alloca_works = no
; then
3080 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3081 # that cause trouble. Some versions do not even contain alloca or
3082 # contain a buggy version. If you still want to use their alloca,
3083 # use ar to extract alloca.o from them instead of compiling alloca.c.
3084 ALLOCA
=alloca.
${ac_objext}
3085 cat >> confdefs.h
<<\EOF
3090 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3091 echo "configure:3092: checking whether alloca needs Cray hooks" >&5
3092 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3093 echo $ac_n "(cached) $ac_c" 1>&6
3095 cat > conftest.
$ac_ext <<EOF
3096 #line 3097 "configure"
3097 #include "confdefs.h"
3098 #if defined(CRAY) && ! defined(CRAY2)
3105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3106 egrep "webecray" >/dev
/null
2>&1; then
3117 echo "$ac_t""$ac_cv_os_cray" 1>&6
3118 if test $ac_cv_os_cray = yes; then
3119 for ac_func
in _getb67 GETB67 getb67
; do
3120 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3121 echo "configure:3122: checking for $ac_func" >&5
3122 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3123 echo $ac_n "(cached) $ac_c" 1>&6
3125 cat > conftest.
$ac_ext <<EOF
3126 #line 3127 "configure"
3127 #include "confdefs.h"
3128 /* System header to define __stub macros and hopefully few prototypes,
3129 which can conflict with char $ac_func(); below. */
3131 /* Override any gcc2 internal prototype to avoid an error. */
3132 /* We use char because int might match the return type of a gcc2
3133 builtin and then its argument prototype would still apply. */
3138 /* The GNU C library defines this for functions which it implements
3139 to always fail with ENOSYS. Some functions are actually named
3140 something starting with __ and the normal name is an alias. */
3141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3149 if { (eval echo configure
:3150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3151 eval "ac_cv_func_$ac_func=yes"
3153 echo "configure: failed program was:" >&5
3154 cat conftest.
$ac_ext >&5
3156 eval "ac_cv_func_$ac_func=no"
3161 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3162 echo "$ac_t""yes" 1>&6
3163 cat >> confdefs.h
<<EOF
3164 #define CRAY_STACKSEG_END $ac_func
3169 echo "$ac_t""no" 1>&6
3175 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3176 echo "configure:3177: checking stack direction for C alloca" >&5
3177 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3178 echo $ac_n "(cached) $ac_c" 1>&6
3180 if test "$cross_compiling" = yes; then
3181 ac_cv_c_stack_direction
=0
3183 cat > conftest.
$ac_ext <<EOF
3184 #line 3185 "configure"
3185 #include "confdefs.h"
3186 find_stack_direction ()
3188 static char *addr = 0;
3193 return find_stack_direction ();
3196 return (&dummy > addr) ? 1 : -1;
3200 exit (find_stack_direction() < 0);
3203 if { (eval echo configure
:3204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3205 ac_cv_c_stack_direction
=1
3207 echo "configure: failed program was:" >&5
3208 cat conftest.
$ac_ext >&5
3210 ac_cv_c_stack_direction
=-1
3217 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3218 cat >> confdefs.h
<<EOF
3219 #define STACK_DIRECTION $ac_cv_c_stack_direction
3224 for ac_hdr
in unistd.h
3226 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3227 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3228 echo "configure:3229: checking for $ac_hdr" >&5
3229 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3230 echo $ac_n "(cached) $ac_c" 1>&6
3232 cat > conftest.
$ac_ext <<EOF
3233 #line 3234 "configure"
3234 #include "confdefs.h"
3237 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3238 { (eval echo configure
:3239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3239 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3240 if test -z "$ac_err"; then
3242 eval "ac_cv_header_$ac_safe=yes"
3245 echo "configure: failed program was:" >&5
3246 cat conftest.
$ac_ext >&5
3248 eval "ac_cv_header_$ac_safe=no"
3252 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3253 echo "$ac_t""yes" 1>&6
3254 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3255 cat >> confdefs.h
<<EOF
3256 #define $ac_tr_hdr 1
3260 echo "$ac_t""no" 1>&6
3264 for ac_func
in getpagesize
3266 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3267 echo "configure:3268: checking for $ac_func" >&5
3268 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3269 echo $ac_n "(cached) $ac_c" 1>&6
3271 cat > conftest.
$ac_ext <<EOF
3272 #line 3273 "configure"
3273 #include "confdefs.h"
3274 /* System header to define __stub macros and hopefully few prototypes,
3275 which can conflict with char $ac_func(); below. */
3277 /* Override any gcc2 internal prototype to avoid an error. */
3278 /* We use char because int might match the return type of a gcc2
3279 builtin and then its argument prototype would still apply. */
3284 /* The GNU C library defines this for functions which it implements
3285 to always fail with ENOSYS. Some functions are actually named
3286 something starting with __ and the normal name is an alias. */
3287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3295 if { (eval echo configure
:3296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3297 eval "ac_cv_func_$ac_func=yes"
3299 echo "configure: failed program was:" >&5
3300 cat conftest.
$ac_ext >&5
3302 eval "ac_cv_func_$ac_func=no"
3307 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3308 echo "$ac_t""yes" 1>&6
3309 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3310 cat >> confdefs.h
<<EOF
3311 #define $ac_tr_func 1
3315 echo "$ac_t""no" 1>&6
3319 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3320 echo "configure:3321: checking for working mmap" >&5
3321 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3322 echo $ac_n "(cached) $ac_c" 1>&6
3324 if test "$cross_compiling" = yes; then
3325 ac_cv_func_mmap_fixed_mapped
=no
3327 cat > conftest.
$ac_ext <<EOF
3328 #line 3329 "configure"
3329 #include "confdefs.h"
3331 /* Thanks to Mike Haertel and Jim Avera for this test.
3332 Here is a matrix of mmap possibilities:
3333 mmap private not fixed
3334 mmap private fixed at somewhere currently unmapped
3335 mmap private fixed at somewhere already mapped
3336 mmap shared not fixed
3337 mmap shared fixed at somewhere currently unmapped
3338 mmap shared fixed at somewhere already mapped
3339 For private mappings, we should verify that changes cannot be read()
3340 back from the file, nor mmap's back from the file at a different
3341 address. (There have been systems where private was not correctly
3342 implemented like the infamous i386 svr4.0, and systems where the
3343 VM page cache was not coherent with the filesystem buffer cache
3344 like early versions of FreeBSD and possibly contemporary NetBSD.)
3345 For shared mappings, we should conversely verify that changes get
3346 propogated back to all the places they're supposed to be.
3348 Grep wants private fixed already mapped.
3349 The main things grep needs to know about mmap are:
3350 * does it exist and is it safe to write into the mmap'd area
3351 * how to use it (BSD variants) */
3352 #include <sys/types.h>
3354 #include <sys/mman.h>
3356 /* This mess was copied from the GNU getpagesize.h. */
3357 #ifndef HAVE_GETPAGESIZE
3358 # ifdef HAVE_UNISTD_H
3359 # include <unistd.h>
3362 /* Assume that all systems that can run configure have sys/param.h. */
3363 # ifndef HAVE_SYS_PARAM_H
3364 # define HAVE_SYS_PARAM_H 1
3367 # ifdef _SC_PAGESIZE
3368 # define getpagesize() sysconf(_SC_PAGESIZE)
3369 # else /* no _SC_PAGESIZE */
3370 # ifdef HAVE_SYS_PARAM_H
3371 # include <sys/param.h>
3372 # ifdef EXEC_PAGESIZE
3373 # define getpagesize() EXEC_PAGESIZE
3374 # else /* no EXEC_PAGESIZE */
3376 # define getpagesize() NBPG * CLSIZE
3379 # endif /* no CLSIZE */
3380 # else /* no NBPG */
3382 # define getpagesize() NBPC
3383 # else /* no NBPC */
3385 # define getpagesize() PAGESIZE
3386 # endif /* PAGESIZE */
3387 # endif /* no NBPC */
3388 # endif /* no NBPG */
3389 # endif /* no EXEC_PAGESIZE */
3390 # else /* no HAVE_SYS_PARAM_H */
3391 # define getpagesize() 8192 /* punt totally */
3392 # endif /* no HAVE_SYS_PARAM_H */
3393 # endif /* no _SC_PAGESIZE */
3395 #endif /* no HAVE_GETPAGESIZE */
3398 extern "C" { void *malloc(unsigned); }
3406 char *data, *data2, *data3;
3410 pagesize = getpagesize();
3413 * First, make a file with some known garbage in it.
3415 data = malloc(pagesize);
3418 for (i = 0; i < pagesize; ++i)
3419 *(data + i) = rand();
3421 fd = creat("conftestmmap", 0600);
3424 if (write(fd, data, pagesize) != pagesize)
3429 * Next, try to mmap the file at a fixed address which
3430 * already has something else allocated at it. If we can,
3431 * also make sure that we see the same garbage.
3433 fd = open("conftestmmap", O_RDWR);
3436 data2 = malloc(2 * pagesize);
3439 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3440 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3441 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3443 for (i = 0; i < pagesize; ++i)
3444 if (*(data + i) != *(data2 + i))
3448 * Finally, make sure that changes to the mapped area
3449 * do not percolate back to the file as seen by read().
3450 * (This is a bug on some variants of i386 svr4.0.)
3452 for (i = 0; i < pagesize; ++i)
3453 *(data2 + i) = *(data2 + i) + 1;
3454 data3 = malloc(pagesize);
3457 if (read(fd, data3, pagesize) != pagesize)
3459 for (i = 0; i < pagesize; ++i)
3460 if (*(data + i) != *(data3 + i))
3463 unlink("conftestmmap");
3468 if { (eval echo configure
:3469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3470 ac_cv_func_mmap_fixed_mapped
=yes
3472 echo "configure: failed program was:" >&5
3473 cat conftest.
$ac_ext >&5
3475 ac_cv_func_mmap_fixed_mapped
=no
3482 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3483 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3484 cat >> confdefs.h
<<\EOF
3491 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3492 unistd.h values.h sys
/param.h
3494 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3495 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3496 echo "configure:3497: checking for $ac_hdr" >&5
3497 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3498 echo $ac_n "(cached) $ac_c" 1>&6
3500 cat > conftest.
$ac_ext <<EOF
3501 #line 3502 "configure"
3502 #include "confdefs.h"
3505 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3506 { (eval echo configure
:3507: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3507 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3508 if test -z "$ac_err"; then
3510 eval "ac_cv_header_$ac_safe=yes"
3513 echo "configure: failed program was:" >&5
3514 cat conftest.
$ac_ext >&5
3516 eval "ac_cv_header_$ac_safe=no"
3520 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3521 echo "$ac_t""yes" 1>&6
3522 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3523 cat >> confdefs.h
<<EOF
3524 #define $ac_tr_hdr 1
3528 echo "$ac_t""no" 1>&6
3532 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3533 __argz_count __argz_stringify __argz_next
3535 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3536 echo "configure:3537: checking for $ac_func" >&5
3537 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3538 echo $ac_n "(cached) $ac_c" 1>&6
3540 cat > conftest.
$ac_ext <<EOF
3541 #line 3542 "configure"
3542 #include "confdefs.h"
3543 /* System header to define __stub macros and hopefully few prototypes,
3544 which can conflict with char $ac_func(); below. */
3546 /* Override any gcc2 internal prototype to avoid an error. */
3547 /* We use char because int might match the return type of a gcc2
3548 builtin and then its argument prototype would still apply. */
3553 /* The GNU C library defines this for functions which it implements
3554 to always fail with ENOSYS. Some functions are actually named
3555 something starting with __ and the normal name is an alias. */
3556 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3564 if { (eval echo configure
:3565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3566 eval "ac_cv_func_$ac_func=yes"
3568 echo "configure: failed program was:" >&5
3569 cat conftest.
$ac_ext >&5
3571 eval "ac_cv_func_$ac_func=no"
3576 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3577 echo "$ac_t""yes" 1>&6
3578 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3579 cat >> confdefs.h
<<EOF
3580 #define $ac_tr_func 1
3584 echo "$ac_t""no" 1>&6
3589 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3590 for ac_func
in stpcpy
3592 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3593 echo "configure:3594: checking for $ac_func" >&5
3594 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3595 echo $ac_n "(cached) $ac_c" 1>&6
3597 cat > conftest.
$ac_ext <<EOF
3598 #line 3599 "configure"
3599 #include "confdefs.h"
3600 /* System header to define __stub macros and hopefully few prototypes,
3601 which can conflict with char $ac_func(); below. */
3603 /* Override any gcc2 internal prototype to avoid an error. */
3604 /* We use char because int might match the return type of a gcc2
3605 builtin and then its argument prototype would still apply. */
3610 /* The GNU C library defines this for functions which it implements
3611 to always fail with ENOSYS. Some functions are actually named
3612 something starting with __ and the normal name is an alias. */
3613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3621 if { (eval echo configure
:3622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3623 eval "ac_cv_func_$ac_func=yes"
3625 echo "configure: failed program was:" >&5
3626 cat conftest.
$ac_ext >&5
3628 eval "ac_cv_func_$ac_func=no"
3633 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3634 echo "$ac_t""yes" 1>&6
3635 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3636 cat >> confdefs.h
<<EOF
3637 #define $ac_tr_func 1
3641 echo "$ac_t""no" 1>&6
3646 if test "${ac_cv_func_stpcpy}" = "yes"; then
3647 cat >> confdefs.h
<<\EOF
3648 #define HAVE_STPCPY 1
3653 if test $ac_cv_header_locale_h = yes; then
3654 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3655 echo "configure:3656: checking for LC_MESSAGES" >&5
3656 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3657 echo $ac_n "(cached) $ac_c" 1>&6
3659 cat > conftest.
$ac_ext <<EOF
3660 #line 3661 "configure"
3661 #include "confdefs.h"
3667 if { (eval echo configure
:3668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3669 am_cv_val_LC_MESSAGES
=yes
3671 echo "configure: failed program was:" >&5
3672 cat conftest.
$ac_ext >&5
3674 am_cv_val_LC_MESSAGES
=no
3679 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3680 if test $am_cv_val_LC_MESSAGES = yes; then
3681 cat >> confdefs.h
<<\EOF
3682 #define HAVE_LC_MESSAGES 1
3687 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3688 echo "configure:3689: checking whether NLS is requested" >&5
3689 # Check whether --enable-nls or --disable-nls was given.
3690 if test "${enable_nls+set}" = set; then
3691 enableval
="$enable_nls"
3697 echo "$ac_t""$USE_NLS" 1>&6
3700 USE_INCLUDED_LIBINTL
=no
3702 if test "$USE_NLS" = "yes"; then
3703 cat >> confdefs.h
<<\EOF
3704 #define ENABLE_NLS 1
3707 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3708 echo "configure:3709: checking whether included gettext is requested" >&5
3709 # Check whether --with-included-gettext or --without-included-gettext was given.
3710 if test "${with_included_gettext+set}" = set; then
3711 withval
="$with_included_gettext"
3712 nls_cv_force_use_gnu_gettext
=$withval
3714 nls_cv_force_use_gnu_gettext
=no
3717 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3719 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
3720 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3722 nls_cv_header_libgt
=
3725 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3726 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3727 echo "configure:3728: checking for libintl.h" >&5
3728 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3729 echo $ac_n "(cached) $ac_c" 1>&6
3731 cat > conftest.
$ac_ext <<EOF
3732 #line 3733 "configure"
3733 #include "confdefs.h"
3734 #include <libintl.h>
3736 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3737 { (eval echo configure
:3738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3738 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3739 if test -z "$ac_err"; then
3741 eval "ac_cv_header_$ac_safe=yes"
3744 echo "configure: failed program was:" >&5
3745 cat conftest.
$ac_ext >&5
3747 eval "ac_cv_header_$ac_safe=no"
3751 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3752 echo "$ac_t""yes" 1>&6
3753 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3754 echo "configure:3755: checking for gettext in libc" >&5
3755 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3756 echo $ac_n "(cached) $ac_c" 1>&6
3758 cat > conftest.
$ac_ext <<EOF
3759 #line 3760 "configure"
3760 #include "confdefs.h"
3761 #include <libintl.h>
3763 return (int) gettext ("")
3766 if { (eval echo configure
:3767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3768 gt_cv_func_gettext_libc
=yes
3770 echo "configure: failed program was:" >&5
3771 cat conftest.
$ac_ext >&5
3773 gt_cv_func_gettext_libc
=no
3778 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3780 if test "$gt_cv_func_gettext_libc" != "yes"; then
3781 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3782 echo "configure:3783: checking for bindtextdomain in -lintl" >&5
3783 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3784 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3785 echo $ac_n "(cached) $ac_c" 1>&6
3787 ac_save_LIBS
="$LIBS"
3789 cat > conftest.
$ac_ext <<EOF
3790 #line 3791 "configure"
3791 #include "confdefs.h"
3792 /* Override any gcc2 internal prototype to avoid an error. */
3793 /* We use char because int might match the return type of a gcc2
3794 builtin and then its argument prototype would still apply. */
3795 char bindtextdomain();
3801 if { (eval echo configure
:3802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3803 eval "ac_cv_lib_$ac_lib_var=yes"
3805 echo "configure: failed program was:" >&5
3806 cat conftest.
$ac_ext >&5
3808 eval "ac_cv_lib_$ac_lib_var=no"
3811 LIBS
="$ac_save_LIBS"
3814 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3815 echo "$ac_t""yes" 1>&6
3816 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3817 echo "configure:3818: checking for gettext in libintl" >&5
3818 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3819 echo $ac_n "(cached) $ac_c" 1>&6
3821 cat > conftest.
$ac_ext <<EOF
3822 #line 3823 "configure"
3823 #include "confdefs.h"
3826 return (int) gettext ("")
3829 if { (eval echo configure
:3830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3831 gt_cv_func_gettext_libintl
=yes
3833 echo "configure: failed program was:" >&5
3834 cat conftest.
$ac_ext >&5
3836 gt_cv_func_gettext_libintl
=no
3841 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3843 echo "$ac_t""no" 1>&6
3848 if test "$gt_cv_func_gettext_libc" = "yes" \
3849 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
3850 cat >> confdefs.h
<<\EOF
3851 #define HAVE_GETTEXT 1
3854 # Extract the first word of "msgfmt", so it can be a program name with args.
3855 set dummy msgfmt
; ac_word
=$2
3856 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3857 echo "configure:3858: checking for $ac_word" >&5
3858 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3859 echo $ac_n "(cached) $ac_c" 1>&6
3863 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3866 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3867 for ac_dir
in $PATH; do
3868 test -z "$ac_dir" && ac_dir
=.
3869 if test -f $ac_dir/$ac_word; then
3870 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3871 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3877 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
3881 MSGFMT
="$ac_cv_path_MSGFMT"
3882 if test -n "$MSGFMT"; then
3883 echo "$ac_t""$MSGFMT" 1>&6
3885 echo "$ac_t""no" 1>&6
3887 if test "$MSGFMT" != "no"; then
3888 for ac_func
in dcgettext
3890 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3891 echo "configure:3892: checking for $ac_func" >&5
3892 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3893 echo $ac_n "(cached) $ac_c" 1>&6
3895 cat > conftest.
$ac_ext <<EOF
3896 #line 3897 "configure"
3897 #include "confdefs.h"
3898 /* System header to define __stub macros and hopefully few prototypes,
3899 which can conflict with char $ac_func(); below. */
3901 /* Override any gcc2 internal prototype to avoid an error. */
3902 /* We use char because int might match the return type of a gcc2
3903 builtin and then its argument prototype would still apply. */
3908 /* The GNU C library defines this for functions which it implements
3909 to always fail with ENOSYS. Some functions are actually named
3910 something starting with __ and the normal name is an alias. */
3911 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3919 if { (eval echo configure
:3920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3921 eval "ac_cv_func_$ac_func=yes"
3923 echo "configure: failed program was:" >&5
3924 cat conftest.
$ac_ext >&5
3926 eval "ac_cv_func_$ac_func=no"
3931 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3932 echo "$ac_t""yes" 1>&6
3933 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3934 cat >> confdefs.h
<<EOF
3935 #define $ac_tr_func 1
3939 echo "$ac_t""no" 1>&6
3943 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3944 set dummy gmsgfmt
; ac_word
=$2
3945 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3946 echo "configure:3947: checking for $ac_word" >&5
3947 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3948 echo $ac_n "(cached) $ac_c" 1>&6
3952 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3955 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3958 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3960 for ac_dir
in $ac_dummy; do
3961 test -z "$ac_dir" && ac_dir
=.
3962 if test -f $ac_dir/$ac_word; then
3963 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3968 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3972 GMSGFMT
="$ac_cv_path_GMSGFMT"
3973 if test -n "$GMSGFMT"; then
3974 echo "$ac_t""$GMSGFMT" 1>&6
3976 echo "$ac_t""no" 1>&6
3979 # Extract the first word of "xgettext", so it can be a program name with args.
3980 set dummy xgettext
; ac_word
=$2
3981 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3982 echo "configure:3983: checking for $ac_word" >&5
3983 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3984 echo $ac_n "(cached) $ac_c" 1>&6
3988 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3991 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3992 for ac_dir
in $PATH; do
3993 test -z "$ac_dir" && ac_dir
=.
3994 if test -f $ac_dir/$ac_word; then
3995 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3996 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4002 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4006 XGETTEXT
="$ac_cv_path_XGETTEXT"
4007 if test -n "$XGETTEXT"; then
4008 echo "$ac_t""$XGETTEXT" 1>&6
4010 echo "$ac_t""no" 1>&6
4013 cat > conftest.
$ac_ext <<EOF
4014 #line 4015 "configure"
4015 #include "confdefs.h"
4018 extern int _nl_msg_cat_cntr;
4019 return _nl_msg_cat_cntr
4022 if { (eval echo configure
:4023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4027 echo "configure: failed program was:" >&5
4028 cat conftest.
$ac_ext >&5
4039 echo "$ac_t""no" 1>&6
4044 if test "$CATOBJEXT" = "NONE"; then
4045 nls_cv_use_gnu_gettext
=yes
4049 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4050 INTLOBJS
="\$(GETTOBJS)"
4051 # Extract the first word of "msgfmt", so it can be a program name with args.
4052 set dummy msgfmt
; ac_word
=$2
4053 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4054 echo "configure:4055: checking for $ac_word" >&5
4055 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4056 echo $ac_n "(cached) $ac_c" 1>&6
4060 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
4063 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4064 for ac_dir
in $PATH; do
4065 test -z "$ac_dir" && ac_dir
=.
4066 if test -f $ac_dir/$ac_word; then
4067 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4068 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
4074 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
4078 MSGFMT
="$ac_cv_path_MSGFMT"
4079 if test -n "$MSGFMT"; then
4080 echo "$ac_t""$MSGFMT" 1>&6
4082 echo "$ac_t""no" 1>&6
4085 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4086 set dummy gmsgfmt
; ac_word
=$2
4087 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4088 echo "configure:4089: checking for $ac_word" >&5
4089 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4090 echo $ac_n "(cached) $ac_c" 1>&6
4094 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4097 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4100 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4102 for ac_dir
in $ac_dummy; do
4103 test -z "$ac_dir" && ac_dir
=.
4104 if test -f $ac_dir/$ac_word; then
4105 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4110 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4114 GMSGFMT
="$ac_cv_path_GMSGFMT"
4115 if test -n "$GMSGFMT"; then
4116 echo "$ac_t""$GMSGFMT" 1>&6
4118 echo "$ac_t""no" 1>&6
4121 # Extract the first word of "xgettext", so it can be a program name with args.
4122 set dummy xgettext
; ac_word
=$2
4123 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4124 echo "configure:4125: checking for $ac_word" >&5
4125 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4126 echo $ac_n "(cached) $ac_c" 1>&6
4130 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4133 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4134 for ac_dir
in $PATH; do
4135 test -z "$ac_dir" && ac_dir
=.
4136 if test -f $ac_dir/$ac_word; then
4137 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4138 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4144 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4148 XGETTEXT
="$ac_cv_path_XGETTEXT"
4149 if test -n "$XGETTEXT"; then
4150 echo "$ac_t""$XGETTEXT" 1>&6
4152 echo "$ac_t""no" 1>&6
4156 USE_INCLUDED_LIBINTL
=yes
4160 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
4162 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
4163 nls_cv_header_intl
=libintl.h
4164 nls_cv_header_libgt
=libgettext.h
4167 if test "$XGETTEXT" != ":"; then
4168 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
4171 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4176 # We need to process the po/ directory.
4180 nls_cv_header_intl
=libintl.h
4181 nls_cv_header_libgt
=libgettext.h
4184 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4185 # because some of the sources are only built for this goal.
4186 if test "$PACKAGE" = gettext; then
4188 USE_INCLUDED_LIBINTL
=yes
4191 for lang
in $ALL_LINGUAS; do
4192 GMOFILES
="$GMOFILES $lang.gmo"
4193 POFILES
="$POFILES $lang.po"
4209 if test "x$CATOBJEXT" != "x"; then
4210 if test "x$ALL_LINGUAS" = "x"; then
4213 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4214 echo "configure:4215: checking for catalogs to be installed" >&5
4216 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
4217 case "$ALL_LINGUAS" in
4218 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
4221 LINGUAS
=$NEW_LINGUAS
4222 echo "$ac_t""$LINGUAS" 1>&6
4225 if test -n "$LINGUAS"; then
4226 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
4230 if test $ac_cv_header_locale_h = yes; then
4231 INCLUDE_LOCALE_H
="#include <locale.h>"
4234 /* The system does not provide the header <locale.h>. Take care yourself. */"
4238 if test -f $srcdir/po2tbl.
sed.
in; then
4239 if test "$CATOBJEXT" = ".cat"; then
4240 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4241 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4242 echo "configure:4243: checking for linux/version.h" >&5
4243 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4244 echo $ac_n "(cached) $ac_c" 1>&6
4246 cat > conftest.
$ac_ext <<EOF
4247 #line 4248 "configure"
4248 #include "confdefs.h"
4249 #include <linux/version.h>
4251 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4252 { (eval echo configure
:4253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4253 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4254 if test -z "$ac_err"; then
4256 eval "ac_cv_header_$ac_safe=yes"
4259 echo "configure: failed program was:" >&5
4260 cat conftest.
$ac_ext >&5
4262 eval "ac_cv_header_$ac_safe=no"
4266 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4267 echo "$ac_t""yes" 1>&6
4270 echo "$ac_t""no" 1>&6
4275 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
4277 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4278 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
4281 if test "$PACKAGE" = "gettext"; then
4291 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
4297 if test -f $srcdir/po
/POTFILES.
in; then
4298 test -d po || mkdir po
4299 if test "x$srcdir" != "x."; then
4300 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4301 posrcprefix
="$srcdir/"
4303 posrcprefix
="../$srcdir/"
4309 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4310 < $srcdir/po
/POTFILES.
in > po
/POTFILES
4316 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4317 echo "configure:4318: checking for executable suffix" >&5
4318 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4319 echo $ac_n "(cached) $ac_c" 1>&6
4321 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
4325 echo 'int main () { return 0; }' > conftest.
$ac_ext
4327 if { (eval echo configure
:4328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4328 for file in conftest.
*; do
4330 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
4331 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
4335 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4338 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
4343 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
4344 echo "$ac_t""${ac_cv_exeext}" 1>&6
4348 for ac_prog
in 'bison -y' byacc
4350 # Extract the first word of "$ac_prog", so it can be a program name with args.
4351 set dummy
$ac_prog; ac_word
=$2
4352 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4353 echo "configure:4354: checking for $ac_word" >&5
4354 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
4355 echo $ac_n "(cached) $ac_c" 1>&6
4357 if test -n "$YACC"; then
4358 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
4360 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4362 for ac_dir
in $ac_dummy; do
4363 test -z "$ac_dir" && ac_dir
=.
4364 if test -f $ac_dir/$ac_word; then
4365 ac_cv_prog_YACC
="$ac_prog"
4372 YACC
="$ac_cv_prog_YACC"
4373 if test -n "$YACC"; then
4374 echo "$ac_t""$YACC" 1>&6
4376 echo "$ac_t""no" 1>&6
4379 test -n "$YACC" && break
4381 test -n "$YACC" || YACC
="yacc"
4383 missing_dir
=`cd $ac_aux_dir && pwd`
4384 for ac_prog
in flex
lex
4386 # Extract the first word of "$ac_prog", so it can be a program name with args.
4387 set dummy
$ac_prog; ac_word
=$2
4388 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4389 echo "configure:4390: checking for $ac_word" >&5
4390 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
4391 echo $ac_n "(cached) $ac_c" 1>&6
4393 if test -n "$LEX"; then
4394 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
4396 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4398 for ac_dir
in $ac_dummy; do
4399 test -z "$ac_dir" && ac_dir
=.
4400 if test -f $ac_dir/$ac_word; then
4401 ac_cv_prog_LEX
="$ac_prog"
4408 LEX
="$ac_cv_prog_LEX"
4409 if test -n "$LEX"; then
4410 echo "$ac_t""$LEX" 1>&6
4412 echo "$ac_t""no" 1>&6
4415 test -n "$LEX" && break
4417 test -n "$LEX" || LEX
=""$missing_dir/missing flex
""
4419 # Extract the first word of "flex", so it can be a program name with args.
4420 set dummy flex
; ac_word
=$2
4421 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4422 echo "configure:4423: checking for $ac_word" >&5
4423 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
4424 echo $ac_n "(cached) $ac_c" 1>&6
4426 if test -n "$LEX"; then
4427 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
4429 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4431 for ac_dir
in $ac_dummy; do
4432 test -z "$ac_dir" && ac_dir
=.
4433 if test -f $ac_dir/$ac_word; then
4434 ac_cv_prog_LEX
="flex"
4439 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
4442 LEX
="$ac_cv_prog_LEX"
4443 if test -n "$LEX"; then
4444 echo "$ac_t""$LEX" 1>&6
4446 echo "$ac_t""no" 1>&6
4449 if test -z "$LEXLIB"
4455 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
4456 echo "configure:4457: checking for yywrap in -l$ac_lib" >&5
4457 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
4458 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4459 echo $ac_n "(cached) $ac_c" 1>&6
4461 ac_save_LIBS
="$LIBS"
4462 LIBS
="-l$ac_lib $LIBS"
4463 cat > conftest.
$ac_ext <<EOF
4464 #line 4465 "configure"
4465 #include "confdefs.h"
4466 /* Override any gcc2 internal prototype to avoid an error. */
4467 /* We use char because int might match the return type of a gcc2
4468 builtin and then its argument prototype would still apply. */
4475 if { (eval echo configure
:4476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4477 eval "ac_cv_lib_$ac_lib_var=yes"
4479 echo "configure: failed program was:" >&5
4480 cat conftest.
$ac_ext >&5
4482 eval "ac_cv_lib_$ac_lib_var=no"
4485 LIBS
="$ac_save_LIBS"
4488 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4489 echo "$ac_t""yes" 1>&6
4492 echo "$ac_t""no" 1>&6
4497 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
4498 echo "configure:4499: checking lex output file root" >&5
4499 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
4500 echo $ac_n "(cached) $ac_c" 1>&6
4502 # The minimal lex program is just a single line: %%. But some broken lexes
4503 # (Solaris, I think it was) want two %% lines, so accommodate them.
4506 if test -f lex.yy.c
; then
4507 ac_cv_prog_lex_root
=lex.yy
4508 elif test -f lexyy.c
; then
4509 ac_cv_prog_lex_root
=lexyy
4511 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
4515 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
4516 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
4518 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
4519 echo "configure:4520: checking whether yytext is a pointer" >&5
4520 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
4521 echo $ac_n "(cached) $ac_c" 1>&6
4523 # POSIX says lex can declare yytext either as a pointer or an array; the
4524 # default is implementation-dependent. Figure out which it is, since
4525 # not all implementations provide the %pointer and %array declarations.
4526 ac_cv_prog_lex_yytext_pointer
=no
4527 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4528 ac_save_LIBS
="$LIBS"
4529 LIBS
="$LIBS $LEXLIB"
4530 cat > conftest.
$ac_ext <<EOF
4531 #line 4532 "configure"
4532 #include "confdefs.h"
4533 `cat $LEX_OUTPUT_ROOT.c`
4538 if { (eval echo configure
:4539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4540 ac_cv_prog_lex_yytext_pointer
=yes
4542 echo "configure: failed program was:" >&5
4543 cat conftest.
$ac_ext >&5
4546 LIBS
="$ac_save_LIBS"
4547 rm -f "${LEX_OUTPUT_ROOT}.c"
4551 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
4552 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4553 cat >> confdefs.h
<<\EOF
4554 #define YYTEXT_POINTER 1
4560 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4561 echo "configure:4562: checking whether to enable maintainer-specific portions of Makefiles" >&5
4562 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4563 if test "${enable_maintainer_mode+set}" = set; then
4564 enableval
="$enable_maintainer_mode"
4565 USE_MAINTAINER_MODE
=$enableval
4567 USE_MAINTAINER_MODE
=no
4570 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4573 if test $USE_MAINTAINER_MODE = yes; then
4574 MAINTAINER_MODE_TRUE
=
4575 MAINTAINER_MODE_FALSE
='#'
4577 MAINTAINER_MODE_TRUE
='#'
4578 MAINTAINER_MODE_FALSE
=
4580 MAINT
=$MAINTAINER_MODE_TRUE
4584 .
${srcdir}/configure.
host
4591 for ac_hdr
in string.h
strings.h stdlib.h unistd.h
4593 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4594 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4595 echo "configure:4596: checking for $ac_hdr" >&5
4596 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4597 echo $ac_n "(cached) $ac_c" 1>&6
4599 cat > conftest.
$ac_ext <<EOF
4600 #line 4601 "configure"
4601 #include "confdefs.h"
4604 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4605 { (eval echo configure
:4606: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4606 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4607 if test -z "$ac_err"; then
4609 eval "ac_cv_header_$ac_safe=yes"
4612 echo "configure: failed program was:" >&5
4613 cat conftest.
$ac_ext >&5
4615 eval "ac_cv_header_$ac_safe=no"
4619 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4620 echo "$ac_t""yes" 1>&6
4621 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4622 cat >> confdefs.h
<<EOF
4623 #define $ac_tr_hdr 1
4627 echo "$ac_t""no" 1>&6
4631 for ac_func
in sbrk realpath
4633 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4634 echo "configure:4635: checking for $ac_func" >&5
4635 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4636 echo $ac_n "(cached) $ac_c" 1>&6
4638 cat > conftest.
$ac_ext <<EOF
4639 #line 4640 "configure"
4640 #include "confdefs.h"
4641 /* System header to define __stub macros and hopefully few prototypes,
4642 which can conflict with char $ac_func(); below. */
4644 /* Override any gcc2 internal prototype to avoid an error. */
4645 /* We use char because int might match the return type of a gcc2
4646 builtin and then its argument prototype would still apply. */
4651 /* The GNU C library defines this for functions which it implements
4652 to always fail with ENOSYS. Some functions are actually named
4653 something starting with __ and the normal name is an alias. */
4654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4662 if { (eval echo configure
:4663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4664 eval "ac_cv_func_$ac_func=yes"
4666 echo "configure: failed program was:" >&5
4667 cat conftest.
$ac_ext >&5
4669 eval "ac_cv_func_$ac_func=no"
4674 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4675 echo "$ac_t""yes" 1>&6
4676 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4677 cat >> confdefs.h
<<EOF
4678 #define $ac_tr_func 1
4682 echo "$ac_t""no" 1>&6
4687 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
4689 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4690 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4691 echo "configure:4692: checking for $ac_hdr that defines DIR" >&5
4692 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
4693 echo $ac_n "(cached) $ac_c" 1>&6
4695 cat > conftest.
$ac_ext <<EOF
4696 #line 4697 "configure"
4697 #include "confdefs.h"
4698 #include <sys/types.h>
4704 if { (eval echo configure
:4705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4706 eval "ac_cv_header_dirent_$ac_safe=yes"
4708 echo "configure: failed program was:" >&5
4709 cat conftest.
$ac_ext >&5
4711 eval "ac_cv_header_dirent_$ac_safe=no"
4715 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4716 echo "$ac_t""yes" 1>&6
4717 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4718 cat >> confdefs.h
<<EOF
4719 #define $ac_tr_hdr 1
4721 ac_header_dirent
=$ac_hdr; break
4723 echo "$ac_t""no" 1>&6
4726 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4727 if test $ac_header_dirent = dirent.h
; then
4728 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4729 echo "configure:4730: checking for opendir in -ldir" >&5
4730 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4731 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4732 echo $ac_n "(cached) $ac_c" 1>&6
4734 ac_save_LIBS
="$LIBS"
4736 cat > conftest.
$ac_ext <<EOF
4737 #line 4738 "configure"
4738 #include "confdefs.h"
4739 /* Override any gcc2 internal prototype to avoid an error. */
4740 /* We use char because int might match the return type of a gcc2
4741 builtin and then its argument prototype would still apply. */
4748 if { (eval echo configure
:4749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4750 eval "ac_cv_lib_$ac_lib_var=yes"
4752 echo "configure: failed program was:" >&5
4753 cat conftest.
$ac_ext >&5
4755 eval "ac_cv_lib_$ac_lib_var=no"
4758 LIBS
="$ac_save_LIBS"
4761 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4762 echo "$ac_t""yes" 1>&6
4765 echo "$ac_t""no" 1>&6
4769 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4770 echo "configure:4771: checking for opendir in -lx" >&5
4771 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
4772 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4773 echo $ac_n "(cached) $ac_c" 1>&6
4775 ac_save_LIBS
="$LIBS"
4777 cat > conftest.
$ac_ext <<EOF
4778 #line 4779 "configure"
4779 #include "confdefs.h"
4780 /* Override any gcc2 internal prototype to avoid an error. */
4781 /* We use char because int might match the return type of a gcc2
4782 builtin and then its argument prototype would still apply. */
4789 if { (eval echo configure
:4790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4791 eval "ac_cv_lib_$ac_lib_var=yes"
4793 echo "configure: failed program was:" >&5
4794 cat conftest.
$ac_ext >&5
4796 eval "ac_cv_lib_$ac_lib_var=no"
4799 LIBS
="$ac_save_LIBS"
4802 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4803 echo "$ac_t""yes" 1>&6
4806 echo "$ac_t""no" 1>&6
4814 *-*-msdos* |
*-*-go32* |
*-*-mingw32* |
*-*-cygwin* |
*-*-windows*)
4815 cat >> confdefs.h
<<\EOF
4816 #define USE_BINARY_FOPEN 1
4821 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4822 echo "configure:4823: checking whether strstr must be declared" >&5
4823 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4824 echo $ac_n "(cached) $ac_c" 1>&6
4826 cat > conftest.
$ac_ext <<EOF
4827 #line 4828 "configure"
4828 #include "confdefs.h"
4831 #ifdef HAVE_STRING_H
4834 #ifdef HAVE_STRINGS_H
4835 #include <strings.h>
4838 #ifdef HAVE_STDLIB_H
4841 #ifdef HAVE_UNISTD_H
4845 char *(*pfn) = (char *(*)) strstr
4848 if { (eval echo configure
:4849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4850 bfd_cv_decl_needed_strstr
=no
4852 echo "configure: failed program was:" >&5
4853 cat conftest.
$ac_ext >&5
4855 bfd_cv_decl_needed_strstr
=yes
4860 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4861 if test $bfd_cv_decl_needed_strstr = yes; then
4862 cat >> confdefs.h
<<\EOF
4863 #define NEED_DECLARATION_STRSTR 1
4868 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
4869 echo "configure:4870: checking whether free must be declared" >&5
4870 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
4871 echo $ac_n "(cached) $ac_c" 1>&6
4873 cat > conftest.
$ac_ext <<EOF
4874 #line 4875 "configure"
4875 #include "confdefs.h"
4878 #ifdef HAVE_STRING_H
4881 #ifdef HAVE_STRINGS_H
4882 #include <strings.h>
4885 #ifdef HAVE_STDLIB_H
4888 #ifdef HAVE_UNISTD_H
4892 char *(*pfn) = (char *(*)) free
4895 if { (eval echo configure
:4896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4897 bfd_cv_decl_needed_free
=no
4899 echo "configure: failed program was:" >&5
4900 cat conftest.
$ac_ext >&5
4902 bfd_cv_decl_needed_free
=yes
4907 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
4908 if test $bfd_cv_decl_needed_free = yes; then
4909 cat >> confdefs.h
<<\EOF
4910 #define NEED_DECLARATION_FREE 1
4915 echo $ac_n "checking whether sbrk must be declared""... $ac_c" 1>&6
4916 echo "configure:4917: checking whether sbrk must be declared" >&5
4917 if eval "test \"`echo '$''{'bfd_cv_decl_needed_sbrk'+set}'`\" = set"; then
4918 echo $ac_n "(cached) $ac_c" 1>&6
4920 cat > conftest.
$ac_ext <<EOF
4921 #line 4922 "configure"
4922 #include "confdefs.h"
4925 #ifdef HAVE_STRING_H
4928 #ifdef HAVE_STRINGS_H
4929 #include <strings.h>
4932 #ifdef HAVE_STDLIB_H
4935 #ifdef HAVE_UNISTD_H
4939 char *(*pfn) = (char *(*)) sbrk
4942 if { (eval echo configure
:4943: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4944 bfd_cv_decl_needed_sbrk
=no
4946 echo "configure: failed program was:" >&5
4947 cat conftest.
$ac_ext >&5
4949 bfd_cv_decl_needed_sbrk
=yes
4954 echo "$ac_t""$bfd_cv_decl_needed_sbrk" 1>&6
4955 if test $bfd_cv_decl_needed_sbrk = yes; then
4956 cat >> confdefs.h
<<\EOF
4957 #define NEED_DECLARATION_SBRK 1
4962 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
4963 echo "configure:4964: checking whether getenv must be declared" >&5
4964 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
4965 echo $ac_n "(cached) $ac_c" 1>&6
4967 cat > conftest.
$ac_ext <<EOF
4968 #line 4969 "configure"
4969 #include "confdefs.h"
4972 #ifdef HAVE_STRING_H
4975 #ifdef HAVE_STRINGS_H
4976 #include <strings.h>
4979 #ifdef HAVE_STDLIB_H
4982 #ifdef HAVE_UNISTD_H
4986 char *(*pfn) = (char *(*)) getenv
4989 if { (eval echo configure
:4990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4991 bfd_cv_decl_needed_getenv
=no
4993 echo "configure: failed program was:" >&5
4994 cat conftest.
$ac_ext >&5
4996 bfd_cv_decl_needed_getenv
=yes
5001 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
5002 if test $bfd_cv_decl_needed_getenv = yes; then
5003 cat >> confdefs.h
<<\EOF
5004 #define NEED_DECLARATION_GETENV 1
5009 echo $ac_n "checking whether environ must be declared""... $ac_c" 1>&6
5010 echo "configure:5011: checking whether environ must be declared" >&5
5011 if eval "test \"`echo '$''{'bfd_cv_decl_needed_environ'+set}'`\" = set"; then
5012 echo $ac_n "(cached) $ac_c" 1>&6
5014 cat > conftest.
$ac_ext <<EOF
5015 #line 5016 "configure"
5016 #include "confdefs.h"
5019 #ifdef HAVE_STRING_H
5022 #ifdef HAVE_STRINGS_H
5023 #include <strings.h>
5026 #ifdef HAVE_STDLIB_H
5029 #ifdef HAVE_UNISTD_H
5033 char *(*pfn) = (char *(*)) environ
5036 if { (eval echo configure
:5037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5038 bfd_cv_decl_needed_environ
=no
5040 echo "configure: failed program was:" >&5
5041 cat conftest.
$ac_ext >&5
5043 bfd_cv_decl_needed_environ
=yes
5048 echo "$ac_t""$bfd_cv_decl_needed_environ" 1>&6
5049 if test $bfd_cv_decl_needed_environ = yes; then
5050 cat >> confdefs.h
<<\EOF
5051 #define NEED_DECLARATION_ENVIRON 1
5057 # When converting linker scripts into strings for use in emulation
5058 # files, use astring.sed if the compiler supports ANSI string
5059 # concatenation, or ostring.sed otherwise. This is to support the
5060 # broken Microsoft MSVC compiler, which limits the length of string
5061 # constants, while still supporting pre-ANSI compilers which do not
5062 # support string concatenation.
5063 echo $ac_n "checking whether ANSI C string concatenation works""... $ac_c" 1>&6
5064 echo "configure:5065: checking whether ANSI C string concatenation works" >&5
5065 if eval "test \"`echo '$''{'ld_cv_string_concatenation'+set}'`\" = set"; then
5066 echo $ac_n "(cached) $ac_c" 1>&6
5068 cat > conftest.
$ac_ext <<EOF
5069 #line 5070 "configure"
5070 #include "confdefs.h"
5076 if { (eval echo configure
:5077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5078 ld_cv_string_concatenation
=yes
5080 echo "configure: failed program was:" >&5
5081 cat conftest.
$ac_ext >&5
5083 ld_cv_string_concatenation
=no
5088 echo "$ac_t""$ld_cv_string_concatenation" 1>&6
5089 if test "$ld_cv_string_concatenation" = "yes"; then
5090 STRINGIFY
=astring.
sed
5092 STRINGIFY
=ostring.
sed
5096 # target-specific stuff:
5106 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
5108 if test "$targ_alias" = "all"; then
5111 # Canonicalize the secondary target names.
5112 result
=`$ac_config_sub $targ_alias 2>/dev/null`
5113 if test -n "$result"; then
5119 .
${srcdir}/configure.tgt
5121 if test "$targ" = "$target"; then
5125 for i
in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
5126 case " $all_emuls " in
5129 all_emuls
="$all_emuls e${i}.o"
5130 eval result
=\
$tdir_$i
5131 test -z "$result" && result
=$targ_alias
5132 echo tdir_
$i=$result >> tdirs
5137 for i
in $targ_emul $targ_extra_libpath; do
5138 case " $all_libpath " in
5141 if test -z "$all_libpath"; then
5144 all_libpath
="$all_libpath ${i}"
5150 for i
in $targ_extra_ofiles; do
5151 case " $all_emul_extras " in
5154 all_emul_extras
="$all_emul_extras ${i}"
5166 if test x
${all_targets} = xtrue
; then
5167 if test x
${want64} = xtrue
; then
5168 EMULATION_OFILES
='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
5170 EMULATION_OFILES
='$(ALL_EMULATIONS)'
5172 EMUL_EXTRA_OFILES
='$(ALL_EMUL_EXTRA_OFILES)'
5174 EMULATION_OFILES
=$all_emuls
5175 EMUL_EXTRA_OFILES
=$all_emul_extras
5181 EMULATION_LIBPATH
=$all_libpath
5184 if test x
${enable_static} = xno
; then
5185 TESTBFDLIB
="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
5187 TESTBFDLIB
="../bfd/.libs/libbfd.a"
5191 target_vendor
=${target_vendor=$host_vendor}
5192 case "$target_vendor" in
5193 hp
) EXTRA_SHLIB_EXTENSION
=".sl" ;;
5194 *) EXTRA_SHLIB_EXTENSION
= ;;
5196 if test x
${EXTRA_SHLIB_EXTENSION} != x
; then
5197 cat >> confdefs.h
<<EOF
5198 #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
5204 cat > confcache
<<\EOF
5205 # This file is a shell script that caches the results of configure
5206 # tests run on this system so they can be shared between configure
5207 # scripts and configure runs. It is not useful on other systems.
5208 # If it contains results you don't want to keep, you may remove or edit it.
5210 # By default, configure uses ./config.cache as the cache file,
5211 # creating it if it does not exist already. You can give configure
5212 # the --cache-file=FILE option to use a different cache file; that is
5213 # what configure does when it calls configure scripts in
5214 # subdirectories, so they share the cache.
5215 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5216 # config.status only pays attention to the cache file if you give it the
5217 # --recheck option to rerun configure.
5220 # The following way of writing the cache mishandles newlines in values,
5221 # but we know of no workaround that is simple, portable, and efficient.
5222 # So, don't put newlines in cache variables' values.
5223 # Ultrix sh set writes to stderr and can't be redirected directly,
5224 # and sets the high bit in the cache file unless we assign to the vars.
5226 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5228 # `set' does not quote correctly, so add quotes (double-quote substitution
5229 # turns \\\\ into \\, and sed turns \\ into \).
5231 -e "s/'/'\\\\''/g" \
5232 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5235 # `set' quotes correctly as required by POSIX, so do not add quotes.
5236 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5239 if cmp -s $cache_file confcache
; then
5242 if test -w $cache_file; then
5243 echo "updating cache $cache_file"
5244 cat confcache
> $cache_file
5246 echo "not updating unwritable cache $cache_file"
5251 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5253 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5254 # Let make expand exec_prefix.
5255 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5257 # Any assignment to VPATH causes Sun make to only execute
5258 # the first set of double-colon rules, so remove it if not needed.
5259 # If there is a colon in the path, we need to keep it.
5260 if test "x$srcdir" = x.
; then
5261 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5264 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5266 DEFS
=-DHAVE_CONFIG_H
5268 # Without the "./", some shells look in PATH for config.status.
5269 : ${CONFIG_STATUS=./config.status}
5271 echo creating
$CONFIG_STATUS
5272 rm -f $CONFIG_STATUS
5273 cat > $CONFIG_STATUS <<EOF
5275 # Generated automatically by configure.
5276 # Run this file to recreate the current configuration.
5277 # This directory was configured as follows,
5278 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5280 # $0 $ac_configure_args
5282 # Compiler output produced by configure, useful for debugging
5283 # configure, is in ./config.log if it exists.
5285 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5288 case "\$ac_option" in
5289 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5290 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5291 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5292 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5293 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5295 -help | --help | --hel | --he | --h)
5296 echo "\$ac_cs_usage"; exit 0 ;;
5297 *) echo "\$ac_cs_usage"; exit 1 ;;
5301 ac_given_srcdir=$srcdir
5302 ac_given_INSTALL="$INSTALL"
5304 trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5306 cat >> $CONFIG_STATUS <<EOF
5308 # Protect against being on the right side of a sed subst in config.status.
5309 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5310 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5314 s%@CFLAGS@%$CFLAGS%g
5315 s%@CPPFLAGS@%$CPPFLAGS%g
5316 s%@CXXFLAGS@%$CXXFLAGS%g
5317 s%@FFLAGS@%$FFLAGS%g
5319 s%@LDFLAGS@%$LDFLAGS%g
5321 s%@exec_prefix@%$exec_prefix%g
5322 s%@prefix@%$prefix%g
5323 s%@program_transform_name@%$program_transform_name%g
5324 s%@bindir@%$bindir%g
5325 s%@sbindir@%$sbindir%g
5326 s%@libexecdir@%$libexecdir%g
5327 s%@datadir@%$datadir%g
5328 s%@sysconfdir@%$sysconfdir%g
5329 s%@sharedstatedir@%$sharedstatedir%g
5330 s%@localstatedir@%$localstatedir%g
5331 s%@libdir@%$libdir%g
5332 s%@includedir@%$includedir%g
5333 s%@oldincludedir@%$oldincludedir%g
5334 s%@infodir@%$infodir%g
5335 s%@mandir@%$mandir%g
5337 s%@host_alias@%$host_alias%g
5338 s%@host_cpu@%$host_cpu%g
5339 s%@host_vendor@%$host_vendor%g
5340 s%@host_os@%$host_os%g
5341 s%@target@%$target%g
5342 s%@target_alias@%$target_alias%g
5343 s%@target_cpu@%$target_cpu%g
5344 s%@target_vendor@%$target_vendor%g
5345 s%@target_os@%$target_os%g
5347 s%@build_alias@%$build_alias%g
5348 s%@build_cpu@%$build_cpu%g
5349 s%@build_vendor@%$build_vendor%g
5350 s%@build_os@%$build_os%g
5351 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5352 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5353 s%@INSTALL_DATA@%$INSTALL_DATA%g
5354 s%@PACKAGE@%$PACKAGE%g
5355 s%@VERSION@%$VERSION%g
5356 s%@ACLOCAL@%$ACLOCAL%g
5357 s%@AUTOCONF@%$AUTOCONF%g
5358 s%@AUTOMAKE@%$AUTOMAKE%g
5359 s%@AUTOHEADER@%$AUTOHEADER%g
5360 s%@MAKEINFO@%$MAKEINFO%g
5361 s%@SET_MAKE@%$SET_MAKE%g
5364 s%@OBJEXT@%$OBJEXT%g
5365 s%@EXEEXT@%$EXEEXT%g
5366 s%@RANLIB@%$RANLIB%g
5368 s%@LIBTOOL@%$LIBTOOL%g
5369 s%@use_sysroot@%$use_sysroot%g
5370 s%@TARGET_SYSTEM_ROOT@%$TARGET_SYSTEM_ROOT%g
5371 s%@TARGET_SYSTEM_ROOT_DEFINE@%$TARGET_SYSTEM_ROOT_DEFINE%g
5372 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
5374 s%@ALLOCA@%$ALLOCA%g
5375 s%@USE_NLS@%$USE_NLS%g
5376 s%@MSGFMT@%$MSGFMT%g
5377 s%@GMSGFMT@%$GMSGFMT%g
5378 s%@XGETTEXT@%$XGETTEXT%g
5379 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5380 s%@CATALOGS@%$CATALOGS%g
5381 s%@CATOBJEXT@%$CATOBJEXT%g
5382 s%@DATADIRNAME@%$DATADIRNAME%g
5383 s%@GMOFILES@%$GMOFILES%g
5384 s%@INSTOBJEXT@%$INSTOBJEXT%g
5385 s%@INTLDEPS@%$INTLDEPS%g
5386 s%@INTLLIBS@%$INTLLIBS%g
5387 s%@INTLOBJS@%$INTLOBJS%g
5388 s%@POFILES@%$POFILES%g
5390 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5392 s%@GT_YES@%$GT_YES%g
5393 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5397 s%@LEXLIB@%$LEXLIB%g
5398 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
5399 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5400 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5402 s%@HDEFINES@%$HDEFINES%g
5403 s%@HOSTING_CRT0@%$HOSTING_CRT0%g
5404 s%@HOSTING_LIBS@%$HOSTING_LIBS%g
5405 s%@NATIVE_LIB_DIRS@%$NATIVE_LIB_DIRS%g
5406 s%@STRINGIFY@%$STRINGIFY%g
5410 s%@EMULATION_OFILES@%$EMULATION_OFILES%g
5411 s%@EMUL_EXTRA_OFILES@%$EMUL_EXTRA_OFILES%g
5412 s%@LIB_PATH@%$LIB_PATH%g
5413 s%@EMULATION_LIBPATH@%$EMULATION_LIBPATH%g
5414 s%@TESTBFDLIB@%$TESTBFDLIB%g
5419 cat >> $CONFIG_STATUS <<\EOF
5421 # Split the substitutions into bite-sized pieces for seds with
5422 # small command number limits, like on Digital OSF/1 and HP-UX.
5423 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5424 ac_file
=1 # Number of current file.
5425 ac_beg
=1 # First line for current file.
5426 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5429 while $ac_more_lines; do
5430 if test $ac_beg -gt 1; then
5431 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5433 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5435 if test ! -s conftest.s
$ac_file; then
5437 rm -f conftest.s
$ac_file
5439 if test -z "$ac_sed_cmds"; then
5440 ac_sed_cmds
="sed -f conftest.s$ac_file"
5442 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5444 ac_file
=`expr $ac_file + 1`
5446 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5449 if test -z "$ac_sed_cmds"; then
5454 cat >> $CONFIG_STATUS <<EOF
5456 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
5458 cat >> $CONFIG_STATUS <<\EOF
5459 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5460 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5462 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5463 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5464 *) ac_file_in
="${ac_file}.in" ;;
5467 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5469 # Remove last slash and all that follows it. Not all systems have dirname.
5470 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5471 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5472 # The file is in a subdirectory.
5473 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5474 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5475 # A "../" for each directory in $ac_dir_suffix.
5476 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5478 ac_dir_suffix
= ac_dots
=
5481 case "$ac_given_srcdir" in
5483 if test -z "$ac_dots"; then top_srcdir
=.
5484 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5485 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5487 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5488 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5491 case "$ac_given_INSTALL" in
5492 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5493 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5496 echo creating
"$ac_file"
5498 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5500 *Makefile
*) ac_comsub
="1i\\
5501 # $configure_input" ;;
5505 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5507 s%@configure_input@%$configure_input%g
5508 s%@srcdir@%$srcdir%g
5509 s%@top_srcdir@%$top_srcdir%g
5510 s%@INSTALL@%$INSTALL%g
5511 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5515 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5516 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5518 # ac_d sets the value in "#define NAME VALUE" lines.
5519 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5520 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5523 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5524 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5525 ac_uB
='\([ ]\)%\1#\2define\3'
5528 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5529 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5530 ac_eB
='$%\1#\2define\3'
5534 if test "${CONFIG_HEADERS+set}" != set; then
5536 cat >> $CONFIG_STATUS <<EOF
5537 CONFIG_HEADERS="config.h:config.in"
5539 cat >> $CONFIG_STATUS <<\EOF
5541 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5542 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5544 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5545 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5546 *) ac_file_in
="${ac_file}.in" ;;
5549 echo creating
$ac_file
5551 rm -f conftest.frag conftest.
in conftest.out
5552 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5553 cat $ac_file_inputs > conftest.
in
5557 # Transform confdefs.h into a sed script conftest.vals that substitutes
5558 # the proper values into config.h.in to produce config.h. And first:
5559 # Protect against being on the right side of a sed subst in config.status.
5560 # Protect against being in an unquoted here document in config.status.
5562 cat > conftest.hdr
<<\EOF
5565 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5569 sed -n -f conftest.hdr confdefs.h > conftest.vals
5572 # This sed command replaces #undef with comments. This is necessary, for
5573 # example, in the case of _POSIX_SOURCE, which is predefined and required
5574 # on some systems where configure will not decide to define it.
5575 cat >> conftest.vals <<\EOF
5576 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5579 # Break up conftest.vals because some shells have a limit on
5580 # the size of here documents, and old seds have small limits too.
5585 ac_lines=`grep -c . conftest.vals
`
5586 # grep -c gives empty output for an empty file on some AIX systems.
5587 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5588 # Write a limited-size here document to conftest.frag.
5589 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5590 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5592 sed -f conftest.frag conftest.in > conftest.out
5594 mv conftest.out conftest.in
5596 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5598 mv conftest.tail conftest.vals
5602 cat >> $CONFIG_STATUS <<\EOF
5603 rm -f conftest.frag conftest.h
5604 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5605 cat conftest.in >> conftest.h
5607 if cmp -s $ac_file conftest.h 2>/dev/null; then
5608 echo "$ac_file is unchanged"
5611 # Remove last slash and all that follows it. Not all systems have dirname.
5612 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5613 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5614 # The file is in a subdirectory.
5615 test ! -d "$ac_dir" && mkdir "$ac_dir"
5618 mv conftest.h $ac_file
5623 cat >> $CONFIG_STATUS <<EOF
5627 cat >> $CONFIG_STATUS <<\EOF
5628 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5629 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
5632 chmod +x $CONFIG_STATUS
5633 rm -fr confdefs* $ac_clean_files
5634 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1