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 --disable-nls do not use Native Language Support"
29 --with-included-gettext use the GNU gettext library included here"
31 --enable-maintainer-mode enable make rules and dependencies not useful
32 (and sometimes confusing) to the casual installer"
34 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
36 # Initialize some variables set by options.
37 # The variables have the same names as the options, with
38 # dashes changed to underlines.
40 cache_file
=.
/config.cache
49 program_transform_name
=s
,x
,x
,
57 bindir
='${exec_prefix}/bin'
58 sbindir
='${exec_prefix}/sbin'
59 libexecdir
='${exec_prefix}/libexec'
60 datadir
='${prefix}/share'
61 sysconfdir
='${prefix}/etc'
62 sharedstatedir
='${prefix}/com'
63 localstatedir
='${prefix}/var'
64 libdir
='${exec_prefix}/lib'
65 includedir
='${prefix}/include'
66 oldincludedir
='/usr/include'
67 infodir
='${prefix}/info'
68 mandir
='${prefix}/man'
70 # Initialize some other variables.
73 SHELL
=${CONFIG_SHELL-/bin/sh}
74 # Maximum number of lines to put in a shell here document.
81 # If the previous option needs an argument, assign it.
82 if test -n "$ac_prev"; then
83 eval "$ac_prev=\$ac_option"
89 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
93 # Accept the important Cygnus configure options, so we can diagnose typos.
97 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
99 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
100 bindir
="$ac_optarg" ;;
102 -build |
--build |
--buil |
--bui |
--bu)
104 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
105 build
="$ac_optarg" ;;
107 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
108 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
109 ac_prev
=cache_file
;;
110 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
111 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
112 cache_file
="$ac_optarg" ;;
114 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
116 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
118 datadir
="$ac_optarg" ;;
120 -disable-* |
--disable-*)
121 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
122 # Reject names that are not valid shell variable names.
123 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
124 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
127 eval "enable_${ac_feature}=no" ;;
129 -enable-* |
--enable-*)
130 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
131 # Reject names that are not valid shell variable names.
132 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
133 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
140 eval "enable_${ac_feature}='$ac_optarg'" ;;
142 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
143 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
144 |
--exec |
--exe |
--ex)
145 ac_prev
=exec_prefix
;;
146 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
147 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
148 |
--exec=* |
--exe=* |
--ex=*)
149 exec_prefix
="$ac_optarg" ;;
151 -gas |
--gas |
--ga |
--g)
152 # Obsolete; use --with-gas.
155 -help |
--help |
--hel |
--he)
156 # Omit some internal or obsolete options to make the list less imposing.
157 # This message is too long to be a string in the A/UX 3.1 sh.
159 Usage: configure [options] [host]
160 Options: [defaults in brackets after descriptions]
162 --cache-file=FILE cache test results in FILE
163 --help print this message
164 --no-create do not create output files
165 --quiet, --silent do not print \`checking...' messages
166 --version print the version of autoconf that created configure
167 Directory and file names:
168 --prefix=PREFIX install architecture-independent files in PREFIX
170 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
172 --bindir=DIR user executables in DIR [EPREFIX/bin]
173 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
174 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
175 --datadir=DIR read-only architecture-independent data in DIR
177 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
178 --sharedstatedir=DIR modifiable architecture-independent data in DIR
180 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
181 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
182 --includedir=DIR C header files in DIR [PREFIX/include]
183 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
184 --infodir=DIR info documentation in DIR [PREFIX/info]
185 --mandir=DIR man documentation in DIR [PREFIX/man]
186 --srcdir=DIR find the sources in DIR [configure dir or ..]
187 --program-prefix=PREFIX prepend PREFIX to installed program names
188 --program-suffix=SUFFIX append SUFFIX to installed program names
189 --program-transform-name=PROGRAM
190 run sed PROGRAM on installed program names
194 --build=BUILD configure for building on BUILD [BUILD=HOST]
195 --host=HOST configure for HOST [guessed]
196 --target=TARGET configure for TARGET [TARGET=HOST]
197 Features and packages:
198 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
199 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
200 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
201 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
202 --x-includes=DIR X include files are in DIR
203 --x-libraries=DIR X library files are in DIR
205 if test -n "$ac_help"; then
206 echo "--enable and --with options recognized:$ac_help"
210 -host |
--host |
--hos |
--ho)
212 -host=* |
--host=* |
--hos=* |
--ho=*)
215 -includedir |
--includedir |
--includedi |
--included |
--include \
216 |
--includ |
--inclu |
--incl |
--inc)
217 ac_prev
=includedir
;;
218 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
219 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
220 includedir
="$ac_optarg" ;;
222 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
224 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
225 infodir
="$ac_optarg" ;;
227 -libdir |
--libdir |
--libdi |
--libd)
229 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
230 libdir
="$ac_optarg" ;;
232 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
233 |
--libexe |
--libex |
--libe)
234 ac_prev
=libexecdir
;;
235 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
236 |
--libexe=* |
--libex=* |
--libe=*)
237 libexecdir
="$ac_optarg" ;;
239 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
240 |
--localstate |
--localstat |
--localsta |
--localst \
241 |
--locals |
--local |
--loca |
--loc |
--lo)
242 ac_prev
=localstatedir
;;
243 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
244 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
245 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
246 localstatedir
="$ac_optarg" ;;
248 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
250 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
251 mandir
="$ac_optarg" ;;
254 # Obsolete; use --without-fp.
257 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
261 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
262 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
265 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
266 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
267 |
--oldin |
--oldi |
--old |
--ol |
--o)
268 ac_prev
=oldincludedir
;;
269 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
270 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
271 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
272 oldincludedir
="$ac_optarg" ;;
274 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
276 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
277 prefix
="$ac_optarg" ;;
279 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
280 |
--program-pre |
--program-pr |
--program-p)
281 ac_prev
=program_prefix
;;
282 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
283 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
284 program_prefix
="$ac_optarg" ;;
286 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
287 |
--program-suf |
--program-su |
--program-s)
288 ac_prev
=program_suffix
;;
289 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
290 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
291 program_suffix
="$ac_optarg" ;;
293 -program-transform-name |
--program-transform-name \
294 |
--program-transform-nam |
--program-transform-na \
295 |
--program-transform-n |
--program-transform- \
296 |
--program-transform |
--program-transfor \
297 |
--program-transfo |
--program-transf \
298 |
--program-trans |
--program-tran \
299 |
--progr-tra |
--program-tr |
--program-t)
300 ac_prev
=program_transform_name
;;
301 -program-transform-name=* |
--program-transform-name=* \
302 |
--program-transform-nam=* |
--program-transform-na=* \
303 |
--program-transform-n=* |
--program-transform-=* \
304 |
--program-transform=* |
--program-transfor=* \
305 |
--program-transfo=* |
--program-transf=* \
306 |
--program-trans=* |
--program-tran=* \
307 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
308 program_transform_name
="$ac_optarg" ;;
310 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
311 |
-silent |
--silent |
--silen |
--sile |
--sil)
314 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
316 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
318 sbindir
="$ac_optarg" ;;
320 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
321 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
322 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
324 ac_prev
=sharedstatedir
;;
325 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
326 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
327 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
329 sharedstatedir
="$ac_optarg" ;;
331 -site |
--site |
--sit)
333 -site=* |
--site=* |
--sit=*)
336 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
338 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
339 srcdir
="$ac_optarg" ;;
341 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
342 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
343 ac_prev
=sysconfdir
;;
344 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
345 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
346 sysconfdir
="$ac_optarg" ;;
348 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
350 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
351 target
="$ac_optarg" ;;
353 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
356 -version |
--version |
--versio |
--versi |
--vers)
357 echo "configure generated by autoconf version 2.13"
361 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
362 # Reject names that are not valid shell variable names.
363 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
364 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
366 ac_package
=`echo $ac_package| sed 's/-/_/g'`
371 eval "with_${ac_package}='$ac_optarg'" ;;
373 -without-* |
--without-*)
374 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
375 # Reject names that are not valid shell variable names.
376 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
377 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
379 ac_package
=`echo $ac_package| sed 's/-/_/g'`
380 eval "with_${ac_package}=no" ;;
383 # Obsolete; use --with-x.
386 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
387 |
--x-incl |
--x-inc |
--x-in |
--x-i)
388 ac_prev
=x_includes
;;
389 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
390 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
391 x_includes
="$ac_optarg" ;;
393 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
394 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
395 ac_prev
=x_libraries
;;
396 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
397 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
398 x_libraries
="$ac_optarg" ;;
400 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
404 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
405 echo "configure: warning: $ac_option: invalid host type" 1>&2
407 if test "x$nonopt" != xNONE
; then
408 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
416 if test -n "$ac_prev"; then
417 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
420 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
422 # File descriptor usage:
425 # 2 errors and warnings
426 # 3 some systems may open it to /dev/tty
427 # 4 used on the Kubota Titan
428 # 6 checking for... messages and results
429 # 5 compiler messages saved in config.log
430 if test "$silent" = yes; then
438 This file contains any messages produced by compilers while
439 running configure, to aid debugging if configure makes a mistake.
442 # Strip out --no-create and --no-recursion so they do not pile up.
443 # Also quote any args containing shell metacharacters.
448 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
449 |
--no-cr |
--no-c) ;;
450 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
451 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
452 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
453 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
454 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
459 # Only set these to C if already set. These must not be set unconditionally
460 # because not all systems understand e.g. LANG=C (notably SCO).
461 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
462 # Non-C LC_CTYPE values break the ctype check.
463 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
464 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
465 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
466 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
468 # confdefs.h avoids OS command line length limits that DEFS can exceed.
469 rm -rf conftest
* confdefs.h
470 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
473 # A filename unique to this package, relative to the directory that
474 # configure is in, which we can look for to find out if srcdir is correct.
475 ac_unique_file
=gprof.c
477 # Find the source files, if location was not specified.
478 if test -z "$srcdir"; then
479 ac_srcdir_defaulted
=yes
480 # Try the directory containing this script, then its parent.
482 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
483 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
485 if test ! -r $srcdir/$ac_unique_file; then
489 ac_srcdir_defaulted
=no
491 if test ! -r $srcdir/$ac_unique_file; then
492 if test "$ac_srcdir_defaulted" = yes; then
493 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
495 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
498 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
500 # Prefer explicitly selected file to automatically selected ones.
501 if test -z "$CONFIG_SITE"; then
502 if test "x$prefix" != xNONE
; then
503 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
505 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
508 for ac_site_file
in $CONFIG_SITE; do
509 if test -r "$ac_site_file"; then
510 echo "loading site script $ac_site_file"
515 if test -r "$cache_file"; then
516 echo "loading cache $cache_file"
519 echo "creating cache $cache_file"
524 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
525 ac_cpp
='$CPP $CPPFLAGS'
526 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
527 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
528 cross_compiling
=$ac_cv_prog_cc_cross
532 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
533 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
534 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
541 ac_n
= ac_c
='\c' ac_t
=
544 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
545 echo "configure:546: checking for Cygwin environment" >&5
546 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
547 echo $ac_n "(cached) $ac_c" 1>&6
549 cat > conftest.
$ac_ext <<EOF
550 #line 551 "configure"
551 #include "confdefs.h"
556 #define __CYGWIN__ __CYGWIN32__
561 if { (eval echo configure
:562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
565 echo "configure: failed program was:" >&5
566 cat conftest.
$ac_ext >&5
574 echo "$ac_t""$ac_cv_cygwin" 1>&6
576 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
577 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
578 echo "configure:579: checking for mingw32 environment" >&5
579 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
580 echo $ac_n "(cached) $ac_c" 1>&6
582 cat > conftest.
$ac_ext <<EOF
583 #line 584 "configure"
584 #include "confdefs.h"
590 if { (eval echo configure
:591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
594 echo "configure: failed program was:" >&5
595 cat conftest.
$ac_ext >&5
603 echo "$ac_t""$ac_cv_mingw32" 1>&6
605 test "$ac_cv_mingw32" = yes && MINGW32
=yes
609 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
610 if test -f $ac_dir/install-sh
; then
612 ac_install_sh
="$ac_aux_dir/install-sh -c"
614 elif test -f $ac_dir/install.sh
; then
616 ac_install_sh
="$ac_aux_dir/install.sh -c"
620 if test -z "$ac_aux_dir"; then
621 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
623 ac_config_guess
=$ac_aux_dir/config.guess
624 ac_config_sub
=$ac_aux_dir/config.sub
625 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
628 # Do some error checking and defaulting for the host and target type.
630 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
633 # 1. You are not allowed to specify --host, --target, and nonopt at the
635 # 2. Host defaults to nonopt.
636 # 3. If nonopt is not specified, then host defaults to the current host,
637 # as determined by config.guess.
638 # 4. Target and build default to nonopt.
639 # 5. If nonopt is not specified, then target and build default to host.
641 # The aliases save the names the user supplied, while $host etc.
642 # will get canonicalized.
643 case $host---$target---$nonopt in
644 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
645 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
649 # Make sure we can run config.sub.
650 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
651 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
654 echo $ac_n "checking host system type""... $ac_c" 1>&6
655 echo "configure:656: checking host system type" >&5
658 case "$host_alias" in
662 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
663 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
665 *) host_alias
=$nonopt ;;
669 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
670 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
671 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
672 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
673 echo "$ac_t""$host" 1>&6
675 echo $ac_n "checking target system type""... $ac_c" 1>&6
676 echo "configure:677: checking target system type" >&5
679 case "$target_alias" in
682 NONE
) target_alias
=$host_alias ;;
683 *) target_alias
=$nonopt ;;
687 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
688 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
689 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
690 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
691 echo "$ac_t""$target" 1>&6
693 echo $ac_n "checking build system type""... $ac_c" 1>&6
694 echo "configure:695: checking build system type" >&5
697 case "$build_alias" in
700 NONE
) build_alias
=$host_alias ;;
701 *) build_alias
=$nonopt ;;
705 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
706 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
707 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
708 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
709 echo "$ac_t""$build" 1>&6
711 test "$host_alias" != "$target_alias" &&
712 test "$program_prefix$program_suffix$program_transform_name" = \
714 program_prefix
=${target_alias}-
716 # Extract the first word of "gcc", so it can be a program name with args.
717 set dummy gcc
; ac_word
=$2
718 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
719 echo "configure:720: checking for $ac_word" >&5
720 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
721 echo $ac_n "(cached) $ac_c" 1>&6
723 if test -n "$CC"; then
724 ac_cv_prog_CC
="$CC" # Let the user override the test.
726 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
728 for ac_dir
in $ac_dummy; do
729 test -z "$ac_dir" && ac_dir
=.
730 if test -f $ac_dir/$ac_word; then
739 if test -n "$CC"; then
740 echo "$ac_t""$CC" 1>&6
742 echo "$ac_t""no" 1>&6
745 if test -z "$CC"; then
746 # Extract the first word of "cc", so it can be a program name with args.
747 set dummy cc
; ac_word
=$2
748 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
749 echo "configure:750: checking for $ac_word" >&5
750 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
751 echo $ac_n "(cached) $ac_c" 1>&6
753 if test -n "$CC"; then
754 ac_cv_prog_CC
="$CC" # Let the user override the test.
756 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
759 for ac_dir
in $ac_dummy; do
760 test -z "$ac_dir" && ac_dir
=.
761 if test -f $ac_dir/$ac_word; then
762 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
771 if test $ac_prog_rejected = yes; then
772 # We found a bogon in the path, so make sure we never use it.
773 set dummy
$ac_cv_prog_CC
775 if test $# -gt 0; then
776 # We chose a different compiler from the bogus one.
777 # However, it has the same basename, so the bogon will be chosen
778 # first if we set CC to just the basename; use the full file name.
780 set dummy
"$ac_dir/$ac_word" "$@"
788 if test -n "$CC"; then
789 echo "$ac_t""$CC" 1>&6
791 echo "$ac_t""no" 1>&6
794 if test -z "$CC"; then
797 # Extract the first word of "cl", so it can be a program name with args.
798 set dummy cl
; ac_word
=$2
799 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
800 echo "configure:801: checking for $ac_word" >&5
801 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
802 echo $ac_n "(cached) $ac_c" 1>&6
804 if test -n "$CC"; then
805 ac_cv_prog_CC
="$CC" # Let the user override the test.
807 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
809 for ac_dir
in $ac_dummy; do
810 test -z "$ac_dir" && ac_dir
=.
811 if test -f $ac_dir/$ac_word; then
820 if test -n "$CC"; then
821 echo "$ac_t""$CC" 1>&6
823 echo "$ac_t""no" 1>&6
828 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
831 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
832 echo "configure:833: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
835 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
836 ac_cpp
='$CPP $CPPFLAGS'
837 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
838 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
839 cross_compiling
=$ac_cv_prog_cc_cross
841 cat > conftest.
$ac_ext << EOF
843 #line 844 "configure"
844 #include "confdefs.h"
848 if { (eval echo configure
:849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
849 ac_cv_prog_cc_works
=yes
850 # If we can't run a trivial program, we are probably using a cross compiler.
851 if (.
/conftest
; exit) 2>/dev
/null
; then
852 ac_cv_prog_cc_cross
=no
854 ac_cv_prog_cc_cross
=yes
857 echo "configure: failed program was:" >&5
858 cat conftest.
$ac_ext >&5
859 ac_cv_prog_cc_works
=no
863 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
864 ac_cpp
='$CPP $CPPFLAGS'
865 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
866 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
867 cross_compiling
=$ac_cv_prog_cc_cross
869 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
870 if test $ac_cv_prog_cc_works = no
; then
871 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
873 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
874 echo "configure:875: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
875 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
876 cross_compiling
=$ac_cv_prog_cc_cross
878 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
879 echo "configure:880: checking whether we are using GNU C" >&5
880 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
881 echo $ac_n "(cached) $ac_c" 1>&6
883 cat > conftest.c
<<EOF
888 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
895 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
897 if test $ac_cv_prog_gcc = yes; then
903 ac_test_CFLAGS
="${CFLAGS+set}"
904 ac_save_CFLAGS
="$CFLAGS"
906 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
907 echo "configure:908: checking whether ${CC-cc} accepts -g" >&5
908 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
909 echo $ac_n "(cached) $ac_c" 1>&6
911 echo 'void f(){}' > conftest.c
912 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
921 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
922 if test "$ac_test_CFLAGS" = set; then
923 CFLAGS
="$ac_save_CFLAGS"
924 elif test $ac_cv_prog_cc_g = yes; then
925 if test "$GCC" = yes; then
931 if test "$GCC" = yes; then
938 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
939 echo "configure:940: checking for POSIXized ISC" >&5
940 if test -d /etc
/conf
/kconfig.d
&&
941 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
943 echo "$ac_t""yes" 1>&6
944 ISC
=yes # If later tests want to check for ISC.
945 cat >> confdefs.h
<<\EOF
946 #define _POSIX_SOURCE 1
949 if test "$GCC" = yes; then
955 echo "$ac_t""no" 1>&6
960 # Find a good install program. We prefer a C program (faster),
961 # so one script is as good as another. But avoid the broken or
962 # incompatible versions:
963 # SysV /etc/install, /usr/sbin/install
964 # SunOS /usr/etc/install
967 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
968 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
969 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
970 # ./install, which can be erroneously created by make from ./install.sh.
971 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
972 echo "configure:973: checking for a BSD compatible install" >&5
973 if test -z "$INSTALL"; then
974 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
975 echo $ac_n "(cached) $ac_c" 1>&6
977 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
978 for ac_dir
in $PATH; do
979 # Account for people who put trailing slashes in PATH elements.
981 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
983 # OSF1 and SCO ODT 3.0 have their own names for install.
984 # Don't use installbsd from OSF since it installs stuff as root
986 for ac_prog
in ginstall scoinst
install; do
987 if test -f $ac_dir/$ac_prog; then
988 if test $ac_prog = install &&
989 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
990 # AIX install. It has an incompatible calling convention.
993 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1004 if test "${ac_cv_path_install+set}" = set; then
1005 INSTALL
="$ac_cv_path_install"
1007 # As a last resort, use the slow shell script. We don't cache a
1008 # path for INSTALL within a source directory, because that will
1009 # break other packages using the cache if that directory is
1010 # removed, or if the path is relative.
1011 INSTALL
="$ac_install_sh"
1014 echo "$ac_t""$INSTALL" 1>&6
1016 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1017 # It thinks the first close brace ends the variable substitution.
1018 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1020 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1022 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1024 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1025 echo "configure:1026: checking whether build environment is sane" >&5
1028 echo timestamp
> conftestfile
1029 # Do `set' in a subshell so we don't clobber the current shell's
1030 # arguments. Must try -L first in case configure is actually a
1031 # symlink; some systems play weird games with the mod time of symlinks
1032 # (eg FreeBSD returns the mod time of the symlink's containing
1035 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1036 if test "$*" = "X"; then
1038 set X
`ls -t $srcdir/configure conftestfile`
1040 if test "$*" != "X $srcdir/configure conftestfile" \
1041 && test "$*" != "X conftestfile $srcdir/configure"; then
1043 # If neither matched, then we have a broken ls. This can happen
1044 # if, for instance, CONFIG_SHELL is bash and it inherits a
1045 # broken ls alias from the environment. This has actually
1046 # happened. Such a system could not be considered "sane".
1047 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1048 alias in your environment" 1>&2; exit 1; }
1051 test "$2" = conftestfile
1057 { echo "configure: error: newly created file is older than distributed files!
1058 Check your system clock" 1>&2; exit 1; }
1061 echo "$ac_t""yes" 1>&6
1062 if test "$program_transform_name" = s
,x
,x
,; then
1063 program_transform_name
=
1065 # Double any \ or $. echo might interpret backslashes.
1066 cat <<\EOF_SED
> conftestsed
1067 s
,\\,\\\\,g
; s
,\$
,$$
,g
1069 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1072 test "$program_prefix" != NONE
&&
1073 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1074 # Use a double $ so make ignores it.
1075 test "$program_suffix" != NONE
&&
1076 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1078 # sed with no file args requires a program.
1079 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1081 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1082 echo "configure:1083: checking whether ${MAKE-make} sets \${MAKE}" >&5
1083 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1084 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1085 echo $ac_n "(cached) $ac_c" 1>&6
1087 cat > conftestmake
<<\EOF
1089 @
echo 'ac_maketemp="${MAKE}"'
1091 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1092 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1093 if test -n "$ac_maketemp"; then
1094 eval ac_cv_prog_make_
${ac_make}_set
=yes
1096 eval ac_cv_prog_make_
${ac_make}_set
=no
1100 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1101 echo "$ac_t""yes" 1>&6
1104 echo "$ac_t""no" 1>&6
1105 SET_MAKE
="MAKE=${MAKE-make}"
1113 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
1114 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
1116 cat >> confdefs.h
<<EOF
1117 #define PACKAGE "$PACKAGE"
1120 cat >> confdefs.h
<<EOF
1121 #define VERSION "$VERSION"
1126 missing_dir
=`cd $ac_aux_dir && pwd`
1127 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1128 echo "configure:1129: checking for working aclocal" >&5
1129 # Run test in a subshell; some versions of sh will print an error if
1130 # an executable is not found, even if stderr is redirected.
1131 # Redirect stdin to placate older versions of autoconf. Sigh.
1132 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
1134 echo "$ac_t""found" 1>&6
1136 ACLOCAL
="$missing_dir/missing aclocal"
1137 echo "$ac_t""missing" 1>&6
1140 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1141 echo "configure:1142: checking for working autoconf" >&5
1142 # Run test in a subshell; some versions of sh will print an error if
1143 # an executable is not found, even if stderr is redirected.
1144 # Redirect stdin to placate older versions of autoconf. Sigh.
1145 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
1147 echo "$ac_t""found" 1>&6
1149 AUTOCONF
="$missing_dir/missing autoconf"
1150 echo "$ac_t""missing" 1>&6
1153 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1154 echo "configure:1155: checking for working automake" >&5
1155 # Run test in a subshell; some versions of sh will print an error if
1156 # an executable is not found, even if stderr is redirected.
1157 # Redirect stdin to placate older versions of autoconf. Sigh.
1158 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
1160 echo "$ac_t""found" 1>&6
1162 AUTOMAKE
="$missing_dir/missing automake"
1163 echo "$ac_t""missing" 1>&6
1166 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1167 echo "configure:1168: checking for working autoheader" >&5
1168 # Run test in a subshell; some versions of sh will print an error if
1169 # an executable is not found, even if stderr is redirected.
1170 # Redirect stdin to placate older versions of autoconf. Sigh.
1171 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
1172 AUTOHEADER
=autoheader
1173 echo "$ac_t""found" 1>&6
1175 AUTOHEADER
="$missing_dir/missing autoheader"
1176 echo "$ac_t""missing" 1>&6
1179 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1180 echo "configure:1181: checking for working makeinfo" >&5
1181 # Run test in a subshell; some versions of sh will print an error if
1182 # an executable is not found, even if stderr is redirected.
1183 # Redirect stdin to placate older versions of autoconf. Sigh.
1184 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
1186 echo "$ac_t""found" 1>&6
1188 MAKEINFO
="$missing_dir/missing makeinfo"
1189 echo "$ac_t""missing" 1>&6
1194 # Check whether --enable-shared or --disable-shared was given.
1195 if test "${enable_shared+set}" = set; then
1196 enableval
="$enable_shared"
1197 p
=${PACKAGE-default}
1198 case "$enableval" in
1199 yes) enable_shared
=yes ;;
1200 no
) enable_shared
=no
;;
1203 # Look at the argument we got. We use all the common list separators.
1204 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1205 for pkg
in $enableval; do
1206 if test "X$pkg" = "X$p"; then
1217 # Check whether --enable-static or --disable-static was given.
1218 if test "${enable_static+set}" = set; then
1219 enableval
="$enable_static"
1220 p
=${PACKAGE-default}
1221 case "$enableval" in
1222 yes) enable_static
=yes ;;
1223 no
) enable_static
=no
;;
1226 # Look at the argument we got. We use all the common list separators.
1227 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1228 for pkg
in $enableval; do
1229 if test "X$pkg" = "X$p"; then
1240 # Check whether --enable-fast-install or --disable-fast-install was given.
1241 if test "${enable_fast_install+set}" = set; then
1242 enableval
="$enable_fast_install"
1243 p
=${PACKAGE-default}
1244 case "$enableval" in
1245 yes) enable_fast_install
=yes ;;
1246 no
) enable_fast_install
=no
;;
1248 enable_fast_install
=no
1249 # Look at the argument we got. We use all the common list separators.
1250 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1251 for pkg
in $enableval; do
1252 if test "X$pkg" = "X$p"; then
1253 enable_fast_install
=yes
1260 enable_fast_install
=yes
1263 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1264 if test "${with_gnu_ld+set}" = set; then
1265 withval
="$with_gnu_ld"
1266 test "$withval" = no || with_gnu_ld
=yes
1272 if test "$ac_cv_prog_gcc" = yes; then
1273 # Check if gcc -print-prog-name=ld gives a path.
1274 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1275 echo "configure:1276: checking for ld used by GCC" >&5
1278 # gcc leaves a trailing carriage return which upsets mingw
1279 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1281 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
1284 # Accept absolute paths.
1285 [\\/]* |
[A-Za-z
]:[\\/]*)
1286 re_direlt
='/[^/][^/]*/\.\./'
1287 # Canonicalize the path of ld
1288 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1289 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1290 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1292 test -z "$LD" && LD
="$ac_prog"
1295 # If it fails, then pretend we aren't using GCC.
1299 # If it is relative, then search for the first ld in PATH.
1303 elif test "$with_gnu_ld" = yes; then
1304 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1305 echo "configure:1306: checking for GNU ld" >&5
1307 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1308 echo "configure:1309: checking for non-GNU ld" >&5
1310 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1311 echo $ac_n "(cached) $ac_c" 1>&6
1313 if test -z "$LD"; then
1314 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1315 for ac_dir
in $PATH; do
1316 test -z "$ac_dir" && ac_dir
=.
1317 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1318 ac_cv_path_LD
="$ac_dir/$ac_prog"
1319 # Check to see if the program is GNU ld. I'd rather use --version,
1320 # but apparently some GNU ld's only accept -v.
1321 # Break only if it was the GNU/non-GNU ld that we prefer.
1322 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1323 test "$with_gnu_ld" != no
&& break
1325 test "$with_gnu_ld" != yes && break
1331 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1336 if test -n "$LD"; then
1337 echo "$ac_t""$LD" 1>&6
1339 echo "$ac_t""no" 1>&6
1341 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1342 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1343 echo "configure:1344: checking if the linker ($LD) is GNU ld" >&5
1344 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1345 echo $ac_n "(cached) $ac_c" 1>&6
1347 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1348 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1349 ac_cv_prog_gnu_ld
=yes
1351 ac_cv_prog_gnu_ld
=no
1355 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1356 with_gnu_ld
=$ac_cv_prog_gnu_ld
1359 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1360 echo "configure:1361: checking for $LD option to reload object files" >&5
1361 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1362 echo $ac_n "(cached) $ac_c" 1>&6
1364 lt_cv_ld_reload_flag
='-r'
1367 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1368 reload_flag
=$lt_cv_ld_reload_flag
1369 test -n "$reload_flag" && reload_flag
=" $reload_flag"
1371 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1372 echo "configure:1373: checking for BSD-compatible nm" >&5
1373 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1374 echo $ac_n "(cached) $ac_c" 1>&6
1376 if test -n "$NM"; then
1377 # Let the user override the test.
1380 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1381 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1382 test -z "$ac_dir" && ac_dir
=.
1383 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
1384 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
1385 # Check to see if the nm accepts a BSD-compat flag.
1386 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1387 # nm: unknown option "B" ignored
1388 # Tru64's nm complains that /dev/null is an invalid object file
1389 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep '(/dev/null|Invalid file or object type)' >/dev
/null
; then
1390 ac_cv_path_NM
="$tmp_nm -B"
1392 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1393 ac_cv_path_NM
="$tmp_nm -p"
1396 ac_cv_path_NM
=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but
1397 continue # so that we can try to find one that supports BSD flags
1402 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1407 echo "$ac_t""$NM" 1>&6
1409 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1410 echo "configure:1411: checking whether ln -s works" >&5
1411 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1412 echo $ac_n "(cached) $ac_c" 1>&6
1415 if ln -s X conftestdata
2>/dev
/null
1418 ac_cv_prog_LN_S
="ln -s"
1423 LN_S
="$ac_cv_prog_LN_S"
1424 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1425 echo "$ac_t""yes" 1>&6
1427 echo "$ac_t""no" 1>&6
1430 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1431 echo "configure:1432: checking how to recognise dependant libraries" >&5
1432 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1433 echo $ac_n "(cached) $ac_c" 1>&6
1435 lt_cv_file_magic_cmd
='$MAGIC_CMD'
1436 lt_cv_file_magic_test_file
=
1437 lt_cv_deplibs_check_method
='unknown'
1438 # Need to set the preceding variable on all platforms that support
1439 # interlibrary dependencies.
1440 # 'none' -- dependencies not supported.
1441 # `unknown' -- same as none, but documents that we really don't know.
1442 # 'pass_all' -- all dependencies passed with no checks.
1443 # 'test_compile' -- check by making test program.
1444 # 'file_magic [regex]' -- check by looking for files in library path
1445 # which responds to the $file_magic_cmd with a given egrep regex.
1446 # If you have `file' or equivalent on your system and you're not sure
1447 # whether `pass_all' will *always* work, you probably want this one.
1451 lt_cv_deplibs_check_method
=pass_all
1455 lt_cv_deplibs_check_method
=pass_all
1459 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1460 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1461 lt_cv_file_magic_test_file
=/shlib
/libc.so
1464 cygwin
* | mingw
* |pw32
*)
1465 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
1466 lt_cv_file_magic_cmd
='$OBJDUMP -f'
1470 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1473 # Not sure whether the presence of OpenBSD here was a mistake.
1474 # Let's accept both of them until this is cleared up.
1475 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1476 lt_cv_file_magic_cmd
=/usr
/bin
/file
1477 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
1481 lt_cv_deplibs_check_method
=pass_all
1486 lt_cv_deplibs_check_method
=pass_all
1490 # TODO: Does this work for hpux-11 too?
1491 lt_cv_deplibs_check_method
='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library'
1492 lt_cv_file_magic_cmd
=/usr
/bin
/file
1493 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
1499 # this will be overridden with pass_all, but let us keep it just in case
1500 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1504 *-32|
*"-32 ") libmagic
=32-bit;;
1505 *-n32|
*"-n32 ") libmagic
=N32
;;
1506 *-64|
*"-64 ") libmagic
=64-bit;;
1507 *) libmagic
=never-match
;;
1509 # this will be overridden with pass_all, but let us keep it just in case
1510 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1513 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
1514 lt_cv_deplibs_check_method
=pass_all
1517 # This must be Linux ELF.
1520 alpha
* | i
*86 | powerpc
* | sparc
* | ia64
* )
1521 lt_cv_deplibs_check_method
=pass_all
;;
1523 # glibc up to 2.1.1 does not perform some relocations on ARM
1524 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1526 lt_cv_file_magic_test_file
=`echo /lib/libc.so* /lib/libc-*.so`
1530 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then :
1532 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1533 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1534 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
1538 osf3
* | osf4
* | osf5
*)
1539 # this will be overridden with pass_all, but let us keep it just in case
1540 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
1541 lt_cv_file_magic_test_file
=/shlib
/libc.so
1542 lt_cv_deplibs_check_method
=pass_all
1546 lt_cv_deplibs_check_method
=pass_all
1550 lt_cv_deplibs_check_method
=pass_all
1551 lt_cv_file_magic_test_file
=/lib
/libc.so
1554 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
1555 case "$host_vendor" in
1557 lt_cv_deplibs_check_method
=pass_all
1560 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]'
1561 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
1569 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1570 file_magic_cmd
=$lt_cv_file_magic_cmd
1571 deplibs_check_method
=$lt_cv_deplibs_check_method
1573 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1574 echo "configure:1575: checking for object suffix" >&5
1575 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1576 echo $ac_n "(cached) $ac_c" 1>&6
1579 echo 'int i = 1;' > conftest.
$ac_ext
1580 if { (eval echo configure
:1581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1581 for ac_file
in conftest.
*; do
1584 *) ac_cv_objext
=`echo $ac_file | sed -e s/conftest.//` ;;
1588 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1593 echo "$ac_t""$ac_cv_objext" 1>&6
1594 OBJEXT
=$ac_cv_objext
1595 ac_objext
=$ac_cv_objext
1599 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1600 echo "configure:1601: checking for executable suffix" >&5
1601 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1602 echo $ac_n "(cached) $ac_c" 1>&6
1604 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1608 echo 'int main () { return 0; }' > conftest.
$ac_ext
1610 if { (eval echo configure
:1611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1611 for file in conftest.
*; do
1613 *.c |
*.o |
*.obj
) ;;
1614 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1618 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1621 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1626 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1627 echo "$ac_t""${ac_cv_exeext}" 1>&6
1630 if test $host != $build; then
1631 ac_tool_prefix
=${host_alias}-
1636 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1638 # Only perform the check for file, if the check method requires it
1639 case "$deplibs_check_method" in
1641 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1642 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1643 echo "configure:1644: checking for ${ac_tool_prefix}file" >&5
1644 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1645 echo $ac_n "(cached) $ac_c" 1>&6
1647 case "$MAGIC_CMD" in
1649 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
1652 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
1655 ac_save_MAGIC_CMD
="$MAGIC_CMD"
1656 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1657 ac_dummy
="/usr/bin:$PATH"
1658 for ac_dir
in $ac_dummy; do
1659 test -z "$ac_dir" && ac_dir
=.
1660 if test -f $ac_dir/${ac_tool_prefix}file; then
1661 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
1662 if test -n "$file_magic_test_file"; then
1663 case "$deplibs_check_method" in
1665 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1666 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1667 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1668 egrep "$file_magic_regex" > /dev
/null
; then
1673 *** Warning: the command libtool uses to detect shared libraries,
1674 *** $file_magic_cmd, produces output that libtool cannot recognize.
1675 *** The result is that libtool may fail to recognize shared libraries
1676 *** as such. This will affect the creation of libtool libraries that
1677 *** depend on shared libraries, but programs linked with such libtool
1678 *** libraries will work regardless of this problem. Nevertheless, you
1679 *** may want to report the problem to your system manager and/or to
1680 *** bug-libtool@gnu.org
1690 MAGIC_CMD
="$ac_save_MAGIC_CMD"
1695 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1696 if test -n "$MAGIC_CMD"; then
1697 echo "$ac_t""$MAGIC_CMD" 1>&6
1699 echo "$ac_t""no" 1>&6
1702 if test -z "$lt_cv_path_MAGIC_CMD"; then
1703 if test -n "$ac_tool_prefix"; then
1704 echo $ac_n "checking for file""... $ac_c" 1>&6
1705 echo "configure:1706: checking for file" >&5
1706 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1707 echo $ac_n "(cached) $ac_c" 1>&6
1709 case "$MAGIC_CMD" in
1711 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
1714 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
1717 ac_save_MAGIC_CMD
="$MAGIC_CMD"
1718 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1719 ac_dummy
="/usr/bin:$PATH"
1720 for ac_dir
in $ac_dummy; do
1721 test -z "$ac_dir" && ac_dir
=.
1722 if test -f $ac_dir/file; then
1723 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
1724 if test -n "$file_magic_test_file"; then
1725 case "$deplibs_check_method" in
1727 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1728 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1729 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1730 egrep "$file_magic_regex" > /dev
/null
; then
1735 *** Warning: the command libtool uses to detect shared libraries,
1736 *** $file_magic_cmd, produces output that libtool cannot recognize.
1737 *** The result is that libtool may fail to recognize shared libraries
1738 *** as such. This will affect the creation of libtool libraries that
1739 *** depend on shared libraries, but programs linked with such libtool
1740 *** libraries will work regardless of this problem. Nevertheless, you
1741 *** may want to report the problem to your system manager and/or to
1742 *** bug-libtool@gnu.org
1752 MAGIC_CMD
="$ac_save_MAGIC_CMD"
1757 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1758 if test -n "$MAGIC_CMD"; then
1759 echo "$ac_t""$MAGIC_CMD" 1>&6
1761 echo "$ac_t""no" 1>&6
1773 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1774 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1775 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1776 echo "configure:1777: checking for $ac_word" >&5
1777 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1778 echo $ac_n "(cached) $ac_c" 1>&6
1780 if test -n "$RANLIB"; then
1781 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1783 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1785 for ac_dir
in $ac_dummy; do
1786 test -z "$ac_dir" && ac_dir
=.
1787 if test -f $ac_dir/$ac_word; then
1788 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1795 RANLIB
="$ac_cv_prog_RANLIB"
1796 if test -n "$RANLIB"; then
1797 echo "$ac_t""$RANLIB" 1>&6
1799 echo "$ac_t""no" 1>&6
1803 if test -z "$ac_cv_prog_RANLIB"; then
1804 if test -n "$ac_tool_prefix"; then
1805 # Extract the first word of "ranlib", so it can be a program name with args.
1806 set dummy ranlib
; ac_word
=$2
1807 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1808 echo "configure:1809: checking for $ac_word" >&5
1809 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1810 echo $ac_n "(cached) $ac_c" 1>&6
1812 if test -n "$RANLIB"; then
1813 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1815 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1817 for ac_dir
in $ac_dummy; do
1818 test -z "$ac_dir" && ac_dir
=.
1819 if test -f $ac_dir/$ac_word; then
1820 ac_cv_prog_RANLIB
="ranlib"
1825 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1828 RANLIB
="$ac_cv_prog_RANLIB"
1829 if test -n "$RANLIB"; then
1830 echo "$ac_t""$RANLIB" 1>&6
1832 echo "$ac_t""no" 1>&6
1840 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1841 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1842 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1843 echo "configure:1844: checking for $ac_word" >&5
1844 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1845 echo $ac_n "(cached) $ac_c" 1>&6
1847 if test -n "$STRIP"; then
1848 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1850 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1852 for ac_dir
in $ac_dummy; do
1853 test -z "$ac_dir" && ac_dir
=.
1854 if test -f $ac_dir/$ac_word; then
1855 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
1862 STRIP
="$ac_cv_prog_STRIP"
1863 if test -n "$STRIP"; then
1864 echo "$ac_t""$STRIP" 1>&6
1866 echo "$ac_t""no" 1>&6
1870 if test -z "$ac_cv_prog_STRIP"; then
1871 if test -n "$ac_tool_prefix"; then
1872 # Extract the first word of "strip", so it can be a program name with args.
1873 set dummy strip
; ac_word
=$2
1874 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1875 echo "configure:1876: checking for $ac_word" >&5
1876 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1877 echo $ac_n "(cached) $ac_c" 1>&6
1879 if test -n "$STRIP"; then
1880 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1882 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1884 for ac_dir
in $ac_dummy; do
1885 test -z "$ac_dir" && ac_dir
=.
1886 if test -f $ac_dir/$ac_word; then
1887 ac_cv_prog_STRIP
="strip"
1892 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
=":"
1895 STRIP
="$ac_cv_prog_STRIP"
1896 if test -n "$STRIP"; then
1897 echo "$ac_t""$STRIP" 1>&6
1899 echo "$ac_t""no" 1>&6
1908 # Check for any special flags to pass to ltconfig.
1909 libtool_flags
="--cache-file=$cache_file"
1910 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1911 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1912 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1913 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1914 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1917 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1918 if test "${enable_libtool_lock+set}" = set; then
1919 enableval
="$enable_libtool_lock"
1923 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
1924 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
1926 # Check whether --with-pic or --without-pic was given.
1927 if test "${with_pic+set}" = set; then
1934 test x
"$pic_mode" = xyes
&& libtool_flags
="$libtool_flags --prefer-pic"
1935 test x
"$pic_mode" = xno
&& libtool_flags
="$libtool_flags --prefer-non-pic"
1937 # Some flags need to be propagated to the compiler or linker for good
1941 # Find out which ABI we are using.
1942 echo '#line 1943 "configure"' > conftest.
$ac_ext
1943 if { (eval echo configure
:1944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1944 case "`/usr/bin/file conftest.o`" in
1960 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1961 SAVE_CFLAGS
="$CFLAGS"
1962 CFLAGS
="$CFLAGS -belf"
1963 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1964 echo "configure:1965: checking whether the C compiler needs -belf" >&5
1965 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1966 echo $ac_n "(cached) $ac_c" 1>&6
1970 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1971 ac_cpp
='$CPP $CPPFLAGS'
1972 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1973 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1974 cross_compiling
=$ac_cv_prog_cc_cross
1976 cat > conftest.
$ac_ext <<EOF
1977 #line 1978 "configure"
1978 #include "confdefs.h"
1984 if { (eval echo configure
:1985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1986 lt_cv_cc_needs_belf
=yes
1988 echo "configure: failed program was:" >&5
1989 cat conftest.
$ac_ext >&5
1991 lt_cv_cc_needs_belf
=no
1995 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1996 ac_cpp
='$CPP $CPPFLAGS'
1997 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1998 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1999 cross_compiling
=$ac_cv_prog_cc_cross
2003 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2004 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
2005 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2006 CFLAGS
="$SAVE_CFLAGS"
2014 # Save cache, so that ltconfig can load it
2015 cat > confcache
<<\EOF
2016 # This file is a shell script that caches the results of configure
2017 # tests run on this system so they can be shared between configure
2018 # scripts and configure runs. It is not useful on other systems.
2019 # If it contains results you don't want to keep, you may remove or edit it.
2021 # By default, configure uses ./config.cache as the cache file,
2022 # creating it if it does not exist already. You can give configure
2023 # the --cache-file=FILE option to use a different cache file; that is
2024 # what configure does when it calls configure scripts in
2025 # subdirectories, so they share the cache.
2026 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2027 # config.status only pays attention to the cache file if you give it the
2028 # --recheck option to rerun configure.
2031 # The following way of writing the cache mishandles newlines in values,
2032 # but we know of no workaround that is simple, portable, and efficient.
2033 # So, don't put newlines in cache variables' values.
2034 # Ultrix sh set writes to stderr and can't be redirected directly,
2035 # and sets the high bit in the cache file unless we assign to the vars.
2037 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2039 # `set' does not quote correctly, so add quotes (double-quote substitution
2040 # turns \\\\ into \\, and sed turns \\ into \).
2042 -e "s/'/'\\\\''/g" \
2043 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2046 # `set' quotes correctly as required by POSIX, so do not add quotes.
2047 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2050 if cmp -s $cache_file confcache
; then
2053 if test -w $cache_file; then
2054 echo "updating cache $cache_file"
2055 cat confcache
> $cache_file
2057 echo "not updating unwritable cache $cache_file"
2063 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2064 AR
="$AR" LTCC
="$CC" CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
2065 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
2066 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
2067 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
2068 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
2069 deplibs_check_method
="$deplibs_check_method" file_magic_cmd
="$file_magic_cmd" \
2070 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
2071 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh
$host \
2072 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2074 # Reload cache, that may have been modified by ltconfig
2075 if test -r "$cache_file"; then
2076 echo "loading cache $cache_file"
2079 echo "creating cache $cache_file"
2084 # This can be used to rebuild libtool when needed
2085 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2087 # Always use our own libtool.
2088 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
2090 # Redirect the config.log output again, so that the ltconfig log is not
2091 # clobbered by the next message.
2092 exec 5>>.
/config.log
2105 # Extract the first word of "gcc", so it can be a program name with args.
2106 set dummy gcc
; ac_word
=$2
2107 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2108 echo "configure:2109: checking for $ac_word" >&5
2109 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2110 echo $ac_n "(cached) $ac_c" 1>&6
2112 if test -n "$CC"; then
2113 ac_cv_prog_CC
="$CC" # Let the user override the test.
2115 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2117 for ac_dir
in $ac_dummy; do
2118 test -z "$ac_dir" && ac_dir
=.
2119 if test -f $ac_dir/$ac_word; then
2128 if test -n "$CC"; then
2129 echo "$ac_t""$CC" 1>&6
2131 echo "$ac_t""no" 1>&6
2134 if test -z "$CC"; then
2135 # Extract the first word of "cc", so it can be a program name with args.
2136 set dummy cc
; ac_word
=$2
2137 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2138 echo "configure:2139: checking for $ac_word" >&5
2139 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2140 echo $ac_n "(cached) $ac_c" 1>&6
2142 if test -n "$CC"; then
2143 ac_cv_prog_CC
="$CC" # Let the user override the test.
2145 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2148 for ac_dir
in $ac_dummy; do
2149 test -z "$ac_dir" && ac_dir
=.
2150 if test -f $ac_dir/$ac_word; then
2151 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2152 ac_prog_rejected
=yes
2160 if test $ac_prog_rejected = yes; then
2161 # We found a bogon in the path, so make sure we never use it.
2162 set dummy
$ac_cv_prog_CC
2164 if test $# -gt 0; then
2165 # We chose a different compiler from the bogus one.
2166 # However, it has the same basename, so the bogon will be chosen
2167 # first if we set CC to just the basename; use the full file name.
2169 set dummy
"$ac_dir/$ac_word" "$@"
2177 if test -n "$CC"; then
2178 echo "$ac_t""$CC" 1>&6
2180 echo "$ac_t""no" 1>&6
2183 if test -z "$CC"; then
2184 case "`uname -s`" in
2186 # Extract the first word of "cl", so it can be a program name with args.
2187 set dummy cl
; ac_word
=$2
2188 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2189 echo "configure:2190: checking for $ac_word" >&5
2190 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2191 echo $ac_n "(cached) $ac_c" 1>&6
2193 if test -n "$CC"; then
2194 ac_cv_prog_CC
="$CC" # Let the user override the test.
2196 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2198 for ac_dir
in $ac_dummy; do
2199 test -z "$ac_dir" && ac_dir
=.
2200 if test -f $ac_dir/$ac_word; then
2209 if test -n "$CC"; then
2210 echo "$ac_t""$CC" 1>&6
2212 echo "$ac_t""no" 1>&6
2217 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2220 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2221 echo "configure:2222: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2224 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2225 ac_cpp
='$CPP $CPPFLAGS'
2226 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2227 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2228 cross_compiling
=$ac_cv_prog_cc_cross
2230 cat > conftest.
$ac_ext << EOF
2232 #line 2233 "configure"
2233 #include "confdefs.h"
2237 if { (eval echo configure
:2238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2238 ac_cv_prog_cc_works
=yes
2239 # If we can't run a trivial program, we are probably using a cross compiler.
2240 if (.
/conftest
; exit) 2>/dev
/null
; then
2241 ac_cv_prog_cc_cross
=no
2243 ac_cv_prog_cc_cross
=yes
2246 echo "configure: failed program was:" >&5
2247 cat conftest.
$ac_ext >&5
2248 ac_cv_prog_cc_works
=no
2252 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2253 ac_cpp
='$CPP $CPPFLAGS'
2254 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2255 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2256 cross_compiling
=$ac_cv_prog_cc_cross
2258 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2259 if test $ac_cv_prog_cc_works = no
; then
2260 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2262 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2263 echo "configure:2264: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2264 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2265 cross_compiling
=$ac_cv_prog_cc_cross
2267 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2268 echo "configure:2269: checking whether we are using GNU C" >&5
2269 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2270 echo $ac_n "(cached) $ac_c" 1>&6
2272 cat > conftest.c
<<EOF
2277 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2278: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2284 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2286 if test $ac_cv_prog_gcc = yes; then
2292 ac_test_CFLAGS
="${CFLAGS+set}"
2293 ac_save_CFLAGS
="$CFLAGS"
2295 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2296 echo "configure:2297: checking whether ${CC-cc} accepts -g" >&5
2297 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2298 echo $ac_n "(cached) $ac_c" 1>&6
2300 echo 'void f(){}' > conftest.c
2301 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2310 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2311 if test "$ac_test_CFLAGS" = set; then
2312 CFLAGS
="$ac_save_CFLAGS"
2313 elif test $ac_cv_prog_cc_g = yes; then
2314 if test "$GCC" = yes; then
2320 if test "$GCC" = yes; then
2327 # Find a good install program. We prefer a C program (faster),
2328 # so one script is as good as another. But avoid the broken or
2329 # incompatible versions:
2330 # SysV /etc/install, /usr/sbin/install
2331 # SunOS /usr/etc/install
2332 # IRIX /sbin/install
2334 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2335 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2336 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2337 # ./install, which can be erroneously created by make from ./install.sh.
2338 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2339 echo "configure:2340: checking for a BSD compatible install" >&5
2340 if test -z "$INSTALL"; then
2341 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2342 echo $ac_n "(cached) $ac_c" 1>&6
2344 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2345 for ac_dir
in $PATH; do
2346 # Account for people who put trailing slashes in PATH elements.
2348 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2350 # OSF1 and SCO ODT 3.0 have their own names for install.
2351 # Don't use installbsd from OSF since it installs stuff as root
2353 for ac_prog
in ginstall scoinst
install; do
2354 if test -f $ac_dir/$ac_prog; then
2355 if test $ac_prog = install &&
2356 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2357 # AIX install. It has an incompatible calling convention.
2360 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2371 if test "${ac_cv_path_install+set}" = set; then
2372 INSTALL
="$ac_cv_path_install"
2374 # As a last resort, use the slow shell script. We don't cache a
2375 # path for INSTALL within a source directory, because that will
2376 # break other packages using the cache if that directory is
2377 # removed, or if the path is relative.
2378 INSTALL
="$ac_install_sh"
2381 echo "$ac_t""$INSTALL" 1>&6
2383 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2384 # It thinks the first close brace ends the variable substitution.
2385 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2387 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2389 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2392 for ac_func
in setmode
2394 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2395 echo "configure:2396: checking for $ac_func" >&5
2396 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2397 echo $ac_n "(cached) $ac_c" 1>&6
2399 cat > conftest.
$ac_ext <<EOF
2400 #line 2401 "configure"
2401 #include "confdefs.h"
2402 /* System header to define __stub macros and hopefully few prototypes,
2403 which can conflict with char $ac_func(); below. */
2405 /* Override any gcc2 internal prototype to avoid an error. */
2406 /* We use char because int might match the return type of a gcc2
2407 builtin and then its argument prototype would still apply. */
2412 /* The GNU C library defines this for functions which it implements
2413 to always fail with ENOSYS. Some functions are actually named
2414 something starting with __ and the normal name is an alias. */
2415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2423 if { (eval echo configure
:2424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2425 eval "ac_cv_func_$ac_func=yes"
2427 echo "configure: failed program was:" >&5
2428 cat conftest.
$ac_ext >&5
2430 eval "ac_cv_func_$ac_func=no"
2435 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2436 echo "$ac_t""yes" 1>&6
2437 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2438 cat >> confdefs.h
<<EOF
2439 #define $ac_tr_func 1
2443 echo "$ac_t""no" 1>&6
2449 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2450 echo "configure:2451: checking how to run the C preprocessor" >&5
2451 # On Suns, sometimes $CPP names a directory.
2452 if test -n "$CPP" && test -d "$CPP"; then
2455 if test -z "$CPP"; then
2456 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2457 echo $ac_n "(cached) $ac_c" 1>&6
2459 # This must be in double quotes, not single quotes, because CPP may get
2460 # substituted into the Makefile and "${CC-cc}" will confuse make.
2462 # On the NeXT, cc -E runs the code through the compiler's parser,
2463 # not just through cpp.
2464 cat > conftest.
$ac_ext <<EOF
2465 #line 2466 "configure"
2466 #include "confdefs.h"
2470 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2471 { (eval echo configure
:2472: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2472 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2473 if test -z "$ac_err"; then
2477 echo "configure: failed program was:" >&5
2478 cat conftest.
$ac_ext >&5
2480 CPP
="${CC-cc} -E -traditional-cpp"
2481 cat > conftest.
$ac_ext <<EOF
2482 #line 2483 "configure"
2483 #include "confdefs.h"
2487 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2488 { (eval echo configure
:2489: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2489 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2490 if test -z "$ac_err"; then
2494 echo "configure: failed program was:" >&5
2495 cat conftest.
$ac_ext >&5
2497 CPP
="${CC-cc} -nologo -E"
2498 cat > conftest.
$ac_ext <<EOF
2499 #line 2500 "configure"
2500 #include "confdefs.h"
2504 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2505 { (eval echo configure
:2506: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2506 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2507 if test -z "$ac_err"; then
2511 echo "configure: failed program was:" >&5
2512 cat conftest.
$ac_ext >&5
2521 ac_cv_prog_CPP
="$CPP"
2523 CPP
="$ac_cv_prog_CPP"
2525 ac_cv_prog_CPP
="$CPP"
2527 echo "$ac_t""$CPP" 1>&6
2529 # Extract the first word of "ranlib", so it can be a program name with args.
2530 set dummy ranlib
; ac_word
=$2
2531 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2532 echo "configure:2533: checking for $ac_word" >&5
2533 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2534 echo $ac_n "(cached) $ac_c" 1>&6
2536 if test -n "$RANLIB"; then
2537 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2539 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2541 for ac_dir
in $ac_dummy; do
2542 test -z "$ac_dir" && ac_dir
=.
2543 if test -f $ac_dir/$ac_word; then
2544 ac_cv_prog_RANLIB
="ranlib"
2549 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2552 RANLIB
="$ac_cv_prog_RANLIB"
2553 if test -n "$RANLIB"; then
2554 echo "$ac_t""$RANLIB" 1>&6
2556 echo "$ac_t""no" 1>&6
2559 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2560 echo "configure:2561: checking for ANSI C header files" >&5
2561 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2562 echo $ac_n "(cached) $ac_c" 1>&6
2564 cat > conftest.
$ac_ext <<EOF
2565 #line 2566 "configure"
2566 #include "confdefs.h"
2572 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2573 { (eval echo configure
:2574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2574 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2575 if test -z "$ac_err"; then
2577 ac_cv_header_stdc
=yes
2580 echo "configure: failed program was:" >&5
2581 cat conftest.
$ac_ext >&5
2583 ac_cv_header_stdc
=no
2587 if test $ac_cv_header_stdc = yes; then
2588 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2589 cat > conftest.
$ac_ext <<EOF
2590 #line 2591 "configure"
2591 #include "confdefs.h"
2594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2595 egrep "memchr" >/dev
/null
2>&1; then
2599 ac_cv_header_stdc
=no
2605 if test $ac_cv_header_stdc = yes; then
2606 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2607 cat > conftest.
$ac_ext <<EOF
2608 #line 2609 "configure"
2609 #include "confdefs.h"
2612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2613 egrep "free" >/dev
/null
2>&1; then
2617 ac_cv_header_stdc
=no
2623 if test $ac_cv_header_stdc = yes; then
2624 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2625 if test "$cross_compiling" = yes; then
2628 cat > conftest.
$ac_ext <<EOF
2629 #line 2630 "configure"
2630 #include "confdefs.h"
2632 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2633 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2634 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2635 int main () { int i; for (i = 0; i < 256; i++)
2636 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2640 if { (eval echo configure
:2641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2644 echo "configure: failed program was:" >&5
2645 cat conftest.
$ac_ext >&5
2647 ac_cv_header_stdc
=no
2655 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2656 if test $ac_cv_header_stdc = yes; then
2657 cat >> confdefs.h
<<\EOF
2658 #define STDC_HEADERS 1
2663 echo $ac_n "checking for working const""... $ac_c" 1>&6
2664 echo "configure:2665: checking for working const" >&5
2665 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2666 echo $ac_n "(cached) $ac_c" 1>&6
2668 cat > conftest.
$ac_ext <<EOF
2669 #line 2670 "configure"
2670 #include "confdefs.h"
2674 /* Ultrix mips cc rejects this. */
2675 typedef int charset[2]; const charset x;
2676 /* SunOS 4.1.1 cc rejects this. */
2677 char const *const *ccp;
2679 /* NEC SVR4.0.2 mips cc rejects this. */
2680 struct point {int x, y;};
2681 static struct point const zero = {0,0};
2682 /* AIX XL C 1.02.0.0 rejects this.
2683 It does not let you subtract one const X* pointer from another in an arm
2684 of an if-expression whose if-part is not a constant expression */
2685 const char *g = "string";
2686 ccp = &g + (g ? g-g : 0);
2687 /* HPUX 7.0 cc rejects these. */
2690 ccp = (char const *const *) p;
2691 { /* SCO 3.2v4 cc rejects this. */
2693 char const *s = 0 ? (char *) 0 : (char const *) 0;
2697 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2699 const int *foo = &x[0];
2702 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2703 typedef const int *iptr;
2707 { /* AIX XL C 1.02.0.0 rejects this saying
2708 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2709 struct s { int j; const int *ap[3]; };
2710 struct s *b; b->j = 5;
2712 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2718 if { (eval echo configure
:2719: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2722 echo "configure: failed program was:" >&5
2723 cat conftest.
$ac_ext >&5
2730 echo "$ac_t""$ac_cv_c_const" 1>&6
2731 if test $ac_cv_c_const = no
; then
2732 cat >> confdefs.h
<<\EOF
2738 echo $ac_n "checking for inline""... $ac_c" 1>&6
2739 echo "configure:2740: checking for inline" >&5
2740 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2741 echo $ac_n "(cached) $ac_c" 1>&6
2744 for ac_kw
in inline __inline__ __inline
; do
2745 cat > conftest.
$ac_ext <<EOF
2746 #line 2747 "configure"
2747 #include "confdefs.h"
2753 if { (eval echo configure
:2754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2755 ac_cv_c_inline
=$ac_kw; break
2757 echo "configure: failed program was:" >&5
2758 cat conftest.
$ac_ext >&5
2765 echo "$ac_t""$ac_cv_c_inline" 1>&6
2766 case "$ac_cv_c_inline" in
2768 no
) cat >> confdefs.h
<<\EOF
2772 *) cat >> confdefs.h
<<EOF
2773 #define inline $ac_cv_c_inline
2778 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2779 echo "configure:2780: checking for off_t" >&5
2780 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2781 echo $ac_n "(cached) $ac_c" 1>&6
2783 cat > conftest.
$ac_ext <<EOF
2784 #line 2785 "configure"
2785 #include "confdefs.h"
2786 #include <sys/types.h>
2792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2793 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2795 ac_cv_type_off_t
=yes
2803 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2804 if test $ac_cv_type_off_t = no
; then
2805 cat >> confdefs.h
<<\EOF
2811 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2812 echo "configure:2813: checking for size_t" >&5
2813 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2814 echo $ac_n "(cached) $ac_c" 1>&6
2816 cat > conftest.
$ac_ext <<EOF
2817 #line 2818 "configure"
2818 #include "confdefs.h"
2819 #include <sys/types.h>
2825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2826 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2828 ac_cv_type_size_t
=yes
2831 ac_cv_type_size_t
=no
2836 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2837 if test $ac_cv_type_size_t = no
; then
2838 cat >> confdefs.h
<<\EOF
2839 #define size_t unsigned
2844 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2845 # for constant arguments. Useless!
2846 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2847 echo "configure:2848: checking for working alloca.h" >&5
2848 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2849 echo $ac_n "(cached) $ac_c" 1>&6
2851 cat > conftest.
$ac_ext <<EOF
2852 #line 2853 "configure"
2853 #include "confdefs.h"
2856 char *p = alloca(2 * sizeof(int));
2859 if { (eval echo configure
:2860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2861 ac_cv_header_alloca_h
=yes
2863 echo "configure: failed program was:" >&5
2864 cat conftest.
$ac_ext >&5
2866 ac_cv_header_alloca_h
=no
2871 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2872 if test $ac_cv_header_alloca_h = yes; then
2873 cat >> confdefs.h
<<\EOF
2874 #define HAVE_ALLOCA_H 1
2879 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2880 echo "configure:2881: checking for alloca" >&5
2881 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2882 echo $ac_n "(cached) $ac_c" 1>&6
2884 cat > conftest.
$ac_ext <<EOF
2885 #line 2886 "configure"
2886 #include "confdefs.h"
2889 # define alloca __builtin_alloca
2892 # include <malloc.h>
2893 # define alloca _alloca
2896 # include <alloca.h>
2901 # ifndef alloca /* predefined by HP cc +Olibcalls */
2910 char *p = (char *) alloca(1);
2913 if { (eval echo configure
:2914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2915 ac_cv_func_alloca_works
=yes
2917 echo "configure: failed program was:" >&5
2918 cat conftest.
$ac_ext >&5
2920 ac_cv_func_alloca_works
=no
2925 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2926 if test $ac_cv_func_alloca_works = yes; then
2927 cat >> confdefs.h
<<\EOF
2928 #define HAVE_ALLOCA 1
2933 if test $ac_cv_func_alloca_works = no
; then
2934 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2935 # that cause trouble. Some versions do not even contain alloca or
2936 # contain a buggy version. If you still want to use their alloca,
2937 # use ar to extract alloca.o from them instead of compiling alloca.c.
2938 ALLOCA
=alloca.
${ac_objext}
2939 cat >> confdefs.h
<<\EOF
2944 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2945 echo "configure:2946: checking whether alloca needs Cray hooks" >&5
2946 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2947 echo $ac_n "(cached) $ac_c" 1>&6
2949 cat > conftest.
$ac_ext <<EOF
2950 #line 2951 "configure"
2951 #include "confdefs.h"
2952 #if defined(CRAY) && ! defined(CRAY2)
2959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2960 egrep "webecray" >/dev
/null
2>&1; then
2971 echo "$ac_t""$ac_cv_os_cray" 1>&6
2972 if test $ac_cv_os_cray = yes; then
2973 for ac_func
in _getb67 GETB67 getb67
; do
2974 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2975 echo "configure:2976: checking for $ac_func" >&5
2976 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2977 echo $ac_n "(cached) $ac_c" 1>&6
2979 cat > conftest.
$ac_ext <<EOF
2980 #line 2981 "configure"
2981 #include "confdefs.h"
2982 /* System header to define __stub macros and hopefully few prototypes,
2983 which can conflict with char $ac_func(); below. */
2985 /* Override any gcc2 internal prototype to avoid an error. */
2986 /* We use char because int might match the return type of a gcc2
2987 builtin and then its argument prototype would still apply. */
2992 /* The GNU C library defines this for functions which it implements
2993 to always fail with ENOSYS. Some functions are actually named
2994 something starting with __ and the normal name is an alias. */
2995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3003 if { (eval echo configure
:3004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3005 eval "ac_cv_func_$ac_func=yes"
3007 echo "configure: failed program was:" >&5
3008 cat conftest.
$ac_ext >&5
3010 eval "ac_cv_func_$ac_func=no"
3015 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3016 echo "$ac_t""yes" 1>&6
3017 cat >> confdefs.h
<<EOF
3018 #define CRAY_STACKSEG_END $ac_func
3023 echo "$ac_t""no" 1>&6
3029 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3030 echo "configure:3031: checking stack direction for C alloca" >&5
3031 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3032 echo $ac_n "(cached) $ac_c" 1>&6
3034 if test "$cross_compiling" = yes; then
3035 ac_cv_c_stack_direction
=0
3037 cat > conftest.
$ac_ext <<EOF
3038 #line 3039 "configure"
3039 #include "confdefs.h"
3040 find_stack_direction ()
3042 static char *addr = 0;
3047 return find_stack_direction ();
3050 return (&dummy > addr) ? 1 : -1;
3054 exit (find_stack_direction() < 0);
3057 if { (eval echo configure
:3058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3059 ac_cv_c_stack_direction
=1
3061 echo "configure: failed program was:" >&5
3062 cat conftest.
$ac_ext >&5
3064 ac_cv_c_stack_direction
=-1
3071 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3072 cat >> confdefs.h
<<EOF
3073 #define STACK_DIRECTION $ac_cv_c_stack_direction
3078 for ac_hdr
in unistd.h
3080 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3081 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3082 echo "configure:3083: checking for $ac_hdr" >&5
3083 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3084 echo $ac_n "(cached) $ac_c" 1>&6
3086 cat > conftest.
$ac_ext <<EOF
3087 #line 3088 "configure"
3088 #include "confdefs.h"
3091 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3092 { (eval echo configure
:3093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3093 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3094 if test -z "$ac_err"; then
3096 eval "ac_cv_header_$ac_safe=yes"
3099 echo "configure: failed program was:" >&5
3100 cat conftest.
$ac_ext >&5
3102 eval "ac_cv_header_$ac_safe=no"
3106 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3107 echo "$ac_t""yes" 1>&6
3108 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3109 cat >> confdefs.h
<<EOF
3110 #define $ac_tr_hdr 1
3114 echo "$ac_t""no" 1>&6
3118 for ac_func
in getpagesize
3120 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3121 echo "configure:3122: checking for $ac_func" >&5
3122 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3123 echo $ac_n "(cached) $ac_c" 1>&6
3125 cat > conftest.
$ac_ext <<EOF
3126 #line 3127 "configure"
3127 #include "confdefs.h"
3128 /* System header to define __stub macros and hopefully few prototypes,
3129 which can conflict with char $ac_func(); below. */
3131 /* Override any gcc2 internal prototype to avoid an error. */
3132 /* We use char because int might match the return type of a gcc2
3133 builtin and then its argument prototype would still apply. */
3138 /* The GNU C library defines this for functions which it implements
3139 to always fail with ENOSYS. Some functions are actually named
3140 something starting with __ and the normal name is an alias. */
3141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3149 if { (eval echo configure
:3150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3151 eval "ac_cv_func_$ac_func=yes"
3153 echo "configure: failed program was:" >&5
3154 cat conftest.
$ac_ext >&5
3156 eval "ac_cv_func_$ac_func=no"
3161 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3162 echo "$ac_t""yes" 1>&6
3163 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3164 cat >> confdefs.h
<<EOF
3165 #define $ac_tr_func 1
3169 echo "$ac_t""no" 1>&6
3173 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3174 echo "configure:3175: checking for working mmap" >&5
3175 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3176 echo $ac_n "(cached) $ac_c" 1>&6
3178 if test "$cross_compiling" = yes; then
3179 ac_cv_func_mmap_fixed_mapped
=no
3181 cat > conftest.
$ac_ext <<EOF
3182 #line 3183 "configure"
3183 #include "confdefs.h"
3185 /* Thanks to Mike Haertel and Jim Avera for this test.
3186 Here is a matrix of mmap possibilities:
3187 mmap private not fixed
3188 mmap private fixed at somewhere currently unmapped
3189 mmap private fixed at somewhere already mapped
3190 mmap shared not fixed
3191 mmap shared fixed at somewhere currently unmapped
3192 mmap shared fixed at somewhere already mapped
3193 For private mappings, we should verify that changes cannot be read()
3194 back from the file, nor mmap's back from the file at a different
3195 address. (There have been systems where private was not correctly
3196 implemented like the infamous i386 svr4.0, and systems where the
3197 VM page cache was not coherent with the filesystem buffer cache
3198 like early versions of FreeBSD and possibly contemporary NetBSD.)
3199 For shared mappings, we should conversely verify that changes get
3200 propogated back to all the places they're supposed to be.
3202 Grep wants private fixed already mapped.
3203 The main things grep needs to know about mmap are:
3204 * does it exist and is it safe to write into the mmap'd area
3205 * how to use it (BSD variants) */
3206 #include <sys/types.h>
3208 #include <sys/mman.h>
3210 /* This mess was copied from the GNU getpagesize.h. */
3211 #ifndef HAVE_GETPAGESIZE
3212 # ifdef HAVE_UNISTD_H
3213 # include <unistd.h>
3216 /* Assume that all systems that can run configure have sys/param.h. */
3217 # ifndef HAVE_SYS_PARAM_H
3218 # define HAVE_SYS_PARAM_H 1
3221 # ifdef _SC_PAGESIZE
3222 # define getpagesize() sysconf(_SC_PAGESIZE)
3223 # else /* no _SC_PAGESIZE */
3224 # ifdef HAVE_SYS_PARAM_H
3225 # include <sys/param.h>
3226 # ifdef EXEC_PAGESIZE
3227 # define getpagesize() EXEC_PAGESIZE
3228 # else /* no EXEC_PAGESIZE */
3230 # define getpagesize() NBPG * CLSIZE
3233 # endif /* no CLSIZE */
3234 # else /* no NBPG */
3236 # define getpagesize() NBPC
3237 # else /* no NBPC */
3239 # define getpagesize() PAGESIZE
3240 # endif /* PAGESIZE */
3241 # endif /* no NBPC */
3242 # endif /* no NBPG */
3243 # endif /* no EXEC_PAGESIZE */
3244 # else /* no HAVE_SYS_PARAM_H */
3245 # define getpagesize() 8192 /* punt totally */
3246 # endif /* no HAVE_SYS_PARAM_H */
3247 # endif /* no _SC_PAGESIZE */
3249 #endif /* no HAVE_GETPAGESIZE */
3252 extern "C" { void *malloc(unsigned); }
3260 char *data, *data2, *data3;
3264 pagesize = getpagesize();
3267 * First, make a file with some known garbage in it.
3269 data = malloc(pagesize);
3272 for (i = 0; i < pagesize; ++i)
3273 *(data + i) = rand();
3275 fd = creat("conftestmmap", 0600);
3278 if (write(fd, data, pagesize) != pagesize)
3283 * Next, try to mmap the file at a fixed address which
3284 * already has something else allocated at it. If we can,
3285 * also make sure that we see the same garbage.
3287 fd = open("conftestmmap", O_RDWR);
3290 data2 = malloc(2 * pagesize);
3293 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3294 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3295 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3297 for (i = 0; i < pagesize; ++i)
3298 if (*(data + i) != *(data2 + i))
3302 * Finally, make sure that changes to the mapped area
3303 * do not percolate back to the file as seen by read().
3304 * (This is a bug on some variants of i386 svr4.0.)
3306 for (i = 0; i < pagesize; ++i)
3307 *(data2 + i) = *(data2 + i) + 1;
3308 data3 = malloc(pagesize);
3311 if (read(fd, data3, pagesize) != pagesize)
3313 for (i = 0; i < pagesize; ++i)
3314 if (*(data + i) != *(data3 + i))
3317 unlink("conftestmmap");
3322 if { (eval echo configure
:3323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3324 ac_cv_func_mmap_fixed_mapped
=yes
3326 echo "configure: failed program was:" >&5
3327 cat conftest.
$ac_ext >&5
3329 ac_cv_func_mmap_fixed_mapped
=no
3336 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3337 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3338 cat >> confdefs.h
<<\EOF
3345 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3346 unistd.h values.h sys
/param.h
3348 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3349 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3350 echo "configure:3351: checking for $ac_hdr" >&5
3351 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3352 echo $ac_n "(cached) $ac_c" 1>&6
3354 cat > conftest.
$ac_ext <<EOF
3355 #line 3356 "configure"
3356 #include "confdefs.h"
3359 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3360 { (eval echo configure
:3361: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3361 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3362 if test -z "$ac_err"; then
3364 eval "ac_cv_header_$ac_safe=yes"
3367 echo "configure: failed program was:" >&5
3368 cat conftest.
$ac_ext >&5
3370 eval "ac_cv_header_$ac_safe=no"
3374 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3375 echo "$ac_t""yes" 1>&6
3376 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3377 cat >> confdefs.h
<<EOF
3378 #define $ac_tr_hdr 1
3382 echo "$ac_t""no" 1>&6
3386 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3387 __argz_count __argz_stringify __argz_next
3389 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3390 echo "configure:3391: checking for $ac_func" >&5
3391 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3392 echo $ac_n "(cached) $ac_c" 1>&6
3394 cat > conftest.
$ac_ext <<EOF
3395 #line 3396 "configure"
3396 #include "confdefs.h"
3397 /* System header to define __stub macros and hopefully few prototypes,
3398 which can conflict with char $ac_func(); below. */
3400 /* Override any gcc2 internal prototype to avoid an error. */
3401 /* We use char because int might match the return type of a gcc2
3402 builtin and then its argument prototype would still apply. */
3407 /* The GNU C library defines this for functions which it implements
3408 to always fail with ENOSYS. Some functions are actually named
3409 something starting with __ and the normal name is an alias. */
3410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3418 if { (eval echo configure
:3419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3420 eval "ac_cv_func_$ac_func=yes"
3422 echo "configure: failed program was:" >&5
3423 cat conftest.
$ac_ext >&5
3425 eval "ac_cv_func_$ac_func=no"
3430 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3431 echo "$ac_t""yes" 1>&6
3432 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3433 cat >> confdefs.h
<<EOF
3434 #define $ac_tr_func 1
3438 echo "$ac_t""no" 1>&6
3443 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3444 for ac_func
in stpcpy
3446 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3447 echo "configure:3448: checking for $ac_func" >&5
3448 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3449 echo $ac_n "(cached) $ac_c" 1>&6
3451 cat > conftest.
$ac_ext <<EOF
3452 #line 3453 "configure"
3453 #include "confdefs.h"
3454 /* System header to define __stub macros and hopefully few prototypes,
3455 which can conflict with char $ac_func(); below. */
3457 /* Override any gcc2 internal prototype to avoid an error. */
3458 /* We use char because int might match the return type of a gcc2
3459 builtin and then its argument prototype would still apply. */
3464 /* The GNU C library defines this for functions which it implements
3465 to always fail with ENOSYS. Some functions are actually named
3466 something starting with __ and the normal name is an alias. */
3467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3475 if { (eval echo configure
:3476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3477 eval "ac_cv_func_$ac_func=yes"
3479 echo "configure: failed program was:" >&5
3480 cat conftest.
$ac_ext >&5
3482 eval "ac_cv_func_$ac_func=no"
3487 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3488 echo "$ac_t""yes" 1>&6
3489 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3490 cat >> confdefs.h
<<EOF
3491 #define $ac_tr_func 1
3495 echo "$ac_t""no" 1>&6
3500 if test "${ac_cv_func_stpcpy}" = "yes"; then
3501 cat >> confdefs.h
<<\EOF
3502 #define HAVE_STPCPY 1
3507 if test $ac_cv_header_locale_h = yes; then
3508 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3509 echo "configure:3510: checking for LC_MESSAGES" >&5
3510 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3511 echo $ac_n "(cached) $ac_c" 1>&6
3513 cat > conftest.
$ac_ext <<EOF
3514 #line 3515 "configure"
3515 #include "confdefs.h"
3521 if { (eval echo configure
:3522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3523 am_cv_val_LC_MESSAGES
=yes
3525 echo "configure: failed program was:" >&5
3526 cat conftest.
$ac_ext >&5
3528 am_cv_val_LC_MESSAGES
=no
3533 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3534 if test $am_cv_val_LC_MESSAGES = yes; then
3535 cat >> confdefs.h
<<\EOF
3536 #define HAVE_LC_MESSAGES 1
3541 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3542 echo "configure:3543: checking whether NLS is requested" >&5
3543 # Check whether --enable-nls or --disable-nls was given.
3544 if test "${enable_nls+set}" = set; then
3545 enableval
="$enable_nls"
3551 echo "$ac_t""$USE_NLS" 1>&6
3554 USE_INCLUDED_LIBINTL
=no
3556 if test "$USE_NLS" = "yes"; then
3557 cat >> confdefs.h
<<\EOF
3558 #define ENABLE_NLS 1
3561 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3562 echo "configure:3563: checking whether included gettext is requested" >&5
3563 # Check whether --with-included-gettext or --without-included-gettext was given.
3564 if test "${with_included_gettext+set}" = set; then
3565 withval
="$with_included_gettext"
3566 nls_cv_force_use_gnu_gettext
=$withval
3568 nls_cv_force_use_gnu_gettext
=no
3571 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3573 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
3574 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3576 nls_cv_header_libgt
=
3579 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3580 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3581 echo "configure:3582: checking for libintl.h" >&5
3582 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3583 echo $ac_n "(cached) $ac_c" 1>&6
3585 cat > conftest.
$ac_ext <<EOF
3586 #line 3587 "configure"
3587 #include "confdefs.h"
3588 #include <libintl.h>
3590 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3591 { (eval echo configure
:3592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3592 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3593 if test -z "$ac_err"; then
3595 eval "ac_cv_header_$ac_safe=yes"
3598 echo "configure: failed program was:" >&5
3599 cat conftest.
$ac_ext >&5
3601 eval "ac_cv_header_$ac_safe=no"
3605 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3606 echo "$ac_t""yes" 1>&6
3607 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3608 echo "configure:3609: checking for gettext in libc" >&5
3609 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+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 #include <libintl.h>
3617 return (int) gettext ("")
3620 if { (eval echo configure
:3621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3622 gt_cv_func_gettext_libc
=yes
3624 echo "configure: failed program was:" >&5
3625 cat conftest.
$ac_ext >&5
3627 gt_cv_func_gettext_libc
=no
3632 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3634 if test "$gt_cv_func_gettext_libc" != "yes"; then
3635 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3636 echo "configure:3637: checking for bindtextdomain in -lintl" >&5
3637 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3638 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3639 echo $ac_n "(cached) $ac_c" 1>&6
3641 ac_save_LIBS
="$LIBS"
3643 cat > conftest.
$ac_ext <<EOF
3644 #line 3645 "configure"
3645 #include "confdefs.h"
3646 /* Override any gcc2 internal prototype to avoid an error. */
3647 /* We use char because int might match the return type of a gcc2
3648 builtin and then its argument prototype would still apply. */
3649 char bindtextdomain();
3655 if { (eval echo configure
:3656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3657 eval "ac_cv_lib_$ac_lib_var=yes"
3659 echo "configure: failed program was:" >&5
3660 cat conftest.
$ac_ext >&5
3662 eval "ac_cv_lib_$ac_lib_var=no"
3665 LIBS
="$ac_save_LIBS"
3668 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3669 echo "$ac_t""yes" 1>&6
3670 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3671 echo "configure:3672: checking for gettext in libintl" >&5
3672 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3673 echo $ac_n "(cached) $ac_c" 1>&6
3675 cat > conftest.
$ac_ext <<EOF
3676 #line 3677 "configure"
3677 #include "confdefs.h"
3680 return (int) gettext ("")
3683 if { (eval echo configure
:3684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3685 gt_cv_func_gettext_libintl
=yes
3687 echo "configure: failed program was:" >&5
3688 cat conftest.
$ac_ext >&5
3690 gt_cv_func_gettext_libintl
=no
3695 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3697 echo "$ac_t""no" 1>&6
3702 if test "$gt_cv_func_gettext_libc" = "yes" \
3703 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
3704 cat >> confdefs.h
<<\EOF
3705 #define HAVE_GETTEXT 1
3708 # Extract the first word of "msgfmt", so it can be a program name with args.
3709 set dummy msgfmt
; ac_word
=$2
3710 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3711 echo "configure:3712: checking for $ac_word" >&5
3712 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3713 echo $ac_n "(cached) $ac_c" 1>&6
3717 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3720 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3721 for ac_dir
in $PATH; do
3722 test -z "$ac_dir" && ac_dir
=.
3723 if test -f $ac_dir/$ac_word; then
3724 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3725 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3731 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
3735 MSGFMT
="$ac_cv_path_MSGFMT"
3736 if test -n "$MSGFMT"; then
3737 echo "$ac_t""$MSGFMT" 1>&6
3739 echo "$ac_t""no" 1>&6
3741 if test "$MSGFMT" != "no"; then
3742 for ac_func
in dcgettext
3744 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3745 echo "configure:3746: checking for $ac_func" >&5
3746 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3747 echo $ac_n "(cached) $ac_c" 1>&6
3749 cat > conftest.
$ac_ext <<EOF
3750 #line 3751 "configure"
3751 #include "confdefs.h"
3752 /* System header to define __stub macros and hopefully few prototypes,
3753 which can conflict with char $ac_func(); below. */
3755 /* Override any gcc2 internal prototype to avoid an error. */
3756 /* We use char because int might match the return type of a gcc2
3757 builtin and then its argument prototype would still apply. */
3762 /* The GNU C library defines this for functions which it implements
3763 to always fail with ENOSYS. Some functions are actually named
3764 something starting with __ and the normal name is an alias. */
3765 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3773 if { (eval echo configure
:3774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3775 eval "ac_cv_func_$ac_func=yes"
3777 echo "configure: failed program was:" >&5
3778 cat conftest.
$ac_ext >&5
3780 eval "ac_cv_func_$ac_func=no"
3785 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3786 echo "$ac_t""yes" 1>&6
3787 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3788 cat >> confdefs.h
<<EOF
3789 #define $ac_tr_func 1
3793 echo "$ac_t""no" 1>&6
3797 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3798 set dummy gmsgfmt
; ac_word
=$2
3799 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3800 echo "configure:3801: checking for $ac_word" >&5
3801 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3802 echo $ac_n "(cached) $ac_c" 1>&6
3806 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3809 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3812 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3814 for ac_dir
in $ac_dummy; do
3815 test -z "$ac_dir" && ac_dir
=.
3816 if test -f $ac_dir/$ac_word; then
3817 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3822 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3826 GMSGFMT
="$ac_cv_path_GMSGFMT"
3827 if test -n "$GMSGFMT"; then
3828 echo "$ac_t""$GMSGFMT" 1>&6
3830 echo "$ac_t""no" 1>&6
3833 # Extract the first word of "xgettext", so it can be a program name with args.
3834 set dummy xgettext
; ac_word
=$2
3835 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3836 echo "configure:3837: checking for $ac_word" >&5
3837 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3838 echo $ac_n "(cached) $ac_c" 1>&6
3842 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3845 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3846 for ac_dir
in $PATH; do
3847 test -z "$ac_dir" && ac_dir
=.
3848 if test -f $ac_dir/$ac_word; then
3849 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3850 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3856 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3860 XGETTEXT
="$ac_cv_path_XGETTEXT"
3861 if test -n "$XGETTEXT"; then
3862 echo "$ac_t""$XGETTEXT" 1>&6
3864 echo "$ac_t""no" 1>&6
3867 cat > conftest.
$ac_ext <<EOF
3868 #line 3869 "configure"
3869 #include "confdefs.h"
3872 extern int _nl_msg_cat_cntr;
3873 return _nl_msg_cat_cntr
3876 if { (eval echo configure
:3877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3881 echo "configure: failed program was:" >&5
3882 cat conftest.
$ac_ext >&5
3893 echo "$ac_t""no" 1>&6
3898 if test "$CATOBJEXT" = "NONE"; then
3899 nls_cv_use_gnu_gettext
=yes
3903 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3904 INTLOBJS
="\$(GETTOBJS)"
3905 # Extract the first word of "msgfmt", so it can be a program name with args.
3906 set dummy msgfmt
; ac_word
=$2
3907 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3908 echo "configure:3909: checking for $ac_word" >&5
3909 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3910 echo $ac_n "(cached) $ac_c" 1>&6
3914 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3917 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3918 for ac_dir
in $PATH; do
3919 test -z "$ac_dir" && ac_dir
=.
3920 if test -f $ac_dir/$ac_word; then
3921 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3922 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3928 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
3932 MSGFMT
="$ac_cv_path_MSGFMT"
3933 if test -n "$MSGFMT"; then
3934 echo "$ac_t""$MSGFMT" 1>&6
3936 echo "$ac_t""no" 1>&6
3939 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3940 set dummy gmsgfmt
; ac_word
=$2
3941 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3942 echo "configure:3943: checking for $ac_word" >&5
3943 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3944 echo $ac_n "(cached) $ac_c" 1>&6
3948 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3951 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3954 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3956 for ac_dir
in $ac_dummy; do
3957 test -z "$ac_dir" && ac_dir
=.
3958 if test -f $ac_dir/$ac_word; then
3959 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3964 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3968 GMSGFMT
="$ac_cv_path_GMSGFMT"
3969 if test -n "$GMSGFMT"; then
3970 echo "$ac_t""$GMSGFMT" 1>&6
3972 echo "$ac_t""no" 1>&6
3975 # Extract the first word of "xgettext", so it can be a program name with args.
3976 set dummy xgettext
; ac_word
=$2
3977 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3978 echo "configure:3979: checking for $ac_word" >&5
3979 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3980 echo $ac_n "(cached) $ac_c" 1>&6
3984 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3987 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3988 for ac_dir
in $PATH; do
3989 test -z "$ac_dir" && ac_dir
=.
3990 if test -f $ac_dir/$ac_word; then
3991 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3992 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3998 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4002 XGETTEXT
="$ac_cv_path_XGETTEXT"
4003 if test -n "$XGETTEXT"; then
4004 echo "$ac_t""$XGETTEXT" 1>&6
4006 echo "$ac_t""no" 1>&6
4010 USE_INCLUDED_LIBINTL
=yes
4014 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
4016 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
4017 nls_cv_header_intl
=libintl.h
4018 nls_cv_header_libgt
=libgettext.h
4021 if test "$XGETTEXT" != ":"; then
4022 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
4025 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4030 # We need to process the po/ directory.
4034 nls_cv_header_intl
=libintl.h
4035 nls_cv_header_libgt
=libgettext.h
4038 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4039 # because some of the sources are only built for this goal.
4040 if test "$PACKAGE" = gettext; then
4042 USE_INCLUDED_LIBINTL
=yes
4045 for lang
in $ALL_LINGUAS; do
4046 GMOFILES
="$GMOFILES $lang.gmo"
4047 POFILES
="$POFILES $lang.po"
4063 if test "x$CATOBJEXT" != "x"; then
4064 if test "x$ALL_LINGUAS" = "x"; then
4067 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4068 echo "configure:4069: checking for catalogs to be installed" >&5
4070 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
4071 case "$ALL_LINGUAS" in
4072 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
4075 LINGUAS
=$NEW_LINGUAS
4076 echo "$ac_t""$LINGUAS" 1>&6
4079 if test -n "$LINGUAS"; then
4080 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
4084 if test $ac_cv_header_locale_h = yes; then
4085 INCLUDE_LOCALE_H
="#include <locale.h>"
4088 /* The system does not provide the header <locale.h>. Take care yourself. */"
4092 if test -f $srcdir/po2tbl.
sed.
in; then
4093 if test "$CATOBJEXT" = ".cat"; then
4094 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4095 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4096 echo "configure:4097: checking for linux/version.h" >&5
4097 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4098 echo $ac_n "(cached) $ac_c" 1>&6
4100 cat > conftest.
$ac_ext <<EOF
4101 #line 4102 "configure"
4102 #include "confdefs.h"
4103 #include <linux/version.h>
4105 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4106 { (eval echo configure
:4107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4107 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4108 if test -z "$ac_err"; then
4110 eval "ac_cv_header_$ac_safe=yes"
4113 echo "configure: failed program was:" >&5
4114 cat conftest.
$ac_ext >&5
4116 eval "ac_cv_header_$ac_safe=no"
4120 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4121 echo "$ac_t""yes" 1>&6
4124 echo "$ac_t""no" 1>&6
4129 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
4131 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4132 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
4135 if test "$PACKAGE" = "gettext"; then
4145 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
4151 if test -d $srcdir/po
; then
4152 test -d po || mkdir po
4153 if test "x$srcdir" != "x."; then
4154 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4155 posrcprefix
="$srcdir/"
4157 posrcprefix
="../$srcdir/"
4163 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4164 < $srcdir/po
/POTFILES.
in > po
/POTFILES
4168 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4169 echo "configure:4170: checking whether to enable maintainer-specific portions of Makefiles" >&5
4170 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4171 if test "${enable_maintainer_mode+set}" = set; then
4172 enableval
="$enable_maintainer_mode"
4173 USE_MAINTAINER_MODE
=$enableval
4175 USE_MAINTAINER_MODE
=no
4178 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4181 if test $USE_MAINTAINER_MODE = yes; then
4182 MAINTAINER_MODE_TRUE
=
4183 MAINTAINER_MODE_FALSE
='#'
4185 MAINTAINER_MODE_TRUE
='#'
4186 MAINTAINER_MODE_FALSE
=
4188 MAINT
=$MAINTAINER_MODE_TRUE
4193 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4194 echo "configure:4195: checking for executable suffix" >&5
4195 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4196 echo $ac_n "(cached) $ac_c" 1>&6
4198 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
4202 echo 'int main () { return 0; }' > conftest.
$ac_ext
4204 if { (eval echo configure
:4205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4205 for file in conftest.
*; do
4207 *.c |
*.o |
*.obj
) ;;
4208 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
4212 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4215 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
4220 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
4221 echo "$ac_t""${ac_cv_exeext}" 1>&6
4225 build_warnings
="-W -Wall"
4226 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4227 if test "${enable_build_warnings+set}" = set; then
4228 enableval
="$enable_build_warnings"
4229 case "${enableval}" in
4231 no
) build_warnings
="-w";;
4232 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
4233 build_warnings
="${build_warnings} ${t}";;
4234 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
4235 build_warnings
="${t} ${build_warnings}";;
4236 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4238 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
4239 echo "Setting warning flags = $build_warnings" 6>&1
4243 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
; then
4244 WARN_CFLAGS
="${build_warnings}"
4249 cat > confcache
<<\EOF
4250 # This file is a shell script that caches the results of configure
4251 # tests run on this system so they can be shared between configure
4252 # scripts and configure runs. It is not useful on other systems.
4253 # If it contains results you don't want to keep, you may remove or edit it.
4255 # By default, configure uses ./config.cache as the cache file,
4256 # creating it if it does not exist already. You can give configure
4257 # the --cache-file=FILE option to use a different cache file; that is
4258 # what configure does when it calls configure scripts in
4259 # subdirectories, so they share the cache.
4260 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4261 # config.status only pays attention to the cache file if you give it the
4262 # --recheck option to rerun configure.
4265 # The following way of writing the cache mishandles newlines in values,
4266 # but we know of no workaround that is simple, portable, and efficient.
4267 # So, don't put newlines in cache variables' values.
4268 # Ultrix sh set writes to stderr and can't be redirected directly,
4269 # and sets the high bit in the cache file unless we assign to the vars.
4271 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4273 # `set' does not quote correctly, so add quotes (double-quote substitution
4274 # turns \\\\ into \\, and sed turns \\ into \).
4276 -e "s/'/'\\\\''/g" \
4277 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4280 # `set' quotes correctly as required by POSIX, so do not add quotes.
4281 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4284 if cmp -s $cache_file confcache
; then
4287 if test -w $cache_file; then
4288 echo "updating cache $cache_file"
4289 cat confcache
> $cache_file
4291 echo "not updating unwritable cache $cache_file"
4296 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4298 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4299 # Let make expand exec_prefix.
4300 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4302 # Any assignment to VPATH causes Sun make to only execute
4303 # the first set of double-colon rules, so remove it if not needed.
4304 # If there is a colon in the path, we need to keep it.
4305 if test "x$srcdir" = x.
; then
4306 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4309 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4311 DEFS
=-DHAVE_CONFIG_H
4313 # Without the "./", some shells look in PATH for config.status.
4314 : ${CONFIG_STATUS=./config.status}
4316 echo creating
$CONFIG_STATUS
4317 rm -f $CONFIG_STATUS
4318 cat > $CONFIG_STATUS <<EOF
4320 # Generated automatically by configure.
4321 # Run this file to recreate the current configuration.
4322 # This directory was configured as follows,
4323 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4325 # $0 $ac_configure_args
4327 # Compiler output produced by configure, useful for debugging
4328 # configure, is in ./config.log if it exists.
4330 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4333 case "\$ac_option" in
4334 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4335 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4336 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4337 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4338 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4340 -help | --help | --hel | --he | --h)
4341 echo "\$ac_cs_usage"; exit 0 ;;
4342 *) echo "\$ac_cs_usage"; exit 1 ;;
4346 ac_given_srcdir=$srcdir
4347 ac_given_INSTALL="$INSTALL"
4349 trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in gconfig.h:gconfig.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4351 cat >> $CONFIG_STATUS <<EOF
4353 # Protect against being on the right side of a sed subst in config.status.
4354 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4355 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4359 s%@CFLAGS@%$CFLAGS%g
4360 s%@CPPFLAGS@%$CPPFLAGS%g
4361 s%@CXXFLAGS@%$CXXFLAGS%g
4362 s%@FFLAGS@%$FFLAGS%g
4364 s%@LDFLAGS@%$LDFLAGS%g
4366 s%@exec_prefix@%$exec_prefix%g
4367 s%@prefix@%$prefix%g
4368 s%@program_transform_name@%$program_transform_name%g
4369 s%@bindir@%$bindir%g
4370 s%@sbindir@%$sbindir%g
4371 s%@libexecdir@%$libexecdir%g
4372 s%@datadir@%$datadir%g
4373 s%@sysconfdir@%$sysconfdir%g
4374 s%@sharedstatedir@%$sharedstatedir%g
4375 s%@localstatedir@%$localstatedir%g
4376 s%@libdir@%$libdir%g
4377 s%@includedir@%$includedir%g
4378 s%@oldincludedir@%$oldincludedir%g
4379 s%@infodir@%$infodir%g
4380 s%@mandir@%$mandir%g
4382 s%@host_alias@%$host_alias%g
4383 s%@host_cpu@%$host_cpu%g
4384 s%@host_vendor@%$host_vendor%g
4385 s%@host_os@%$host_os%g
4386 s%@target@%$target%g
4387 s%@target_alias@%$target_alias%g
4388 s%@target_cpu@%$target_cpu%g
4389 s%@target_vendor@%$target_vendor%g
4390 s%@target_os@%$target_os%g
4392 s%@build_alias@%$build_alias%g
4393 s%@build_cpu@%$build_cpu%g
4394 s%@build_vendor@%$build_vendor%g
4395 s%@build_os@%$build_os%g
4397 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4398 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4399 s%@INSTALL_DATA@%$INSTALL_DATA%g
4400 s%@PACKAGE@%$PACKAGE%g
4401 s%@VERSION@%$VERSION%g
4402 s%@ACLOCAL@%$ACLOCAL%g
4403 s%@AUTOCONF@%$AUTOCONF%g
4404 s%@AUTOMAKE@%$AUTOMAKE%g
4405 s%@AUTOHEADER@%$AUTOHEADER%g
4406 s%@MAKEINFO@%$MAKEINFO%g
4407 s%@SET_MAKE@%$SET_MAKE%g
4409 s%@OBJEXT@%$OBJEXT%g
4410 s%@EXEEXT@%$EXEEXT%g
4411 s%@RANLIB@%$RANLIB%g
4413 s%@LIBTOOL@%$LIBTOOL%g
4415 s%@ALLOCA@%$ALLOCA%g
4416 s%@USE_NLS@%$USE_NLS%g
4417 s%@MSGFMT@%$MSGFMT%g
4418 s%@GMSGFMT@%$GMSGFMT%g
4419 s%@XGETTEXT@%$XGETTEXT%g
4420 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4421 s%@CATALOGS@%$CATALOGS%g
4422 s%@CATOBJEXT@%$CATOBJEXT%g
4423 s%@DATADIRNAME@%$DATADIRNAME%g
4424 s%@GMOFILES@%$GMOFILES%g
4425 s%@INSTOBJEXT@%$INSTOBJEXT%g
4426 s%@INTLDEPS@%$INTLDEPS%g
4427 s%@INTLLIBS@%$INTLLIBS%g
4428 s%@INTLOBJS@%$INTLOBJS%g
4429 s%@POFILES@%$POFILES%g
4431 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4433 s%@GT_YES@%$GT_YES%g
4434 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4436 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
4437 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
4439 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
4444 cat >> $CONFIG_STATUS <<\EOF
4446 # Split the substitutions into bite-sized pieces for seds with
4447 # small command number limits, like on Digital OSF/1 and HP-UX.
4448 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4449 ac_file
=1 # Number of current file.
4450 ac_beg
=1 # First line for current file.
4451 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4454 while $ac_more_lines; do
4455 if test $ac_beg -gt 1; then
4456 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4458 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4460 if test ! -s conftest.s
$ac_file; then
4462 rm -f conftest.s
$ac_file
4464 if test -z "$ac_sed_cmds"; then
4465 ac_sed_cmds
="sed -f conftest.s$ac_file"
4467 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4469 ac_file
=`expr $ac_file + 1`
4471 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4474 if test -z "$ac_sed_cmds"; then
4479 cat >> $CONFIG_STATUS <<EOF
4481 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
4483 cat >> $CONFIG_STATUS <<\EOF
4484 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4485 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4487 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4488 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4489 *) ac_file_in
="${ac_file}.in" ;;
4492 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4494 # Remove last slash and all that follows it. Not all systems have dirname.
4495 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4496 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
4497 # The file is in a subdirectory.
4498 test ! -d "$ac_dir" && mkdir
"$ac_dir"
4499 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
4500 # A "../" for each directory in $ac_dir_suffix.
4501 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4503 ac_dir_suffix
= ac_dots
=
4506 case "$ac_given_srcdir" in
4508 if test -z "$ac_dots"; then top_srcdir
=.
4509 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4510 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
4512 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4513 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
4516 case "$ac_given_INSTALL" in
4517 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
4518 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
4521 echo creating
"$ac_file"
4523 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4525 *Makefile
*) ac_comsub
="1i\\
4526 # $configure_input" ;;
4530 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4532 s%@configure_input@%$configure_input%g
4533 s%@srcdir@%$srcdir%g
4534 s%@top_srcdir@%$top_srcdir%g
4535 s%@INSTALL@%$INSTALL%g
4536 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
4540 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4541 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4543 # ac_d sets the value in "#define NAME VALUE" lines.
4544 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4545 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4548 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4549 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4550 ac_uB
='\([ ]\)%\1#\2define\3'
4553 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4554 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4555 ac_eB
='$%\1#\2define\3'
4559 if test "${CONFIG_HEADERS+set}" != set; then
4561 cat >> $CONFIG_STATUS <<EOF
4562 CONFIG_HEADERS="gconfig.h:gconfig.in"
4564 cat >> $CONFIG_STATUS <<\EOF
4566 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4567 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4569 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4570 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4571 *) ac_file_in
="${ac_file}.in" ;;
4574 echo creating
$ac_file
4576 rm -f conftest.frag conftest.
in conftest.out
4577 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4578 cat $ac_file_inputs > conftest.
in
4582 # Transform confdefs.h into a sed script conftest.vals that substitutes
4583 # the proper values into config.h.in to produce config.h. And first:
4584 # Protect against being on the right side of a sed subst in config.status.
4585 # Protect against being in an unquoted here document in config.status.
4587 cat > conftest.hdr
<<\EOF
4590 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4594 sed -n -f conftest.hdr confdefs.h > conftest.vals
4597 # This sed command replaces #undef with comments. This is necessary, for
4598 # example, in the case of _POSIX_SOURCE, which is predefined and required
4599 # on some systems where configure will not decide to define it.
4600 cat >> conftest.vals <<\EOF
4601 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4604 # Break up conftest.vals because some shells have a limit on
4605 # the size of here documents, and old seds have small limits too.
4610 ac_lines=`grep -c . conftest.vals
`
4611 # grep -c gives empty output for an empty file on some AIX systems.
4612 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4613 # Write a limited-size here document to conftest.frag.
4614 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4615 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4617 sed -f conftest.frag conftest.in > conftest.out
4619 mv conftest.out conftest.in
4621 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4623 mv conftest.tail conftest.vals
4627 cat >> $CONFIG_STATUS <<\EOF
4628 rm -f conftest.frag conftest.h
4629 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4630 cat conftest.in >> conftest.h
4632 if cmp -s $ac_file conftest.h 2>/dev/null; then
4633 echo "$ac_file is unchanged"
4636 # Remove last slash and all that follows it. Not all systems have dirname.
4637 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
4638 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4639 # The file is in a subdirectory.
4640 test ! -d "$ac_dir" && mkdir "$ac_dir"
4643 mv conftest.h $ac_file
4648 cat >> $CONFIG_STATUS <<EOF
4652 cat >> $CONFIG_STATUS <<\EOF
4653 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4654 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
4657 chmod +x $CONFIG_STATUS
4658 rm -fr confdefs* $ac_clean_files
4659 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1