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-werror treat compile warnings as errors"
37 --enable-build-warnings Enable build-time compiler warnings"
39 --disable-nls do not use Native Language Support"
41 --with-included-gettext use the GNU gettext library included here"
43 --enable-maintainer-mode enable make rules and dependencies not useful
44 (and sometimes confusing) to the casual installer"
46 # Initialize some variables set by options.
47 # The variables have the same names as the options, with
48 # dashes changed to underlines.
50 cache_file
=.
/config.cache
59 program_transform_name
=s
,x
,x
,
67 bindir
='${exec_prefix}/bin'
68 sbindir
='${exec_prefix}/sbin'
69 libexecdir
='${exec_prefix}/libexec'
70 datadir
='${prefix}/share'
71 sysconfdir
='${prefix}/etc'
72 sharedstatedir
='${prefix}/com'
73 localstatedir
='${prefix}/var'
74 libdir
='${exec_prefix}/lib'
75 includedir
='${prefix}/include'
76 oldincludedir
='/usr/include'
77 infodir
='${prefix}/info'
78 mandir
='${prefix}/man'
80 # Initialize some other variables.
83 SHELL
=${CONFIG_SHELL-/bin/sh}
84 # Maximum number of lines to put in a shell here document.
91 # If the previous option needs an argument, assign it.
92 if test -n "$ac_prev"; then
93 eval "$ac_prev=\$ac_option"
99 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
103 # Accept the important Cygnus configure options, so we can diagnose typos.
107 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
109 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
110 bindir
="$ac_optarg" ;;
112 -build |
--build |
--buil |
--bui |
--bu)
114 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
115 build
="$ac_optarg" ;;
117 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
118 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
119 ac_prev
=cache_file
;;
120 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
121 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
122 cache_file
="$ac_optarg" ;;
124 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
126 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
128 datadir
="$ac_optarg" ;;
130 -disable-* |
--disable-*)
131 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
132 # Reject names that are not valid shell variable names.
133 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
134 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
136 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
137 eval "enable_${ac_feature}=no" ;;
139 -enable-* |
--enable-*)
140 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
141 # Reject names that are not valid shell variable names.
142 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
143 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
145 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
150 eval "enable_${ac_feature}='$ac_optarg'" ;;
152 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
153 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
154 |
--exec |
--exe |
--ex)
155 ac_prev
=exec_prefix
;;
156 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
157 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
158 |
--exec=* |
--exe=* |
--ex=*)
159 exec_prefix
="$ac_optarg" ;;
161 -gas |
--gas |
--ga |
--g)
162 # Obsolete; use --with-gas.
165 -help |
--help |
--hel |
--he)
166 # Omit some internal or obsolete options to make the list less imposing.
167 # This message is too long to be a string in the A/UX 3.1 sh.
169 Usage: configure [options] [host]
170 Options: [defaults in brackets after descriptions]
172 --cache-file=FILE cache test results in FILE
173 --help print this message
174 --no-create do not create output files
175 --quiet, --silent do not print \`checking...' messages
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 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
348 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
349 srcdir
="$ac_optarg" ;;
351 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
352 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
353 ac_prev
=sysconfdir
;;
354 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
355 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
356 sysconfdir
="$ac_optarg" ;;
358 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
360 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
361 target
="$ac_optarg" ;;
363 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
366 -version |
--version |
--versio |
--versi |
--vers)
367 echo "configure generated by autoconf version 2.13"
371 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
372 # Reject names that are not valid shell variable names.
373 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
374 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
376 ac_package
=`echo $ac_package| sed 's/-/_/g'`
381 eval "with_${ac_package}='$ac_optarg'" ;;
383 -without-* |
--without-*)
384 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
385 # Reject names that are not valid shell variable names.
386 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
387 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
389 ac_package
=`echo $ac_package| sed 's/-/_/g'`
390 eval "with_${ac_package}=no" ;;
393 # Obsolete; use --with-x.
396 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
397 |
--x-incl |
--x-inc |
--x-in |
--x-i)
398 ac_prev
=x_includes
;;
399 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
400 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
401 x_includes
="$ac_optarg" ;;
403 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
404 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
405 ac_prev
=x_libraries
;;
406 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
407 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
408 x_libraries
="$ac_optarg" ;;
410 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
414 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
415 echo "configure: warning: $ac_option: invalid host type" 1>&2
417 if test "x$nonopt" != xNONE
; then
418 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
426 if test -n "$ac_prev"; then
427 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
430 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
432 # File descriptor usage:
435 # 2 errors and warnings
436 # 3 some systems may open it to /dev/tty
437 # 4 used on the Kubota Titan
438 # 6 checking for... messages and results
439 # 5 compiler messages saved in config.log
440 if test "$silent" = yes; then
448 This file contains any messages produced by compilers while
449 running configure, to aid debugging if configure makes a mistake.
452 # Strip out --no-create and --no-recursion so they do not pile up.
453 # Also quote any args containing shell metacharacters.
458 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
459 |
--no-cr |
--no-c) ;;
460 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
461 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
462 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
463 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
464 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
469 # Only set these to C if already set. These must not be set unconditionally
470 # because not all systems understand e.g. LANG=C (notably SCO).
471 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
472 # Non-C LC_CTYPE values break the ctype check.
473 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
474 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
475 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
476 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
478 # confdefs.h avoids OS command line length limits that DEFS can exceed.
479 rm -rf conftest
* confdefs.h
480 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
483 # A filename unique to this package, relative to the directory that
484 # configure is in, which we can look for to find out if srcdir is correct.
485 ac_unique_file
=ldmain.c
487 # Find the source files, if location was not specified.
488 if test -z "$srcdir"; then
489 ac_srcdir_defaulted
=yes
490 # Try the directory containing this script, then its parent.
492 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
493 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
495 if test ! -r $srcdir/$ac_unique_file; then
499 ac_srcdir_defaulted
=no
501 if test ! -r $srcdir/$ac_unique_file; then
502 if test "$ac_srcdir_defaulted" = yes; then
503 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
505 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
508 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
510 # Prefer explicitly selected file to automatically selected ones.
511 if test -z "$CONFIG_SITE"; then
512 if test "x$prefix" != xNONE
; then
513 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
515 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
518 for ac_site_file
in $CONFIG_SITE; do
519 if test -r "$ac_site_file"; then
520 echo "loading site script $ac_site_file"
525 if test -r "$cache_file"; then
526 echo "loading cache $cache_file"
529 echo "creating cache $cache_file"
534 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
535 ac_cpp
='$CPP $CPPFLAGS'
536 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
537 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
538 cross_compiling
=$ac_cv_prog_cc_cross
542 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
543 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
544 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
551 ac_n
= ac_c
='\c' ac_t
=
554 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
555 echo "configure:556: checking for Cygwin environment" >&5
556 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
557 echo $ac_n "(cached) $ac_c" 1>&6
559 cat > conftest.
$ac_ext <<EOF
560 #line 561 "configure"
561 #include "confdefs.h"
566 #define __CYGWIN__ __CYGWIN32__
571 if { (eval echo configure
:572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
575 echo "configure: failed program was:" >&5
576 cat conftest.
$ac_ext >&5
584 echo "$ac_t""$ac_cv_cygwin" 1>&6
586 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
587 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
588 echo "configure:589: checking for mingw32 environment" >&5
589 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
590 echo $ac_n "(cached) $ac_c" 1>&6
592 cat > conftest.
$ac_ext <<EOF
593 #line 594 "configure"
594 #include "confdefs.h"
600 if { (eval echo configure
:601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
604 echo "configure: failed program was:" >&5
605 cat conftest.
$ac_ext >&5
613 echo "$ac_t""$ac_cv_mingw32" 1>&6
615 test "$ac_cv_mingw32" = yes && MINGW32
=yes
619 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
620 if test -f $ac_dir/install-sh
; then
622 ac_install_sh
="$ac_aux_dir/install-sh -c"
624 elif test -f $ac_dir/install.sh
; then
626 ac_install_sh
="$ac_aux_dir/install.sh -c"
630 if test -z "$ac_aux_dir"; then
631 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
633 ac_config_guess
=$ac_aux_dir/config.guess
634 ac_config_sub
=$ac_aux_dir/config.sub
635 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
638 # Do some error checking and defaulting for the host and target type.
640 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
643 # 1. You are not allowed to specify --host, --target, and nonopt at the
645 # 2. Host defaults to nonopt.
646 # 3. If nonopt is not specified, then host defaults to the current host,
647 # as determined by config.guess.
648 # 4. Target and build default to nonopt.
649 # 5. If nonopt is not specified, then target and build default to host.
651 # The aliases save the names the user supplied, while $host etc.
652 # will get canonicalized.
653 case $host---$target---$nonopt in
654 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
655 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
659 # Make sure we can run config.sub.
660 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
661 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
664 echo $ac_n "checking host system type""... $ac_c" 1>&6
665 echo "configure:666: checking host system type" >&5
668 case "$host_alias" in
672 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
673 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
675 *) host_alias
=$nonopt ;;
679 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
680 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
681 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
682 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
683 echo "$ac_t""$host" 1>&6
685 echo $ac_n "checking target system type""... $ac_c" 1>&6
686 echo "configure:687: checking target system type" >&5
689 case "$target_alias" in
692 NONE
) target_alias
=$host_alias ;;
693 *) target_alias
=$nonopt ;;
697 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
698 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
699 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
700 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
701 echo "$ac_t""$target" 1>&6
703 echo $ac_n "checking build system type""... $ac_c" 1>&6
704 echo "configure:705: checking build system type" >&5
707 case "$build_alias" in
710 NONE
) build_alias
=$host_alias ;;
711 *) build_alias
=$nonopt ;;
715 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
716 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
717 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
718 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
719 echo "$ac_t""$build" 1>&6
721 test "$host_alias" != "$target_alias" &&
722 test "$program_prefix$program_suffix$program_transform_name" = \
724 program_prefix
=${target_alias}-
727 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
728 echo "configure:729: checking for strerror in -lcposix" >&5
729 ac_lib_var
=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
730 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
731 echo $ac_n "(cached) $ac_c" 1>&6
734 LIBS
="-lcposix $LIBS"
735 cat > conftest.
$ac_ext <<EOF
736 #line 737 "configure"
737 #include "confdefs.h"
738 /* Override any gcc2 internal prototype to avoid an error. */
739 /* We use char because int might match the return type of a gcc2
740 builtin and then its argument prototype would still apply. */
747 if { (eval echo configure
:748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
749 eval "ac_cv_lib_$ac_lib_var=yes"
751 echo "configure: failed program was:" >&5
752 cat conftest.
$ac_ext >&5
754 eval "ac_cv_lib_$ac_lib_var=no"
760 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
761 echo "$ac_t""yes" 1>&6
762 LIBS
="$LIBS -lcposix"
764 echo "$ac_t""no" 1>&6
770 BFD_VERSION
=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
771 am__api_version
="1.4"
772 # Find a good install program. We prefer a C program (faster),
773 # so one script is as good as another. But avoid the broken or
774 # incompatible versions:
775 # SysV /etc/install, /usr/sbin/install
776 # SunOS /usr/etc/install
779 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
780 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
781 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
782 # ./install, which can be erroneously created by make from ./install.sh.
783 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
784 echo "configure:785: checking for a BSD compatible install" >&5
785 if test -z "$INSTALL"; then
786 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
787 echo $ac_n "(cached) $ac_c" 1>&6
789 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
790 for ac_dir
in $PATH; do
791 # Account for people who put trailing slashes in PATH elements.
793 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
795 # OSF1 and SCO ODT 3.0 have their own names for install.
796 # Don't use installbsd from OSF since it installs stuff as root
798 for ac_prog
in ginstall scoinst
install; do
799 if test -f $ac_dir/$ac_prog; then
800 if test $ac_prog = install &&
801 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
802 # AIX install. It has an incompatible calling convention.
805 ac_cv_path_install
="$ac_dir/$ac_prog -c"
816 if test "${ac_cv_path_install+set}" = set; then
817 INSTALL
="$ac_cv_path_install"
819 # As a last resort, use the slow shell script. We don't cache a
820 # path for INSTALL within a source directory, because that will
821 # break other packages using the cache if that directory is
822 # removed, or if the path is relative.
823 INSTALL
="$ac_install_sh"
826 echo "$ac_t""$INSTALL" 1>&6
828 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
829 # It thinks the first close brace ends the variable substitution.
830 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
832 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
834 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
836 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
837 echo "configure:838: checking whether build environment is sane" >&5
840 echo timestamp
> conftestfile
841 # Do `set' in a subshell so we don't clobber the current shell's
842 # arguments. Must try -L first in case configure is actually a
843 # symlink; some systems play weird games with the mod time of symlinks
844 # (eg FreeBSD returns the mod time of the symlink's containing
847 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
848 if test "$*" = "X"; then
850 set X
`ls -t $srcdir/configure conftestfile`
852 if test "$*" != "X $srcdir/configure conftestfile" \
853 && test "$*" != "X conftestfile $srcdir/configure"; then
855 # If neither matched, then we have a broken ls. This can happen
856 # if, for instance, CONFIG_SHELL is bash and it inherits a
857 # broken ls alias from the environment. This has actually
858 # happened. Such a system could not be considered "sane".
859 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
860 alias in your environment" 1>&2; exit 1; }
863 test "$2" = conftestfile
869 { echo "configure: error: newly created file is older than distributed files!
870 Check your system clock" 1>&2; exit 1; }
873 echo "$ac_t""yes" 1>&6
874 if test "$program_transform_name" = s
,x
,x
,; then
875 program_transform_name
=
877 # Double any \ or $. echo might interpret backslashes.
878 cat <<\EOF_SED
> conftestsed
879 s
,\\,\\\\,g
; s
,\$
,$$
,g
881 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
884 test "$program_prefix" != NONE
&&
885 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
886 # Use a double $ so make ignores it.
887 test "$program_suffix" != NONE
&&
888 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
890 # sed with no file args requires a program.
891 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
893 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
894 echo "configure:895: checking whether ${MAKE-make} sets \${MAKE}" >&5
895 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
896 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
897 echo $ac_n "(cached) $ac_c" 1>&6
899 cat > conftestmake
<<\EOF
901 @
echo 'ac_maketemp="${MAKE}"'
903 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
904 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
905 if test -n "$ac_maketemp"; then
906 eval ac_cv_prog_make_
${ac_make}_set
=yes
908 eval ac_cv_prog_make_
${ac_make}_set
=no
912 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
913 echo "$ac_t""yes" 1>&6
916 echo "$ac_t""no" 1>&6
917 SET_MAKE
="MAKE=${MAKE-make}"
923 VERSION
=${BFD_VERSION}
925 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
926 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
928 cat >> confdefs.h
<<EOF
929 #define PACKAGE "$PACKAGE"
932 cat >> confdefs.h
<<EOF
933 #define VERSION "$VERSION"
938 missing_dir
=`cd $ac_aux_dir && pwd`
939 echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
940 echo "configure:941: checking for working aclocal-${am__api_version}" >&5
941 # Run test in a subshell; some versions of sh will print an error if
942 # an executable is not found, even if stderr is redirected.
943 # Redirect stdin to placate older versions of autoconf. Sigh.
944 if (aclocal-
${am__api_version} --version) < /dev
/null
> /dev
/null
2>&1; then
945 ACLOCAL
=aclocal-
${am__api_version}
946 echo "$ac_t""found" 1>&6
948 ACLOCAL
="$missing_dir/missing aclocal-${am__api_version}"
949 echo "$ac_t""missing" 1>&6
952 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
953 echo "configure:954: checking for working autoconf" >&5
954 # Run test in a subshell; some versions of sh will print an error if
955 # an executable is not found, even if stderr is redirected.
956 # Redirect stdin to placate older versions of autoconf. Sigh.
957 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
959 echo "$ac_t""found" 1>&6
961 AUTOCONF
="$missing_dir/missing autoconf"
962 echo "$ac_t""missing" 1>&6
965 echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
966 echo "configure:967: checking for working automake-${am__api_version}" >&5
967 # Run test in a subshell; some versions of sh will print an error if
968 # an executable is not found, even if stderr is redirected.
969 # Redirect stdin to placate older versions of autoconf. Sigh.
970 if (automake-
${am__api_version} --version) < /dev
/null
> /dev
/null
2>&1; then
971 AUTOMAKE
=automake-
${am__api_version}
972 echo "$ac_t""found" 1>&6
974 AUTOMAKE
="$missing_dir/missing automake-${am__api_version}"
975 echo "$ac_t""missing" 1>&6
978 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
979 echo "configure:980: checking for working autoheader" >&5
980 # Run test in a subshell; some versions of sh will print an error if
981 # an executable is not found, even if stderr is redirected.
982 # Redirect stdin to placate older versions of autoconf. Sigh.
983 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
984 AUTOHEADER
=autoheader
985 echo "$ac_t""found" 1>&6
987 AUTOHEADER
="$missing_dir/missing autoheader"
988 echo "$ac_t""missing" 1>&6
991 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
992 echo "configure:993: checking for working makeinfo" >&5
993 # Run test in a subshell; some versions of sh will print an error if
994 # an executable is not found, even if stderr is redirected.
995 # Redirect stdin to placate older versions of autoconf. Sigh.
996 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
998 echo "$ac_t""found" 1>&6
1000 MAKEINFO
="$missing_dir/missing makeinfo"
1001 echo "$ac_t""missing" 1>&6
1006 # Check whether --enable-shared or --disable-shared was given.
1007 if test "${enable_shared+set}" = set; then
1008 enableval
="$enable_shared"
1009 p
=${PACKAGE-default}
1011 yes) enable_shared
=yes ;;
1012 no
) enable_shared
=no
;;
1015 # Look at the argument we got. We use all the common list separators.
1016 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1017 for pkg
in $enableval; do
1018 if test "X$pkg" = "X$p"; then
1029 # Check whether --enable-static or --disable-static was given.
1030 if test "${enable_static+set}" = set; then
1031 enableval
="$enable_static"
1032 p
=${PACKAGE-default}
1034 yes) enable_static
=yes ;;
1035 no
) enable_static
=no
;;
1038 # Look at the argument we got. We use all the common list separators.
1039 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1040 for pkg
in $enableval; do
1041 if test "X$pkg" = "X$p"; then
1052 # Check whether --enable-fast-install or --disable-fast-install was given.
1053 if test "${enable_fast_install+set}" = set; then
1054 enableval
="$enable_fast_install"
1055 p
=${PACKAGE-default}
1057 yes) enable_fast_install
=yes ;;
1058 no
) enable_fast_install
=no
;;
1060 enable_fast_install
=no
1061 # Look at the argument we got. We use all the common list separators.
1062 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1063 for pkg
in $enableval; do
1064 if test "X$pkg" = "X$p"; then
1065 enable_fast_install
=yes
1072 enable_fast_install
=yes
1075 # Extract the first word of "gcc", so it can be a program name with args.
1076 set dummy gcc
; ac_word
=$2
1077 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1078 echo "configure:1079: checking for $ac_word" >&5
1079 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1080 echo $ac_n "(cached) $ac_c" 1>&6
1082 if test -n "$CC"; then
1083 ac_cv_prog_CC
="$CC" # Let the user override the test.
1085 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1087 for ac_dir
in $ac_dummy; do
1088 test -z "$ac_dir" && ac_dir
=.
1089 if test -f $ac_dir/$ac_word; then
1098 if test -n "$CC"; then
1099 echo "$ac_t""$CC" 1>&6
1101 echo "$ac_t""no" 1>&6
1104 if test -z "$CC"; then
1105 # Extract the first word of "cc", so it can be a program name with args.
1106 set dummy cc
; ac_word
=$2
1107 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1108 echo "configure:1109: checking for $ac_word" >&5
1109 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1110 echo $ac_n "(cached) $ac_c" 1>&6
1112 if test -n "$CC"; then
1113 ac_cv_prog_CC
="$CC" # Let the user override the test.
1115 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1118 for ac_dir
in $ac_dummy; do
1119 test -z "$ac_dir" && ac_dir
=.
1120 if test -f $ac_dir/$ac_word; then
1121 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1122 ac_prog_rejected
=yes
1130 if test $ac_prog_rejected = yes; then
1131 # We found a bogon in the path, so make sure we never use it.
1132 set dummy
$ac_cv_prog_CC
1134 if test $# -gt 0; then
1135 # We chose a different compiler from the bogus one.
1136 # However, it has the same basename, so the bogon will be chosen
1137 # first if we set CC to just the basename; use the full file name.
1139 set dummy
"$ac_dir/$ac_word" "$@"
1147 if test -n "$CC"; then
1148 echo "$ac_t""$CC" 1>&6
1150 echo "$ac_t""no" 1>&6
1153 if test -z "$CC"; then
1154 case "`uname -s`" in
1156 # Extract the first word of "cl", so it can be a program name with args.
1157 set dummy cl
; ac_word
=$2
1158 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1159 echo "configure:1160: checking for $ac_word" >&5
1160 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1161 echo $ac_n "(cached) $ac_c" 1>&6
1163 if test -n "$CC"; then
1164 ac_cv_prog_CC
="$CC" # Let the user override the test.
1166 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1168 for ac_dir
in $ac_dummy; do
1169 test -z "$ac_dir" && ac_dir
=.
1170 if test -f $ac_dir/$ac_word; then
1179 if test -n "$CC"; then
1180 echo "$ac_t""$CC" 1>&6
1182 echo "$ac_t""no" 1>&6
1187 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1190 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1191 echo "configure:1192: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1194 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1195 ac_cpp
='$CPP $CPPFLAGS'
1196 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1197 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1198 cross_compiling
=$ac_cv_prog_cc_cross
1200 cat > conftest.
$ac_ext << EOF
1202 #line 1203 "configure"
1203 #include "confdefs.h"
1207 if { (eval echo configure
:1208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1208 ac_cv_prog_cc_works
=yes
1209 # If we can't run a trivial program, we are probably using a cross compiler.
1210 if (.
/conftest
; exit) 2>/dev
/null
; then
1211 ac_cv_prog_cc_cross
=no
1213 ac_cv_prog_cc_cross
=yes
1216 echo "configure: failed program was:" >&5
1217 cat conftest.
$ac_ext >&5
1218 ac_cv_prog_cc_works
=no
1222 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1223 ac_cpp
='$CPP $CPPFLAGS'
1224 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1225 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1226 cross_compiling
=$ac_cv_prog_cc_cross
1228 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1229 if test $ac_cv_prog_cc_works = no
; then
1230 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1232 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1233 echo "configure:1234: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1234 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1235 cross_compiling
=$ac_cv_prog_cc_cross
1237 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1238 echo "configure:1239: checking whether we are using GNU C" >&5
1239 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1240 echo $ac_n "(cached) $ac_c" 1>&6
1242 cat > conftest.c
<<EOF
1247 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1248: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1254 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1256 if test $ac_cv_prog_gcc = yes; then
1262 ac_test_CFLAGS
="${CFLAGS+set}"
1263 ac_save_CFLAGS
="$CFLAGS"
1265 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1266 echo "configure:1267: checking whether ${CC-cc} accepts -g" >&5
1267 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1268 echo $ac_n "(cached) $ac_c" 1>&6
1270 echo 'void f(){}' > conftest.c
1271 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1280 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1281 if test "$ac_test_CFLAGS" = set; then
1282 CFLAGS
="$ac_save_CFLAGS"
1283 elif test $ac_cv_prog_cc_g = yes; then
1284 if test "$GCC" = yes; then
1290 if test "$GCC" = yes; then
1297 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1298 if test "${with_gnu_ld+set}" = set; then
1299 withval
="$with_gnu_ld"
1300 test "$withval" = no || with_gnu_ld
=yes
1306 if test "$GCC" = yes; then
1307 # Check if gcc -print-prog-name=ld gives a path.
1308 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1309 echo "configure:1310: checking for ld used by GCC" >&5
1312 # gcc leaves a trailing carriage return which upsets mingw
1313 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1315 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
1318 # Accept absolute paths.
1319 [\\/]* |
[A-Za-z
]:[\\/]*)
1320 re_direlt
='/[^/][^/]*/\.\./'
1321 # Canonicalize the path of ld
1322 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1323 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1324 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1326 test -z "$LD" && LD
="$ac_prog"
1329 # If it fails, then pretend we aren't using GCC.
1333 # If it is relative, then search for the first ld in PATH.
1337 elif test "$with_gnu_ld" = yes; then
1338 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1339 echo "configure:1340: checking for GNU ld" >&5
1341 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1342 echo "configure:1343: checking for non-GNU ld" >&5
1344 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1345 echo $ac_n "(cached) $ac_c" 1>&6
1347 if test -z "$LD"; then
1348 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1349 for ac_dir
in $PATH; do
1350 test -z "$ac_dir" && ac_dir
=.
1351 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1352 lt_cv_path_LD
="$ac_dir/$ac_prog"
1353 # Check to see if the program is GNU ld. I'd rather use --version,
1354 # but apparently some GNU ld's only accept -v.
1355 # Break only if it was the GNU/non-GNU ld that we prefer.
1356 if "$lt_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1357 test "$with_gnu_ld" != no
&& break
1359 test "$with_gnu_ld" != yes && break
1365 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
1370 if test -n "$LD"; then
1371 echo "$ac_t""$LD" 1>&6
1373 echo "$ac_t""no" 1>&6
1375 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1376 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1377 echo "configure:1378: checking if the linker ($LD) is GNU ld" >&5
1378 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1379 echo $ac_n "(cached) $ac_c" 1>&6
1381 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1382 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1383 lt_cv_prog_gnu_ld
=yes
1385 lt_cv_prog_gnu_ld
=no
1389 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1390 with_gnu_ld
=$lt_cv_prog_gnu_ld
1393 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1394 echo "configure:1395: checking for $LD option to reload object files" >&5
1395 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1396 echo $ac_n "(cached) $ac_c" 1>&6
1398 lt_cv_ld_reload_flag
='-r'
1401 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1402 reload_flag
=$lt_cv_ld_reload_flag
1403 test -n "$reload_flag" && reload_flag
=" $reload_flag"
1405 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1406 echo "configure:1407: checking for BSD-compatible nm" >&5
1407 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1408 echo $ac_n "(cached) $ac_c" 1>&6
1410 if test -n "$NM"; then
1411 # Let the user override the test.
1414 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1415 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1416 test -z "$ac_dir" && ac_dir
=.
1417 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
1418 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
1419 # Check to see if the nm accepts a BSD-compat flag.
1420 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1421 # nm: unknown option "B" ignored
1422 # Tru64's nm complains that /dev/null is an invalid object file
1423 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep '(/dev/null|Invalid file or object type)' >/dev
/null
; then
1424 lt_cv_path_NM
="$tmp_nm -B"
1426 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1427 lt_cv_path_NM
="$tmp_nm -p"
1430 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1431 continue # so that we can try to find one that supports BSD flags
1436 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
1441 echo "$ac_t""$NM" 1>&6
1443 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1444 echo "configure:1445: checking whether ln -s works" >&5
1445 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1446 echo $ac_n "(cached) $ac_c" 1>&6
1449 if ln -s X conftestdata
2>/dev
/null
1452 ac_cv_prog_LN_S
="ln -s"
1457 LN_S
="$ac_cv_prog_LN_S"
1458 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1459 echo "$ac_t""yes" 1>&6
1461 echo "$ac_t""no" 1>&6
1464 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1465 echo "configure:1466: checking how to recognise dependant libraries" >&5
1466 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1467 echo $ac_n "(cached) $ac_c" 1>&6
1469 lt_cv_file_magic_cmd
='$MAGIC_CMD'
1470 lt_cv_file_magic_test_file
=
1471 lt_cv_deplibs_check_method
='unknown'
1472 # Need to set the preceding variable on all platforms that support
1473 # interlibrary dependencies.
1474 # 'none' -- dependencies not supported.
1475 # `unknown' -- same as none, but documents that we really don't know.
1476 # 'pass_all' -- all dependencies passed with no checks.
1477 # 'test_compile' -- check by making test program.
1478 # 'file_magic [regex]' -- check by looking for files in library path
1479 # which responds to the $file_magic_cmd with a given egrep regex.
1480 # If you have `file' or equivalent on your system and you're not sure
1481 # whether `pass_all' will *always* work, you probably want this one.
1485 lt_cv_deplibs_check_method
=pass_all
1489 lt_cv_deplibs_check_method
=pass_all
1493 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1494 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1495 lt_cv_file_magic_test_file
=/shlib
/libc.so
1498 cygwin
* | mingw
* |pw32
*)
1499 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
1500 lt_cv_file_magic_cmd
='$OBJDUMP -f'
1503 darwin
* | rhapsody
*)
1504 lt_cv_deplibs_check_method
='file_magic Mach-O dynamically linked shared library'
1505 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1507 rhapsody
* | darwin1.012
)
1508 lt_cv_file_magic_test_file
='/System/Library/Frameworks/System.framework/System'
1511 lt_cv_file_magic_test_file
='/usr/lib/libSystem.dylib'
1516 freebsd
* | kfreebsd
*-gnu)
1517 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1520 # Not sure whether the presence of OpenBSD here was a mistake.
1521 # Let's accept both of them until this is cleared up.
1522 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1523 lt_cv_file_magic_cmd
=/usr
/bin
/file
1524 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
1528 lt_cv_deplibs_check_method
=pass_all
1533 lt_cv_deplibs_check_method
=pass_all
1539 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1540 lt_cv_file_magic_cmd
=/usr
/bin
/file
1541 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
1544 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1545 lt_cv_file_magic_cmd
=/usr
/bin
/file
1546 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
1554 # this will be overridden with pass_all, but let us keep it just in case
1555 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1559 *-32|
*"-32 ") libmagic
=32-bit;;
1560 *-n32|
*"-n32 ") libmagic
=N32
;;
1561 *-64|
*"-64 ") libmagic
=64-bit;;
1562 *) libmagic
=never-match
;;
1564 # this will be overridden with pass_all, but let us keep it just in case
1565 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1568 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
1569 lt_cv_deplibs_check_method
=pass_all
1572 # This must be Linux ELF.
1575 alpha
* | mips
* | hppa
* | i
*86 | powerpc
* | sparc
* | ia64
* )
1576 lt_cv_deplibs_check_method
=pass_all
;;
1578 # glibc up to 2.1.1 does not perform some relocations on ARM
1579 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1581 lt_cv_file_magic_test_file
=`echo /lib/libc.so* /lib/libc-*.so`
1584 netbsd
* | knetbsd
*-gnu)
1585 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1586 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1588 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so$'
1593 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1594 lt_cv_file_magic_cmd
=/usr
/bin
/file
1595 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
1598 osf3
* | osf4
* | osf5
*)
1599 # this will be overridden with pass_all, but let us keep it just in case
1600 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
1601 lt_cv_file_magic_test_file
=/shlib
/libc.so
1602 lt_cv_deplibs_check_method
=pass_all
1606 lt_cv_deplibs_check_method
=pass_all
1610 lt_cv_deplibs_check_method
=pass_all
1611 lt_cv_file_magic_test_file
=/lib
/libc.so
1614 sysv5uw
[78]* | sysv4
*uw2
*)
1615 lt_cv_deplibs_check_method
=pass_all
1618 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
1619 case $host_vendor in
1621 lt_cv_deplibs_check_method
=pass_all
1624 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]'
1625 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
1633 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1634 file_magic_cmd
=$lt_cv_file_magic_cmd
1635 deplibs_check_method
=$lt_cv_deplibs_check_method
1637 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1638 echo "configure:1639: checking for object suffix" >&5
1639 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1640 echo $ac_n "(cached) $ac_c" 1>&6
1643 echo 'int i = 1;' > conftest.
$ac_ext
1644 if { (eval echo configure
:1645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1645 for ac_file
in conftest.
*; do
1648 *) ac_cv_objext
=`echo $ac_file | sed -e s/conftest.//` ;;
1652 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1657 echo "$ac_t""$ac_cv_objext" 1>&6
1658 OBJEXT
=$ac_cv_objext
1659 ac_objext
=$ac_cv_objext
1663 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1664 echo "configure:1665: checking for executable suffix" >&5
1665 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1666 echo $ac_n "(cached) $ac_c" 1>&6
1668 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1672 echo 'int main () { return 0; }' > conftest.
$ac_ext
1674 if { (eval echo configure
:1675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1675 for file in conftest.
*; do
1677 *.c |
*.o |
*.obj
) ;;
1678 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1682 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1685 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1690 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1691 echo "$ac_t""${ac_cv_exeext}" 1>&6
1694 if test $host != $build; then
1695 ac_tool_prefix
=${host_alias}-
1700 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1702 # Only perform the check for file, if the check method requires it
1703 case $deplibs_check_method in
1705 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1706 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1707 echo "configure:1708: checking for ${ac_tool_prefix}file" >&5
1708 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1709 echo $ac_n "(cached) $ac_c" 1>&6
1713 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
1716 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
1719 ac_save_MAGIC_CMD
="$MAGIC_CMD"
1720 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1721 ac_dummy
="/usr/bin:$PATH"
1722 for ac_dir
in $ac_dummy; do
1723 test -z "$ac_dir" && ac_dir
=.
1724 if test -f $ac_dir/${ac_tool_prefix}file; then
1725 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
1726 if test -n "$file_magic_test_file"; then
1727 case $deplibs_check_method in
1729 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1730 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1731 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1732 egrep "$file_magic_regex" > /dev
/null
; then
1737 *** Warning: the command libtool uses to detect shared libraries,
1738 *** $file_magic_cmd, produces output that libtool cannot recognize.
1739 *** The result is that libtool may fail to recognize shared libraries
1740 *** as such. This will affect the creation of libtool libraries that
1741 *** depend on shared libraries, but programs linked with such libtool
1742 *** libraries will work regardless of this problem. Nevertheless, you
1743 *** may want to report the problem to your system manager and/or to
1744 *** bug-libtool@gnu.org
1754 MAGIC_CMD
="$ac_save_MAGIC_CMD"
1759 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1760 if test -n "$MAGIC_CMD"; then
1761 echo "$ac_t""$MAGIC_CMD" 1>&6
1763 echo "$ac_t""no" 1>&6
1766 if test -z "$lt_cv_path_MAGIC_CMD"; then
1767 if test -n "$ac_tool_prefix"; then
1768 echo $ac_n "checking for file""... $ac_c" 1>&6
1769 echo "configure:1770: checking for file" >&5
1770 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1771 echo $ac_n "(cached) $ac_c" 1>&6
1775 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
1778 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
1781 ac_save_MAGIC_CMD
="$MAGIC_CMD"
1782 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1783 ac_dummy
="/usr/bin:$PATH"
1784 for ac_dir
in $ac_dummy; do
1785 test -z "$ac_dir" && ac_dir
=.
1786 if test -f $ac_dir/file; then
1787 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
1788 if test -n "$file_magic_test_file"; then
1789 case $deplibs_check_method in
1791 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1792 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1793 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1794 egrep "$file_magic_regex" > /dev
/null
; then
1799 *** Warning: the command libtool uses to detect shared libraries,
1800 *** $file_magic_cmd, produces output that libtool cannot recognize.
1801 *** The result is that libtool may fail to recognize shared libraries
1802 *** as such. This will affect the creation of libtool libraries that
1803 *** depend on shared libraries, but programs linked with such libtool
1804 *** libraries will work regardless of this problem. Nevertheless, you
1805 *** may want to report the problem to your system manager and/or to
1806 *** bug-libtool@gnu.org
1816 MAGIC_CMD
="$ac_save_MAGIC_CMD"
1821 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1822 if test -n "$MAGIC_CMD"; then
1823 echo "$ac_t""$MAGIC_CMD" 1>&6
1825 echo "$ac_t""no" 1>&6
1837 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1838 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1839 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1840 echo "configure:1841: checking for $ac_word" >&5
1841 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1842 echo $ac_n "(cached) $ac_c" 1>&6
1844 if test -n "$RANLIB"; then
1845 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1847 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1849 for ac_dir
in $ac_dummy; do
1850 test -z "$ac_dir" && ac_dir
=.
1851 if test -f $ac_dir/$ac_word; then
1852 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1859 RANLIB
="$ac_cv_prog_RANLIB"
1860 if test -n "$RANLIB"; then
1861 echo "$ac_t""$RANLIB" 1>&6
1863 echo "$ac_t""no" 1>&6
1867 if test -z "$ac_cv_prog_RANLIB"; then
1868 if test -n "$ac_tool_prefix"; then
1869 # Extract the first word of "ranlib", so it can be a program name with args.
1870 set dummy ranlib
; ac_word
=$2
1871 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1872 echo "configure:1873: checking for $ac_word" >&5
1873 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1874 echo $ac_n "(cached) $ac_c" 1>&6
1876 if test -n "$RANLIB"; then
1877 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1879 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1881 for ac_dir
in $ac_dummy; do
1882 test -z "$ac_dir" && ac_dir
=.
1883 if test -f $ac_dir/$ac_word; then
1884 ac_cv_prog_RANLIB
="ranlib"
1889 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1892 RANLIB
="$ac_cv_prog_RANLIB"
1893 if test -n "$RANLIB"; then
1894 echo "$ac_t""$RANLIB" 1>&6
1896 echo "$ac_t""no" 1>&6
1904 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1905 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1906 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1907 echo "configure:1908: checking for $ac_word" >&5
1908 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1909 echo $ac_n "(cached) $ac_c" 1>&6
1911 if test -n "$STRIP"; then
1912 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1914 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1916 for ac_dir
in $ac_dummy; do
1917 test -z "$ac_dir" && ac_dir
=.
1918 if test -f $ac_dir/$ac_word; then
1919 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
1926 STRIP
="$ac_cv_prog_STRIP"
1927 if test -n "$STRIP"; then
1928 echo "$ac_t""$STRIP" 1>&6
1930 echo "$ac_t""no" 1>&6
1934 if test -z "$ac_cv_prog_STRIP"; then
1935 if test -n "$ac_tool_prefix"; then
1936 # Extract the first word of "strip", so it can be a program name with args.
1937 set dummy strip
; ac_word
=$2
1938 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1939 echo "configure:1940: checking for $ac_word" >&5
1940 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1941 echo $ac_n "(cached) $ac_c" 1>&6
1943 if test -n "$STRIP"; then
1944 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1946 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1948 for ac_dir
in $ac_dummy; do
1949 test -z "$ac_dir" && ac_dir
=.
1950 if test -f $ac_dir/$ac_word; then
1951 ac_cv_prog_STRIP
="strip"
1956 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
=":"
1959 STRIP
="$ac_cv_prog_STRIP"
1960 if test -n "$STRIP"; then
1961 echo "$ac_t""$STRIP" 1>&6
1963 echo "$ac_t""no" 1>&6
1972 # Check for any special flags to pass to ltconfig.
1973 libtool_flags
="--cache-file=$cache_file"
1974 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1975 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1976 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1977 test "$GCC" = yes && libtool_flags
="$libtool_flags --with-gcc"
1978 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1981 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1982 if test "${enable_libtool_lock+set}" = set; then
1983 enableval
="$enable_libtool_lock"
1987 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
1988 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
1990 # Check whether --with-pic or --without-pic was given.
1991 if test "${with_pic+set}" = set; then
1998 test x
"$pic_mode" = xyes
&& libtool_flags
="$libtool_flags --prefer-pic"
1999 test x
"$pic_mode" = xno
&& libtool_flags
="$libtool_flags --prefer-non-pic"
2001 # Some flags need to be propagated to the compiler or linker for good
2005 # Find out which ABI we are using.
2006 echo '#line 2007 "configure"' > conftest.
$ac_ext
2007 if { (eval echo configure
:2008: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2008 if test "$lt_cv_prog_gnu_ld" = yes; then
2009 case `/usr/bin/file conftest.$ac_objext` in
2011 LD
="${LD-ld} -melf32bsmip"
2014 LD
="${LD-ld} -melf32bmipn32"
2017 LD
="${LD-ld} -melf64bmip"
2021 case `/usr/bin/file conftest.$ac_objext` in
2038 # Find out which ABI we are using.
2039 echo 'int i;' > conftest.
$ac_ext
2040 if { (eval echo configure
:2041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2041 case "`/usr/bin/file conftest.o`" in
2054 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2055 SAVE_CFLAGS
="$CFLAGS"
2056 CFLAGS
="$CFLAGS -belf"
2057 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2058 echo "configure:2059: checking whether the C compiler needs -belf" >&5
2059 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2060 echo $ac_n "(cached) $ac_c" 1>&6
2064 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2065 ac_cpp
='$CPP $CPPFLAGS'
2066 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2067 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2068 cross_compiling
=$ac_cv_prog_cc_cross
2070 cat > conftest.
$ac_ext <<EOF
2071 #line 2072 "configure"
2072 #include "confdefs.h"
2078 if { (eval echo configure
:2079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2080 lt_cv_cc_needs_belf
=yes
2082 echo "configure: failed program was:" >&5
2083 cat conftest.
$ac_ext >&5
2085 lt_cv_cc_needs_belf
=no
2089 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2090 ac_cpp
='$CPP $CPPFLAGS'
2091 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2092 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2093 cross_compiling
=$ac_cv_prog_cc_cross
2097 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2098 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
2099 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2100 CFLAGS
="$SAVE_CFLAGS"
2108 # Save cache, so that ltconfig can load it
2109 cat > confcache
<<\EOF
2110 # This file is a shell script that caches the results of configure
2111 # tests run on this system so they can be shared between configure
2112 # scripts and configure runs. It is not useful on other systems.
2113 # If it contains results you don't want to keep, you may remove or edit it.
2115 # By default, configure uses ./config.cache as the cache file,
2116 # creating it if it does not exist already. You can give configure
2117 # the --cache-file=FILE option to use a different cache file; that is
2118 # what configure does when it calls configure scripts in
2119 # subdirectories, so they share the cache.
2120 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2121 # config.status only pays attention to the cache file if you give it the
2122 # --recheck option to rerun configure.
2125 # The following way of writing the cache mishandles newlines in values,
2126 # but we know of no workaround that is simple, portable, and efficient.
2127 # So, don't put newlines in cache variables' values.
2128 # Ultrix sh set writes to stderr and can't be redirected directly,
2129 # and sets the high bit in the cache file unless we assign to the vars.
2131 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2133 # `set' does not quote correctly, so add quotes (double-quote substitution
2134 # turns \\\\ into \\, and sed turns \\ into \).
2136 -e "s/'/'\\\\''/g" \
2137 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2140 # `set' quotes correctly as required by POSIX, so do not add quotes.
2141 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2144 if cmp -s $cache_file confcache
; then
2147 if test -w $cache_file; then
2148 echo "updating cache $cache_file"
2149 cat confcache
> $cache_file
2151 echo "not updating unwritable cache $cache_file"
2157 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2158 AR
="$AR" LTCC
="$CC" CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
2159 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
2160 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
2161 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
2162 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
2163 deplibs_check_method
="$deplibs_check_method" file_magic_cmd
="$file_magic_cmd" \
2164 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
2165 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh
$host \
2166 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2168 # Reload cache, that may have been modified by ltconfig
2169 if test -r "$cache_file"; then
2170 echo "loading cache $cache_file"
2173 echo "creating cache $cache_file"
2178 # This can be used to rebuild libtool when needed
2179 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2181 # Always use our own libtool.
2182 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
2184 # Redirect the config.log output again, so that the ltconfig log is not
2185 # clobbered by the next message.
2186 exec 5>>.
/config.log
2194 # Check whether --with-lib-path or --without-lib-path was given.
2195 if test "${with_lib_path+set}" = set; then
2196 withval
="$with_lib_path"
2200 # Check whether --enable-targets or --disable-targets was given.
2201 if test "${enable_targets+set}" = set; then
2202 enableval
="$enable_targets"
2203 case "${enableval}" in
2204 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2206 no
) enable_targets
= ;;
2207 *) enable_targets
=$enableval ;;
2210 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
2211 if test "${enable_64_bit_bfd+set}" = set; then
2212 enableval
="$enable_64_bit_bfd"
2213 case "${enableval}" in
2216 *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
2222 # Check whether --with-sysroot or --without-sysroot was given.
2223 if test "${with_sysroot+set}" = set; then
2224 withval
="$with_sysroot"
2226 case ${with_sysroot} in
2227 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_alias}/sys-root' ;;
2228 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
2231 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
2234 if test "x$exec_prefix" = xNONE
; then
2235 if test "x$prefix" = xNONE
; then
2236 test_prefix
=/usr
/local
2241 test_prefix
=$exec_prefix
2243 case ${TARGET_SYSTEM_ROOT} in
2244 "${test_prefix}"|
"${test_prefix}/"*|\
2245 '${exec_prefix}'|
'${exec_prefix}/'*)
2246 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
2247 TARGET_SYSTEM_ROOT_DEFINE
="$t"
2255 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"\"'
2263 WARN_CFLAGS
="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
2265 # Check whether --enable-werror or --disable-werror was given.
2266 if test "${enable_werror+set}" = set; then
2267 enableval
="$enable_werror"
2268 case "${enableval}" in
2269 yes | y
) ERROR_ON_WARNING
="yes" ;;
2270 no | n
) ERROR_ON_WARNING
="no" ;;
2271 *) { echo "configure: error: bad value ${enableval} for --enable-werror" 1>&2; exit 1; } ;;
2276 # Enable -Werror by default when using gcc
2277 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
2278 ERROR_ON_WARNING
=yes
2282 if test "${ERROR_ON_WARNING}" = yes ; then
2283 WARN_CFLAGS
="$WARN_CFLAGS -Werror"
2284 NO_WERROR
="-Wno-error"
2287 # Check whether --enable-build-warnings or --disable-build-warnings was given.
2288 if test "${enable_build_warnings+set}" = set; then
2289 enableval
="$enable_build_warnings"
2290 case "${enableval}" in
2292 no
) WARN_CFLAGS
="-w";;
2293 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
2294 WARN_CFLAGS
="${WARN_CFLAGS} ${t}";;
2295 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
2296 WARN_CFLAGS
="${t} ${WARN_CFLAGS}";;
2297 *) WARN_CFLAGS
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2302 if test x
"$silent" != x
"yes" && test x
"$WARN_CFLAGS" != x
""; then
2303 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
2313 if test -z "$target" ; then
2314 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
2316 if test -z "$host" ; then
2317 { echo "configure: error: Unrecognized host system type; please check config.sub." 1>&2; exit 1; }
2320 # host-specific stuff:
2322 # Extract the first word of "gcc", so it can be a program name with args.
2323 set dummy gcc
; ac_word
=$2
2324 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2325 echo "configure:2326: checking for $ac_word" >&5
2326 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2327 echo $ac_n "(cached) $ac_c" 1>&6
2329 if test -n "$CC"; then
2330 ac_cv_prog_CC
="$CC" # Let the user override the test.
2332 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2334 for ac_dir
in $ac_dummy; do
2335 test -z "$ac_dir" && ac_dir
=.
2336 if test -f $ac_dir/$ac_word; then
2345 if test -n "$CC"; then
2346 echo "$ac_t""$CC" 1>&6
2348 echo "$ac_t""no" 1>&6
2351 if test -z "$CC"; then
2352 # Extract the first word of "cc", so it can be a program name with args.
2353 set dummy cc
; ac_word
=$2
2354 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2355 echo "configure:2356: checking for $ac_word" >&5
2356 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2357 echo $ac_n "(cached) $ac_c" 1>&6
2359 if test -n "$CC"; then
2360 ac_cv_prog_CC
="$CC" # Let the user override the test.
2362 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2365 for ac_dir
in $ac_dummy; do
2366 test -z "$ac_dir" && ac_dir
=.
2367 if test -f $ac_dir/$ac_word; then
2368 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2369 ac_prog_rejected
=yes
2377 if test $ac_prog_rejected = yes; then
2378 # We found a bogon in the path, so make sure we never use it.
2379 set dummy
$ac_cv_prog_CC
2381 if test $# -gt 0; then
2382 # We chose a different compiler from the bogus one.
2383 # However, it has the same basename, so the bogon will be chosen
2384 # first if we set CC to just the basename; use the full file name.
2386 set dummy
"$ac_dir/$ac_word" "$@"
2394 if test -n "$CC"; then
2395 echo "$ac_t""$CC" 1>&6
2397 echo "$ac_t""no" 1>&6
2400 if test -z "$CC"; then
2401 case "`uname -s`" in
2403 # Extract the first word of "cl", so it can be a program name with args.
2404 set dummy cl
; ac_word
=$2
2405 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2406 echo "configure:2407: checking for $ac_word" >&5
2407 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2408 echo $ac_n "(cached) $ac_c" 1>&6
2410 if test -n "$CC"; then
2411 ac_cv_prog_CC
="$CC" # Let the user override the test.
2413 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2415 for ac_dir
in $ac_dummy; do
2416 test -z "$ac_dir" && ac_dir
=.
2417 if test -f $ac_dir/$ac_word; then
2426 if test -n "$CC"; then
2427 echo "$ac_t""$CC" 1>&6
2429 echo "$ac_t""no" 1>&6
2434 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2437 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2438 echo "configure:2439: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2441 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2442 ac_cpp
='$CPP $CPPFLAGS'
2443 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2444 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2445 cross_compiling
=$ac_cv_prog_cc_cross
2447 cat > conftest.
$ac_ext << EOF
2449 #line 2450 "configure"
2450 #include "confdefs.h"
2454 if { (eval echo configure
:2455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2455 ac_cv_prog_cc_works
=yes
2456 # If we can't run a trivial program, we are probably using a cross compiler.
2457 if (.
/conftest
; exit) 2>/dev
/null
; then
2458 ac_cv_prog_cc_cross
=no
2460 ac_cv_prog_cc_cross
=yes
2463 echo "configure: failed program was:" >&5
2464 cat conftest.
$ac_ext >&5
2465 ac_cv_prog_cc_works
=no
2469 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2470 ac_cpp
='$CPP $CPPFLAGS'
2471 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2472 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2473 cross_compiling
=$ac_cv_prog_cc_cross
2475 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2476 if test $ac_cv_prog_cc_works = no
; then
2477 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2479 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2480 echo "configure:2481: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2481 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2482 cross_compiling
=$ac_cv_prog_cc_cross
2484 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2485 echo "configure:2486: checking whether we are using GNU C" >&5
2486 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2487 echo $ac_n "(cached) $ac_c" 1>&6
2489 cat > conftest.c
<<EOF
2494 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2501 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2503 if test $ac_cv_prog_gcc = yes; then
2509 ac_test_CFLAGS
="${CFLAGS+set}"
2510 ac_save_CFLAGS
="$CFLAGS"
2512 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2513 echo "configure:2514: checking whether ${CC-cc} accepts -g" >&5
2514 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2515 echo $ac_n "(cached) $ac_c" 1>&6
2517 echo 'void f(){}' > conftest.c
2518 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2527 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2528 if test "$ac_test_CFLAGS" = set; then
2529 CFLAGS
="$ac_save_CFLAGS"
2530 elif test $ac_cv_prog_cc_g = yes; then
2531 if test "$GCC" = yes; then
2537 if test "$GCC" = yes; then
2544 # Find a good install program. We prefer a C program (faster),
2545 # so one script is as good as another. But avoid the broken or
2546 # incompatible versions:
2547 # SysV /etc/install, /usr/sbin/install
2548 # SunOS /usr/etc/install
2549 # IRIX /sbin/install
2551 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2552 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2553 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2554 # ./install, which can be erroneously created by make from ./install.sh.
2555 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2556 echo "configure:2557: checking for a BSD compatible install" >&5
2557 if test -z "$INSTALL"; then
2558 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2559 echo $ac_n "(cached) $ac_c" 1>&6
2561 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2562 for ac_dir
in $PATH; do
2563 # Account for people who put trailing slashes in PATH elements.
2565 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2567 # OSF1 and SCO ODT 3.0 have their own names for install.
2568 # Don't use installbsd from OSF since it installs stuff as root
2570 for ac_prog
in ginstall scoinst
install; do
2571 if test -f $ac_dir/$ac_prog; then
2572 if test $ac_prog = install &&
2573 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2574 # AIX install. It has an incompatible calling convention.
2577 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2588 if test "${ac_cv_path_install+set}" = set; then
2589 INSTALL
="$ac_cv_path_install"
2591 # As a last resort, use the slow shell script. We don't cache a
2592 # path for INSTALL within a source directory, because that will
2593 # break other packages using the cache if that directory is
2594 # removed, or if the path is relative.
2595 INSTALL
="$ac_install_sh"
2598 echo "$ac_t""$INSTALL" 1>&6
2600 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2601 # It thinks the first close brace ends the variable substitution.
2602 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2604 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2606 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2609 ALL_LINGUAS
="fr sv tr es da"
2610 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2611 echo "configure:2612: checking how to run the C preprocessor" >&5
2612 # On Suns, sometimes $CPP names a directory.
2613 if test -n "$CPP" && test -d "$CPP"; then
2616 if test -z "$CPP"; then
2617 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2618 echo $ac_n "(cached) $ac_c" 1>&6
2620 # This must be in double quotes, not single quotes, because CPP may get
2621 # substituted into the Makefile and "${CC-cc}" will confuse make.
2623 # On the NeXT, cc -E runs the code through the compiler's parser,
2624 # not just through cpp.
2625 cat > conftest.
$ac_ext <<EOF
2626 #line 2627 "configure"
2627 #include "confdefs.h"
2631 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2632 { (eval echo configure
:2633: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2633 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2634 if test -z "$ac_err"; then
2638 echo "configure: failed program was:" >&5
2639 cat conftest.
$ac_ext >&5
2641 CPP
="${CC-cc} -E -traditional-cpp"
2642 cat > conftest.
$ac_ext <<EOF
2643 #line 2644 "configure"
2644 #include "confdefs.h"
2648 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2649 { (eval echo configure
:2650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2650 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2651 if test -z "$ac_err"; then
2655 echo "configure: failed program was:" >&5
2656 cat conftest.
$ac_ext >&5
2658 CPP
="${CC-cc} -nologo -E"
2659 cat > conftest.
$ac_ext <<EOF
2660 #line 2661 "configure"
2661 #include "confdefs.h"
2665 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2666 { (eval echo configure
:2667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2667 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2668 if test -z "$ac_err"; then
2672 echo "configure: failed program was:" >&5
2673 cat conftest.
$ac_ext >&5
2682 ac_cv_prog_CPP
="$CPP"
2684 CPP
="$ac_cv_prog_CPP"
2686 ac_cv_prog_CPP
="$CPP"
2688 echo "$ac_t""$CPP" 1>&6
2690 # Extract the first word of "ranlib", so it can be a program name with args.
2691 set dummy ranlib
; ac_word
=$2
2692 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2693 echo "configure:2694: checking for $ac_word" >&5
2694 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2695 echo $ac_n "(cached) $ac_c" 1>&6
2697 if test -n "$RANLIB"; then
2698 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2700 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2702 for ac_dir
in $ac_dummy; do
2703 test -z "$ac_dir" && ac_dir
=.
2704 if test -f $ac_dir/$ac_word; then
2705 ac_cv_prog_RANLIB
="ranlib"
2710 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2713 RANLIB
="$ac_cv_prog_RANLIB"
2714 if test -n "$RANLIB"; then
2715 echo "$ac_t""$RANLIB" 1>&6
2717 echo "$ac_t""no" 1>&6
2720 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2721 echo "configure:2722: checking for ANSI C header files" >&5
2722 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2723 echo $ac_n "(cached) $ac_c" 1>&6
2725 cat > conftest.
$ac_ext <<EOF
2726 #line 2727 "configure"
2727 #include "confdefs.h"
2733 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2734 { (eval echo configure
:2735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2735 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2736 if test -z "$ac_err"; then
2738 ac_cv_header_stdc
=yes
2741 echo "configure: failed program was:" >&5
2742 cat conftest.
$ac_ext >&5
2744 ac_cv_header_stdc
=no
2748 if test $ac_cv_header_stdc = yes; then
2749 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2750 cat > conftest.
$ac_ext <<EOF
2751 #line 2752 "configure"
2752 #include "confdefs.h"
2755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2756 egrep "memchr" >/dev
/null
2>&1; then
2760 ac_cv_header_stdc
=no
2766 if test $ac_cv_header_stdc = yes; then
2767 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2768 cat > conftest.
$ac_ext <<EOF
2769 #line 2770 "configure"
2770 #include "confdefs.h"
2773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2774 egrep "free" >/dev
/null
2>&1; then
2778 ac_cv_header_stdc
=no
2784 if test $ac_cv_header_stdc = yes; then
2785 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2786 if test "$cross_compiling" = yes; then
2789 cat > conftest.
$ac_ext <<EOF
2790 #line 2791 "configure"
2791 #include "confdefs.h"
2793 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2794 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2795 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2796 int main () { int i; for (i = 0; i < 256; i++)
2797 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2801 if { (eval echo configure
:2802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2805 echo "configure: failed program was:" >&5
2806 cat conftest.
$ac_ext >&5
2808 ac_cv_header_stdc
=no
2816 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2817 if test $ac_cv_header_stdc = yes; then
2818 cat >> confdefs.h
<<\EOF
2819 #define STDC_HEADERS 1
2824 echo $ac_n "checking for working const""... $ac_c" 1>&6
2825 echo "configure:2826: checking for working const" >&5
2826 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2827 echo $ac_n "(cached) $ac_c" 1>&6
2829 cat > conftest.
$ac_ext <<EOF
2830 #line 2831 "configure"
2831 #include "confdefs.h"
2835 /* Ultrix mips cc rejects this. */
2836 typedef int charset[2]; const charset x;
2837 /* SunOS 4.1.1 cc rejects this. */
2838 char const *const *ccp;
2840 /* NEC SVR4.0.2 mips cc rejects this. */
2841 struct point {int x, y;};
2842 static struct point const zero = {0,0};
2843 /* AIX XL C 1.02.0.0 rejects this.
2844 It does not let you subtract one const X* pointer from another in an arm
2845 of an if-expression whose if-part is not a constant expression */
2846 const char *g = "string";
2847 ccp = &g + (g ? g-g : 0);
2848 /* HPUX 7.0 cc rejects these. */
2851 ccp = (char const *const *) p;
2852 { /* SCO 3.2v4 cc rejects this. */
2854 char const *s = 0 ? (char *) 0 : (char const *) 0;
2858 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2860 const int *foo = &x[0];
2863 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2864 typedef const int *iptr;
2868 { /* AIX XL C 1.02.0.0 rejects this saying
2869 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2870 struct s { int j; const int *ap[3]; };
2871 struct s *b; b->j = 5;
2873 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2879 if { (eval echo configure
:2880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2883 echo "configure: failed program was:" >&5
2884 cat conftest.
$ac_ext >&5
2891 echo "$ac_t""$ac_cv_c_const" 1>&6
2892 if test $ac_cv_c_const = no
; then
2893 cat >> confdefs.h
<<\EOF
2899 echo $ac_n "checking for inline""... $ac_c" 1>&6
2900 echo "configure:2901: checking for inline" >&5
2901 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2902 echo $ac_n "(cached) $ac_c" 1>&6
2905 for ac_kw
in inline __inline__ __inline
; do
2906 cat > conftest.
$ac_ext <<EOF
2907 #line 2908 "configure"
2908 #include "confdefs.h"
2914 if { (eval echo configure
:2915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2916 ac_cv_c_inline
=$ac_kw; break
2918 echo "configure: failed program was:" >&5
2919 cat conftest.
$ac_ext >&5
2926 echo "$ac_t""$ac_cv_c_inline" 1>&6
2927 case "$ac_cv_c_inline" in
2929 no
) cat >> confdefs.h
<<\EOF
2933 *) cat >> confdefs.h
<<EOF
2934 #define inline $ac_cv_c_inline
2939 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2940 echo "configure:2941: checking for off_t" >&5
2941 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2942 echo $ac_n "(cached) $ac_c" 1>&6
2944 cat > conftest.
$ac_ext <<EOF
2945 #line 2946 "configure"
2946 #include "confdefs.h"
2947 #include <sys/types.h>
2953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2954 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2956 ac_cv_type_off_t
=yes
2964 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2965 if test $ac_cv_type_off_t = no
; then
2966 cat >> confdefs.h
<<\EOF
2972 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2973 echo "configure:2974: checking for size_t" >&5
2974 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2975 echo $ac_n "(cached) $ac_c" 1>&6
2977 cat > conftest.
$ac_ext <<EOF
2978 #line 2979 "configure"
2979 #include "confdefs.h"
2980 #include <sys/types.h>
2986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2987 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2989 ac_cv_type_size_t
=yes
2992 ac_cv_type_size_t
=no
2997 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2998 if test $ac_cv_type_size_t = no
; then
2999 cat >> confdefs.h
<<\EOF
3000 #define size_t unsigned
3005 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3006 # for constant arguments. Useless!
3007 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3008 echo "configure:3009: checking for working alloca.h" >&5
3009 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3010 echo $ac_n "(cached) $ac_c" 1>&6
3012 cat > conftest.
$ac_ext <<EOF
3013 #line 3014 "configure"
3014 #include "confdefs.h"
3017 char *p = alloca(2 * sizeof(int));
3020 if { (eval echo configure
:3021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3022 ac_cv_header_alloca_h
=yes
3024 echo "configure: failed program was:" >&5
3025 cat conftest.
$ac_ext >&5
3027 ac_cv_header_alloca_h
=no
3032 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3033 if test $ac_cv_header_alloca_h = yes; then
3034 cat >> confdefs.h
<<\EOF
3035 #define HAVE_ALLOCA_H 1
3040 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3041 echo "configure:3042: checking for alloca" >&5
3042 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3043 echo $ac_n "(cached) $ac_c" 1>&6
3045 cat > conftest.
$ac_ext <<EOF
3046 #line 3047 "configure"
3047 #include "confdefs.h"
3050 # define alloca __builtin_alloca
3053 # include <malloc.h>
3054 # define alloca _alloca
3057 # include <alloca.h>
3062 # ifndef alloca /* predefined by HP cc +Olibcalls */
3071 char *p = (char *) alloca(1);
3074 if { (eval echo configure
:3075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3076 ac_cv_func_alloca_works
=yes
3078 echo "configure: failed program was:" >&5
3079 cat conftest.
$ac_ext >&5
3081 ac_cv_func_alloca_works
=no
3086 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3087 if test $ac_cv_func_alloca_works = yes; then
3088 cat >> confdefs.h
<<\EOF
3089 #define HAVE_ALLOCA 1
3094 if test $ac_cv_func_alloca_works = no
; then
3095 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3096 # that cause trouble. Some versions do not even contain alloca or
3097 # contain a buggy version. If you still want to use their alloca,
3098 # use ar to extract alloca.o from them instead of compiling alloca.c.
3099 ALLOCA
=alloca.
${ac_objext}
3100 cat >> confdefs.h
<<\EOF
3105 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3106 echo "configure:3107: checking whether alloca needs Cray hooks" >&5
3107 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3108 echo $ac_n "(cached) $ac_c" 1>&6
3110 cat > conftest.
$ac_ext <<EOF
3111 #line 3112 "configure"
3112 #include "confdefs.h"
3113 #if defined(CRAY) && ! defined(CRAY2)
3120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3121 egrep "webecray" >/dev
/null
2>&1; then
3132 echo "$ac_t""$ac_cv_os_cray" 1>&6
3133 if test $ac_cv_os_cray = yes; then
3134 for ac_func
in _getb67 GETB67 getb67
; do
3135 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3136 echo "configure:3137: checking for $ac_func" >&5
3137 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3138 echo $ac_n "(cached) $ac_c" 1>&6
3140 cat > conftest.
$ac_ext <<EOF
3141 #line 3142 "configure"
3142 #include "confdefs.h"
3143 /* System header to define __stub macros and hopefully few prototypes,
3144 which can conflict with char $ac_func(); below. */
3146 /* Override any gcc2 internal prototype to avoid an error. */
3147 /* We use char because int might match the return type of a gcc2
3148 builtin and then its argument prototype would still apply. */
3153 /* The GNU C library defines this for functions which it implements
3154 to always fail with ENOSYS. Some functions are actually named
3155 something starting with __ and the normal name is an alias. */
3156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3164 if { (eval echo configure
:3165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3166 eval "ac_cv_func_$ac_func=yes"
3168 echo "configure: failed program was:" >&5
3169 cat conftest.
$ac_ext >&5
3171 eval "ac_cv_func_$ac_func=no"
3176 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3177 echo "$ac_t""yes" 1>&6
3178 cat >> confdefs.h
<<EOF
3179 #define CRAY_STACKSEG_END $ac_func
3184 echo "$ac_t""no" 1>&6
3190 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3191 echo "configure:3192: checking stack direction for C alloca" >&5
3192 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3193 echo $ac_n "(cached) $ac_c" 1>&6
3195 if test "$cross_compiling" = yes; then
3196 ac_cv_c_stack_direction
=0
3198 cat > conftest.
$ac_ext <<EOF
3199 #line 3200 "configure"
3200 #include "confdefs.h"
3201 find_stack_direction ()
3203 static char *addr = 0;
3208 return find_stack_direction ();
3211 return (&dummy > addr) ? 1 : -1;
3215 exit (find_stack_direction() < 0);
3218 if { (eval echo configure
:3219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3220 ac_cv_c_stack_direction
=1
3222 echo "configure: failed program was:" >&5
3223 cat conftest.
$ac_ext >&5
3225 ac_cv_c_stack_direction
=-1
3232 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3233 cat >> confdefs.h
<<EOF
3234 #define STACK_DIRECTION $ac_cv_c_stack_direction
3239 for ac_hdr
in unistd.h
3241 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3242 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3243 echo "configure:3244: checking for $ac_hdr" >&5
3244 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3245 echo $ac_n "(cached) $ac_c" 1>&6
3247 cat > conftest.
$ac_ext <<EOF
3248 #line 3249 "configure"
3249 #include "confdefs.h"
3252 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3253 { (eval echo configure
:3254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3254 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3255 if test -z "$ac_err"; then
3257 eval "ac_cv_header_$ac_safe=yes"
3260 echo "configure: failed program was:" >&5
3261 cat conftest.
$ac_ext >&5
3263 eval "ac_cv_header_$ac_safe=no"
3267 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3268 echo "$ac_t""yes" 1>&6
3269 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3270 cat >> confdefs.h
<<EOF
3271 #define $ac_tr_hdr 1
3275 echo "$ac_t""no" 1>&6
3279 for ac_func
in getpagesize
3281 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3282 echo "configure:3283: checking for $ac_func" >&5
3283 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3284 echo $ac_n "(cached) $ac_c" 1>&6
3286 cat > conftest.
$ac_ext <<EOF
3287 #line 3288 "configure"
3288 #include "confdefs.h"
3289 /* System header to define __stub macros and hopefully few prototypes,
3290 which can conflict with char $ac_func(); below. */
3292 /* Override any gcc2 internal prototype to avoid an error. */
3293 /* We use char because int might match the return type of a gcc2
3294 builtin and then its argument prototype would still apply. */
3299 /* The GNU C library defines this for functions which it implements
3300 to always fail with ENOSYS. Some functions are actually named
3301 something starting with __ and the normal name is an alias. */
3302 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3310 if { (eval echo configure
:3311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3312 eval "ac_cv_func_$ac_func=yes"
3314 echo "configure: failed program was:" >&5
3315 cat conftest.
$ac_ext >&5
3317 eval "ac_cv_func_$ac_func=no"
3322 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3323 echo "$ac_t""yes" 1>&6
3324 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3325 cat >> confdefs.h
<<EOF
3326 #define $ac_tr_func 1
3330 echo "$ac_t""no" 1>&6
3334 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3335 echo "configure:3336: checking for working mmap" >&5
3336 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3337 echo $ac_n "(cached) $ac_c" 1>&6
3339 if test "$cross_compiling" = yes; then
3340 ac_cv_func_mmap_fixed_mapped
=no
3342 cat > conftest.
$ac_ext <<EOF
3343 #line 3344 "configure"
3344 #include "confdefs.h"
3346 /* Thanks to Mike Haertel and Jim Avera for this test.
3347 Here is a matrix of mmap possibilities:
3348 mmap private not fixed
3349 mmap private fixed at somewhere currently unmapped
3350 mmap private fixed at somewhere already mapped
3351 mmap shared not fixed
3352 mmap shared fixed at somewhere currently unmapped
3353 mmap shared fixed at somewhere already mapped
3354 For private mappings, we should verify that changes cannot be read()
3355 back from the file, nor mmap's back from the file at a different
3356 address. (There have been systems where private was not correctly
3357 implemented like the infamous i386 svr4.0, and systems where the
3358 VM page cache was not coherent with the filesystem buffer cache
3359 like early versions of FreeBSD and possibly contemporary NetBSD.)
3360 For shared mappings, we should conversely verify that changes get
3361 propogated back to all the places they're supposed to be.
3363 Grep wants private fixed already mapped.
3364 The main things grep needs to know about mmap are:
3365 * does it exist and is it safe to write into the mmap'd area
3366 * how to use it (BSD variants) */
3367 #include <sys/types.h>
3369 #include <sys/mman.h>
3371 /* This mess was copied from the GNU getpagesize.h. */
3372 #ifndef HAVE_GETPAGESIZE
3373 # ifdef HAVE_UNISTD_H
3374 # include <unistd.h>
3377 /* Assume that all systems that can run configure have sys/param.h. */
3378 # ifndef HAVE_SYS_PARAM_H
3379 # define HAVE_SYS_PARAM_H 1
3382 # ifdef _SC_PAGESIZE
3383 # define getpagesize() sysconf(_SC_PAGESIZE)
3384 # else /* no _SC_PAGESIZE */
3385 # ifdef HAVE_SYS_PARAM_H
3386 # include <sys/param.h>
3387 # ifdef EXEC_PAGESIZE
3388 # define getpagesize() EXEC_PAGESIZE
3389 # else /* no EXEC_PAGESIZE */
3391 # define getpagesize() NBPG * CLSIZE
3394 # endif /* no CLSIZE */
3395 # else /* no NBPG */
3397 # define getpagesize() NBPC
3398 # else /* no NBPC */
3400 # define getpagesize() PAGESIZE
3401 # endif /* PAGESIZE */
3402 # endif /* no NBPC */
3403 # endif /* no NBPG */
3404 # endif /* no EXEC_PAGESIZE */
3405 # else /* no HAVE_SYS_PARAM_H */
3406 # define getpagesize() 8192 /* punt totally */
3407 # endif /* no HAVE_SYS_PARAM_H */
3408 # endif /* no _SC_PAGESIZE */
3410 #endif /* no HAVE_GETPAGESIZE */
3413 extern "C" { void *malloc(unsigned); }
3421 char *data, *data2, *data3;
3425 pagesize = getpagesize();
3428 * First, make a file with some known garbage in it.
3430 data = malloc(pagesize);
3433 for (i = 0; i < pagesize; ++i)
3434 *(data + i) = rand();
3436 fd = creat("conftestmmap", 0600);
3439 if (write(fd, data, pagesize) != pagesize)
3444 * Next, try to mmap the file at a fixed address which
3445 * already has something else allocated at it. If we can,
3446 * also make sure that we see the same garbage.
3448 fd = open("conftestmmap", O_RDWR);
3451 data2 = malloc(2 * pagesize);
3454 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3455 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3456 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3458 for (i = 0; i < pagesize; ++i)
3459 if (*(data + i) != *(data2 + i))
3463 * Finally, make sure that changes to the mapped area
3464 * do not percolate back to the file as seen by read().
3465 * (This is a bug on some variants of i386 svr4.0.)
3467 for (i = 0; i < pagesize; ++i)
3468 *(data2 + i) = *(data2 + i) + 1;
3469 data3 = malloc(pagesize);
3472 if (read(fd, data3, pagesize) != pagesize)
3474 for (i = 0; i < pagesize; ++i)
3475 if (*(data + i) != *(data3 + i))
3478 unlink("conftestmmap");
3483 if { (eval echo configure
:3484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3485 ac_cv_func_mmap_fixed_mapped
=yes
3487 echo "configure: failed program was:" >&5
3488 cat conftest.
$ac_ext >&5
3490 ac_cv_func_mmap_fixed_mapped
=no
3497 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3498 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3499 cat >> confdefs.h
<<\EOF
3506 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3507 unistd.h values.h sys
/param.h
3509 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3510 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3511 echo "configure:3512: checking for $ac_hdr" >&5
3512 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3513 echo $ac_n "(cached) $ac_c" 1>&6
3515 cat > conftest.
$ac_ext <<EOF
3516 #line 3517 "configure"
3517 #include "confdefs.h"
3520 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3521 { (eval echo configure
:3522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3522 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3523 if test -z "$ac_err"; then
3525 eval "ac_cv_header_$ac_safe=yes"
3528 echo "configure: failed program was:" >&5
3529 cat conftest.
$ac_ext >&5
3531 eval "ac_cv_header_$ac_safe=no"
3535 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3536 echo "$ac_t""yes" 1>&6
3537 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3538 cat >> confdefs.h
<<EOF
3539 #define $ac_tr_hdr 1
3543 echo "$ac_t""no" 1>&6
3547 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3548 __argz_count __argz_stringify __argz_next
3550 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3551 echo "configure:3552: checking for $ac_func" >&5
3552 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3553 echo $ac_n "(cached) $ac_c" 1>&6
3555 cat > conftest.
$ac_ext <<EOF
3556 #line 3557 "configure"
3557 #include "confdefs.h"
3558 /* System header to define __stub macros and hopefully few prototypes,
3559 which can conflict with char $ac_func(); below. */
3561 /* Override any gcc2 internal prototype to avoid an error. */
3562 /* We use char because int might match the return type of a gcc2
3563 builtin and then its argument prototype would still apply. */
3568 /* The GNU C library defines this for functions which it implements
3569 to always fail with ENOSYS. Some functions are actually named
3570 something starting with __ and the normal name is an alias. */
3571 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3579 if { (eval echo configure
:3580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3581 eval "ac_cv_func_$ac_func=yes"
3583 echo "configure: failed program was:" >&5
3584 cat conftest.
$ac_ext >&5
3586 eval "ac_cv_func_$ac_func=no"
3591 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3592 echo "$ac_t""yes" 1>&6
3593 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3594 cat >> confdefs.h
<<EOF
3595 #define $ac_tr_func 1
3599 echo "$ac_t""no" 1>&6
3604 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3605 for ac_func
in stpcpy
3607 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3608 echo "configure:3609: checking for $ac_func" >&5
3609 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3610 echo $ac_n "(cached) $ac_c" 1>&6
3612 cat > conftest.
$ac_ext <<EOF
3613 #line 3614 "configure"
3614 #include "confdefs.h"
3615 /* System header to define __stub macros and hopefully few prototypes,
3616 which can conflict with char $ac_func(); below. */
3618 /* Override any gcc2 internal prototype to avoid an error. */
3619 /* We use char because int might match the return type of a gcc2
3620 builtin and then its argument prototype would still apply. */
3625 /* The GNU C library defines this for functions which it implements
3626 to always fail with ENOSYS. Some functions are actually named
3627 something starting with __ and the normal name is an alias. */
3628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3636 if { (eval echo configure
:3637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3638 eval "ac_cv_func_$ac_func=yes"
3640 echo "configure: failed program was:" >&5
3641 cat conftest.
$ac_ext >&5
3643 eval "ac_cv_func_$ac_func=no"
3648 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3649 echo "$ac_t""yes" 1>&6
3650 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3651 cat >> confdefs.h
<<EOF
3652 #define $ac_tr_func 1
3656 echo "$ac_t""no" 1>&6
3661 if test "${ac_cv_func_stpcpy}" = "yes"; then
3662 cat >> confdefs.h
<<\EOF
3663 #define HAVE_STPCPY 1
3668 if test $ac_cv_header_locale_h = yes; then
3669 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3670 echo "configure:3671: checking for LC_MESSAGES" >&5
3671 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3672 echo $ac_n "(cached) $ac_c" 1>&6
3674 cat > conftest.
$ac_ext <<EOF
3675 #line 3676 "configure"
3676 #include "confdefs.h"
3682 if { (eval echo configure
:3683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3684 am_cv_val_LC_MESSAGES
=yes
3686 echo "configure: failed program was:" >&5
3687 cat conftest.
$ac_ext >&5
3689 am_cv_val_LC_MESSAGES
=no
3694 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3695 if test $am_cv_val_LC_MESSAGES = yes; then
3696 cat >> confdefs.h
<<\EOF
3697 #define HAVE_LC_MESSAGES 1
3702 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3703 echo "configure:3704: checking whether NLS is requested" >&5
3704 # Check whether --enable-nls or --disable-nls was given.
3705 if test "${enable_nls+set}" = set; then
3706 enableval
="$enable_nls"
3712 echo "$ac_t""$USE_NLS" 1>&6
3715 USE_INCLUDED_LIBINTL
=no
3717 if test "$USE_NLS" = "yes"; then
3718 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3719 echo "configure:3720: checking whether included gettext is requested" >&5
3720 # Check whether --with-included-gettext or --without-included-gettext was given.
3721 if test "${with_included_gettext+set}" = set; then
3722 withval
="$with_included_gettext"
3723 nls_cv_force_use_gnu_gettext
=$withval
3725 nls_cv_force_use_gnu_gettext
=no
3728 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3730 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
3731 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3733 nls_cv_header_libgt
=
3736 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3737 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3738 echo "configure:3739: checking for libintl.h" >&5
3739 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3740 echo $ac_n "(cached) $ac_c" 1>&6
3742 cat > conftest.
$ac_ext <<EOF
3743 #line 3744 "configure"
3744 #include "confdefs.h"
3745 #include <libintl.h>
3747 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3748 { (eval echo configure
:3749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3749 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3750 if test -z "$ac_err"; then
3752 eval "ac_cv_header_$ac_safe=yes"
3755 echo "configure: failed program was:" >&5
3756 cat conftest.
$ac_ext >&5
3758 eval "ac_cv_header_$ac_safe=no"
3762 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3763 echo "$ac_t""yes" 1>&6
3764 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3765 echo "configure:3766: checking for gettext in libc" >&5
3766 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3767 echo $ac_n "(cached) $ac_c" 1>&6
3769 cat > conftest.
$ac_ext <<EOF
3770 #line 3771 "configure"
3771 #include "confdefs.h"
3772 #include <libintl.h>
3774 return (int) gettext ("")
3777 if { (eval echo configure
:3778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3779 gt_cv_func_gettext_libc
=yes
3781 echo "configure: failed program was:" >&5
3782 cat conftest.
$ac_ext >&5
3784 gt_cv_func_gettext_libc
=no
3789 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3791 if test "$gt_cv_func_gettext_libc" != "yes"; then
3792 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3793 echo "configure:3794: checking for bindtextdomain in -lintl" >&5
3794 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3795 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3796 echo $ac_n "(cached) $ac_c" 1>&6
3798 ac_save_LIBS
="$LIBS"
3800 cat > conftest.
$ac_ext <<EOF
3801 #line 3802 "configure"
3802 #include "confdefs.h"
3803 /* Override any gcc2 internal prototype to avoid an error. */
3804 /* We use char because int might match the return type of a gcc2
3805 builtin and then its argument prototype would still apply. */
3806 char bindtextdomain();
3812 if { (eval echo configure
:3813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3814 eval "ac_cv_lib_$ac_lib_var=yes"
3816 echo "configure: failed program was:" >&5
3817 cat conftest.
$ac_ext >&5
3819 eval "ac_cv_lib_$ac_lib_var=no"
3822 LIBS
="$ac_save_LIBS"
3825 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3826 echo "$ac_t""yes" 1>&6
3827 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3828 echo "configure:3829: checking for gettext in libintl" >&5
3829 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3830 echo $ac_n "(cached) $ac_c" 1>&6
3832 cat > conftest.
$ac_ext <<EOF
3833 #line 3834 "configure"
3834 #include "confdefs.h"
3837 return (int) gettext ("")
3840 if { (eval echo configure
:3841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3842 gt_cv_func_gettext_libintl
=yes
3844 echo "configure: failed program was:" >&5
3845 cat conftest.
$ac_ext >&5
3847 gt_cv_func_gettext_libintl
=no
3852 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3854 echo "$ac_t""no" 1>&6
3859 if test "$gt_cv_func_gettext_libc" = "yes" \
3860 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
3861 cat >> confdefs.h
<<\EOF
3862 #define HAVE_GETTEXT 1
3865 # Extract the first word of "msgfmt", so it can be a program name with args.
3866 set dummy msgfmt
; ac_word
=$2
3867 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3868 echo "configure:3869: checking for $ac_word" >&5
3869 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3870 echo $ac_n "(cached) $ac_c" 1>&6
3874 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3877 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3878 for ac_dir
in $PATH; do
3879 test -z "$ac_dir" && ac_dir
=.
3880 if test -f $ac_dir/$ac_word; then
3881 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3882 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3888 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
3892 MSGFMT
="$ac_cv_path_MSGFMT"
3893 if test -n "$MSGFMT"; then
3894 echo "$ac_t""$MSGFMT" 1>&6
3896 echo "$ac_t""no" 1>&6
3898 if test "$MSGFMT" != "no"; then
3899 for ac_func
in dcgettext
3901 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3902 echo "configure:3903: checking for $ac_func" >&5
3903 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3904 echo $ac_n "(cached) $ac_c" 1>&6
3906 cat > conftest.
$ac_ext <<EOF
3907 #line 3908 "configure"
3908 #include "confdefs.h"
3909 /* System header to define __stub macros and hopefully few prototypes,
3910 which can conflict with char $ac_func(); below. */
3912 /* Override any gcc2 internal prototype to avoid an error. */
3913 /* We use char because int might match the return type of a gcc2
3914 builtin and then its argument prototype would still apply. */
3919 /* The GNU C library defines this for functions which it implements
3920 to always fail with ENOSYS. Some functions are actually named
3921 something starting with __ and the normal name is an alias. */
3922 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3930 if { (eval echo configure
:3931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3932 eval "ac_cv_func_$ac_func=yes"
3934 echo "configure: failed program was:" >&5
3935 cat conftest.
$ac_ext >&5
3937 eval "ac_cv_func_$ac_func=no"
3942 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3943 echo "$ac_t""yes" 1>&6
3944 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3945 cat >> confdefs.h
<<EOF
3946 #define $ac_tr_func 1
3950 echo "$ac_t""no" 1>&6
3954 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3955 set dummy gmsgfmt
; ac_word
=$2
3956 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3957 echo "configure:3958: checking for $ac_word" >&5
3958 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3959 echo $ac_n "(cached) $ac_c" 1>&6
3963 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3966 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3969 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3971 for ac_dir
in $ac_dummy; do
3972 test -z "$ac_dir" && ac_dir
=.
3973 if test -f $ac_dir/$ac_word; then
3974 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3979 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3983 GMSGFMT
="$ac_cv_path_GMSGFMT"
3984 if test -n "$GMSGFMT"; then
3985 echo "$ac_t""$GMSGFMT" 1>&6
3987 echo "$ac_t""no" 1>&6
3990 # Extract the first word of "xgettext", so it can be a program name with args.
3991 set dummy xgettext
; ac_word
=$2
3992 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3993 echo "configure:3994: checking for $ac_word" >&5
3994 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3995 echo $ac_n "(cached) $ac_c" 1>&6
3999 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4002 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4003 for ac_dir
in $PATH; do
4004 test -z "$ac_dir" && ac_dir
=.
4005 if test -f $ac_dir/$ac_word; then
4006 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4007 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4013 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4017 XGETTEXT
="$ac_cv_path_XGETTEXT"
4018 if test -n "$XGETTEXT"; then
4019 echo "$ac_t""$XGETTEXT" 1>&6
4021 echo "$ac_t""no" 1>&6
4024 cat > conftest.
$ac_ext <<EOF
4025 #line 4026 "configure"
4026 #include "confdefs.h"
4029 extern int _nl_msg_cat_cntr;
4030 return _nl_msg_cat_cntr
4033 if { (eval echo configure
:4034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4038 echo "configure: failed program was:" >&5
4039 cat conftest.
$ac_ext >&5
4050 echo "$ac_t""no" 1>&6
4055 if test x
"$CATOBJEXT" = x
&& test -d $srcdir/..
/intl
; then
4056 # Neither gettext nor catgets in included in the C library.
4057 # Fall back on GNU gettext library (assuming it is present).
4058 nls_cv_use_gnu_gettext
=yes
4062 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4063 INTLOBJS
="\$(GETTOBJS)"
4064 # Extract the first word of "msgfmt", so it can be a program name with args.
4065 set dummy msgfmt
; ac_word
=$2
4066 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4067 echo "configure:4068: checking for $ac_word" >&5
4068 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4069 echo $ac_n "(cached) $ac_c" 1>&6
4073 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
4076 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4077 for ac_dir
in $PATH; do
4078 test -z "$ac_dir" && ac_dir
=.
4079 if test -f $ac_dir/$ac_word; then
4080 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4081 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
4087 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
4091 MSGFMT
="$ac_cv_path_MSGFMT"
4092 if test -n "$MSGFMT"; then
4093 echo "$ac_t""$MSGFMT" 1>&6
4095 echo "$ac_t""no" 1>&6
4098 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4099 set dummy gmsgfmt
; ac_word
=$2
4100 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4101 echo "configure:4102: checking for $ac_word" >&5
4102 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4103 echo $ac_n "(cached) $ac_c" 1>&6
4107 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4110 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4113 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4115 for ac_dir
in $ac_dummy; do
4116 test -z "$ac_dir" && ac_dir
=.
4117 if test -f $ac_dir/$ac_word; then
4118 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4123 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4127 GMSGFMT
="$ac_cv_path_GMSGFMT"
4128 if test -n "$GMSGFMT"; then
4129 echo "$ac_t""$GMSGFMT" 1>&6
4131 echo "$ac_t""no" 1>&6
4134 # Extract the first word of "xgettext", so it can be a program name with args.
4135 set dummy xgettext
; ac_word
=$2
4136 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4137 echo "configure:4138: checking for $ac_word" >&5
4138 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4139 echo $ac_n "(cached) $ac_c" 1>&6
4143 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4146 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4147 for ac_dir
in $PATH; do
4148 test -z "$ac_dir" && ac_dir
=.
4149 if test -f $ac_dir/$ac_word; then
4150 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4151 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4157 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4161 XGETTEXT
="$ac_cv_path_XGETTEXT"
4162 if test -n "$XGETTEXT"; then
4163 echo "$ac_t""$XGETTEXT" 1>&6
4165 echo "$ac_t""no" 1>&6
4169 USE_INCLUDED_LIBINTL
=yes
4173 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
4175 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
4176 nls_cv_header_intl
=libintl.h
4177 nls_cv_header_libgt
=libgettext.h
4180 if test "$XGETTEXT" != ":"; then
4181 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
4184 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4189 # We need to process the po/ directory.
4193 nls_cv_header_intl
=libintl.h
4194 nls_cv_header_libgt
=libgettext.h
4197 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4198 # because some of the sources are only built for this goal.
4199 if test "$PACKAGE" = gettext; then
4201 USE_INCLUDED_LIBINTL
=yes
4204 for lang
in $ALL_LINGUAS; do
4205 GMOFILES
="$GMOFILES $lang.gmo"
4206 POFILES
="$POFILES $lang.po"
4220 if test "x$CATOBJEXT" != "x"; then
4221 cat >> confdefs.h
<<\EOF
4222 #define ENABLE_NLS 1
4228 if test "x$CATOBJEXT" != "x"; then
4229 if test "x$ALL_LINGUAS" = "x"; then
4232 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4233 echo "configure:4234: checking for catalogs to be installed" >&5
4235 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
4236 case "$ALL_LINGUAS" in
4237 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
4240 LINGUAS
=$NEW_LINGUAS
4241 echo "$ac_t""$LINGUAS" 1>&6
4244 if test -n "$LINGUAS"; then
4245 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
4249 if test $ac_cv_header_locale_h = yes; then
4250 INCLUDE_LOCALE_H
="#include <locale.h>"
4253 /* The system does not provide the header <locale.h>. Take care yourself. */"
4257 if test -f $srcdir/po2tbl.
sed.
in; then
4258 if test "$CATOBJEXT" = ".cat"; then
4259 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4260 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4261 echo "configure:4262: checking for linux/version.h" >&5
4262 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4263 echo $ac_n "(cached) $ac_c" 1>&6
4265 cat > conftest.
$ac_ext <<EOF
4266 #line 4267 "configure"
4267 #include "confdefs.h"
4268 #include <linux/version.h>
4270 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4271 { (eval echo configure
:4272: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4272 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4273 if test -z "$ac_err"; then
4275 eval "ac_cv_header_$ac_safe=yes"
4278 echo "configure: failed program was:" >&5
4279 cat conftest.
$ac_ext >&5
4281 eval "ac_cv_header_$ac_safe=no"
4285 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4286 echo "$ac_t""yes" 1>&6
4289 echo "$ac_t""no" 1>&6
4294 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
4296 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4297 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
4300 if test "$PACKAGE" = "gettext"; then
4310 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
4316 if test -f $srcdir/po
/POTFILES.
in; then
4317 test -d po || mkdir po
4318 if test "x$srcdir" != "x."; then
4319 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4320 posrcprefix
="$srcdir/"
4322 posrcprefix
="../$srcdir/"
4328 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4329 < $srcdir/po
/POTFILES.
in > po
/POTFILES
4335 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4336 echo "configure:4337: checking for executable suffix" >&5
4337 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4338 echo $ac_n "(cached) $ac_c" 1>&6
4340 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
4344 echo 'int main () { return 0; }' > conftest.
$ac_ext
4346 if { (eval echo configure
:4347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4347 for file in conftest.
*; do
4349 *.c |
*.o |
*.obj
) ;;
4350 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
4354 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4357 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
4362 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
4363 echo "$ac_t""${ac_cv_exeext}" 1>&6
4367 for ac_prog
in 'bison -y' byacc
4369 # Extract the first word of "$ac_prog", so it can be a program name with args.
4370 set dummy
$ac_prog; ac_word
=$2
4371 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4372 echo "configure:4373: checking for $ac_word" >&5
4373 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
4374 echo $ac_n "(cached) $ac_c" 1>&6
4376 if test -n "$YACC"; then
4377 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
4379 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4381 for ac_dir
in $ac_dummy; do
4382 test -z "$ac_dir" && ac_dir
=.
4383 if test -f $ac_dir/$ac_word; then
4384 ac_cv_prog_YACC
="$ac_prog"
4391 YACC
="$ac_cv_prog_YACC"
4392 if test -n "$YACC"; then
4393 echo "$ac_t""$YACC" 1>&6
4395 echo "$ac_t""no" 1>&6
4398 test -n "$YACC" && break
4400 test -n "$YACC" || YACC
="yacc"
4402 missing_dir
=`cd $ac_aux_dir && pwd`
4403 for ac_prog
in flex
lex
4405 # Extract the first word of "$ac_prog", so it can be a program name with args.
4406 set dummy
$ac_prog; ac_word
=$2
4407 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4408 echo "configure:4409: checking for $ac_word" >&5
4409 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
4410 echo $ac_n "(cached) $ac_c" 1>&6
4412 if test -n "$LEX"; then
4413 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
4415 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4417 for ac_dir
in $ac_dummy; do
4418 test -z "$ac_dir" && ac_dir
=.
4419 if test -f $ac_dir/$ac_word; then
4420 ac_cv_prog_LEX
="$ac_prog"
4427 LEX
="$ac_cv_prog_LEX"
4428 if test -n "$LEX"; then
4429 echo "$ac_t""$LEX" 1>&6
4431 echo "$ac_t""no" 1>&6
4434 test -n "$LEX" && break
4436 test -n "$LEX" || LEX
="$missing_dir/missing flex"
4438 # Extract the first word of "flex", so it can be a program name with args.
4439 set dummy flex
; ac_word
=$2
4440 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4441 echo "configure:4442: checking for $ac_word" >&5
4442 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
4443 echo $ac_n "(cached) $ac_c" 1>&6
4445 if test -n "$LEX"; then
4446 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
4448 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4450 for ac_dir
in $ac_dummy; do
4451 test -z "$ac_dir" && ac_dir
=.
4452 if test -f $ac_dir/$ac_word; then
4453 ac_cv_prog_LEX
="flex"
4458 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
4461 LEX
="$ac_cv_prog_LEX"
4462 if test -n "$LEX"; then
4463 echo "$ac_t""$LEX" 1>&6
4465 echo "$ac_t""no" 1>&6
4468 if test -z "$LEXLIB"
4474 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
4475 echo "configure:4476: checking for yywrap in -l$ac_lib" >&5
4476 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
4477 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4478 echo $ac_n "(cached) $ac_c" 1>&6
4480 ac_save_LIBS
="$LIBS"
4481 LIBS
="-l$ac_lib $LIBS"
4482 cat > conftest.
$ac_ext <<EOF
4483 #line 4484 "configure"
4484 #include "confdefs.h"
4485 /* Override any gcc2 internal prototype to avoid an error. */
4486 /* We use char because int might match the return type of a gcc2
4487 builtin and then its argument prototype would still apply. */
4494 if { (eval echo configure
:4495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4496 eval "ac_cv_lib_$ac_lib_var=yes"
4498 echo "configure: failed program was:" >&5
4499 cat conftest.
$ac_ext >&5
4501 eval "ac_cv_lib_$ac_lib_var=no"
4504 LIBS
="$ac_save_LIBS"
4507 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4508 echo "$ac_t""yes" 1>&6
4511 echo "$ac_t""no" 1>&6
4516 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
4517 echo "configure:4518: checking lex output file root" >&5
4518 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
4519 echo $ac_n "(cached) $ac_c" 1>&6
4521 # The minimal lex program is just a single line: %%. But some broken lexes
4522 # (Solaris, I think it was) want two %% lines, so accommodate them.
4525 if test -f lex.yy.c
; then
4526 ac_cv_prog_lex_root
=lex.yy
4527 elif test -f lexyy.c
; then
4528 ac_cv_prog_lex_root
=lexyy
4530 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
4534 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
4535 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
4537 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
4538 echo "configure:4539: checking whether yytext is a pointer" >&5
4539 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
4540 echo $ac_n "(cached) $ac_c" 1>&6
4542 # POSIX says lex can declare yytext either as a pointer or an array; the
4543 # default is implementation-dependent. Figure out which it is, since
4544 # not all implementations provide the %pointer and %array declarations.
4545 ac_cv_prog_lex_yytext_pointer
=no
4546 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4547 ac_save_LIBS
="$LIBS"
4548 LIBS
="$LIBS $LEXLIB"
4549 cat > conftest.
$ac_ext <<EOF
4550 #line 4551 "configure"
4551 #include "confdefs.h"
4552 `cat $LEX_OUTPUT_ROOT.c`
4557 if { (eval echo configure
:4558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4559 ac_cv_prog_lex_yytext_pointer
=yes
4561 echo "configure: failed program was:" >&5
4562 cat conftest.
$ac_ext >&5
4565 LIBS
="$ac_save_LIBS"
4566 rm -f "${LEX_OUTPUT_ROOT}.c"
4570 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
4571 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4572 cat >> confdefs.h
<<\EOF
4573 #define YYTEXT_POINTER 1
4579 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4580 echo "configure:4581: checking whether to enable maintainer-specific portions of Makefiles" >&5
4581 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4582 if test "${enable_maintainer_mode+set}" = set; then
4583 enableval
="$enable_maintainer_mode"
4584 USE_MAINTAINER_MODE
=$enableval
4586 USE_MAINTAINER_MODE
=no
4589 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4592 if test $USE_MAINTAINER_MODE = yes; then
4593 MAINTAINER_MODE_TRUE
=
4594 MAINTAINER_MODE_FALSE
='#'
4596 MAINTAINER_MODE_TRUE
='#'
4597 MAINTAINER_MODE_FALSE
=
4599 MAINT
=$MAINTAINER_MODE_TRUE
4603 .
${srcdir}/configure.
host
4610 for ac_hdr
in string.h
strings.h stdlib.h unistd.h
4612 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4613 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4614 echo "configure:4615: checking for $ac_hdr" >&5
4615 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4616 echo $ac_n "(cached) $ac_c" 1>&6
4618 cat > conftest.
$ac_ext <<EOF
4619 #line 4620 "configure"
4620 #include "confdefs.h"
4623 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4624 { (eval echo configure
:4625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4625 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4626 if test -z "$ac_err"; then
4628 eval "ac_cv_header_$ac_safe=yes"
4631 echo "configure: failed program was:" >&5
4632 cat conftest.
$ac_ext >&5
4634 eval "ac_cv_header_$ac_safe=no"
4638 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4639 echo "$ac_t""yes" 1>&6
4640 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4641 cat >> confdefs.h
<<EOF
4642 #define $ac_tr_hdr 1
4646 echo "$ac_t""no" 1>&6
4650 for ac_func
in sbrk realpath glob
4652 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4653 echo "configure:4654: checking for $ac_func" >&5
4654 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4655 echo $ac_n "(cached) $ac_c" 1>&6
4657 cat > conftest.
$ac_ext <<EOF
4658 #line 4659 "configure"
4659 #include "confdefs.h"
4660 /* System header to define __stub macros and hopefully few prototypes,
4661 which can conflict with char $ac_func(); below. */
4663 /* Override any gcc2 internal prototype to avoid an error. */
4664 /* We use char because int might match the return type of a gcc2
4665 builtin and then its argument prototype would still apply. */
4670 /* The GNU C library defines this for functions which it implements
4671 to always fail with ENOSYS. Some functions are actually named
4672 something starting with __ and the normal name is an alias. */
4673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4681 if { (eval echo configure
:4682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4683 eval "ac_cv_func_$ac_func=yes"
4685 echo "configure: failed program was:" >&5
4686 cat conftest.
$ac_ext >&5
4688 eval "ac_cv_func_$ac_func=no"
4693 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4694 echo "$ac_t""yes" 1>&6
4695 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4696 cat >> confdefs.h
<<EOF
4697 #define $ac_tr_func 1
4701 echo "$ac_t""no" 1>&6
4706 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
4708 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4709 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4710 echo "configure:4711: checking for $ac_hdr that defines DIR" >&5
4711 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
4712 echo $ac_n "(cached) $ac_c" 1>&6
4714 cat > conftest.
$ac_ext <<EOF
4715 #line 4716 "configure"
4716 #include "confdefs.h"
4717 #include <sys/types.h>
4723 if { (eval echo configure
:4724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4725 eval "ac_cv_header_dirent_$ac_safe=yes"
4727 echo "configure: failed program was:" >&5
4728 cat conftest.
$ac_ext >&5
4730 eval "ac_cv_header_dirent_$ac_safe=no"
4734 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4735 echo "$ac_t""yes" 1>&6
4736 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4737 cat >> confdefs.h
<<EOF
4738 #define $ac_tr_hdr 1
4740 ac_header_dirent
=$ac_hdr; break
4742 echo "$ac_t""no" 1>&6
4745 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4746 if test $ac_header_dirent = dirent.h
; then
4747 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4748 echo "configure:4749: checking for opendir in -ldir" >&5
4749 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4750 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4751 echo $ac_n "(cached) $ac_c" 1>&6
4753 ac_save_LIBS
="$LIBS"
4755 cat > conftest.
$ac_ext <<EOF
4756 #line 4757 "configure"
4757 #include "confdefs.h"
4758 /* Override any gcc2 internal prototype to avoid an error. */
4759 /* We use char because int might match the return type of a gcc2
4760 builtin and then its argument prototype would still apply. */
4767 if { (eval echo configure
:4768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4769 eval "ac_cv_lib_$ac_lib_var=yes"
4771 echo "configure: failed program was:" >&5
4772 cat conftest.
$ac_ext >&5
4774 eval "ac_cv_lib_$ac_lib_var=no"
4777 LIBS
="$ac_save_LIBS"
4780 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4781 echo "$ac_t""yes" 1>&6
4784 echo "$ac_t""no" 1>&6
4788 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4789 echo "configure:4790: checking for opendir in -lx" >&5
4790 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
4791 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4792 echo $ac_n "(cached) $ac_c" 1>&6
4794 ac_save_LIBS
="$LIBS"
4796 cat > conftest.
$ac_ext <<EOF
4797 #line 4798 "configure"
4798 #include "confdefs.h"
4799 /* Override any gcc2 internal prototype to avoid an error. */
4800 /* We use char because int might match the return type of a gcc2
4801 builtin and then its argument prototype would still apply. */
4808 if { (eval echo configure
:4809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4810 eval "ac_cv_lib_$ac_lib_var=yes"
4812 echo "configure: failed program was:" >&5
4813 cat conftest.
$ac_ext >&5
4815 eval "ac_cv_lib_$ac_lib_var=no"
4818 LIBS
="$ac_save_LIBS"
4821 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4822 echo "$ac_t""yes" 1>&6
4825 echo "$ac_t""no" 1>&6
4831 echo $ac_n "checking for a known getopt prototype in unistd.h""... $ac_c" 1>&6
4832 echo "configure:4833: checking for a known getopt prototype in unistd.h" >&5
4833 if eval "test \"`echo '$''{'ld_cv_decl_getopt_unistd_h'+set}'`\" = set"; then
4834 echo $ac_n "(cached) $ac_c" 1>&6
4836 cat > conftest.
$ac_ext <<EOF
4837 #line 4838 "configure"
4838 #include "confdefs.h"
4841 extern int getopt (int, char *const*, const char *);
4844 if { (eval echo configure
:4845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4846 ld_cv_decl_getopt_unistd_h
=yes
4848 echo "configure: failed program was:" >&5
4849 cat conftest.
$ac_ext >&5
4851 ld_cv_decl_getopt_unistd_h
=no
4856 echo "$ac_t""$ld_cv_decl_getopt_unistd_h" 1>&6
4857 if test $ld_cv_decl_getopt_unistd_h = yes; then
4858 cat >> confdefs.h
<<\EOF
4859 #define HAVE_DECL_GETOPT 1
4866 *-*-msdos* |
*-*-go32* |
*-*-mingw32* |
*-*-cygwin* |
*-*-windows*)
4867 cat >> confdefs.h
<<\EOF
4868 #define USE_BINARY_FOPEN 1
4873 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4874 echo "configure:4875: checking whether strstr must be declared" >&5
4875 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4876 echo $ac_n "(cached) $ac_c" 1>&6
4878 cat > conftest.
$ac_ext <<EOF
4879 #line 4880 "configure"
4880 #include "confdefs.h"
4883 #ifdef HAVE_STRING_H
4886 #ifdef HAVE_STRINGS_H
4887 #include <strings.h>
4890 #ifdef HAVE_STDLIB_H
4893 #ifdef HAVE_UNISTD_H
4897 char *(*pfn) = (char *(*)) strstr
4900 if { (eval echo configure
:4901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4902 bfd_cv_decl_needed_strstr
=no
4904 echo "configure: failed program was:" >&5
4905 cat conftest.
$ac_ext >&5
4907 bfd_cv_decl_needed_strstr
=yes
4912 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4913 if test $bfd_cv_decl_needed_strstr = yes; then
4914 cat >> confdefs.h
<<\EOF
4915 #define NEED_DECLARATION_STRSTR 1
4920 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
4921 echo "configure:4922: checking whether free must be declared" >&5
4922 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
4923 echo $ac_n "(cached) $ac_c" 1>&6
4925 cat > conftest.
$ac_ext <<EOF
4926 #line 4927 "configure"
4927 #include "confdefs.h"
4930 #ifdef HAVE_STRING_H
4933 #ifdef HAVE_STRINGS_H
4934 #include <strings.h>
4937 #ifdef HAVE_STDLIB_H
4940 #ifdef HAVE_UNISTD_H
4944 char *(*pfn) = (char *(*)) free
4947 if { (eval echo configure
:4948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4949 bfd_cv_decl_needed_free
=no
4951 echo "configure: failed program was:" >&5
4952 cat conftest.
$ac_ext >&5
4954 bfd_cv_decl_needed_free
=yes
4959 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
4960 if test $bfd_cv_decl_needed_free = yes; then
4961 cat >> confdefs.h
<<\EOF
4962 #define NEED_DECLARATION_FREE 1
4967 echo $ac_n "checking whether sbrk must be declared""... $ac_c" 1>&6
4968 echo "configure:4969: checking whether sbrk must be declared" >&5
4969 if eval "test \"`echo '$''{'bfd_cv_decl_needed_sbrk'+set}'`\" = set"; then
4970 echo $ac_n "(cached) $ac_c" 1>&6
4972 cat > conftest.
$ac_ext <<EOF
4973 #line 4974 "configure"
4974 #include "confdefs.h"
4977 #ifdef HAVE_STRING_H
4980 #ifdef HAVE_STRINGS_H
4981 #include <strings.h>
4984 #ifdef HAVE_STDLIB_H
4987 #ifdef HAVE_UNISTD_H
4991 char *(*pfn) = (char *(*)) sbrk
4994 if { (eval echo configure
:4995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4996 bfd_cv_decl_needed_sbrk
=no
4998 echo "configure: failed program was:" >&5
4999 cat conftest.
$ac_ext >&5
5001 bfd_cv_decl_needed_sbrk
=yes
5006 echo "$ac_t""$bfd_cv_decl_needed_sbrk" 1>&6
5007 if test $bfd_cv_decl_needed_sbrk = yes; then
5008 cat >> confdefs.h
<<\EOF
5009 #define NEED_DECLARATION_SBRK 1
5014 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
5015 echo "configure:5016: checking whether getenv must be declared" >&5
5016 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
5017 echo $ac_n "(cached) $ac_c" 1>&6
5019 cat > conftest.
$ac_ext <<EOF
5020 #line 5021 "configure"
5021 #include "confdefs.h"
5024 #ifdef HAVE_STRING_H
5027 #ifdef HAVE_STRINGS_H
5028 #include <strings.h>
5031 #ifdef HAVE_STDLIB_H
5034 #ifdef HAVE_UNISTD_H
5038 char *(*pfn) = (char *(*)) getenv
5041 if { (eval echo configure
:5042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5043 bfd_cv_decl_needed_getenv
=no
5045 echo "configure: failed program was:" >&5
5046 cat conftest.
$ac_ext >&5
5048 bfd_cv_decl_needed_getenv
=yes
5053 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
5054 if test $bfd_cv_decl_needed_getenv = yes; then
5055 cat >> confdefs.h
<<\EOF
5056 #define NEED_DECLARATION_GETENV 1
5061 echo $ac_n "checking whether environ must be declared""... $ac_c" 1>&6
5062 echo "configure:5063: checking whether environ must be declared" >&5
5063 if eval "test \"`echo '$''{'bfd_cv_decl_needed_environ'+set}'`\" = set"; then
5064 echo $ac_n "(cached) $ac_c" 1>&6
5066 cat > conftest.
$ac_ext <<EOF
5067 #line 5068 "configure"
5068 #include "confdefs.h"
5071 #ifdef HAVE_STRING_H
5074 #ifdef HAVE_STRINGS_H
5075 #include <strings.h>
5078 #ifdef HAVE_STDLIB_H
5081 #ifdef HAVE_UNISTD_H
5085 char *(*pfn) = (char *(*)) environ
5088 if { (eval echo configure
:5089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5090 bfd_cv_decl_needed_environ
=no
5092 echo "configure: failed program was:" >&5
5093 cat conftest.
$ac_ext >&5
5095 bfd_cv_decl_needed_environ
=yes
5100 echo "$ac_t""$bfd_cv_decl_needed_environ" 1>&6
5101 if test $bfd_cv_decl_needed_environ = yes; then
5102 cat >> confdefs.h
<<\EOF
5103 #define NEED_DECLARATION_ENVIRON 1
5109 # When converting linker scripts into strings for use in emulation
5110 # files, use astring.sed if the compiler supports ANSI string
5111 # concatenation, or ostring.sed otherwise. This is to support the
5112 # broken Microsoft MSVC compiler, which limits the length of string
5113 # constants, while still supporting pre-ANSI compilers which do not
5114 # support string concatenation.
5115 echo $ac_n "checking whether ANSI C string concatenation works""... $ac_c" 1>&6
5116 echo "configure:5117: checking whether ANSI C string concatenation works" >&5
5117 if eval "test \"`echo '$''{'ld_cv_string_concatenation'+set}'`\" = set"; then
5118 echo $ac_n "(cached) $ac_c" 1>&6
5120 cat > conftest.
$ac_ext <<EOF
5121 #line 5122 "configure"
5122 #include "confdefs.h"
5128 if { (eval echo configure
:5129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5130 ld_cv_string_concatenation
=yes
5132 echo "configure: failed program was:" >&5
5133 cat conftest.
$ac_ext >&5
5135 ld_cv_string_concatenation
=no
5140 echo "$ac_t""$ld_cv_string_concatenation" 1>&6
5141 if test "$ld_cv_string_concatenation" = "yes"; then
5142 STRINGIFY
=astring.
sed
5144 STRINGIFY
=ostring.
sed
5148 # target-specific stuff:
5158 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
5160 if test "$targ_alias" = "all"; then
5163 # Canonicalize the secondary target names.
5164 result
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $targ_alias 2>/dev/null`
5165 if test -n "$result"; then
5171 .
${srcdir}/configure.tgt
5173 if test "$targ" = "$target"; then
5177 for i
in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
5178 case " $all_emuls " in
5181 all_emuls
="$all_emuls e${i}.o"
5182 eval result
=\
$tdir_$i
5183 test -z "$result" && result
=$targ_alias
5184 echo tdir_
$i=$result >> tdirs
5189 for i
in $targ_emul $targ_extra_libpath; do
5190 case " $all_libpath " in
5193 if test -z "$all_libpath"; then
5196 all_libpath
="$all_libpath ${i}"
5202 for i
in $targ_extra_ofiles; do
5203 case " $all_emul_extras " in
5206 all_emul_extras
="$all_emul_extras ${i}"
5218 if test x
${all_targets} = xtrue
; then
5219 if test x
${want64} = xtrue
; then
5220 EMULATION_OFILES
='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
5222 EMULATION_OFILES
='$(ALL_EMULATIONS)'
5224 EMUL_EXTRA_OFILES
='$(ALL_EMUL_EXTRA_OFILES)'
5226 EMULATION_OFILES
=$all_emuls
5227 EMUL_EXTRA_OFILES
=$all_emul_extras
5233 EMULATION_LIBPATH
=$all_libpath
5236 if test x
${enable_static} = xno
; then
5237 TESTBFDLIB
="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
5239 TESTBFDLIB
="../bfd/.libs/libbfd.a"
5243 target_vendor
=${target_vendor=$host_vendor}
5244 case "$target_vendor" in
5245 hp
) EXTRA_SHLIB_EXTENSION
=".sl" ;;
5246 *) EXTRA_SHLIB_EXTENSION
= ;;
5249 case "$target_os" in
5250 lynxos
) EXTRA_SHLIB_EXTENSION
=".a" ;;
5253 if test x
${EXTRA_SHLIB_EXTENSION} != x
; then
5254 cat >> confdefs.h
<<EOF
5255 #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
5261 cat > confcache
<<\EOF
5262 # This file is a shell script that caches the results of configure
5263 # tests run on this system so they can be shared between configure
5264 # scripts and configure runs. It is not useful on other systems.
5265 # If it contains results you don't want to keep, you may remove or edit it.
5267 # By default, configure uses ./config.cache as the cache file,
5268 # creating it if it does not exist already. You can give configure
5269 # the --cache-file=FILE option to use a different cache file; that is
5270 # what configure does when it calls configure scripts in
5271 # subdirectories, so they share the cache.
5272 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5273 # config.status only pays attention to the cache file if you give it the
5274 # --recheck option to rerun configure.
5277 # The following way of writing the cache mishandles newlines in values,
5278 # but we know of no workaround that is simple, portable, and efficient.
5279 # So, don't put newlines in cache variables' values.
5280 # Ultrix sh set writes to stderr and can't be redirected directly,
5281 # and sets the high bit in the cache file unless we assign to the vars.
5283 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5285 # `set' does not quote correctly, so add quotes (double-quote substitution
5286 # turns \\\\ into \\, and sed turns \\ into \).
5288 -e "s/'/'\\\\''/g" \
5289 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5292 # `set' quotes correctly as required by POSIX, so do not add quotes.
5293 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5296 if cmp -s $cache_file confcache
; then
5299 if test -w $cache_file; then
5300 echo "updating cache $cache_file"
5301 cat confcache
> $cache_file
5303 echo "not updating unwritable cache $cache_file"
5308 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5310 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5311 # Let make expand exec_prefix.
5312 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5314 # Any assignment to VPATH causes Sun make to only execute
5315 # the first set of double-colon rules, so remove it if not needed.
5316 # If there is a colon in the path, we need to keep it.
5317 if test "x$srcdir" = x.
; then
5318 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5321 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5323 DEFS
=-DHAVE_CONFIG_H
5325 # Without the "./", some shells look in PATH for config.status.
5326 : ${CONFIG_STATUS=./config.status}
5328 echo creating
$CONFIG_STATUS
5329 rm -f $CONFIG_STATUS
5330 cat > $CONFIG_STATUS <<EOF
5332 # Generated automatically by configure.
5333 # Run this file to recreate the current configuration.
5334 # This directory was configured as follows,
5335 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5337 # $0 $ac_configure_args
5339 # Compiler output produced by configure, useful for debugging
5340 # configure, is in ./config.log if it exists.
5342 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5345 case "\$ac_option" in
5346 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5347 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5348 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5349 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5350 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5352 -help | --help | --hel | --he | --h)
5353 echo "\$ac_cs_usage"; exit 0 ;;
5354 *) echo "\$ac_cs_usage"; exit 1 ;;
5358 ac_given_srcdir=$srcdir
5359 ac_given_INSTALL="$INSTALL"
5361 trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5363 cat >> $CONFIG_STATUS <<EOF
5365 # Protect against being on the right side of a sed subst in config.status.
5366 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5367 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5371 s%@CFLAGS@%$CFLAGS%g
5372 s%@CPPFLAGS@%$CPPFLAGS%g
5373 s%@CXXFLAGS@%$CXXFLAGS%g
5374 s%@FFLAGS@%$FFLAGS%g
5376 s%@LDFLAGS@%$LDFLAGS%g
5378 s%@exec_prefix@%$exec_prefix%g
5379 s%@prefix@%$prefix%g
5380 s%@program_transform_name@%$program_transform_name%g
5381 s%@bindir@%$bindir%g
5382 s%@sbindir@%$sbindir%g
5383 s%@libexecdir@%$libexecdir%g
5384 s%@datadir@%$datadir%g
5385 s%@sysconfdir@%$sysconfdir%g
5386 s%@sharedstatedir@%$sharedstatedir%g
5387 s%@localstatedir@%$localstatedir%g
5388 s%@libdir@%$libdir%g
5389 s%@includedir@%$includedir%g
5390 s%@oldincludedir@%$oldincludedir%g
5391 s%@infodir@%$infodir%g
5392 s%@mandir@%$mandir%g
5394 s%@host_alias@%$host_alias%g
5395 s%@host_cpu@%$host_cpu%g
5396 s%@host_vendor@%$host_vendor%g
5397 s%@host_os@%$host_os%g
5398 s%@target@%$target%g
5399 s%@target_alias@%$target_alias%g
5400 s%@target_cpu@%$target_cpu%g
5401 s%@target_vendor@%$target_vendor%g
5402 s%@target_os@%$target_os%g
5404 s%@build_alias@%$build_alias%g
5405 s%@build_cpu@%$build_cpu%g
5406 s%@build_vendor@%$build_vendor%g
5407 s%@build_os@%$build_os%g
5408 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5409 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5410 s%@INSTALL_DATA@%$INSTALL_DATA%g
5411 s%@PACKAGE@%$PACKAGE%g
5412 s%@VERSION@%$VERSION%g
5413 s%@ACLOCAL@%$ACLOCAL%g
5414 s%@AUTOCONF@%$AUTOCONF%g
5415 s%@AUTOMAKE@%$AUTOMAKE%g
5416 s%@AUTOHEADER@%$AUTOHEADER%g
5417 s%@MAKEINFO@%$MAKEINFO%g
5418 s%@SET_MAKE@%$SET_MAKE%g
5421 s%@OBJEXT@%$OBJEXT%g
5422 s%@EXEEXT@%$EXEEXT%g
5423 s%@RANLIB@%$RANLIB%g
5425 s%@LIBTOOL@%$LIBTOOL%g
5426 s%@use_sysroot@%$use_sysroot%g
5427 s%@TARGET_SYSTEM_ROOT@%$TARGET_SYSTEM_ROOT%g
5428 s%@TARGET_SYSTEM_ROOT_DEFINE@%$TARGET_SYSTEM_ROOT_DEFINE%g
5429 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
5430 s%@NO_WERROR@%$NO_WERROR%g
5432 s%@ALLOCA@%$ALLOCA%g
5433 s%@USE_NLS@%$USE_NLS%g
5434 s%@MSGFMT@%$MSGFMT%g
5435 s%@GMSGFMT@%$GMSGFMT%g
5436 s%@XGETTEXT@%$XGETTEXT%g
5437 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5438 s%@CATALOGS@%$CATALOGS%g
5439 s%@CATOBJEXT@%$CATOBJEXT%g
5440 s%@DATADIRNAME@%$DATADIRNAME%g
5441 s%@GMOFILES@%$GMOFILES%g
5442 s%@INSTOBJEXT@%$INSTOBJEXT%g
5443 s%@INTLDEPS@%$INTLDEPS%g
5444 s%@INTLLIBS@%$INTLLIBS%g
5445 s%@INTLOBJS@%$INTLOBJS%g
5446 s%@POFILES@%$POFILES%g
5448 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5450 s%@GT_YES@%$GT_YES%g
5451 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5455 s%@LEXLIB@%$LEXLIB%g
5456 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
5457 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5458 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5460 s%@HDEFINES@%$HDEFINES%g
5461 s%@HOSTING_CRT0@%$HOSTING_CRT0%g
5462 s%@HOSTING_LIBS@%$HOSTING_LIBS%g
5463 s%@NATIVE_LIB_DIRS@%$NATIVE_LIB_DIRS%g
5464 s%@STRINGIFY@%$STRINGIFY%g
5468 s%@EMULATION_OFILES@%$EMULATION_OFILES%g
5469 s%@EMUL_EXTRA_OFILES@%$EMUL_EXTRA_OFILES%g
5470 s%@LIB_PATH@%$LIB_PATH%g
5471 s%@EMULATION_LIBPATH@%$EMULATION_LIBPATH%g
5472 s%@TESTBFDLIB@%$TESTBFDLIB%g
5477 cat >> $CONFIG_STATUS <<\EOF
5479 # Split the substitutions into bite-sized pieces for seds with
5480 # small command number limits, like on Digital OSF/1 and HP-UX.
5481 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5482 ac_file
=1 # Number of current file.
5483 ac_beg
=1 # First line for current file.
5484 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5487 while $ac_more_lines; do
5488 if test $ac_beg -gt 1; then
5489 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5491 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5493 if test ! -s conftest.s
$ac_file; then
5495 rm -f conftest.s
$ac_file
5497 if test -z "$ac_sed_cmds"; then
5498 ac_sed_cmds
="sed -f conftest.s$ac_file"
5500 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5502 ac_file
=`expr $ac_file + 1`
5504 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5507 if test -z "$ac_sed_cmds"; then
5512 cat >> $CONFIG_STATUS <<EOF
5514 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
5516 cat >> $CONFIG_STATUS <<\EOF
5517 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5518 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5520 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5521 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5522 *) ac_file_in
="${ac_file}.in" ;;
5525 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5527 # Remove last slash and all that follows it. Not all systems have dirname.
5528 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5529 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5530 # The file is in a subdirectory.
5531 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5532 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5533 # A "../" for each directory in $ac_dir_suffix.
5534 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5536 ac_dir_suffix
= ac_dots
=
5539 case "$ac_given_srcdir" in
5541 if test -z "$ac_dots"; then top_srcdir
=.
5542 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5543 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5545 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5546 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5549 case "$ac_given_INSTALL" in
5550 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5551 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5554 echo creating
"$ac_file"
5556 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5558 *Makefile
*) ac_comsub
="1i\\
5559 # $configure_input" ;;
5563 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5565 s%@configure_input@%$configure_input%g
5566 s%@srcdir@%$srcdir%g
5567 s%@top_srcdir@%$top_srcdir%g
5568 s%@INSTALL@%$INSTALL%g
5569 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5573 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5574 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5576 # ac_d sets the value in "#define NAME VALUE" lines.
5577 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5578 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5581 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5582 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5583 ac_uB
='\([ ]\)%\1#\2define\3'
5586 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5587 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5588 ac_eB
='$%\1#\2define\3'
5592 if test "${CONFIG_HEADERS+set}" != set; then
5594 cat >> $CONFIG_STATUS <<EOF
5595 CONFIG_HEADERS="config.h:config.in"
5597 cat >> $CONFIG_STATUS <<\EOF
5599 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5600 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5602 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5603 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5604 *) ac_file_in
="${ac_file}.in" ;;
5607 echo creating
$ac_file
5609 rm -f conftest.frag conftest.
in conftest.out
5610 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5611 cat $ac_file_inputs > conftest.
in
5615 # Transform confdefs.h into a sed script conftest.vals that substitutes
5616 # the proper values into config.h.in to produce config.h. And first:
5617 # Protect against being on the right side of a sed subst in config.status.
5618 # Protect against being in an unquoted here document in config.status.
5620 cat > conftest.hdr
<<\EOF
5623 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5627 sed -n -f conftest.hdr confdefs.h > conftest.vals
5630 # This sed command replaces #undef with comments. This is necessary, for
5631 # example, in the case of _POSIX_SOURCE, which is predefined and required
5632 # on some systems where configure will not decide to define it.
5633 cat >> conftest.vals <<\EOF
5634 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5637 # Break up conftest.vals because some shells have a limit on
5638 # the size of here documents, and old seds have small limits too.
5643 ac_lines=`grep -c . conftest.vals
`
5644 # grep -c gives empty output for an empty file on some AIX systems.
5645 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5646 # Write a limited-size here document to conftest.frag.
5647 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5648 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5650 sed -f conftest.frag conftest.in > conftest.out
5652 mv conftest.out conftest.in
5654 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5656 mv conftest.tail conftest.vals
5660 cat >> $CONFIG_STATUS <<\EOF
5661 rm -f conftest.frag conftest.h
5662 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5663 cat conftest.in >> conftest.h
5665 if cmp -s $ac_file conftest.h 2>/dev/null; then
5666 echo "$ac_file is unchanged"
5669 # Remove last slash and all that follows it. Not all systems have dirname.
5670 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5671 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5672 # The file is in a subdirectory.
5673 test ! -d "$ac_dir" && mkdir "$ac_dir"
5676 mv conftest.h $ac_file
5681 cat >> $CONFIG_STATUS <<EOF
5685 cat >> $CONFIG_STATUS <<\EOF
5686 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5687 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
5690 chmod +x $CONFIG_STATUS
5691 rm -fr confdefs* $ac_clean_files
5692 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1