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 force libtool not to do file locking"
25 --disable-nls do not use Native Language Support"
27 --with-included-gettext use the GNU gettext library included here"
29 --enable-maintainer-mode enable make rules and dependencies not useful
30 (and sometimes confusing) to the casual installer"
32 # Initialize some variables set by options.
33 # The variables have the same names as the options, with
34 # dashes changed to underlines.
36 cache_file
=.
/config.cache
45 program_transform_name
=s
,x
,x
,
54 bindir
='${exec_prefix}/bin'
55 sbindir
='${exec_prefix}/sbin'
56 libexecdir
='${exec_prefix}/libexec'
57 datadir
='${prefix}/share'
58 sysconfdir
='${prefix}/etc'
59 sharedstatedir
='${prefix}/com'
60 localstatedir
='${prefix}/var'
61 libdir
='${exec_prefix}/lib'
62 includedir
='${prefix}/include'
63 oldincludedir
='/usr/include'
64 infodir
='${prefix}/info'
65 mandir
='${prefix}/man'
67 # Initialize some other variables.
70 SHELL
=${CONFIG_SHELL-/bin/sh}
71 # Maximum number of lines to put in a shell here document.
78 # If the previous option needs an argument, assign it.
79 if test -n "$ac_prev"; then
80 eval "$ac_prev=\$ac_option"
86 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
90 # Accept the important Cygnus configure options, so we can diagnose typos.
94 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
96 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
97 bindir
="$ac_optarg" ;;
99 -build |
--build |
--buil |
--bui |
--bu)
101 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
102 build
="$ac_optarg" ;;
104 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
105 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
106 ac_prev
=cache_file
;;
107 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
108 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
109 cache_file
="$ac_optarg" ;;
111 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
113 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
115 datadir
="$ac_optarg" ;;
117 -disable-* |
--disable-*)
118 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
119 # Reject names that are not valid shell variable names.
120 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
121 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
123 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
124 eval "enable_${ac_feature}=no" ;;
126 -enable-* |
--enable-*)
127 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
128 # Reject names that are not valid shell variable names.
129 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
130 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
132 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
137 eval "enable_${ac_feature}='$ac_optarg'" ;;
139 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
140 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
141 |
--exec |
--exe |
--ex)
142 ac_prev
=exec_prefix
;;
143 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
144 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
145 |
--exec=* |
--exe=* |
--ex=*)
146 exec_prefix
="$ac_optarg" ;;
148 -gas |
--gas |
--ga |
--g)
149 # Obsolete; use --with-gas.
152 -help |
--help |
--hel |
--he)
153 # Omit some internal or obsolete options to make the list less imposing.
154 # This message is too long to be a string in the A/UX 3.1 sh.
156 Usage: configure [options] [host]
157 Options: [defaults in brackets after descriptions]
159 --cache-file=FILE cache test results in FILE
160 --help print this message
161 --no-create do not create output files
162 --quiet, --silent do not print \`checking...' messages
163 --site-file=FILE use FILE as the site file
164 --version print the version of autoconf that created configure
165 Directory and file names:
166 --prefix=PREFIX install architecture-independent files in PREFIX
168 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
170 --bindir=DIR user executables in DIR [EPREFIX/bin]
171 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
172 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
173 --datadir=DIR read-only architecture-independent data in DIR
175 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
176 --sharedstatedir=DIR modifiable architecture-independent data in DIR
178 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
179 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
180 --includedir=DIR C header files in DIR [PREFIX/include]
181 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
182 --infodir=DIR info documentation in DIR [PREFIX/info]
183 --mandir=DIR man documentation in DIR [PREFIX/man]
184 --srcdir=DIR find the sources in DIR [configure dir or ..]
185 --program-prefix=PREFIX prepend PREFIX to installed program names
186 --program-suffix=SUFFIX append SUFFIX to installed program names
187 --program-transform-name=PROGRAM
188 run sed PROGRAM on installed program names
192 --build=BUILD configure for building on BUILD [BUILD=HOST]
193 --host=HOST configure for HOST [guessed]
194 --target=TARGET configure for TARGET [TARGET=HOST]
195 Features and packages:
196 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
197 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
198 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
199 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
200 --x-includes=DIR X include files are in DIR
201 --x-libraries=DIR X library files are in DIR
203 if test -n "$ac_help"; then
204 echo "--enable and --with options recognized:$ac_help"
208 -host |
--host |
--hos |
--ho)
210 -host=* |
--host=* |
--hos=* |
--ho=*)
213 -includedir |
--includedir |
--includedi |
--included |
--include \
214 |
--includ |
--inclu |
--incl |
--inc)
215 ac_prev
=includedir
;;
216 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
217 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
218 includedir
="$ac_optarg" ;;
220 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
222 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
223 infodir
="$ac_optarg" ;;
225 -libdir |
--libdir |
--libdi |
--libd)
227 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
228 libdir
="$ac_optarg" ;;
230 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
231 |
--libexe |
--libex |
--libe)
232 ac_prev
=libexecdir
;;
233 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
234 |
--libexe=* |
--libex=* |
--libe=*)
235 libexecdir
="$ac_optarg" ;;
237 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
238 |
--localstate |
--localstat |
--localsta |
--localst \
239 |
--locals |
--local |
--loca |
--loc |
--lo)
240 ac_prev
=localstatedir
;;
241 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
242 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
243 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
244 localstatedir
="$ac_optarg" ;;
246 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
248 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
249 mandir
="$ac_optarg" ;;
252 # Obsolete; use --without-fp.
255 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
259 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
260 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
263 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
264 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
265 |
--oldin |
--oldi |
--old |
--ol |
--o)
266 ac_prev
=oldincludedir
;;
267 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
268 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
269 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
270 oldincludedir
="$ac_optarg" ;;
272 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
274 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
275 prefix
="$ac_optarg" ;;
277 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
278 |
--program-pre |
--program-pr |
--program-p)
279 ac_prev
=program_prefix
;;
280 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
281 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
282 program_prefix
="$ac_optarg" ;;
284 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
285 |
--program-suf |
--program-su |
--program-s)
286 ac_prev
=program_suffix
;;
287 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
288 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
289 program_suffix
="$ac_optarg" ;;
291 -program-transform-name |
--program-transform-name \
292 |
--program-transform-nam |
--program-transform-na \
293 |
--program-transform-n |
--program-transform- \
294 |
--program-transform |
--program-transfor \
295 |
--program-transfo |
--program-transf \
296 |
--program-trans |
--program-tran \
297 |
--progr-tra |
--program-tr |
--program-t)
298 ac_prev
=program_transform_name
;;
299 -program-transform-name=* |
--program-transform-name=* \
300 |
--program-transform-nam=* |
--program-transform-na=* \
301 |
--program-transform-n=* |
--program-transform-=* \
302 |
--program-transform=* |
--program-transfor=* \
303 |
--program-transfo=* |
--program-transf=* \
304 |
--program-trans=* |
--program-tran=* \
305 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
306 program_transform_name
="$ac_optarg" ;;
308 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
309 |
-silent |
--silent |
--silen |
--sile |
--sil)
312 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
314 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
316 sbindir
="$ac_optarg" ;;
318 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
319 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
320 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
322 ac_prev
=sharedstatedir
;;
323 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
324 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
325 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
327 sharedstatedir
="$ac_optarg" ;;
329 -site |
--site |
--sit)
331 -site=* |
--site=* |
--sit=*)
334 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
336 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
337 sitefile
="$ac_optarg" ;;
339 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
341 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
342 srcdir
="$ac_optarg" ;;
344 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
345 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
346 ac_prev
=sysconfdir
;;
347 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
348 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
349 sysconfdir
="$ac_optarg" ;;
351 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
353 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
354 target
="$ac_optarg" ;;
356 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
359 -version |
--version |
--versio |
--versi |
--vers)
360 echo "configure generated by autoconf version 2.13"
364 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
365 # Reject names that are not valid shell variable names.
366 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
367 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
369 ac_package
=`echo $ac_package| sed 's/-/_/g'`
374 eval "with_${ac_package}='$ac_optarg'" ;;
376 -without-* |
--without-*)
377 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
378 # Reject names that are not valid shell variable names.
379 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
380 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
382 ac_package
=`echo $ac_package| sed 's/-/_/g'`
383 eval "with_${ac_package}=no" ;;
386 # Obsolete; use --with-x.
389 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
390 |
--x-incl |
--x-inc |
--x-in |
--x-i)
391 ac_prev
=x_includes
;;
392 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
393 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
394 x_includes
="$ac_optarg" ;;
396 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
397 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
398 ac_prev
=x_libraries
;;
399 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
400 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
401 x_libraries
="$ac_optarg" ;;
403 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
407 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
408 echo "configure: warning: $ac_option: invalid host type" 1>&2
410 if test "x$nonopt" != xNONE
; then
411 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
419 if test -n "$ac_prev"; then
420 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
423 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
425 # File descriptor usage:
428 # 2 errors and warnings
429 # 3 some systems may open it to /dev/tty
430 # 4 used on the Kubota Titan
431 # 6 checking for... messages and results
432 # 5 compiler messages saved in config.log
433 if test "$silent" = yes; then
441 This file contains any messages produced by compilers while
442 running configure, to aid debugging if configure makes a mistake.
445 # Strip out --no-create and --no-recursion so they do not pile up.
446 # Also quote any args containing shell metacharacters.
451 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
452 |
--no-cr |
--no-c) ;;
453 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
454 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
455 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
456 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
457 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
462 # Only set these to C if already set. These must not be set unconditionally
463 # because not all systems understand e.g. LANG=C (notably SCO).
464 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
465 # Non-C LC_CTYPE values break the ctype check.
466 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
467 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
468 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
469 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
471 # confdefs.h avoids OS command line length limits that DEFS can exceed.
472 rm -rf conftest
* confdefs.h
473 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
476 # A filename unique to this package, relative to the directory that
477 # configure is in, which we can look for to find out if srcdir is correct.
478 ac_unique_file
=gprof.c
480 # Find the source files, if location was not specified.
481 if test -z "$srcdir"; then
482 ac_srcdir_defaulted
=yes
483 # Try the directory containing this script, then its parent.
485 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
486 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
488 if test ! -r $srcdir/$ac_unique_file; then
492 ac_srcdir_defaulted
=no
494 if test ! -r $srcdir/$ac_unique_file; then
495 if test "$ac_srcdir_defaulted" = yes; then
496 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
498 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
501 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
503 # Prefer explicitly selected file to automatically selected ones.
504 if test -z "$sitefile"; then
505 if test -z "$CONFIG_SITE"; then
506 if test "x$prefix" != xNONE
; then
507 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
509 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
513 CONFIG_SITE
="$sitefile"
515 for ac_site_file
in $CONFIG_SITE; do
516 if test -r "$ac_site_file"; then
517 echo "loading site script $ac_site_file"
522 if test -r "$cache_file"; then
523 echo "loading cache $cache_file"
526 echo "creating cache $cache_file"
531 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
532 ac_cpp
='$CPP $CPPFLAGS'
533 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
534 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
535 cross_compiling
=$ac_cv_prog_cc_cross
539 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
540 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
541 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
548 ac_n
= ac_c
='\c' ac_t
=
554 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
555 if test -f $ac_dir/install-sh
; then
557 ac_install_sh
="$ac_aux_dir/install-sh -c"
559 elif test -f $ac_dir/install.sh
; then
561 ac_install_sh
="$ac_aux_dir/install.sh -c"
565 if test -z "$ac_aux_dir"; then
566 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
568 ac_config_guess
=$ac_aux_dir/config.guess
569 ac_config_sub
=$ac_aux_dir/config.sub
570 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
573 # Do some error checking and defaulting for the host and target type.
575 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
578 # 1. You are not allowed to specify --host, --target, and nonopt at the
580 # 2. Host defaults to nonopt.
581 # 3. If nonopt is not specified, then host defaults to the current host,
582 # as determined by config.guess.
583 # 4. Target and build default to nonopt.
584 # 5. If nonopt is not specified, then target and build default to host.
586 # The aliases save the names the user supplied, while $host etc.
587 # will get canonicalized.
588 case $host---$target---$nonopt in
589 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
590 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
594 # Make sure we can run config.sub.
595 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
596 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
599 echo $ac_n "checking host system type""... $ac_c" 1>&6
600 echo "configure:601: checking host system type" >&5
603 case "$host_alias" in
607 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
608 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
610 *) host_alias
=$nonopt ;;
614 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
615 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
616 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
617 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
618 echo "$ac_t""$host" 1>&6
620 echo $ac_n "checking target system type""... $ac_c" 1>&6
621 echo "configure:622: checking target system type" >&5
624 case "$target_alias" in
627 NONE
) target_alias
=$host_alias ;;
628 *) target_alias
=$nonopt ;;
632 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
633 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
634 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
635 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
636 echo "$ac_t""$target" 1>&6
638 echo $ac_n "checking build system type""... $ac_c" 1>&6
639 echo "configure:640: checking build system type" >&5
642 case "$build_alias" in
645 NONE
) build_alias
=$host_alias ;;
646 *) build_alias
=$nonopt ;;
650 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
651 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
652 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
653 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
654 echo "$ac_t""$build" 1>&6
656 test "$host_alias" != "$target_alias" &&
657 test "$program_prefix$program_suffix$program_transform_name" = \
659 program_prefix
=${target_alias}-
662 # Find a good install program. We prefer a C program (faster),
663 # so one script is as good as another. But avoid the broken or
664 # incompatible versions:
665 # SysV /etc/install, /usr/sbin/install
666 # SunOS /usr/etc/install
669 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
670 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
671 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
672 # ./install, which can be erroneously created by make from ./install.sh.
673 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
674 echo "configure:675: checking for a BSD compatible install" >&5
675 if test -z "$INSTALL"; then
676 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
677 echo $ac_n "(cached) $ac_c" 1>&6
679 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
680 for ac_dir
in $PATH; do
681 # Account for people who put trailing slashes in PATH elements.
683 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
685 # OSF1 and SCO ODT 3.0 have their own names for install.
686 # Don't use installbsd from OSF since it installs stuff as root
688 for ac_prog
in ginstall scoinst
install; do
689 if test -f $ac_dir/$ac_prog; then
690 if test $ac_prog = install &&
691 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
692 # AIX install. It has an incompatible calling convention.
695 ac_cv_path_install
="$ac_dir/$ac_prog -c"
706 if test "${ac_cv_path_install+set}" = set; then
707 INSTALL
="$ac_cv_path_install"
709 # As a last resort, use the slow shell script. We don't cache a
710 # path for INSTALL within a source directory, because that will
711 # break other packages using the cache if that directory is
712 # removed, or if the path is relative.
713 INSTALL
="$ac_install_sh"
716 echo "$ac_t""$INSTALL" 1>&6
718 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
719 # It thinks the first close brace ends the variable substitution.
720 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
722 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
724 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
726 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
727 echo "configure:728: checking whether build environment is sane" >&5
730 echo timestamp
> conftestfile
731 # Do `set' in a subshell so we don't clobber the current shell's
732 # arguments. Must try -L first in case configure is actually a
733 # symlink; some systems play weird games with the mod time of symlinks
734 # (eg FreeBSD returns the mod time of the symlink's containing
737 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
738 if test "$*" = "X"; then
740 set X
`ls -t $srcdir/configure conftestfile`
742 if test "$*" != "X $srcdir/configure conftestfile" \
743 && test "$*" != "X conftestfile $srcdir/configure"; then
745 # If neither matched, then we have a broken ls. This can happen
746 # if, for instance, CONFIG_SHELL is bash and it inherits a
747 # broken ls alias from the environment. This has actually
748 # happened. Such a system could not be considered "sane".
749 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
750 alias in your environment" 1>&2; exit 1; }
753 test "$2" = conftestfile
759 { echo "configure: error: newly created file is older than distributed files!
760 Check your system clock" 1>&2; exit 1; }
763 echo "$ac_t""yes" 1>&6
764 if test "$program_transform_name" = s
,x
,x
,; then
765 program_transform_name
=
767 # Double any \ or $. echo might interpret backslashes.
768 cat <<\EOF_SED
> conftestsed
769 s
,\\,\\\\,g
; s
,\$
,$$
,g
771 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
774 test "$program_prefix" != NONE
&&
775 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
776 # Use a double $ so make ignores it.
777 test "$program_suffix" != NONE
&&
778 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
780 # sed with no file args requires a program.
781 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
783 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
784 echo "configure:785: checking whether ${MAKE-make} sets \${MAKE}" >&5
785 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
786 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
787 echo $ac_n "(cached) $ac_c" 1>&6
789 cat > conftestmake
<<\EOF
791 @
echo 'ac_maketemp="${MAKE}"'
793 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
794 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
795 if test -n "$ac_maketemp"; then
796 eval ac_cv_prog_make_
${ac_make}_set
=yes
798 eval ac_cv_prog_make_
${ac_make}_set
=no
802 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
803 echo "$ac_t""yes" 1>&6
806 echo "$ac_t""no" 1>&6
807 SET_MAKE
="MAKE=${MAKE-make}"
815 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
816 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
818 cat >> confdefs.h
<<EOF
819 #define PACKAGE "$PACKAGE"
822 cat >> confdefs.h
<<EOF
823 #define VERSION "$VERSION"
828 missing_dir
=`cd $ac_aux_dir && pwd`
829 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
830 echo "configure:831: checking for working aclocal" >&5
831 # Run test in a subshell; some versions of sh will print an error if
832 # an executable is not found, even if stderr is redirected.
833 # Redirect stdin to placate older versions of autoconf. Sigh.
834 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
836 echo "$ac_t""found" 1>&6
838 ACLOCAL
="$missing_dir/missing aclocal"
839 echo "$ac_t""missing" 1>&6
842 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
843 echo "configure:844: checking for working autoconf" >&5
844 # Run test in a subshell; some versions of sh will print an error if
845 # an executable is not found, even if stderr is redirected.
846 # Redirect stdin to placate older versions of autoconf. Sigh.
847 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
849 echo "$ac_t""found" 1>&6
851 AUTOCONF
="$missing_dir/missing autoconf"
852 echo "$ac_t""missing" 1>&6
855 echo $ac_n "checking for working automake""... $ac_c" 1>&6
856 echo "configure:857: checking for working automake" >&5
857 # Run test in a subshell; some versions of sh will print an error if
858 # an executable is not found, even if stderr is redirected.
859 # Redirect stdin to placate older versions of autoconf. Sigh.
860 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
862 echo "$ac_t""found" 1>&6
864 AUTOMAKE
="$missing_dir/missing automake"
865 echo "$ac_t""missing" 1>&6
868 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
869 echo "configure:870: checking for working autoheader" >&5
870 # Run test in a subshell; some versions of sh will print an error if
871 # an executable is not found, even if stderr is redirected.
872 # Redirect stdin to placate older versions of autoconf. Sigh.
873 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
874 AUTOHEADER
=autoheader
875 echo "$ac_t""found" 1>&6
877 AUTOHEADER
="$missing_dir/missing autoheader"
878 echo "$ac_t""missing" 1>&6
881 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
882 echo "configure:883: checking for working makeinfo" >&5
883 # Run test in a subshell; some versions of sh will print an error if
884 # an executable is not found, even if stderr is redirected.
885 # Redirect stdin to placate older versions of autoconf. Sigh.
886 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
888 echo "$ac_t""found" 1>&6
890 MAKEINFO
="$missing_dir/missing makeinfo"
891 echo "$ac_t""missing" 1>&6
896 # Check whether --enable-shared or --disable-shared was given.
897 if test "${enable_shared+set}" = set; then
898 enableval
="$enable_shared"
901 yes) enable_shared
=yes ;;
902 no
) enable_shared
=no
;;
905 # Look at the argument we got. We use all the common list separators.
906 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
907 for pkg
in $enableval; do
908 if test "X$pkg" = "X$p"; then
919 # Check whether --enable-static or --disable-static was given.
920 if test "${enable_static+set}" = set; then
921 enableval
="$enable_static"
924 yes) enable_static
=yes ;;
925 no
) enable_static
=no
;;
928 # Look at the argument we got. We use all the common list separators.
929 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
930 for pkg
in $enableval; do
931 if test "X$pkg" = "X$p"; then
942 # Check whether --enable-fast-install or --disable-fast-install was given.
943 if test "${enable_fast_install+set}" = set; then
944 enableval
="$enable_fast_install"
947 yes) enable_fast_install
=yes ;;
948 no
) enable_fast_install
=no
;;
950 enable_fast_install
=no
951 # Look at the argument we got. We use all the common list separators.
952 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
953 for pkg
in $enableval; do
954 if test "X$pkg" = "X$p"; then
955 enable_fast_install
=yes
962 enable_fast_install
=yes
965 # Extract the first word of "ranlib", so it can be a program name with args.
966 set dummy ranlib
; ac_word
=$2
967 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
968 echo "configure:969: checking for $ac_word" >&5
969 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
970 echo $ac_n "(cached) $ac_c" 1>&6
972 if test -n "$RANLIB"; then
973 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
975 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
977 for ac_dir
in $ac_dummy; do
978 test -z "$ac_dir" && ac_dir
=.
979 if test -f $ac_dir/$ac_word; then
980 ac_cv_prog_RANLIB
="ranlib"
985 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
988 RANLIB
="$ac_cv_prog_RANLIB"
989 if test -n "$RANLIB"; then
990 echo "$ac_t""$RANLIB" 1>&6
992 echo "$ac_t""no" 1>&6
995 # Extract the first word of "gcc", so it can be a program name with args.
996 set dummy gcc
; ac_word
=$2
997 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
998 echo "configure:999: checking for $ac_word" >&5
999 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1000 echo $ac_n "(cached) $ac_c" 1>&6
1002 if test -n "$CC"; then
1003 ac_cv_prog_CC
="$CC" # Let the user override the test.
1005 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1007 for ac_dir
in $ac_dummy; do
1008 test -z "$ac_dir" && ac_dir
=.
1009 if test -f $ac_dir/$ac_word; then
1018 if test -n "$CC"; then
1019 echo "$ac_t""$CC" 1>&6
1021 echo "$ac_t""no" 1>&6
1024 if test -z "$CC"; then
1025 # Extract the first word of "cc", so it can be a program name with args.
1026 set dummy cc
; ac_word
=$2
1027 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1028 echo "configure:1029: checking for $ac_word" >&5
1029 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1030 echo $ac_n "(cached) $ac_c" 1>&6
1032 if test -n "$CC"; then
1033 ac_cv_prog_CC
="$CC" # Let the user override the test.
1035 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1038 for ac_dir
in $ac_dummy; do
1039 test -z "$ac_dir" && ac_dir
=.
1040 if test -f $ac_dir/$ac_word; then
1041 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1042 ac_prog_rejected
=yes
1050 if test $ac_prog_rejected = yes; then
1051 # We found a bogon in the path, so make sure we never use it.
1052 set dummy
$ac_cv_prog_CC
1054 if test $# -gt 0; then
1055 # We chose a different compiler from the bogus one.
1056 # However, it has the same basename, so the bogon will be chosen
1057 # first if we set CC to just the basename; use the full file name.
1059 set dummy
"$ac_dir/$ac_word" "$@"
1067 if test -n "$CC"; then
1068 echo "$ac_t""$CC" 1>&6
1070 echo "$ac_t""no" 1>&6
1073 if test -z "$CC"; then
1074 case "`uname -s`" in
1076 # Extract the first word of "cl", so it can be a program name with args.
1077 set dummy cl
; ac_word
=$2
1078 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1079 echo "configure:1080: checking for $ac_word" >&5
1080 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1081 echo $ac_n "(cached) $ac_c" 1>&6
1083 if test -n "$CC"; then
1084 ac_cv_prog_CC
="$CC" # Let the user override the test.
1086 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1088 for ac_dir
in $ac_dummy; do
1089 test -z "$ac_dir" && ac_dir
=.
1090 if test -f $ac_dir/$ac_word; then
1099 if test -n "$CC"; then
1100 echo "$ac_t""$CC" 1>&6
1102 echo "$ac_t""no" 1>&6
1107 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1110 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1111 echo "configure:1112: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1114 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1115 ac_cpp
='$CPP $CPPFLAGS'
1116 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1117 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1118 cross_compiling
=$ac_cv_prog_cc_cross
1120 cat > conftest.
$ac_ext << EOF
1122 #line 1123 "configure"
1123 #include "confdefs.h"
1127 if { (eval echo configure
:1128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1128 ac_cv_prog_cc_works
=yes
1129 # If we can't run a trivial program, we are probably using a cross compiler.
1130 if (.
/conftest
; exit) 2>/dev
/null
; then
1131 ac_cv_prog_cc_cross
=no
1133 ac_cv_prog_cc_cross
=yes
1136 echo "configure: failed program was:" >&5
1137 cat conftest.
$ac_ext >&5
1138 ac_cv_prog_cc_works
=no
1142 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1143 ac_cpp
='$CPP $CPPFLAGS'
1144 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1145 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1146 cross_compiling
=$ac_cv_prog_cc_cross
1148 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1149 if test $ac_cv_prog_cc_works = no
; then
1150 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1152 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1153 echo "configure:1154: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1154 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1155 cross_compiling
=$ac_cv_prog_cc_cross
1157 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1158 echo "configure:1159: checking whether we are using GNU C" >&5
1159 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1160 echo $ac_n "(cached) $ac_c" 1>&6
1162 cat > conftest.c
<<EOF
1167 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1174 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1176 if test $ac_cv_prog_gcc = yes; then
1182 ac_test_CFLAGS
="${CFLAGS+set}"
1183 ac_save_CFLAGS
="$CFLAGS"
1185 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1186 echo "configure:1187: checking whether ${CC-cc} accepts -g" >&5
1187 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1188 echo $ac_n "(cached) $ac_c" 1>&6
1190 echo 'void f(){}' > conftest.c
1191 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1200 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1201 if test "$ac_test_CFLAGS" = set; then
1202 CFLAGS
="$ac_save_CFLAGS"
1203 elif test $ac_cv_prog_cc_g = yes; then
1204 if test "$GCC" = yes; then
1210 if test "$GCC" = yes; then
1217 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1218 if test "${with_gnu_ld+set}" = set; then
1219 withval
="$with_gnu_ld"
1220 test "$withval" = no || with_gnu_ld
=yes
1226 if test "$ac_cv_prog_gcc" = yes; then
1227 # Check if gcc -print-prog-name=ld gives a path.
1228 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1229 echo "configure:1230: checking for ld used by GCC" >&5
1230 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1232 # Accept absolute paths.
1233 /* |
[A-Za-z
]:[\\/]*)
1234 re_direlt
='/[^/][^/]*/\.\./'
1235 # Canonicalize the path of ld
1236 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1237 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1238 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1240 test -z "$LD" && LD
="$ac_prog"
1243 # If it fails, then pretend we aren't using GCC.
1247 # If it is relative, then search for the first ld in PATH.
1251 elif test "$with_gnu_ld" = yes; then
1252 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1253 echo "configure:1254: checking for GNU ld" >&5
1255 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1256 echo "configure:1257: checking for non-GNU ld" >&5
1258 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1259 echo $ac_n "(cached) $ac_c" 1>&6
1261 if test -z "$LD"; then
1262 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1263 for ac_dir
in $PATH; do
1264 test -z "$ac_dir" && ac_dir
=.
1265 if test -f "$ac_dir/$ac_prog"; then
1266 ac_cv_path_LD
="$ac_dir/$ac_prog"
1267 # Check to see if the program is GNU ld. I'd rather use --version,
1268 # but apparently some GNU ld's only accept -v.
1269 # Break only if it was the GNU/non-GNU ld that we prefer.
1270 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1271 test "$with_gnu_ld" != no
&& break
1273 test "$with_gnu_ld" != yes && break
1279 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1284 if test -n "$LD"; then
1285 echo "$ac_t""$LD" 1>&6
1287 echo "$ac_t""no" 1>&6
1289 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1291 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1292 echo "configure:1293: checking if the linker ($LD) is GNU ld" >&5
1293 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1294 echo $ac_n "(cached) $ac_c" 1>&6
1296 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1297 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1298 ac_cv_prog_gnu_ld
=yes
1300 ac_cv_prog_gnu_ld
=no
1304 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1307 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1308 echo "configure:1309: checking for BSD-compatible nm" >&5
1309 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1310 echo $ac_n "(cached) $ac_c" 1>&6
1312 if test -n "$NM"; then
1313 # Let the user override the test.
1316 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1317 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1318 test -z "$ac_dir" && ac_dir
=.
1319 if test -f $ac_dir/nm
; then
1320 # Check to see if the nm accepts a BSD-compat flag.
1321 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1322 # nm: unknown option "B" ignored
1323 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1324 ac_cv_path_NM
="$ac_dir/nm -B"
1326 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1327 ac_cv_path_NM
="$ac_dir/nm -p"
1330 ac_cv_path_NM
=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1331 continue # so that we can try to find one that supports BSD flags
1336 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1341 echo "$ac_t""$NM" 1>&6
1344 # Check for command to grab the raw symbol name followed by C symbol from nm.
1345 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
1346 echo "configure:1347: checking command to parse $NM output" >&5
1347 if eval "test \"`echo '$''{'ac_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
1348 echo $ac_n "(cached) $ac_c" 1>&6
1350 # These are sane defaults that work on at least a few old systems.
1351 # {They come from Ultrix. What could be older than Ultrix?!! ;)}
1353 # Character class describing NM global symbol codes.
1354 ac_symcode
='[BCDEGRST]'
1356 # Regexp to match symbols that can be accessed directly from C.
1357 ac_sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
1359 # Transform the above into a raw symbol and a C symbol.
1360 ac_symxfrm
='\1 \2\3 \3'
1362 # Transform an extracted symbol line into a proper C declaration
1363 ac_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
1365 # Define system-specific variables.
1371 ac_symcode
='[ABCDGISTW]'
1374 ac_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
1377 ac_symcode
='[BCDEGRST]'
1384 # If we're using GNU nm, then use its standard symbol codes.
1385 if $NM -V 2>&1 |
egrep '(GNU|with BFD)' > /dev
/null
; then
1386 ac_symcode
='[ABCDGISTW]'
1389 # Try without a prefix undercore, then with it.
1390 for ac_symprfx
in "" "_"; do
1392 ac_cv_sys_global_symbol_pipe
="sed -n -e 's/^.* \($ac_symcode\) *\($ac_symprfx\)$ac_sympat$/$ac_symxfrm/p'"
1394 # Check to see that the pipe works correctly.
1396 rm -f conftest.
$ac_ext
1397 cat > conftest.
$ac_ext <<EOF
1402 void nm_test_func(){}
1406 int main(){nm_test_var='a';nm_test_func;return 0;}
1409 if { (eval echo configure
:1410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1410 # Now try to grab the symbols.
1411 ac_nlist
=conftest.nm
1413 if { (eval echo configure
:1414: \"$NM conftest.
$ac_objext \|
$ac_cv_sys_global_symbol_pipe \
> $ac_nlist\") 1>&5; (eval $NM conftest.
$ac_objext \|
$ac_cv_sys_global_symbol_pipe \
> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
1415 # Try sorting and uniquifying the output.
1416 if sort "$ac_nlist" |
uniq > "$ac_nlist"T
; then
1417 mv -f "$ac_nlist"T
"$ac_nlist"
1422 # Make sure that we snagged all the symbols we need.
1423 if egrep ' nm_test_var$' "$ac_nlist" >/dev
/null
; then
1424 if egrep ' nm_test_func$' "$ac_nlist" >/dev
/null
; then
1425 cat <<EOF > conftest.c
1431 # Now generate the symbol file.
1432 eval "$ac_global_symbol_to_cdecl"' < "$ac_nlist" >> conftest.c'
1434 cat <<EOF >> conftest.c
1435 #if defined (__STDC__) && __STDC__
1436 # define lt_ptr_t void *
1438 # define lt_ptr_t char *
1442 /* The mapping between symbol names and symbols. */
1447 lt_preloaded_symbols[] =
1450 sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c
1451 cat <<\EOF
>> conftest.c
1459 # Now try linking the two files.
1460 mv conftest.
$ac_objext conftestm.
$ac_objext
1461 ac_save_LIBS
="$LIBS"
1462 ac_save_CFLAGS
="$CFLAGS"
1463 LIBS
="conftestm.$ac_objext"
1464 CFLAGS
="$CFLAGS$no_builtin_flag"
1465 if { (eval echo configure
:1466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1468 echo "configure: failed program was:" >&5
1471 LIBS
="$ac_save_LIBS"
1472 CFLAGS
="$ac_save_CFLAGS"
1474 echo "cannot find nm_test_func in $ac_nlist" >&5
1477 echo "cannot find nm_test_var in $ac_nlist" >&5
1480 echo "cannot run $ac_cv_sys_global_symbol_pipe" >&5
1483 echo "$progname: failed program was:" >&5
1488 # Do not use the global_symbol_pipe unless it works.
1489 if test "$ac_pipe_works" = yes; then
1490 if test x
"$ac_symprfx" = x
"_"; then
1491 ac_cv_sys_symbol_underscore
=yes
1493 ac_cv_sys_symbol_underscore
=no
1497 ac_cv_sys_global_symbol_pipe
=
1505 if test -z "$ac_cv_sys_global_symbol_pipe"; then
1508 echo "$ac_t""$ac_result" 1>&6
1510 echo $ac_n "checking for _ prefix in compiled symbols""... $ac_c" 1>&6
1511 echo "configure:1512: checking for _ prefix in compiled symbols" >&5
1512 if eval "test \"`echo '$''{'ac_cv_sys_symbol_underscore'+set}'`\" = set"; then
1513 echo $ac_n "(cached) $ac_c" 1>&6
1515 ac_cv_sys_symbol_underscore
=no
1516 cat > conftest.
$ac_ext <<EOF
1517 void nm_test_func(){}
1518 int main(){nm_test_func;return 0;}
1520 if { (eval echo configure
:1521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1521 # Now try to grab the symbols.
1522 ac_nlist
=conftest.nm
1523 if { (eval echo configure
:1524: \"$NM conftest.
$ac_objext \|
$ac_cv_sys_global_symbol_pipe \
> $ac_nlist\") 1>&5; (eval $NM conftest.
$ac_objext \|
$ac_cv_sys_global_symbol_pipe \
> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
1524 # See whether the symbols have a leading underscore.
1525 if egrep '^. _nm_test_func' "$ac_nlist" >/dev
/null
; then
1526 ac_cv_sys_symbol_underscore
=yes
1528 if egrep '^. nm_test_func ' "$ac_nlist" >/dev
/null
; then
1531 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
1535 echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&5
1538 echo "configure: failed program was:" >&5
1545 echo "$ac_t""$ac_cv_sys_symbol_underscore" 1>&6
1546 USE_SYMBOL_UNDERSCORE
=${ac_cv_sys_symbol_underscore=no}
1548 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1549 echo "configure:1550: checking whether ln -s works" >&5
1550 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1551 echo $ac_n "(cached) $ac_c" 1>&6
1554 if ln -s X conftestdata
2>/dev
/null
1557 ac_cv_prog_LN_S
="ln -s"
1562 LN_S
="$ac_cv_prog_LN_S"
1563 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1564 echo "$ac_t""yes" 1>&6
1566 echo "$ac_t""no" 1>&6
1569 if test $host != $build; then
1570 ac_tool_prefix
=${host_alias}-
1576 # Check for any special flags to pass to ltconfig.
1577 libtool_flags
="--cache-file=$cache_file"
1578 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1579 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1580 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1581 test "$lt_dlopen" = yes && libtool_flags
="$libtool_flags --enable-dlopen"
1582 test "$silent" = yes && libtool_flags
="$libtool_flags --silent"
1583 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1584 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1586 # Some flags need to be propagated to the compiler or linker for good
1590 # Find out which ABI we are using.
1591 echo '#line 1592 "configure"' > conftest.
$ac_ext
1592 if { (eval echo configure
:1593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1593 case "`/usr/bin/file conftest.o`" in
1609 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1610 SAVE_CFLAGS
="$CFLAGS"
1611 CFLAGS
="$CFLAGS -belf"
1612 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1613 echo "configure:1614: checking whether the C compiler needs -belf" >&5
1614 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1615 echo $ac_n "(cached) $ac_c" 1>&6
1617 cat > conftest.
$ac_ext <<EOF
1618 #line 1619 "configure"
1619 #include "confdefs.h"
1625 if { (eval echo configure
:1626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1627 lt_cv_cc_needs_belf
=yes
1629 echo "configure: failed program was:" >&5
1630 cat conftest.
$ac_ext >&5
1632 lt_cv_cc_needs_belf
=no
1637 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1638 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
1639 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1640 CFLAGS
="$SAVE_CFLAGS"
1645 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
1646 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
1647 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1648 echo "configure:1649: checking for $ac_word" >&5
1649 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1650 echo $ac_n "(cached) $ac_c" 1>&6
1652 if test -n "$DLLTOOL"; then
1653 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
1655 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1657 for ac_dir
in $ac_dummy; do
1658 test -z "$ac_dir" && ac_dir
=.
1659 if test -f $ac_dir/$ac_word; then
1660 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
1667 DLLTOOL
="$ac_cv_prog_DLLTOOL"
1668 if test -n "$DLLTOOL"; then
1669 echo "$ac_t""$DLLTOOL" 1>&6
1671 echo "$ac_t""no" 1>&6
1675 if test -z "$ac_cv_prog_DLLTOOL"; then
1676 if test -n "$ac_tool_prefix"; then
1677 # Extract the first word of "dlltool", so it can be a program name with args.
1678 set dummy dlltool
; ac_word
=$2
1679 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1680 echo "configure:1681: checking for $ac_word" >&5
1681 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1682 echo $ac_n "(cached) $ac_c" 1>&6
1684 if test -n "$DLLTOOL"; then
1685 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
1687 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1689 for ac_dir
in $ac_dummy; do
1690 test -z "$ac_dir" && ac_dir
=.
1691 if test -f $ac_dir/$ac_word; then
1692 ac_cv_prog_DLLTOOL
="dlltool"
1697 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="false"
1700 DLLTOOL
="$ac_cv_prog_DLLTOOL"
1701 if test -n "$DLLTOOL"; then
1702 echo "$ac_t""$DLLTOOL" 1>&6
1704 echo "$ac_t""no" 1>&6
1712 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1713 set dummy
${ac_tool_prefix}as
; ac_word
=$2
1714 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1715 echo "configure:1716: checking for $ac_word" >&5
1716 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1717 echo $ac_n "(cached) $ac_c" 1>&6
1719 if test -n "$AS"; then
1720 ac_cv_prog_AS
="$AS" # Let the user override the test.
1722 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1724 for ac_dir
in $ac_dummy; do
1725 test -z "$ac_dir" && ac_dir
=.
1726 if test -f $ac_dir/$ac_word; then
1727 ac_cv_prog_AS
="${ac_tool_prefix}as"
1735 if test -n "$AS"; then
1736 echo "$ac_t""$AS" 1>&6
1738 echo "$ac_t""no" 1>&6
1742 if test -z "$ac_cv_prog_AS"; then
1743 if test -n "$ac_tool_prefix"; then
1744 # Extract the first word of "as", so it can be a program name with args.
1745 set dummy as
; ac_word
=$2
1746 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1747 echo "configure:1748: checking for $ac_word" >&5
1748 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1749 echo $ac_n "(cached) $ac_c" 1>&6
1751 if test -n "$AS"; then
1752 ac_cv_prog_AS
="$AS" # Let the user override the test.
1754 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1756 for ac_dir
in $ac_dummy; do
1757 test -z "$ac_dir" && ac_dir
=.
1758 if test -f $ac_dir/$ac_word; then
1764 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS
="false"
1768 if test -n "$AS"; then
1769 echo "$ac_t""$AS" 1>&6
1771 echo "$ac_t""no" 1>&6
1784 # enable the --disable-libtool-lock switch
1786 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1787 if test "${enable_libtool_lock+set}" = set; then
1788 enableval
="$enable_libtool_lock"
1789 need_locks
=$enableval
1795 if test x
"$need_locks" = xno
; then
1796 libtool_flags
="$libtool_flags --disable-lock"
1800 # Save cache, so that ltconfig can load it
1801 cat > confcache
<<\EOF
1802 # This file is a shell script that caches the results of configure
1803 # tests run on this system so they can be shared between configure
1804 # scripts and configure runs. It is not useful on other systems.
1805 # If it contains results you don't want to keep, you may remove or edit it.
1807 # By default, configure uses ./config.cache as the cache file,
1808 # creating it if it does not exist already. You can give configure
1809 # the --cache-file=FILE option to use a different cache file; that is
1810 # what configure does when it calls configure scripts in
1811 # subdirectories, so they share the cache.
1812 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1813 # config.status only pays attention to the cache file if you give it the
1814 # --recheck option to rerun configure.
1817 # The following way of writing the cache mishandles newlines in values,
1818 # but we know of no workaround that is simple, portable, and efficient.
1819 # So, don't put newlines in cache variables' values.
1820 # Ultrix sh set writes to stderr and can't be redirected directly,
1821 # and sets the high bit in the cache file unless we assign to the vars.
1823 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1825 # `set' does not quote correctly, so add quotes (double-quote substitution
1826 # turns \\\\ into \\, and sed turns \\ into \).
1828 -e "s/'/'\\\\''/g" \
1829 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1832 # `set' quotes correctly as required by POSIX, so do not add quotes.
1833 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1836 if cmp -s $cache_file confcache
; then
1839 if test -w $cache_file; then
1840 echo "updating cache $cache_file"
1841 cat confcache
> $cache_file
1843 echo "not updating unwritable cache $cache_file"
1849 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1850 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1851 LD
="$LD" NM
="$NM" RANLIB
="$RANLIB" LN_S
="$LN_S" \
1852 DLLTOOL
="$DLLTOOL" AS
="$AS" \
1853 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1854 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
1855 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1857 # Reload cache, that may have been modified by ltconfig
1858 if test -r "$cache_file"; then
1859 echo "loading cache $cache_file"
1862 echo "creating cache $cache_file"
1867 # This can be used to rebuild libtool when needed
1868 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1870 # Always use our own libtool.
1871 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1873 # Redirect the config.log output again, so that the ltconfig log is not
1874 # clobbered by the next message.
1875 exec 5>>.
/config.log
1882 # Extract the first word of "gcc", so it can be a program name with args.
1883 set dummy gcc
; ac_word
=$2
1884 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1885 echo "configure:1886: checking for $ac_word" >&5
1886 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1887 echo $ac_n "(cached) $ac_c" 1>&6
1889 if test -n "$CC"; then
1890 ac_cv_prog_CC
="$CC" # Let the user override the test.
1892 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1894 for ac_dir
in $ac_dummy; do
1895 test -z "$ac_dir" && ac_dir
=.
1896 if test -f $ac_dir/$ac_word; then
1905 if test -n "$CC"; then
1906 echo "$ac_t""$CC" 1>&6
1908 echo "$ac_t""no" 1>&6
1911 if test -z "$CC"; then
1912 # Extract the first word of "cc", so it can be a program name with args.
1913 set dummy cc
; ac_word
=$2
1914 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1915 echo "configure:1916: checking for $ac_word" >&5
1916 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1917 echo $ac_n "(cached) $ac_c" 1>&6
1919 if test -n "$CC"; then
1920 ac_cv_prog_CC
="$CC" # Let the user override the test.
1922 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1925 for ac_dir
in $ac_dummy; do
1926 test -z "$ac_dir" && ac_dir
=.
1927 if test -f $ac_dir/$ac_word; then
1928 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1929 ac_prog_rejected
=yes
1937 if test $ac_prog_rejected = yes; then
1938 # We found a bogon in the path, so make sure we never use it.
1939 set dummy
$ac_cv_prog_CC
1941 if test $# -gt 0; then
1942 # We chose a different compiler from the bogus one.
1943 # However, it has the same basename, so the bogon will be chosen
1944 # first if we set CC to just the basename; use the full file name.
1946 set dummy
"$ac_dir/$ac_word" "$@"
1954 if test -n "$CC"; then
1955 echo "$ac_t""$CC" 1>&6
1957 echo "$ac_t""no" 1>&6
1960 if test -z "$CC"; then
1961 case "`uname -s`" in
1963 # Extract the first word of "cl", so it can be a program name with args.
1964 set dummy cl
; ac_word
=$2
1965 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1966 echo "configure:1967: checking for $ac_word" >&5
1967 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1968 echo $ac_n "(cached) $ac_c" 1>&6
1970 if test -n "$CC"; then
1971 ac_cv_prog_CC
="$CC" # Let the user override the test.
1973 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1975 for ac_dir
in $ac_dummy; do
1976 test -z "$ac_dir" && ac_dir
=.
1977 if test -f $ac_dir/$ac_word; then
1986 if test -n "$CC"; then
1987 echo "$ac_t""$CC" 1>&6
1989 echo "$ac_t""no" 1>&6
1994 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1997 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1998 echo "configure:1999: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2001 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2002 ac_cpp
='$CPP $CPPFLAGS'
2003 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2004 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2005 cross_compiling
=$ac_cv_prog_cc_cross
2007 cat > conftest.
$ac_ext << EOF
2009 #line 2010 "configure"
2010 #include "confdefs.h"
2014 if { (eval echo configure
:2015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2015 ac_cv_prog_cc_works
=yes
2016 # If we can't run a trivial program, we are probably using a cross compiler.
2017 if (.
/conftest
; exit) 2>/dev
/null
; then
2018 ac_cv_prog_cc_cross
=no
2020 ac_cv_prog_cc_cross
=yes
2023 echo "configure: failed program was:" >&5
2024 cat conftest.
$ac_ext >&5
2025 ac_cv_prog_cc_works
=no
2029 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2030 ac_cpp
='$CPP $CPPFLAGS'
2031 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2032 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2033 cross_compiling
=$ac_cv_prog_cc_cross
2035 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2036 if test $ac_cv_prog_cc_works = no
; then
2037 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2039 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2040 echo "configure:2041: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2041 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2042 cross_compiling
=$ac_cv_prog_cc_cross
2044 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2045 echo "configure:2046: checking whether we are using GNU C" >&5
2046 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2047 echo $ac_n "(cached) $ac_c" 1>&6
2049 cat > conftest.c
<<EOF
2054 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2061 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2063 if test $ac_cv_prog_gcc = yes; then
2069 ac_test_CFLAGS
="${CFLAGS+set}"
2070 ac_save_CFLAGS
="$CFLAGS"
2072 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2073 echo "configure:2074: checking whether ${CC-cc} accepts -g" >&5
2074 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2075 echo $ac_n "(cached) $ac_c" 1>&6
2077 echo 'void f(){}' > conftest.c
2078 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2087 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2088 if test "$ac_test_CFLAGS" = set; then
2089 CFLAGS
="$ac_save_CFLAGS"
2090 elif test $ac_cv_prog_cc_g = yes; then
2091 if test "$GCC" = yes; then
2097 if test "$GCC" = yes; then
2104 # Find a good install program. We prefer a C program (faster),
2105 # so one script is as good as another. But avoid the broken or
2106 # incompatible versions:
2107 # SysV /etc/install, /usr/sbin/install
2108 # SunOS /usr/etc/install
2109 # IRIX /sbin/install
2111 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2112 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2113 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2114 # ./install, which can be erroneously created by make from ./install.sh.
2115 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2116 echo "configure:2117: checking for a BSD compatible install" >&5
2117 if test -z "$INSTALL"; then
2118 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2119 echo $ac_n "(cached) $ac_c" 1>&6
2121 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2122 for ac_dir
in $PATH; do
2123 # Account for people who put trailing slashes in PATH elements.
2125 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2127 # OSF1 and SCO ODT 3.0 have their own names for install.
2128 # Don't use installbsd from OSF since it installs stuff as root
2130 for ac_prog
in ginstall scoinst
install; do
2131 if test -f $ac_dir/$ac_prog; then
2132 if test $ac_prog = install &&
2133 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2134 # AIX install. It has an incompatible calling convention.
2137 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2148 if test "${ac_cv_path_install+set}" = set; then
2149 INSTALL
="$ac_cv_path_install"
2151 # As a last resort, use the slow shell script. We don't cache a
2152 # path for INSTALL within a source directory, because that will
2153 # break other packages using the cache if that directory is
2154 # removed, or if the path is relative.
2155 INSTALL
="$ac_install_sh"
2158 echo "$ac_t""$INSTALL" 1>&6
2160 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2161 # It thinks the first close brace ends the variable substitution.
2162 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2164 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2166 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2169 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2170 echo "configure:2171: checking for POSIXized ISC" >&5
2171 if test -d /etc
/conf
/kconfig.d
&&
2172 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
2174 echo "$ac_t""yes" 1>&6
2175 ISC
=yes # If later tests want to check for ISC.
2176 cat >> confdefs.h
<<\EOF
2177 #define _POSIX_SOURCE 1
2180 if test "$GCC" = yes; then
2186 echo "$ac_t""no" 1>&6
2192 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2193 echo "configure:2194: checking how to run the C preprocessor" >&5
2194 # On Suns, sometimes $CPP names a directory.
2195 if test -n "$CPP" && test -d "$CPP"; then
2198 if test -z "$CPP"; then
2199 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2200 echo $ac_n "(cached) $ac_c" 1>&6
2202 # This must be in double quotes, not single quotes, because CPP may get
2203 # substituted into the Makefile and "${CC-cc}" will confuse make.
2205 # On the NeXT, cc -E runs the code through the compiler's parser,
2206 # not just through cpp.
2207 cat > conftest.
$ac_ext <<EOF
2208 #line 2209 "configure"
2209 #include "confdefs.h"
2213 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2214 { (eval echo configure
:2215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2215 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2216 if test -z "$ac_err"; then
2220 echo "configure: failed program was:" >&5
2221 cat conftest.
$ac_ext >&5
2223 CPP
="${CC-cc} -E -traditional-cpp"
2224 cat > conftest.
$ac_ext <<EOF
2225 #line 2226 "configure"
2226 #include "confdefs.h"
2230 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2231 { (eval echo configure
:2232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2232 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2233 if test -z "$ac_err"; then
2237 echo "configure: failed program was:" >&5
2238 cat conftest.
$ac_ext >&5
2240 CPP
="${CC-cc} -nologo -E"
2241 cat > conftest.
$ac_ext <<EOF
2242 #line 2243 "configure"
2243 #include "confdefs.h"
2247 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2248 { (eval echo configure
:2249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2249 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2250 if test -z "$ac_err"; then
2254 echo "configure: failed program was:" >&5
2255 cat conftest.
$ac_ext >&5
2264 ac_cv_prog_CPP
="$CPP"
2266 CPP
="$ac_cv_prog_CPP"
2268 ac_cv_prog_CPP
="$CPP"
2270 echo "$ac_t""$CPP" 1>&6
2272 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2273 echo "configure:2274: checking for ANSI C header files" >&5
2274 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2275 echo $ac_n "(cached) $ac_c" 1>&6
2277 cat > conftest.
$ac_ext <<EOF
2278 #line 2279 "configure"
2279 #include "confdefs.h"
2285 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2286 { (eval echo configure
:2287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2287 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2288 if test -z "$ac_err"; then
2290 ac_cv_header_stdc
=yes
2293 echo "configure: failed program was:" >&5
2294 cat conftest.
$ac_ext >&5
2296 ac_cv_header_stdc
=no
2300 if test $ac_cv_header_stdc = yes; then
2301 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2302 cat > conftest.
$ac_ext <<EOF
2303 #line 2304 "configure"
2304 #include "confdefs.h"
2307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2308 egrep "memchr" >/dev
/null
2>&1; then
2312 ac_cv_header_stdc
=no
2318 if test $ac_cv_header_stdc = yes; then
2319 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2320 cat > conftest.
$ac_ext <<EOF
2321 #line 2322 "configure"
2322 #include "confdefs.h"
2325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2326 egrep "free" >/dev
/null
2>&1; then
2330 ac_cv_header_stdc
=no
2336 if test $ac_cv_header_stdc = yes; then
2337 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2338 if test "$cross_compiling" = yes; then
2341 cat > conftest.
$ac_ext <<EOF
2342 #line 2343 "configure"
2343 #include "confdefs.h"
2345 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2346 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2347 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2348 int main () { int i; for (i = 0; i < 256; i++)
2349 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2353 if { (eval echo configure
:2354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2357 echo "configure: failed program was:" >&5
2358 cat conftest.
$ac_ext >&5
2360 ac_cv_header_stdc
=no
2368 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2369 if test $ac_cv_header_stdc = yes; then
2370 cat >> confdefs.h
<<\EOF
2371 #define STDC_HEADERS 1
2376 echo $ac_n "checking for working const""... $ac_c" 1>&6
2377 echo "configure:2378: checking for working const" >&5
2378 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2379 echo $ac_n "(cached) $ac_c" 1>&6
2381 cat > conftest.
$ac_ext <<EOF
2382 #line 2383 "configure"
2383 #include "confdefs.h"
2387 /* Ultrix mips cc rejects this. */
2388 typedef int charset[2]; const charset x;
2389 /* SunOS 4.1.1 cc rejects this. */
2390 char const *const *ccp;
2392 /* NEC SVR4.0.2 mips cc rejects this. */
2393 struct point {int x, y;};
2394 static struct point const zero = {0,0};
2395 /* AIX XL C 1.02.0.0 rejects this.
2396 It does not let you subtract one const X* pointer from another in an arm
2397 of an if-expression whose if-part is not a constant expression */
2398 const char *g = "string";
2399 ccp = &g + (g ? g-g : 0);
2400 /* HPUX 7.0 cc rejects these. */
2403 ccp = (char const *const *) p;
2404 { /* SCO 3.2v4 cc rejects this. */
2406 char const *s = 0 ? (char *) 0 : (char const *) 0;
2410 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2412 const int *foo = &x[0];
2415 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2416 typedef const int *iptr;
2420 { /* AIX XL C 1.02.0.0 rejects this saying
2421 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2422 struct s { int j; const int *ap[3]; };
2423 struct s *b; b->j = 5;
2425 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2431 if { (eval echo configure
:2432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2435 echo "configure: failed program was:" >&5
2436 cat conftest.
$ac_ext >&5
2443 echo "$ac_t""$ac_cv_c_const" 1>&6
2444 if test $ac_cv_c_const = no
; then
2445 cat >> confdefs.h
<<\EOF
2451 echo $ac_n "checking for inline""... $ac_c" 1>&6
2452 echo "configure:2453: checking for inline" >&5
2453 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2454 echo $ac_n "(cached) $ac_c" 1>&6
2457 for ac_kw
in inline __inline__ __inline
; do
2458 cat > conftest.
$ac_ext <<EOF
2459 #line 2460 "configure"
2460 #include "confdefs.h"
2466 if { (eval echo configure
:2467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2468 ac_cv_c_inline
=$ac_kw; break
2470 echo "configure: failed program was:" >&5
2471 cat conftest.
$ac_ext >&5
2478 echo "$ac_t""$ac_cv_c_inline" 1>&6
2479 case "$ac_cv_c_inline" in
2481 no
) cat >> confdefs.h
<<\EOF
2485 *) cat >> confdefs.h
<<EOF
2486 #define inline $ac_cv_c_inline
2491 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2492 echo "configure:2493: checking for off_t" >&5
2493 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2494 echo $ac_n "(cached) $ac_c" 1>&6
2496 cat > conftest.
$ac_ext <<EOF
2497 #line 2498 "configure"
2498 #include "confdefs.h"
2499 #include <sys/types.h>
2505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2506 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2508 ac_cv_type_off_t
=yes
2516 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2517 if test $ac_cv_type_off_t = no
; then
2518 cat >> confdefs.h
<<\EOF
2524 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2525 echo "configure:2526: checking for size_t" >&5
2526 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2527 echo $ac_n "(cached) $ac_c" 1>&6
2529 cat > conftest.
$ac_ext <<EOF
2530 #line 2531 "configure"
2531 #include "confdefs.h"
2532 #include <sys/types.h>
2538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2539 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2541 ac_cv_type_size_t
=yes
2544 ac_cv_type_size_t
=no
2549 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2550 if test $ac_cv_type_size_t = no
; then
2551 cat >> confdefs.h
<<\EOF
2552 #define size_t unsigned
2557 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2558 # for constant arguments. Useless!
2559 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2560 echo "configure:2561: checking for working alloca.h" >&5
2561 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+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"
2569 char *p = alloca(2 * sizeof(int));
2572 if { (eval echo configure
:2573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2574 ac_cv_header_alloca_h
=yes
2576 echo "configure: failed program was:" >&5
2577 cat conftest.
$ac_ext >&5
2579 ac_cv_header_alloca_h
=no
2584 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2585 if test $ac_cv_header_alloca_h = yes; then
2586 cat >> confdefs.h
<<\EOF
2587 #define HAVE_ALLOCA_H 1
2592 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2593 echo "configure:2594: checking for alloca" >&5
2594 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2595 echo $ac_n "(cached) $ac_c" 1>&6
2597 cat > conftest.
$ac_ext <<EOF
2598 #line 2599 "configure"
2599 #include "confdefs.h"
2602 # define alloca __builtin_alloca
2605 # include <malloc.h>
2606 # define alloca _alloca
2609 # include <alloca.h>
2614 # ifndef alloca /* predefined by HP cc +Olibcalls */
2623 char *p = (char *) alloca(1);
2626 if { (eval echo configure
:2627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2628 ac_cv_func_alloca_works
=yes
2630 echo "configure: failed program was:" >&5
2631 cat conftest.
$ac_ext >&5
2633 ac_cv_func_alloca_works
=no
2638 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2639 if test $ac_cv_func_alloca_works = yes; then
2640 cat >> confdefs.h
<<\EOF
2641 #define HAVE_ALLOCA 1
2646 if test $ac_cv_func_alloca_works = no
; then
2647 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2648 # that cause trouble. Some versions do not even contain alloca or
2649 # contain a buggy version. If you still want to use their alloca,
2650 # use ar to extract alloca.o from them instead of compiling alloca.c.
2651 ALLOCA
=alloca.
${ac_objext}
2652 cat >> confdefs.h
<<\EOF
2657 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2658 echo "configure:2659: checking whether alloca needs Cray hooks" >&5
2659 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2660 echo $ac_n "(cached) $ac_c" 1>&6
2662 cat > conftest.
$ac_ext <<EOF
2663 #line 2664 "configure"
2664 #include "confdefs.h"
2665 #if defined(CRAY) && ! defined(CRAY2)
2672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2673 egrep "webecray" >/dev
/null
2>&1; then
2684 echo "$ac_t""$ac_cv_os_cray" 1>&6
2685 if test $ac_cv_os_cray = yes; then
2686 for ac_func
in _getb67 GETB67 getb67
; do
2687 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2688 echo "configure:2689: checking for $ac_func" >&5
2689 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2690 echo $ac_n "(cached) $ac_c" 1>&6
2692 cat > conftest.
$ac_ext <<EOF
2693 #line 2694 "configure"
2694 #include "confdefs.h"
2695 /* System header to define __stub macros and hopefully few prototypes,
2696 which can conflict with char $ac_func(); below. */
2698 /* Override any gcc2 internal prototype to avoid an error. */
2699 /* We use char because int might match the return type of a gcc2
2700 builtin and then its argument prototype would still apply. */
2705 /* The GNU C library defines this for functions which it implements
2706 to always fail with ENOSYS. Some functions are actually named
2707 something starting with __ and the normal name is an alias. */
2708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2716 if { (eval echo configure
:2717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2718 eval "ac_cv_func_$ac_func=yes"
2720 echo "configure: failed program was:" >&5
2721 cat conftest.
$ac_ext >&5
2723 eval "ac_cv_func_$ac_func=no"
2728 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2729 echo "$ac_t""yes" 1>&6
2730 cat >> confdefs.h
<<EOF
2731 #define CRAY_STACKSEG_END $ac_func
2736 echo "$ac_t""no" 1>&6
2742 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2743 echo "configure:2744: checking stack direction for C alloca" >&5
2744 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2745 echo $ac_n "(cached) $ac_c" 1>&6
2747 if test "$cross_compiling" = yes; then
2748 ac_cv_c_stack_direction
=0
2750 cat > conftest.
$ac_ext <<EOF
2751 #line 2752 "configure"
2752 #include "confdefs.h"
2753 find_stack_direction ()
2755 static char *addr = 0;
2760 return find_stack_direction ();
2763 return (&dummy > addr) ? 1 : -1;
2767 exit (find_stack_direction() < 0);
2770 if { (eval echo configure
:2771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2772 ac_cv_c_stack_direction
=1
2774 echo "configure: failed program was:" >&5
2775 cat conftest.
$ac_ext >&5
2777 ac_cv_c_stack_direction
=-1
2784 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2785 cat >> confdefs.h
<<EOF
2786 #define STACK_DIRECTION $ac_cv_c_stack_direction
2791 for ac_hdr
in unistd.h
2793 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2794 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2795 echo "configure:2796: checking for $ac_hdr" >&5
2796 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2797 echo $ac_n "(cached) $ac_c" 1>&6
2799 cat > conftest.
$ac_ext <<EOF
2800 #line 2801 "configure"
2801 #include "confdefs.h"
2804 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2805 { (eval echo configure
:2806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2806 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2807 if test -z "$ac_err"; then
2809 eval "ac_cv_header_$ac_safe=yes"
2812 echo "configure: failed program was:" >&5
2813 cat conftest.
$ac_ext >&5
2815 eval "ac_cv_header_$ac_safe=no"
2819 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2820 echo "$ac_t""yes" 1>&6
2821 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2822 cat >> confdefs.h
<<EOF
2823 #define $ac_tr_hdr 1
2827 echo "$ac_t""no" 1>&6
2831 for ac_func
in getpagesize
2833 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2834 echo "configure:2835: checking for $ac_func" >&5
2835 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2836 echo $ac_n "(cached) $ac_c" 1>&6
2838 cat > conftest.
$ac_ext <<EOF
2839 #line 2840 "configure"
2840 #include "confdefs.h"
2841 /* System header to define __stub macros and hopefully few prototypes,
2842 which can conflict with char $ac_func(); below. */
2844 /* Override any gcc2 internal prototype to avoid an error. */
2845 /* We use char because int might match the return type of a gcc2
2846 builtin and then its argument prototype would still apply. */
2851 /* The GNU C library defines this for functions which it implements
2852 to always fail with ENOSYS. Some functions are actually named
2853 something starting with __ and the normal name is an alias. */
2854 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2862 if { (eval echo configure
:2863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2864 eval "ac_cv_func_$ac_func=yes"
2866 echo "configure: failed program was:" >&5
2867 cat conftest.
$ac_ext >&5
2869 eval "ac_cv_func_$ac_func=no"
2874 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2875 echo "$ac_t""yes" 1>&6
2876 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2877 cat >> confdefs.h
<<EOF
2878 #define $ac_tr_func 1
2882 echo "$ac_t""no" 1>&6
2886 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2887 echo "configure:2888: checking for working mmap" >&5
2888 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2889 echo $ac_n "(cached) $ac_c" 1>&6
2891 if test "$cross_compiling" = yes; then
2892 ac_cv_func_mmap_fixed_mapped
=no
2894 cat > conftest.
$ac_ext <<EOF
2895 #line 2896 "configure"
2896 #include "confdefs.h"
2898 /* Thanks to Mike Haertel and Jim Avera for this test.
2899 Here is a matrix of mmap possibilities:
2900 mmap private not fixed
2901 mmap private fixed at somewhere currently unmapped
2902 mmap private fixed at somewhere already mapped
2903 mmap shared not fixed
2904 mmap shared fixed at somewhere currently unmapped
2905 mmap shared fixed at somewhere already mapped
2906 For private mappings, we should verify that changes cannot be read()
2907 back from the file, nor mmap's back from the file at a different
2908 address. (There have been systems where private was not correctly
2909 implemented like the infamous i386 svr4.0, and systems where the
2910 VM page cache was not coherent with the filesystem buffer cache
2911 like early versions of FreeBSD and possibly contemporary NetBSD.)
2912 For shared mappings, we should conversely verify that changes get
2913 propogated back to all the places they're supposed to be.
2915 Grep wants private fixed already mapped.
2916 The main things grep needs to know about mmap are:
2917 * does it exist and is it safe to write into the mmap'd area
2918 * how to use it (BSD variants) */
2919 #include <sys/types.h>
2921 #include <sys/mman.h>
2923 /* This mess was copied from the GNU getpagesize.h. */
2924 #ifndef HAVE_GETPAGESIZE
2925 # ifdef HAVE_UNISTD_H
2926 # include <unistd.h>
2929 /* Assume that all systems that can run configure have sys/param.h. */
2930 # ifndef HAVE_SYS_PARAM_H
2931 # define HAVE_SYS_PARAM_H 1
2934 # ifdef _SC_PAGESIZE
2935 # define getpagesize() sysconf(_SC_PAGESIZE)
2936 # else /* no _SC_PAGESIZE */
2937 # ifdef HAVE_SYS_PARAM_H
2938 # include <sys/param.h>
2939 # ifdef EXEC_PAGESIZE
2940 # define getpagesize() EXEC_PAGESIZE
2941 # else /* no EXEC_PAGESIZE */
2943 # define getpagesize() NBPG * CLSIZE
2946 # endif /* no CLSIZE */
2947 # else /* no NBPG */
2949 # define getpagesize() NBPC
2950 # else /* no NBPC */
2952 # define getpagesize() PAGESIZE
2953 # endif /* PAGESIZE */
2954 # endif /* no NBPC */
2955 # endif /* no NBPG */
2956 # endif /* no EXEC_PAGESIZE */
2957 # else /* no HAVE_SYS_PARAM_H */
2958 # define getpagesize() 8192 /* punt totally */
2959 # endif /* no HAVE_SYS_PARAM_H */
2960 # endif /* no _SC_PAGESIZE */
2962 #endif /* no HAVE_GETPAGESIZE */
2965 extern "C" { void *malloc(unsigned); }
2973 char *data, *data2, *data3;
2977 pagesize = getpagesize();
2980 * First, make a file with some known garbage in it.
2982 data = malloc(pagesize);
2985 for (i = 0; i < pagesize; ++i)
2986 *(data + i) = rand();
2988 fd = creat("conftestmmap", 0600);
2991 if (write(fd, data, pagesize) != pagesize)
2996 * Next, try to mmap the file at a fixed address which
2997 * already has something else allocated at it. If we can,
2998 * also make sure that we see the same garbage.
3000 fd = open("conftestmmap", O_RDWR);
3003 data2 = malloc(2 * pagesize);
3006 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3007 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3008 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3010 for (i = 0; i < pagesize; ++i)
3011 if (*(data + i) != *(data2 + i))
3015 * Finally, make sure that changes to the mapped area
3016 * do not percolate back to the file as seen by read().
3017 * (This is a bug on some variants of i386 svr4.0.)
3019 for (i = 0; i < pagesize; ++i)
3020 *(data2 + i) = *(data2 + i) + 1;
3021 data3 = malloc(pagesize);
3024 if (read(fd, data3, pagesize) != pagesize)
3026 for (i = 0; i < pagesize; ++i)
3027 if (*(data + i) != *(data3 + i))
3030 unlink("conftestmmap");
3035 if { (eval echo configure
:3036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3037 ac_cv_func_mmap_fixed_mapped
=yes
3039 echo "configure: failed program was:" >&5
3040 cat conftest.
$ac_ext >&5
3042 ac_cv_func_mmap_fixed_mapped
=no
3049 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3050 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3051 cat >> confdefs.h
<<\EOF
3058 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3059 unistd.h values.h sys
/param.h
3061 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3062 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3063 echo "configure:3064: checking for $ac_hdr" >&5
3064 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3065 echo $ac_n "(cached) $ac_c" 1>&6
3067 cat > conftest.
$ac_ext <<EOF
3068 #line 3069 "configure"
3069 #include "confdefs.h"
3072 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3073 { (eval echo configure
:3074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3074 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3075 if test -z "$ac_err"; then
3077 eval "ac_cv_header_$ac_safe=yes"
3080 echo "configure: failed program was:" >&5
3081 cat conftest.
$ac_ext >&5
3083 eval "ac_cv_header_$ac_safe=no"
3087 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3088 echo "$ac_t""yes" 1>&6
3089 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3090 cat >> confdefs.h
<<EOF
3091 #define $ac_tr_hdr 1
3095 echo "$ac_t""no" 1>&6
3099 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3100 __argz_count __argz_stringify __argz_next
3102 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3103 echo "configure:3104: checking for $ac_func" >&5
3104 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3105 echo $ac_n "(cached) $ac_c" 1>&6
3107 cat > conftest.
$ac_ext <<EOF
3108 #line 3109 "configure"
3109 #include "confdefs.h"
3110 /* System header to define __stub macros and hopefully few prototypes,
3111 which can conflict with char $ac_func(); below. */
3113 /* Override any gcc2 internal prototype to avoid an error. */
3114 /* We use char because int might match the return type of a gcc2
3115 builtin and then its argument prototype would still apply. */
3120 /* The GNU C library defines this for functions which it implements
3121 to always fail with ENOSYS. Some functions are actually named
3122 something starting with __ and the normal name is an alias. */
3123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3131 if { (eval echo configure
:3132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3133 eval "ac_cv_func_$ac_func=yes"
3135 echo "configure: failed program was:" >&5
3136 cat conftest.
$ac_ext >&5
3138 eval "ac_cv_func_$ac_func=no"
3143 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3144 echo "$ac_t""yes" 1>&6
3145 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3146 cat >> confdefs.h
<<EOF
3147 #define $ac_tr_func 1
3151 echo "$ac_t""no" 1>&6
3156 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3157 for ac_func
in stpcpy
3159 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3160 echo "configure:3161: checking for $ac_func" >&5
3161 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3162 echo $ac_n "(cached) $ac_c" 1>&6
3164 cat > conftest.
$ac_ext <<EOF
3165 #line 3166 "configure"
3166 #include "confdefs.h"
3167 /* System header to define __stub macros and hopefully few prototypes,
3168 which can conflict with char $ac_func(); below. */
3170 /* Override any gcc2 internal prototype to avoid an error. */
3171 /* We use char because int might match the return type of a gcc2
3172 builtin and then its argument prototype would still apply. */
3177 /* The GNU C library defines this for functions which it implements
3178 to always fail with ENOSYS. Some functions are actually named
3179 something starting with __ and the normal name is an alias. */
3180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3188 if { (eval echo configure
:3189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3190 eval "ac_cv_func_$ac_func=yes"
3192 echo "configure: failed program was:" >&5
3193 cat conftest.
$ac_ext >&5
3195 eval "ac_cv_func_$ac_func=no"
3200 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3201 echo "$ac_t""yes" 1>&6
3202 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3203 cat >> confdefs.h
<<EOF
3204 #define $ac_tr_func 1
3208 echo "$ac_t""no" 1>&6
3213 if test "${ac_cv_func_stpcpy}" = "yes"; then
3214 cat >> confdefs.h
<<\EOF
3215 #define HAVE_STPCPY 1
3220 if test $ac_cv_header_locale_h = yes; then
3221 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3222 echo "configure:3223: checking for LC_MESSAGES" >&5
3223 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3224 echo $ac_n "(cached) $ac_c" 1>&6
3226 cat > conftest.
$ac_ext <<EOF
3227 #line 3228 "configure"
3228 #include "confdefs.h"
3234 if { (eval echo configure
:3235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3236 am_cv_val_LC_MESSAGES
=yes
3238 echo "configure: failed program was:" >&5
3239 cat conftest.
$ac_ext >&5
3241 am_cv_val_LC_MESSAGES
=no
3246 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3247 if test $am_cv_val_LC_MESSAGES = yes; then
3248 cat >> confdefs.h
<<\EOF
3249 #define HAVE_LC_MESSAGES 1
3254 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3255 echo "configure:3256: checking whether NLS is requested" >&5
3256 # Check whether --enable-nls or --disable-nls was given.
3257 if test "${enable_nls+set}" = set; then
3258 enableval
="$enable_nls"
3264 echo "$ac_t""$USE_NLS" 1>&6
3267 USE_INCLUDED_LIBINTL
=no
3269 if test "$USE_NLS" = "yes"; then
3270 cat >> confdefs.h
<<\EOF
3271 #define ENABLE_NLS 1
3274 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3275 echo "configure:3276: checking whether included gettext is requested" >&5
3276 # Check whether --with-included-gettext or --without-included-gettext was given.
3277 if test "${with_included_gettext+set}" = set; then
3278 withval
="$with_included_gettext"
3279 nls_cv_force_use_gnu_gettext
=$withval
3281 nls_cv_force_use_gnu_gettext
=no
3284 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3286 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
3287 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3289 nls_cv_header_libgt
=
3292 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3293 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3294 echo "configure:3295: checking for libintl.h" >&5
3295 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3296 echo $ac_n "(cached) $ac_c" 1>&6
3298 cat > conftest.
$ac_ext <<EOF
3299 #line 3300 "configure"
3300 #include "confdefs.h"
3301 #include <libintl.h>
3303 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3304 { (eval echo configure
:3305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3305 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3306 if test -z "$ac_err"; then
3308 eval "ac_cv_header_$ac_safe=yes"
3311 echo "configure: failed program was:" >&5
3312 cat conftest.
$ac_ext >&5
3314 eval "ac_cv_header_$ac_safe=no"
3318 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3319 echo "$ac_t""yes" 1>&6
3320 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3321 echo "configure:3322: checking for gettext in libc" >&5
3322 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3323 echo $ac_n "(cached) $ac_c" 1>&6
3325 cat > conftest.
$ac_ext <<EOF
3326 #line 3327 "configure"
3327 #include "confdefs.h"
3328 #include <libintl.h>
3330 return (int) gettext ("")
3333 if { (eval echo configure
:3334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3335 gt_cv_func_gettext_libc
=yes
3337 echo "configure: failed program was:" >&5
3338 cat conftest.
$ac_ext >&5
3340 gt_cv_func_gettext_libc
=no
3345 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3347 if test "$gt_cv_func_gettext_libc" != "yes"; then
3348 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3349 echo "configure:3350: checking for bindtextdomain in -lintl" >&5
3350 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3351 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3352 echo $ac_n "(cached) $ac_c" 1>&6
3354 ac_save_LIBS
="$LIBS"
3356 cat > conftest.
$ac_ext <<EOF
3357 #line 3358 "configure"
3358 #include "confdefs.h"
3359 /* Override any gcc2 internal prototype to avoid an error. */
3360 /* We use char because int might match the return type of a gcc2
3361 builtin and then its argument prototype would still apply. */
3362 char bindtextdomain();
3368 if { (eval echo configure
:3369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3370 eval "ac_cv_lib_$ac_lib_var=yes"
3372 echo "configure: failed program was:" >&5
3373 cat conftest.
$ac_ext >&5
3375 eval "ac_cv_lib_$ac_lib_var=no"
3378 LIBS
="$ac_save_LIBS"
3381 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3382 echo "$ac_t""yes" 1>&6
3383 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3384 echo "configure:3385: checking for gettext in libintl" >&5
3385 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3386 echo $ac_n "(cached) $ac_c" 1>&6
3388 cat > conftest.
$ac_ext <<EOF
3389 #line 3390 "configure"
3390 #include "confdefs.h"
3393 return (int) gettext ("")
3396 if { (eval echo configure
:3397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3398 gt_cv_func_gettext_libintl
=yes
3400 echo "configure: failed program was:" >&5
3401 cat conftest.
$ac_ext >&5
3403 gt_cv_func_gettext_libintl
=no
3408 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3410 echo "$ac_t""no" 1>&6
3415 if test "$gt_cv_func_gettext_libc" = "yes" \
3416 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
3417 cat >> confdefs.h
<<\EOF
3418 #define HAVE_GETTEXT 1
3421 # Extract the first word of "msgfmt", so it can be a program name with args.
3422 set dummy msgfmt
; ac_word
=$2
3423 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3424 echo "configure:3425: checking for $ac_word" >&5
3425 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3426 echo $ac_n "(cached) $ac_c" 1>&6
3430 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3433 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3434 for ac_dir
in $PATH; do
3435 test -z "$ac_dir" && ac_dir
=.
3436 if test -f $ac_dir/$ac_word; then
3437 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3438 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3444 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
3448 MSGFMT
="$ac_cv_path_MSGFMT"
3449 if test -n "$MSGFMT"; then
3450 echo "$ac_t""$MSGFMT" 1>&6
3452 echo "$ac_t""no" 1>&6
3454 if test "$MSGFMT" != "no"; then
3455 for ac_func
in dcgettext
3457 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3458 echo "configure:3459: checking for $ac_func" >&5
3459 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3460 echo $ac_n "(cached) $ac_c" 1>&6
3462 cat > conftest.
$ac_ext <<EOF
3463 #line 3464 "configure"
3464 #include "confdefs.h"
3465 /* System header to define __stub macros and hopefully few prototypes,
3466 which can conflict with char $ac_func(); below. */
3468 /* Override any gcc2 internal prototype to avoid an error. */
3469 /* We use char because int might match the return type of a gcc2
3470 builtin and then its argument prototype would still apply. */
3475 /* The GNU C library defines this for functions which it implements
3476 to always fail with ENOSYS. Some functions are actually named
3477 something starting with __ and the normal name is an alias. */
3478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3486 if { (eval echo configure
:3487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3488 eval "ac_cv_func_$ac_func=yes"
3490 echo "configure: failed program was:" >&5
3491 cat conftest.
$ac_ext >&5
3493 eval "ac_cv_func_$ac_func=no"
3498 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3499 echo "$ac_t""yes" 1>&6
3500 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3501 cat >> confdefs.h
<<EOF
3502 #define $ac_tr_func 1
3506 echo "$ac_t""no" 1>&6
3510 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3511 set dummy gmsgfmt
; ac_word
=$2
3512 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3513 echo "configure:3514: checking for $ac_word" >&5
3514 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3515 echo $ac_n "(cached) $ac_c" 1>&6
3519 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3522 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3525 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3527 for ac_dir
in $ac_dummy; do
3528 test -z "$ac_dir" && ac_dir
=.
3529 if test -f $ac_dir/$ac_word; then
3530 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3535 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3539 GMSGFMT
="$ac_cv_path_GMSGFMT"
3540 if test -n "$GMSGFMT"; then
3541 echo "$ac_t""$GMSGFMT" 1>&6
3543 echo "$ac_t""no" 1>&6
3546 # Extract the first word of "xgettext", so it can be a program name with args.
3547 set dummy xgettext
; ac_word
=$2
3548 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3549 echo "configure:3550: checking for $ac_word" >&5
3550 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3551 echo $ac_n "(cached) $ac_c" 1>&6
3555 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3558 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3559 for ac_dir
in $PATH; do
3560 test -z "$ac_dir" && ac_dir
=.
3561 if test -f $ac_dir/$ac_word; then
3562 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3563 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3569 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3573 XGETTEXT
="$ac_cv_path_XGETTEXT"
3574 if test -n "$XGETTEXT"; then
3575 echo "$ac_t""$XGETTEXT" 1>&6
3577 echo "$ac_t""no" 1>&6
3580 cat > conftest.
$ac_ext <<EOF
3581 #line 3582 "configure"
3582 #include "confdefs.h"
3585 extern int _nl_msg_cat_cntr;
3586 return _nl_msg_cat_cntr
3589 if { (eval echo configure
:3590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3594 echo "configure: failed program was:" >&5
3595 cat conftest.
$ac_ext >&5
3606 echo "$ac_t""no" 1>&6
3611 if test "$CATOBJEXT" = "NONE"; then
3612 nls_cv_use_gnu_gettext
=yes
3616 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3617 INTLOBJS
="\$(GETTOBJS)"
3618 # Extract the first word of "msgfmt", so it can be a program name with args.
3619 set dummy msgfmt
; ac_word
=$2
3620 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3621 echo "configure:3622: checking for $ac_word" >&5
3622 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3623 echo $ac_n "(cached) $ac_c" 1>&6
3627 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3630 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3631 for ac_dir
in $PATH; do
3632 test -z "$ac_dir" && ac_dir
=.
3633 if test -f $ac_dir/$ac_word; then
3634 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3635 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3641 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
3645 MSGFMT
="$ac_cv_path_MSGFMT"
3646 if test -n "$MSGFMT"; then
3647 echo "$ac_t""$MSGFMT" 1>&6
3649 echo "$ac_t""no" 1>&6
3652 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3653 set dummy gmsgfmt
; ac_word
=$2
3654 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3655 echo "configure:3656: checking for $ac_word" >&5
3656 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3657 echo $ac_n "(cached) $ac_c" 1>&6
3661 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3664 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3667 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3669 for ac_dir
in $ac_dummy; do
3670 test -z "$ac_dir" && ac_dir
=.
3671 if test -f $ac_dir/$ac_word; then
3672 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3677 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3681 GMSGFMT
="$ac_cv_path_GMSGFMT"
3682 if test -n "$GMSGFMT"; then
3683 echo "$ac_t""$GMSGFMT" 1>&6
3685 echo "$ac_t""no" 1>&6
3688 # Extract the first word of "xgettext", so it can be a program name with args.
3689 set dummy xgettext
; ac_word
=$2
3690 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3691 echo "configure:3692: checking for $ac_word" >&5
3692 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3693 echo $ac_n "(cached) $ac_c" 1>&6
3697 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3700 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3701 for ac_dir
in $PATH; do
3702 test -z "$ac_dir" && ac_dir
=.
3703 if test -f $ac_dir/$ac_word; then
3704 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3705 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3711 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3715 XGETTEXT
="$ac_cv_path_XGETTEXT"
3716 if test -n "$XGETTEXT"; then
3717 echo "$ac_t""$XGETTEXT" 1>&6
3719 echo "$ac_t""no" 1>&6
3723 USE_INCLUDED_LIBINTL
=yes
3727 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
3729 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
3730 nls_cv_header_intl
=libintl.h
3731 nls_cv_header_libgt
=libgettext.h
3734 if test "$XGETTEXT" != ":"; then
3735 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
3738 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
3743 # We need to process the po/ directory.
3747 nls_cv_header_intl
=libintl.h
3748 nls_cv_header_libgt
=libgettext.h
3751 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3752 # because some of the sources are only built for this goal.
3753 if test "$PACKAGE" = gettext; then
3755 USE_INCLUDED_LIBINTL
=yes
3758 for lang
in $ALL_LINGUAS; do
3759 GMOFILES
="$GMOFILES $lang.gmo"
3760 POFILES
="$POFILES $lang.po"
3776 if test "x$CATOBJEXT" != "x"; then
3777 if test "x$ALL_LINGUAS" = "x"; then
3780 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3781 echo "configure:3782: checking for catalogs to be installed" >&5
3783 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
3784 case "$ALL_LINGUAS" in
3785 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
3788 LINGUAS
=$NEW_LINGUAS
3789 echo "$ac_t""$LINGUAS" 1>&6
3792 if test -n "$LINGUAS"; then
3793 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
3797 if test $ac_cv_header_locale_h = yes; then
3798 INCLUDE_LOCALE_H
="#include <locale.h>"
3801 /* The system does not provide the header <locale.h>. Take care yourself. */"
3805 if test -f $srcdir/po2tbl.
sed.
in; then
3806 if test "$CATOBJEXT" = ".cat"; then
3807 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3808 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
3809 echo "configure:3810: checking for linux/version.h" >&5
3810 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3811 echo $ac_n "(cached) $ac_c" 1>&6
3813 cat > conftest.
$ac_ext <<EOF
3814 #line 3815 "configure"
3815 #include "confdefs.h"
3816 #include <linux/version.h>
3818 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3819 { (eval echo configure
:3820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3820 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3821 if test -z "$ac_err"; then
3823 eval "ac_cv_header_$ac_safe=yes"
3826 echo "configure: failed program was:" >&5
3827 cat conftest.
$ac_ext >&5
3829 eval "ac_cv_header_$ac_safe=no"
3833 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3834 echo "$ac_t""yes" 1>&6
3837 echo "$ac_t""no" 1>&6
3842 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
3844 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3845 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
3848 if test "$PACKAGE" = "gettext"; then
3858 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
3864 if test -d $srcdir/po
; then
3865 test -d po || mkdir po
3866 if test "x$srcdir" != "x."; then
3867 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3868 posrcprefix
="$srcdir/"
3870 posrcprefix
="../$srcdir/"
3876 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3877 < $srcdir/po
/POTFILES.
in > po
/POTFILES
3881 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
3882 echo "configure:3883: checking whether to enable maintainer-specific portions of Makefiles" >&5
3883 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3884 if test "${enable_maintainer_mode+set}" = set; then
3885 enableval
="$enable_maintainer_mode"
3886 USE_MAINTAINER_MODE
=$enableval
3888 USE_MAINTAINER_MODE
=no
3891 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
3894 if test $USE_MAINTAINER_MODE = yes; then
3895 MAINTAINER_MODE_TRUE
=
3896 MAINTAINER_MODE_FALSE
='#'
3898 MAINTAINER_MODE_TRUE
='#'
3899 MAINTAINER_MODE_FALSE
=
3901 MAINT
=$MAINTAINER_MODE_TRUE
3904 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3905 echo "configure:3906: checking for Cygwin environment" >&5
3906 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
3907 echo $ac_n "(cached) $ac_c" 1>&6
3909 cat > conftest.
$ac_ext <<EOF
3910 #line 3911 "configure"
3911 #include "confdefs.h"
3916 #define __CYGWIN__ __CYGWIN32__
3921 if { (eval echo configure
:3922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3925 echo "configure: failed program was:" >&5
3926 cat conftest.
$ac_ext >&5
3934 echo "$ac_t""$ac_cv_cygwin" 1>&6
3936 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
3937 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3938 echo "configure:3939: checking for mingw32 environment" >&5
3939 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
3940 echo $ac_n "(cached) $ac_c" 1>&6
3942 cat > conftest.
$ac_ext <<EOF
3943 #line 3944 "configure"
3944 #include "confdefs.h"
3950 if { (eval echo configure
:3951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3954 echo "configure: failed program was:" >&5
3955 cat conftest.
$ac_ext >&5
3963 echo "$ac_t""$ac_cv_mingw32" 1>&6
3965 test "$ac_cv_mingw32" = yes && MINGW32
=yes
3968 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3969 echo "configure:3970: checking for executable suffix" >&5
3970 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
3971 echo $ac_n "(cached) $ac_c" 1>&6
3973 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
3977 echo 'int main () { return 0; }' > conftest.
$ac_ext
3979 if { (eval echo configure
:3980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3980 for file in conftest.
*; do
3982 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
3983 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
3987 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3990 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
3995 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
3996 echo "$ac_t""${ac_cv_exeext}" 1>&6
4001 cat > confcache
<<\EOF
4002 # This file is a shell script that caches the results of configure
4003 # tests run on this system so they can be shared between configure
4004 # scripts and configure runs. It is not useful on other systems.
4005 # If it contains results you don't want to keep, you may remove or edit it.
4007 # By default, configure uses ./config.cache as the cache file,
4008 # creating it if it does not exist already. You can give configure
4009 # the --cache-file=FILE option to use a different cache file; that is
4010 # what configure does when it calls configure scripts in
4011 # subdirectories, so they share the cache.
4012 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4013 # config.status only pays attention to the cache file if you give it the
4014 # --recheck option to rerun configure.
4017 # The following way of writing the cache mishandles newlines in values,
4018 # but we know of no workaround that is simple, portable, and efficient.
4019 # So, don't put newlines in cache variables' values.
4020 # Ultrix sh set writes to stderr and can't be redirected directly,
4021 # and sets the high bit in the cache file unless we assign to the vars.
4023 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4025 # `set' does not quote correctly, so add quotes (double-quote substitution
4026 # turns \\\\ into \\, and sed turns \\ into \).
4028 -e "s/'/'\\\\''/g" \
4029 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4032 # `set' quotes correctly as required by POSIX, so do not add quotes.
4033 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4036 if cmp -s $cache_file confcache
; then
4039 if test -w $cache_file; then
4040 echo "updating cache $cache_file"
4041 cat confcache
> $cache_file
4043 echo "not updating unwritable cache $cache_file"
4048 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4050 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4051 # Let make expand exec_prefix.
4052 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4054 # Any assignment to VPATH causes Sun make to only execute
4055 # the first set of double-colon rules, so remove it if not needed.
4056 # If there is a colon in the path, we need to keep it.
4057 if test "x$srcdir" = x.
; then
4058 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4061 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4063 DEFS
=-DHAVE_CONFIG_H
4065 # Without the "./", some shells look in PATH for config.status.
4066 : ${CONFIG_STATUS=./config.status}
4068 echo creating
$CONFIG_STATUS
4069 rm -f $CONFIG_STATUS
4070 cat > $CONFIG_STATUS <<EOF
4072 # Generated automatically by configure.
4073 # Run this file to recreate the current configuration.
4074 # This directory was configured as follows,
4075 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4077 # $0 $ac_configure_args
4079 # Compiler output produced by configure, useful for debugging
4080 # configure, is in ./config.log if it exists.
4082 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4085 case "\$ac_option" in
4086 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4087 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4088 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4089 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4090 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4092 -help | --help | --hel | --he | --h)
4093 echo "\$ac_cs_usage"; exit 0 ;;
4094 *) echo "\$ac_cs_usage"; exit 1 ;;
4098 ac_given_srcdir=$srcdir
4099 ac_given_INSTALL="$INSTALL"
4101 trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in gconfig.h:gconfig.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4103 cat >> $CONFIG_STATUS <<EOF
4105 # Protect against being on the right side of a sed subst in config.status.
4106 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4107 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4111 s%@CFLAGS@%$CFLAGS%g
4112 s%@CPPFLAGS@%$CPPFLAGS%g
4113 s%@CXXFLAGS@%$CXXFLAGS%g
4114 s%@FFLAGS@%$FFLAGS%g
4116 s%@LDFLAGS@%$LDFLAGS%g
4118 s%@exec_prefix@%$exec_prefix%g
4119 s%@prefix@%$prefix%g
4120 s%@program_transform_name@%$program_transform_name%g
4121 s%@bindir@%$bindir%g
4122 s%@sbindir@%$sbindir%g
4123 s%@libexecdir@%$libexecdir%g
4124 s%@datadir@%$datadir%g
4125 s%@sysconfdir@%$sysconfdir%g
4126 s%@sharedstatedir@%$sharedstatedir%g
4127 s%@localstatedir@%$localstatedir%g
4128 s%@libdir@%$libdir%g
4129 s%@includedir@%$includedir%g
4130 s%@oldincludedir@%$oldincludedir%g
4131 s%@infodir@%$infodir%g
4132 s%@mandir@%$mandir%g
4134 s%@host_alias@%$host_alias%g
4135 s%@host_cpu@%$host_cpu%g
4136 s%@host_vendor@%$host_vendor%g
4137 s%@host_os@%$host_os%g
4138 s%@target@%$target%g
4139 s%@target_alias@%$target_alias%g
4140 s%@target_cpu@%$target_cpu%g
4141 s%@target_vendor@%$target_vendor%g
4142 s%@target_os@%$target_os%g
4144 s%@build_alias@%$build_alias%g
4145 s%@build_cpu@%$build_cpu%g
4146 s%@build_vendor@%$build_vendor%g
4147 s%@build_os@%$build_os%g
4148 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4149 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4150 s%@INSTALL_DATA@%$INSTALL_DATA%g
4151 s%@PACKAGE@%$PACKAGE%g
4152 s%@VERSION@%$VERSION%g
4153 s%@ACLOCAL@%$ACLOCAL%g
4154 s%@AUTOCONF@%$AUTOCONF%g
4155 s%@AUTOMAKE@%$AUTOMAKE%g
4156 s%@AUTOHEADER@%$AUTOHEADER%g
4157 s%@MAKEINFO@%$MAKEINFO%g
4158 s%@SET_MAKE@%$SET_MAKE%g
4159 s%@RANLIB@%$RANLIB%g
4163 s%@USE_SYMBOL_UNDERSCORE@%$USE_SYMBOL_UNDERSCORE%g
4165 s%@DLLTOOL@%$DLLTOOL%g
4167 s%@LIBTOOL@%$LIBTOOL%g
4169 s%@ALLOCA@%$ALLOCA%g
4170 s%@USE_NLS@%$USE_NLS%g
4171 s%@MSGFMT@%$MSGFMT%g
4172 s%@GMSGFMT@%$GMSGFMT%g
4173 s%@XGETTEXT@%$XGETTEXT%g
4174 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4175 s%@CATALOGS@%$CATALOGS%g
4176 s%@CATOBJEXT@%$CATOBJEXT%g
4177 s%@DATADIRNAME@%$DATADIRNAME%g
4178 s%@GMOFILES@%$GMOFILES%g
4179 s%@INSTOBJEXT@%$INSTOBJEXT%g
4180 s%@INTLDEPS@%$INTLDEPS%g
4181 s%@INTLLIBS@%$INTLLIBS%g
4182 s%@INTLOBJS@%$INTLOBJS%g
4183 s%@POFILES@%$POFILES%g
4185 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4187 s%@GT_YES@%$GT_YES%g
4188 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4190 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
4191 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
4193 s%@EXEEXT@%$EXEEXT%g
4198 cat >> $CONFIG_STATUS <<\EOF
4200 # Split the substitutions into bite-sized pieces for seds with
4201 # small command number limits, like on Digital OSF/1 and HP-UX.
4202 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4203 ac_file
=1 # Number of current file.
4204 ac_beg
=1 # First line for current file.
4205 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4208 while $ac_more_lines; do
4209 if test $ac_beg -gt 1; then
4210 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4212 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4214 if test ! -s conftest.s
$ac_file; then
4216 rm -f conftest.s
$ac_file
4218 if test -z "$ac_sed_cmds"; then
4219 ac_sed_cmds
="sed -f conftest.s$ac_file"
4221 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4223 ac_file
=`expr $ac_file + 1`
4225 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4228 if test -z "$ac_sed_cmds"; then
4233 cat >> $CONFIG_STATUS <<EOF
4235 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
4237 cat >> $CONFIG_STATUS <<\EOF
4238 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4239 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4241 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4242 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4243 *) ac_file_in
="${ac_file}.in" ;;
4246 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4248 # Remove last slash and all that follows it. Not all systems have dirname.
4249 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4250 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
4251 # The file is in a subdirectory.
4252 test ! -d "$ac_dir" && mkdir
"$ac_dir"
4253 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
4254 # A "../" for each directory in $ac_dir_suffix.
4255 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4257 ac_dir_suffix
= ac_dots
=
4260 case "$ac_given_srcdir" in
4262 if test -z "$ac_dots"; then top_srcdir
=.
4263 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4264 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
4266 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4267 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
4270 case "$ac_given_INSTALL" in
4271 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
4272 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
4275 echo creating
"$ac_file"
4277 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4279 *Makefile
*) ac_comsub
="1i\\
4280 # $configure_input" ;;
4284 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4286 s%@configure_input@%$configure_input%g
4287 s%@srcdir@%$srcdir%g
4288 s%@top_srcdir@%$top_srcdir%g
4289 s%@INSTALL@%$INSTALL%g
4290 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
4294 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4295 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4297 # ac_d sets the value in "#define NAME VALUE" lines.
4298 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4299 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4302 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4303 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4304 ac_uB
='\([ ]\)%\1#\2define\3'
4307 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4308 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4309 ac_eB
='$%\1#\2define\3'
4313 if test "${CONFIG_HEADERS+set}" != set; then
4315 cat >> $CONFIG_STATUS <<EOF
4316 CONFIG_HEADERS="gconfig.h:gconfig.in"
4318 cat >> $CONFIG_STATUS <<\EOF
4320 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4321 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4323 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4324 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4325 *) ac_file_in
="${ac_file}.in" ;;
4328 echo creating
$ac_file
4330 rm -f conftest.frag conftest.
in conftest.out
4331 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4332 cat $ac_file_inputs > conftest.
in
4336 # Transform confdefs.h into a sed script conftest.vals that substitutes
4337 # the proper values into config.h.in to produce config.h. And first:
4338 # Protect against being on the right side of a sed subst in config.status.
4339 # Protect against being in an unquoted here document in config.status.
4341 cat > conftest.hdr
<<\EOF
4344 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4348 sed -n -f conftest.hdr confdefs.h > conftest.vals
4351 # This sed command replaces #undef with comments. This is necessary, for
4352 # example, in the case of _POSIX_SOURCE, which is predefined and required
4353 # on some systems where configure will not decide to define it.
4354 cat >> conftest.vals <<\EOF
4355 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4358 # Break up conftest.vals because some shells have a limit on
4359 # the size of here documents, and old seds have small limits too.
4364 ac_lines=`grep -c . conftest.vals
`
4365 # grep -c gives empty output for an empty file on some AIX systems.
4366 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4367 # Write a limited-size here document to conftest.frag.
4368 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4369 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4371 sed -f conftest.frag conftest.in > conftest.out
4373 mv conftest.out conftest.in
4375 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4377 mv conftest.tail conftest.vals
4381 cat >> $CONFIG_STATUS <<\EOF
4382 rm -f conftest.frag conftest.h
4383 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4384 cat conftest.in >> conftest.h
4386 if cmp -s $ac_file conftest.h 2>/dev/null; then
4387 echo "$ac_file is unchanged"
4390 # Remove last slash and all that follows it. Not all systems have dirname.
4391 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
4392 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4393 # The file is in a subdirectory.
4394 test ! -d "$ac_dir" && mkdir "$ac_dir"
4397 mv conftest.h $ac_file
4402 cat >> $CONFIG_STATUS <<EOF
4406 cat >> $CONFIG_STATUS <<\EOF
4407 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4408 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
4411 chmod +x $CONFIG_STATUS
4412 rm -fr confdefs* $ac_clean_files
4413 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1