45 sim_inline
="-DDEFAULT_INLINE=0"
82 # This file is derived from `gettext.m4'. The difference is that the
83 # included macros assume Cygnus-style source and build trees.
85 # Macro to add for using GNU gettext.
86 # Ulrich Drepper <drepper@cygnus.com>, 1995.
88 # This file file be copied and used freely without restrictions. It can
89 # be used in projects which are not available under the GNU Public License
90 # but which still want to provide support for the GNU gettext functionality.
91 # Please note that the actual code is *not* freely available.
99 # Search path for a program which passes the given test.
100 # Ulrich Drepper <drepper@cygnus.com>, 1996.
102 # This file file be copied and used freely without restrictions. It can
103 # be used in projects which are not available under the GNU Public License
104 # but which still want to provide support for the GNU gettext functionality.
105 # Please note that the actual code is *not* freely available.
111 # Check whether LC_MESSAGES is available in <locale.h>.
112 # Ulrich Drepper <drepper@cygnus.com>, 1995.
114 # This file file be copied and used freely without restrictions. It can
115 # be used in projects which are not available under the GNU Public License
116 # but which still want to provide support for the GNU gettext functionality.
117 # Please note that the actual code is *not* freely available.
126 # Guess values for system-dependent variables and create Makefiles.
127 # Generated automatically using autoconf version 2.13
128 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
130 # This configure script is free software; the Free Software Foundation
131 # gives unlimited permission to copy, distribute and modify it.
135 ac_default_prefix
=/usr
/local
136 # Any additions from configure.in:
138 --disable-nls do not use Native Language Support"
140 --with-included-gettext use the GNU gettext library included here"
142 # Initialize some variables set by options.
143 # The variables have the same names as the options, with
144 # dashes changed to underlines.
146 cache_file
=.
/config.cache
155 program_transform_name
=s
,x
,x
,
164 bindir
='${exec_prefix}/bin'
165 sbindir
='${exec_prefix}/sbin'
166 libexecdir
='${exec_prefix}/libexec'
167 datadir
='${prefix}/share'
168 sysconfdir
='${prefix}/etc'
169 sharedstatedir
='${prefix}/com'
170 localstatedir
='${prefix}/var'
171 libdir
='${exec_prefix}/lib'
172 includedir
='${prefix}/include'
173 oldincludedir
='/usr/include'
174 infodir
='${prefix}/info'
175 mandir
='${prefix}/man'
177 # Initialize some other variables.
180 SHELL
=${CONFIG_SHELL-/bin/sh}
181 # Maximum number of lines to put in a shell here document.
188 # If the previous option needs an argument, assign it.
189 if test -n "$ac_prev"; then
190 eval "$ac_prev=\$ac_option"
196 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
200 # Accept the important Cygnus configure options, so we can diagnose typos.
204 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
206 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
207 bindir
="$ac_optarg" ;;
209 -build |
--build |
--buil |
--bui |
--bu)
211 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
212 build
="$ac_optarg" ;;
214 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
215 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
216 ac_prev
=cache_file
;;
217 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
218 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
219 cache_file
="$ac_optarg" ;;
221 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
223 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
225 datadir
="$ac_optarg" ;;
227 -disable-* |
--disable-*)
228 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
229 # Reject names that are not valid shell variable names.
230 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
231 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
233 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
234 eval "enable_${ac_feature}=no" ;;
236 -enable-* |
--enable-*)
237 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
238 # Reject names that are not valid shell variable names.
239 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
240 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
242 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
247 eval "enable_${ac_feature}='$ac_optarg'" ;;
249 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
250 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
251 |
--exec |
--exe |
--ex)
252 ac_prev
=exec_prefix
;;
253 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
254 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
255 |
--exec=* |
--exe=* |
--ex=*)
256 exec_prefix
="$ac_optarg" ;;
258 -gas |
--gas |
--ga |
--g)
259 # Obsolete; use --with-gas.
262 -help |
--help |
--hel |
--he)
263 # Omit some internal or obsolete options to make the list less imposing.
264 # This message is too long to be a string in the A/UX 3.1 sh.
266 Usage: configure [options] [host]
267 Options: [defaults in brackets after descriptions]
269 --cache-file=FILE cache test results in FILE
270 --help print this message
271 --no-create do not create output files
272 --quiet, --silent do not print \`checking...' messages
273 --site-file=FILE use FILE as the site file
274 --version print the version of autoconf that created configure
275 Directory and file names:
276 --prefix=PREFIX install architecture-independent files in PREFIX
278 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
280 --bindir=DIR user executables in DIR [EPREFIX/bin]
281 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
282 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
283 --datadir=DIR read-only architecture-independent data in DIR
285 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
286 --sharedstatedir=DIR modifiable architecture-independent data in DIR
288 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
289 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
290 --includedir=DIR C header files in DIR [PREFIX/include]
291 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
292 --infodir=DIR info documentation in DIR [PREFIX/info]
293 --mandir=DIR man documentation in DIR [PREFIX/man]
294 --srcdir=DIR find the sources in DIR [configure dir or ..]
295 --program-prefix=PREFIX prepend PREFIX to installed program names
296 --program-suffix=SUFFIX append SUFFIX to installed program names
297 --program-transform-name=PROGRAM
298 run sed PROGRAM on installed program names
302 --build=BUILD configure for building on BUILD [BUILD=HOST]
303 --host=HOST configure for HOST [guessed]
304 --target=TARGET configure for TARGET [TARGET=HOST]
305 Features and packages:
306 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
307 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
308 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
309 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
310 --x-includes=DIR X include files are in DIR
311 --x-libraries=DIR X library files are in DIR
313 if test -n "$ac_help"; then
314 echo "--enable and --with options recognized:$ac_help"
318 -host |
--host |
--hos |
--ho)
320 -host=* |
--host=* |
--hos=* |
--ho=*)
323 -includedir |
--includedir |
--includedi |
--included |
--include \
324 |
--includ |
--inclu |
--incl |
--inc)
325 ac_prev
=includedir
;;
326 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
327 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
328 includedir
="$ac_optarg" ;;
330 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
332 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
333 infodir
="$ac_optarg" ;;
335 -libdir |
--libdir |
--libdi |
--libd)
337 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
338 libdir
="$ac_optarg" ;;
340 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
341 |
--libexe |
--libex |
--libe)
342 ac_prev
=libexecdir
;;
343 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
344 |
--libexe=* |
--libex=* |
--libe=*)
345 libexecdir
="$ac_optarg" ;;
347 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
348 |
--localstate |
--localstat |
--localsta |
--localst \
349 |
--locals |
--local |
--loca |
--loc |
--lo)
350 ac_prev
=localstatedir
;;
351 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
352 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
353 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
354 localstatedir
="$ac_optarg" ;;
356 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
358 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
359 mandir
="$ac_optarg" ;;
362 # Obsolete; use --without-fp.
365 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
369 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
370 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
373 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
374 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
375 |
--oldin |
--oldi |
--old |
--ol |
--o)
376 ac_prev
=oldincludedir
;;
377 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
378 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
379 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
380 oldincludedir
="$ac_optarg" ;;
382 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
384 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
385 prefix
="$ac_optarg" ;;
387 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
388 |
--program-pre |
--program-pr |
--program-p)
389 ac_prev
=program_prefix
;;
390 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
391 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
392 program_prefix
="$ac_optarg" ;;
394 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
395 |
--program-suf |
--program-su |
--program-s)
396 ac_prev
=program_suffix
;;
397 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
398 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
399 program_suffix
="$ac_optarg" ;;
401 -program-transform-name |
--program-transform-name \
402 |
--program-transform-nam |
--program-transform-na \
403 |
--program-transform-n |
--program-transform- \
404 |
--program-transform |
--program-transfor \
405 |
--program-transfo |
--program-transf \
406 |
--program-trans |
--program-tran \
407 |
--progr-tra |
--program-tr |
--program-t)
408 ac_prev
=program_transform_name
;;
409 -program-transform-name=* |
--program-transform-name=* \
410 |
--program-transform-nam=* |
--program-transform-na=* \
411 |
--program-transform-n=* |
--program-transform-=* \
412 |
--program-transform=* |
--program-transfor=* \
413 |
--program-transfo=* |
--program-transf=* \
414 |
--program-trans=* |
--program-tran=* \
415 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
416 program_transform_name
="$ac_optarg" ;;
418 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
419 |
-silent |
--silent |
--silen |
--sile |
--sil)
422 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
424 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
426 sbindir
="$ac_optarg" ;;
428 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
429 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
430 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
432 ac_prev
=sharedstatedir
;;
433 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
434 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
435 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
437 sharedstatedir
="$ac_optarg" ;;
439 -site |
--site |
--sit)
441 -site=* |
--site=* |
--sit=*)
444 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
446 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
447 sitefile
="$ac_optarg" ;;
449 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
451 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
452 srcdir
="$ac_optarg" ;;
454 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
455 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
456 ac_prev
=sysconfdir
;;
457 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
458 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
459 sysconfdir
="$ac_optarg" ;;
461 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
463 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
464 target
="$ac_optarg" ;;
466 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
469 -version |
--version |
--versio |
--versi |
--vers)
470 echo "configure generated by autoconf version 2.13"
474 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
475 # Reject names that are not valid shell variable names.
476 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
477 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
479 ac_package
=`echo $ac_package| sed 's/-/_/g'`
484 eval "with_${ac_package}='$ac_optarg'" ;;
486 -without-* |
--without-*)
487 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
488 # Reject names that are not valid shell variable names.
489 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
490 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
492 ac_package
=`echo $ac_package| sed 's/-/_/g'`
493 eval "with_${ac_package}=no" ;;
496 # Obsolete; use --with-x.
499 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
500 |
--x-incl |
--x-inc |
--x-in |
--x-i)
501 ac_prev
=x_includes
;;
502 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
503 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
504 x_includes
="$ac_optarg" ;;
506 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
507 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
508 ac_prev
=x_libraries
;;
509 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
510 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
511 x_libraries
="$ac_optarg" ;;
513 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
517 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
518 echo "configure: warning: $ac_option: invalid host type" 1>&2
520 if test "x$nonopt" != xNONE
; then
521 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
529 if test -n "$ac_prev"; then
530 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
533 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
535 # File descriptor usage:
538 # 2 errors and warnings
539 # 3 some systems may open it to /dev/tty
540 # 4 used on the Kubota Titan
541 # 6 checking for... messages and results
542 # 5 compiler messages saved in config.log
543 if test "$silent" = yes; then
551 This file contains any messages produced by compilers while
552 running configure, to aid debugging if configure makes a mistake.
555 # Strip out --no-create and --no-recursion so they do not pile up.
556 # Also quote any args containing shell metacharacters.
561 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
562 |
--no-cr |
--no-c) ;;
563 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
564 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
565 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
566 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
567 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
572 # Only set these to C if already set. These must not be set unconditionally
573 # because not all systems understand e.g. LANG=C (notably SCO).
574 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
575 # Non-C LC_CTYPE values break the ctype check.
576 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
577 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
578 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
579 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
581 # confdefs.h avoids OS command line length limits that DEFS can exceed.
582 rm -rf conftest
* confdefs.h
583 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
586 # A filename unique to this package, relative to the directory that
587 # configure is in, which we can look for to find out if srcdir is correct.
588 ac_unique_file
=Makefile.
in
590 # Find the source files, if location was not specified.
591 if test -z "$srcdir"; then
592 ac_srcdir_defaulted
=yes
593 # Try the directory containing this script, then its parent.
595 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
596 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
598 if test ! -r $srcdir/$ac_unique_file; then
602 ac_srcdir_defaulted
=no
604 if test ! -r $srcdir/$ac_unique_file; then
605 if test "$ac_srcdir_defaulted" = yes; then
606 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
608 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
611 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
613 # Prefer explicitly selected file to automatically selected ones.
614 if test -z "$sitefile"; then
615 if test -z "$CONFIG_SITE"; then
616 if test "x$prefix" != xNONE
; then
617 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
619 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
623 CONFIG_SITE
="$sitefile"
625 for ac_site_file
in $CONFIG_SITE; do
626 if test -r "$ac_site_file"; then
627 echo "loading site script $ac_site_file"
632 if test -r "$cache_file"; then
633 echo "loading cache $cache_file"
636 echo "creating cache $cache_file"
641 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
642 ac_cpp
='$CPP $CPPFLAGS'
643 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
644 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
645 cross_compiling
=$ac_cv_prog_cc_cross
649 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
650 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
651 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
658 ac_n
= ac_c
='\c' ac_t
=
666 for ac_dir
in `cd $srcdir;pwd`/..
/..
$srcdir/`cd $srcdir;pwd`/..
/..
; do
667 if test -f $ac_dir/install-sh
; then
669 ac_install_sh
="$ac_aux_dir/install-sh -c"
671 elif test -f $ac_dir/install.sh
; then
673 ac_install_sh
="$ac_aux_dir/install.sh -c"
677 if test -z "$ac_aux_dir"; then
678 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
680 ac_config_guess
=$ac_aux_dir/config.guess
681 ac_config_sub
=$ac_aux_dir/config.sub
682 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
685 # Do some error checking and defaulting for the host and target type.
687 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
690 # 1. You are not allowed to specify --host, --target, and nonopt at the
692 # 2. Host defaults to nonopt.
693 # 3. If nonopt is not specified, then host defaults to the current host,
694 # as determined by config.guess.
695 # 4. Target and build default to nonopt.
696 # 5. If nonopt is not specified, then target and build default to host.
698 # The aliases save the names the user supplied, while $host etc.
699 # will get canonicalized.
700 case $host---$target---$nonopt in
701 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
702 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
706 # Make sure we can run config.sub.
707 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
708 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
711 echo $ac_n "checking host system type""... $ac_c" 1>&6
712 echo "configure:713: checking host system type" >&5
715 case "$host_alias" in
719 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
720 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
722 *) host_alias
=$nonopt ;;
726 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
727 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
728 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
729 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
730 echo "$ac_t""$host" 1>&6
732 echo $ac_n "checking target system type""... $ac_c" 1>&6
733 echo "configure:734: checking target system type" >&5
736 case "$target_alias" in
739 NONE
) target_alias
=$host_alias ;;
740 *) target_alias
=$nonopt ;;
744 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
745 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
746 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
747 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
748 echo "$ac_t""$target" 1>&6
750 echo $ac_n "checking build system type""... $ac_c" 1>&6
751 echo "configure:752: checking build system type" >&5
754 case "$build_alias" in
757 NONE
) build_alias
=$host_alias ;;
758 *) build_alias
=$nonopt ;;
762 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
763 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
764 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
765 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
766 echo "$ac_t""$build" 1>&6
768 test "$host_alias" != "$target_alias" &&
769 test "$program_prefix$program_suffix$program_transform_name" = \
771 program_prefix
=${target_alias}-
773 if test "$program_transform_name" = s
,x
,x
,; then
774 program_transform_name
=
776 # Double any \ or $. echo might interpret backslashes.
777 cat <<\EOF_SED
> conftestsed
778 s
,\\,\\\\,g
; s
,\$
,$$
,g
780 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
783 test "$program_prefix" != NONE
&&
784 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
785 # Use a double $ so make ignores it.
786 test "$program_suffix" != NONE
&&
787 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
789 # sed with no file args requires a program.
790 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
792 # Extract the first word of "gcc", so it can be a program name with args.
793 set dummy gcc
; ac_word
=$2
794 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
795 echo "configure:796: checking for $ac_word" >&5
796 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
797 echo $ac_n "(cached) $ac_c" 1>&6
799 if test -n "$CC"; then
800 ac_cv_prog_CC
="$CC" # Let the user override the test.
802 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
804 for ac_dir
in $ac_dummy; do
805 test -z "$ac_dir" && ac_dir
=.
806 if test -f $ac_dir/$ac_word; then
815 if test -n "$CC"; then
816 echo "$ac_t""$CC" 1>&6
818 echo "$ac_t""no" 1>&6
821 if test -z "$CC"; then
822 # Extract the first word of "cc", so it can be a program name with args.
823 set dummy cc
; ac_word
=$2
824 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
825 echo "configure:826: checking for $ac_word" >&5
826 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
827 echo $ac_n "(cached) $ac_c" 1>&6
829 if test -n "$CC"; then
830 ac_cv_prog_CC
="$CC" # Let the user override the test.
832 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
835 for ac_dir
in $ac_dummy; do
836 test -z "$ac_dir" && ac_dir
=.
837 if test -f $ac_dir/$ac_word; then
838 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
847 if test $ac_prog_rejected = yes; then
848 # We found a bogon in the path, so make sure we never use it.
849 set dummy
$ac_cv_prog_CC
851 if test $# -gt 0; then
852 # We chose a different compiler from the bogus one.
853 # However, it has the same basename, so the bogon will be chosen
854 # first if we set CC to just the basename; use the full file name.
856 set dummy
"$ac_dir/$ac_word" "$@"
864 if test -n "$CC"; then
865 echo "$ac_t""$CC" 1>&6
867 echo "$ac_t""no" 1>&6
870 if test -z "$CC"; then
873 # Extract the first word of "cl", so it can be a program name with args.
874 set dummy cl
; ac_word
=$2
875 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
876 echo "configure:877: checking for $ac_word" >&5
877 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
878 echo $ac_n "(cached) $ac_c" 1>&6
880 if test -n "$CC"; then
881 ac_cv_prog_CC
="$CC" # Let the user override the test.
883 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
885 for ac_dir
in $ac_dummy; do
886 test -z "$ac_dir" && ac_dir
=.
887 if test -f $ac_dir/$ac_word; then
896 if test -n "$CC"; then
897 echo "$ac_t""$CC" 1>&6
899 echo "$ac_t""no" 1>&6
904 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
907 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
908 echo "configure:909: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
911 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
912 ac_cpp
='$CPP $CPPFLAGS'
913 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
914 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
915 cross_compiling
=$ac_cv_prog_cc_cross
917 cat > conftest.
$ac_ext << EOF
919 #line 920 "configure"
920 #include "confdefs.h"
924 if { (eval echo configure
:925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
925 ac_cv_prog_cc_works
=yes
926 # If we can't run a trivial program, we are probably using a cross compiler.
927 if (.
/conftest
; exit) 2>/dev
/null
; then
928 ac_cv_prog_cc_cross
=no
930 ac_cv_prog_cc_cross
=yes
933 echo "configure: failed program was:" >&5
934 cat conftest.
$ac_ext >&5
935 ac_cv_prog_cc_works
=no
939 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
940 ac_cpp
='$CPP $CPPFLAGS'
941 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
942 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
943 cross_compiling
=$ac_cv_prog_cc_cross
945 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
946 if test $ac_cv_prog_cc_works = no
; then
947 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
949 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
950 echo "configure:951: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
951 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
952 cross_compiling
=$ac_cv_prog_cc_cross
954 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
955 echo "configure:956: checking whether we are using GNU C" >&5
956 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
957 echo $ac_n "(cached) $ac_c" 1>&6
959 cat > conftest.c
<<EOF
964 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:965: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
971 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
973 if test $ac_cv_prog_gcc = yes; then
979 ac_test_CFLAGS
="${CFLAGS+set}"
980 ac_save_CFLAGS
="$CFLAGS"
982 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
983 echo "configure:984: checking whether ${CC-cc} accepts -g" >&5
984 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
985 echo $ac_n "(cached) $ac_c" 1>&6
987 echo 'void f(){}' > conftest.c
988 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
997 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
998 if test "$ac_test_CFLAGS" = set; then
999 CFLAGS
="$ac_save_CFLAGS"
1000 elif test $ac_cv_prog_cc_g = yes; then
1001 if test "$GCC" = yes; then
1007 if test "$GCC" = yes; then
1014 # Find a good install program. We prefer a C program (faster),
1015 # so one script is as good as another. But avoid the broken or
1016 # incompatible versions:
1017 # SysV /etc/install, /usr/sbin/install
1018 # SunOS /usr/etc/install
1019 # IRIX /sbin/install
1021 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1022 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1023 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1024 # ./install, which can be erroneously created by make from ./install.sh.
1025 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1026 echo "configure:1027: checking for a BSD compatible install" >&5
1027 if test -z "$INSTALL"; then
1028 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1029 echo $ac_n "(cached) $ac_c" 1>&6
1031 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1032 for ac_dir
in $PATH; do
1033 # Account for people who put trailing slashes in PATH elements.
1035 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1037 # OSF1 and SCO ODT 3.0 have their own names for install.
1038 # Don't use installbsd from OSF since it installs stuff as root
1040 for ac_prog
in ginstall scoinst
install; do
1041 if test -f $ac_dir/$ac_prog; then
1042 if test $ac_prog = install &&
1043 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1044 # AIX install. It has an incompatible calling convention.
1047 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1058 if test "${ac_cv_path_install+set}" = set; then
1059 INSTALL
="$ac_cv_path_install"
1061 # As a last resort, use the slow shell script. We don't cache a
1062 # path for INSTALL within a source directory, because that will
1063 # break other packages using the cache if that directory is
1064 # removed, or if the path is relative.
1065 INSTALL
="$ac_install_sh"
1068 echo "$ac_t""$INSTALL" 1>&6
1070 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1071 # It thinks the first close brace ends the variable substitution.
1072 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1074 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1076 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1079 .
${srcdir}/..
/..
/bfd
/configure.
host
1085 # Extract the first word of "ranlib", so it can be a program name with args.
1086 set dummy ranlib
; ac_word
=$2
1087 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1088 echo "configure:1089: checking for $ac_word" >&5
1089 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1090 echo $ac_n "(cached) $ac_c" 1>&6
1092 if test -n "$RANLIB"; then
1093 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1095 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1097 for ac_dir
in $ac_dummy; do
1098 test -z "$ac_dir" && ac_dir
=.
1099 if test -f $ac_dir/$ac_word; then
1100 ac_cv_prog_RANLIB
="ranlib"
1105 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1108 RANLIB
="$ac_cv_prog_RANLIB"
1109 if test -n "$RANLIB"; then
1110 echo "$ac_t""$RANLIB" 1>&6
1112 echo "$ac_t""no" 1>&6
1116 # Put a plausible default for CC_FOR_BUILD in Makefile.
1117 if test "x$cross_compiling" = "xno"; then
1118 CC_FOR_BUILD
='$(CC)'
1125 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1126 echo "configure:1127: checking how to run the C preprocessor" >&5
1127 # On Suns, sometimes $CPP names a directory.
1128 if test -n "$CPP" && test -d "$CPP"; then
1131 if test -z "$CPP"; then
1132 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1133 echo $ac_n "(cached) $ac_c" 1>&6
1135 # This must be in double quotes, not single quotes, because CPP may get
1136 # substituted into the Makefile and "${CC-cc}" will confuse make.
1138 # On the NeXT, cc -E runs the code through the compiler's parser,
1139 # not just through cpp.
1140 cat > conftest.
$ac_ext <<EOF
1141 #line 1142 "configure"
1142 #include "confdefs.h"
1146 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1147 { (eval echo configure
:1148: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1148 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1149 if test -z "$ac_err"; then
1153 echo "configure: failed program was:" >&5
1154 cat conftest.
$ac_ext >&5
1156 CPP
="${CC-cc} -E -traditional-cpp"
1157 cat > conftest.
$ac_ext <<EOF
1158 #line 1159 "configure"
1159 #include "confdefs.h"
1163 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1164 { (eval echo configure
:1165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1165 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1166 if test -z "$ac_err"; then
1170 echo "configure: failed program was:" >&5
1171 cat conftest.
$ac_ext >&5
1173 CPP
="${CC-cc} -nologo -E"
1174 cat > conftest.
$ac_ext <<EOF
1175 #line 1176 "configure"
1176 #include "confdefs.h"
1180 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1181 { (eval echo configure
:1182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1182 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1183 if test -z "$ac_err"; then
1187 echo "configure: failed program was:" >&5
1188 cat conftest.
$ac_ext >&5
1197 ac_cv_prog_CPP
="$CPP"
1199 CPP
="$ac_cv_prog_CPP"
1201 ac_cv_prog_CPP
="$CPP"
1203 echo "$ac_t""$CPP" 1>&6
1205 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1206 echo "configure:1207: checking whether ${MAKE-make} sets \${MAKE}" >&5
1207 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1208 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1209 echo $ac_n "(cached) $ac_c" 1>&6
1211 cat > conftestmake
<<\EOF
1213 @
echo 'ac_maketemp="${MAKE}"'
1215 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1216 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1217 if test -n "$ac_maketemp"; then
1218 eval ac_cv_prog_make_
${ac_make}_set
=yes
1220 eval ac_cv_prog_make_
${ac_make}_set
=no
1224 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1225 echo "$ac_t""yes" 1>&6
1228 echo "$ac_t""no" 1>&6
1229 SET_MAKE
="MAKE=${MAKE-make}"
1232 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1233 echo "configure:1234: checking for POSIXized ISC" >&5
1234 if test -d /etc
/conf
/kconfig.d
&&
1235 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
1237 echo "$ac_t""yes" 1>&6
1238 ISC
=yes # If later tests want to check for ISC.
1239 cat >> confdefs.h
<<\EOF
1240 #define _POSIX_SOURCE 1
1243 if test "$GCC" = yes; then
1249 echo "$ac_t""no" 1>&6
1253 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1254 echo "configure:1255: checking for ANSI C header files" >&5
1255 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1256 echo $ac_n "(cached) $ac_c" 1>&6
1258 cat > conftest.
$ac_ext <<EOF
1259 #line 1260 "configure"
1260 #include "confdefs.h"
1266 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1267 { (eval echo configure
:1268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1268 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1269 if test -z "$ac_err"; then
1271 ac_cv_header_stdc
=yes
1274 echo "configure: failed program was:" >&5
1275 cat conftest.
$ac_ext >&5
1277 ac_cv_header_stdc
=no
1281 if test $ac_cv_header_stdc = yes; then
1282 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1283 cat > conftest.
$ac_ext <<EOF
1284 #line 1285 "configure"
1285 #include "confdefs.h"
1288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1289 egrep "memchr" >/dev
/null
2>&1; then
1293 ac_cv_header_stdc
=no
1299 if test $ac_cv_header_stdc = yes; then
1300 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1301 cat > conftest.
$ac_ext <<EOF
1302 #line 1303 "configure"
1303 #include "confdefs.h"
1306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1307 egrep "free" >/dev
/null
2>&1; then
1311 ac_cv_header_stdc
=no
1317 if test $ac_cv_header_stdc = yes; then
1318 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1319 if test "$cross_compiling" = yes; then
1322 cat > conftest.
$ac_ext <<EOF
1323 #line 1324 "configure"
1324 #include "confdefs.h"
1326 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1327 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1328 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1329 int main () { int i; for (i = 0; i < 256; i++)
1330 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1334 if { (eval echo configure
:1335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1338 echo "configure: failed program was:" >&5
1339 cat conftest.
$ac_ext >&5
1341 ac_cv_header_stdc
=no
1349 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1350 if test $ac_cv_header_stdc = yes; then
1351 cat >> confdefs.h
<<\EOF
1352 #define STDC_HEADERS 1
1357 echo $ac_n "checking for working const""... $ac_c" 1>&6
1358 echo "configure:1359: checking for working const" >&5
1359 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1360 echo $ac_n "(cached) $ac_c" 1>&6
1362 cat > conftest.
$ac_ext <<EOF
1363 #line 1364 "configure"
1364 #include "confdefs.h"
1368 /* Ultrix mips cc rejects this. */
1369 typedef int charset[2]; const charset x;
1370 /* SunOS 4.1.1 cc rejects this. */
1371 char const *const *ccp;
1373 /* NEC SVR4.0.2 mips cc rejects this. */
1374 struct point {int x, y;};
1375 static struct point const zero = {0,0};
1376 /* AIX XL C 1.02.0.0 rejects this.
1377 It does not let you subtract one const X* pointer from another in an arm
1378 of an if-expression whose if-part is not a constant expression */
1379 const char *g = "string";
1380 ccp = &g + (g ? g-g : 0);
1381 /* HPUX 7.0 cc rejects these. */
1384 ccp = (char const *const *) p;
1385 { /* SCO 3.2v4 cc rejects this. */
1387 char const *s = 0 ? (char *) 0 : (char const *) 0;
1391 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1393 const int *foo = &x[0];
1396 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1397 typedef const int *iptr;
1401 { /* AIX XL C 1.02.0.0 rejects this saying
1402 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1403 struct s { int j; const int *ap[3]; };
1404 struct s *b; b->j = 5;
1406 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1412 if { (eval echo configure
:1413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1416 echo "configure: failed program was:" >&5
1417 cat conftest.
$ac_ext >&5
1424 echo "$ac_t""$ac_cv_c_const" 1>&6
1425 if test $ac_cv_c_const = no
; then
1426 cat >> confdefs.h
<<\EOF
1432 echo $ac_n "checking for inline""... $ac_c" 1>&6
1433 echo "configure:1434: checking for inline" >&5
1434 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1435 echo $ac_n "(cached) $ac_c" 1>&6
1438 for ac_kw
in inline __inline__ __inline
; do
1439 cat > conftest.
$ac_ext <<EOF
1440 #line 1441 "configure"
1441 #include "confdefs.h"
1447 if { (eval echo configure
:1448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1449 ac_cv_c_inline
=$ac_kw; break
1451 echo "configure: failed program was:" >&5
1452 cat conftest.
$ac_ext >&5
1459 echo "$ac_t""$ac_cv_c_inline" 1>&6
1460 case "$ac_cv_c_inline" in
1462 no
) cat >> confdefs.h
<<\EOF
1466 *) cat >> confdefs.h
<<EOF
1467 #define inline $ac_cv_c_inline
1472 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1473 echo "configure:1474: checking for off_t" >&5
1474 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1475 echo $ac_n "(cached) $ac_c" 1>&6
1477 cat > conftest.
$ac_ext <<EOF
1478 #line 1479 "configure"
1479 #include "confdefs.h"
1480 #include <sys/types.h>
1486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1487 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1489 ac_cv_type_off_t
=yes
1497 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1498 if test $ac_cv_type_off_t = no
; then
1499 cat >> confdefs.h
<<\EOF
1505 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1506 echo "configure:1507: checking for size_t" >&5
1507 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1508 echo $ac_n "(cached) $ac_c" 1>&6
1510 cat > conftest.
$ac_ext <<EOF
1511 #line 1512 "configure"
1512 #include "confdefs.h"
1513 #include <sys/types.h>
1519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1520 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1522 ac_cv_type_size_t
=yes
1525 ac_cv_type_size_t
=no
1530 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1531 if test $ac_cv_type_size_t = no
; then
1532 cat >> confdefs.h
<<\EOF
1533 #define size_t unsigned
1538 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1539 # for constant arguments. Useless!
1540 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1541 echo "configure:1542: checking for working alloca.h" >&5
1542 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1543 echo $ac_n "(cached) $ac_c" 1>&6
1545 cat > conftest.
$ac_ext <<EOF
1546 #line 1547 "configure"
1547 #include "confdefs.h"
1550 char *p = alloca(2 * sizeof(int));
1553 if { (eval echo configure
:1554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1555 ac_cv_header_alloca_h
=yes
1557 echo "configure: failed program was:" >&5
1558 cat conftest.
$ac_ext >&5
1560 ac_cv_header_alloca_h
=no
1565 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1566 if test $ac_cv_header_alloca_h = yes; then
1567 cat >> confdefs.h
<<\EOF
1568 #define HAVE_ALLOCA_H 1
1573 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1574 echo "configure:1575: checking for alloca" >&5
1575 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1576 echo $ac_n "(cached) $ac_c" 1>&6
1578 cat > conftest.
$ac_ext <<EOF
1579 #line 1580 "configure"
1580 #include "confdefs.h"
1583 # define alloca __builtin_alloca
1586 # include <malloc.h>
1587 # define alloca _alloca
1590 # include <alloca.h>
1595 # ifndef alloca /* predefined by HP cc +Olibcalls */
1604 char *p = (char *) alloca(1);
1607 if { (eval echo configure
:1608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1609 ac_cv_func_alloca_works
=yes
1611 echo "configure: failed program was:" >&5
1612 cat conftest.
$ac_ext >&5
1614 ac_cv_func_alloca_works
=no
1619 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1620 if test $ac_cv_func_alloca_works = yes; then
1621 cat >> confdefs.h
<<\EOF
1622 #define HAVE_ALLOCA 1
1627 if test $ac_cv_func_alloca_works = no
; then
1628 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1629 # that cause trouble. Some versions do not even contain alloca or
1630 # contain a buggy version. If you still want to use their alloca,
1631 # use ar to extract alloca.o from them instead of compiling alloca.c.
1632 ALLOCA
=alloca.
${ac_objext}
1633 cat >> confdefs.h
<<\EOF
1638 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1639 echo "configure:1640: checking whether alloca needs Cray hooks" >&5
1640 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1641 echo $ac_n "(cached) $ac_c" 1>&6
1643 cat > conftest.
$ac_ext <<EOF
1644 #line 1645 "configure"
1645 #include "confdefs.h"
1646 #if defined(CRAY) && ! defined(CRAY2)
1653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1654 egrep "webecray" >/dev
/null
2>&1; then
1665 echo "$ac_t""$ac_cv_os_cray" 1>&6
1666 if test $ac_cv_os_cray = yes; then
1667 for ac_func
in _getb67 GETB67 getb67
; do
1668 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1669 echo "configure:1670: checking for $ac_func" >&5
1670 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1671 echo $ac_n "(cached) $ac_c" 1>&6
1673 cat > conftest.
$ac_ext <<EOF
1674 #line 1675 "configure"
1675 #include "confdefs.h"
1676 /* System header to define __stub macros and hopefully few prototypes,
1677 which can conflict with char $ac_func(); below. */
1679 /* Override any gcc2 internal prototype to avoid an error. */
1680 /* We use char because int might match the return type of a gcc2
1681 builtin and then its argument prototype would still apply. */
1686 /* The GNU C library defines this for functions which it implements
1687 to always fail with ENOSYS. Some functions are actually named
1688 something starting with __ and the normal name is an alias. */
1689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1697 if { (eval echo configure
:1698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1699 eval "ac_cv_func_$ac_func=yes"
1701 echo "configure: failed program was:" >&5
1702 cat conftest.
$ac_ext >&5
1704 eval "ac_cv_func_$ac_func=no"
1709 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1710 echo "$ac_t""yes" 1>&6
1711 cat >> confdefs.h
<<EOF
1712 #define CRAY_STACKSEG_END $ac_func
1717 echo "$ac_t""no" 1>&6
1723 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1724 echo "configure:1725: checking stack direction for C alloca" >&5
1725 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1726 echo $ac_n "(cached) $ac_c" 1>&6
1728 if test "$cross_compiling" = yes; then
1729 ac_cv_c_stack_direction
=0
1731 cat > conftest.
$ac_ext <<EOF
1732 #line 1733 "configure"
1733 #include "confdefs.h"
1734 find_stack_direction ()
1736 static char *addr = 0;
1741 return find_stack_direction ();
1744 return (&dummy > addr) ? 1 : -1;
1748 exit (find_stack_direction() < 0);
1751 if { (eval echo configure
:1752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1753 ac_cv_c_stack_direction
=1
1755 echo "configure: failed program was:" >&5
1756 cat conftest.
$ac_ext >&5
1758 ac_cv_c_stack_direction
=-1
1765 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1766 cat >> confdefs.h
<<EOF
1767 #define STACK_DIRECTION $ac_cv_c_stack_direction
1772 for ac_hdr
in unistd.h
1774 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1775 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1776 echo "configure:1777: checking for $ac_hdr" >&5
1777 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1778 echo $ac_n "(cached) $ac_c" 1>&6
1780 cat > conftest.
$ac_ext <<EOF
1781 #line 1782 "configure"
1782 #include "confdefs.h"
1785 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1786 { (eval echo configure
:1787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1787 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1788 if test -z "$ac_err"; then
1790 eval "ac_cv_header_$ac_safe=yes"
1793 echo "configure: failed program was:" >&5
1794 cat conftest.
$ac_ext >&5
1796 eval "ac_cv_header_$ac_safe=no"
1800 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1801 echo "$ac_t""yes" 1>&6
1802 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1803 cat >> confdefs.h
<<EOF
1804 #define $ac_tr_hdr 1
1808 echo "$ac_t""no" 1>&6
1812 for ac_func
in getpagesize
1814 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1815 echo "configure:1816: checking for $ac_func" >&5
1816 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1817 echo $ac_n "(cached) $ac_c" 1>&6
1819 cat > conftest.
$ac_ext <<EOF
1820 #line 1821 "configure"
1821 #include "confdefs.h"
1822 /* System header to define __stub macros and hopefully few prototypes,
1823 which can conflict with char $ac_func(); below. */
1825 /* Override any gcc2 internal prototype to avoid an error. */
1826 /* We use char because int might match the return type of a gcc2
1827 builtin and then its argument prototype would still apply. */
1832 /* The GNU C library defines this for functions which it implements
1833 to always fail with ENOSYS. Some functions are actually named
1834 something starting with __ and the normal name is an alias. */
1835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1843 if { (eval echo configure
:1844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1845 eval "ac_cv_func_$ac_func=yes"
1847 echo "configure: failed program was:" >&5
1848 cat conftest.
$ac_ext >&5
1850 eval "ac_cv_func_$ac_func=no"
1855 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1856 echo "$ac_t""yes" 1>&6
1857 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1858 cat >> confdefs.h
<<EOF
1859 #define $ac_tr_func 1
1863 echo "$ac_t""no" 1>&6
1867 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1868 echo "configure:1869: checking for working mmap" >&5
1869 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1870 echo $ac_n "(cached) $ac_c" 1>&6
1872 if test "$cross_compiling" = yes; then
1873 ac_cv_func_mmap_fixed_mapped
=no
1875 cat > conftest.
$ac_ext <<EOF
1876 #line 1877 "configure"
1877 #include "confdefs.h"
1879 /* Thanks to Mike Haertel and Jim Avera for this test.
1880 Here is a matrix of mmap possibilities:
1881 mmap private not fixed
1882 mmap private fixed at somewhere currently unmapped
1883 mmap private fixed at somewhere already mapped
1884 mmap shared not fixed
1885 mmap shared fixed at somewhere currently unmapped
1886 mmap shared fixed at somewhere already mapped
1887 For private mappings, we should verify that changes cannot be read()
1888 back from the file, nor mmap's back from the file at a different
1889 address. (There have been systems where private was not correctly
1890 implemented like the infamous i386 svr4.0, and systems where the
1891 VM page cache was not coherent with the filesystem buffer cache
1892 like early versions of FreeBSD and possibly contemporary NetBSD.)
1893 For shared mappings, we should conversely verify that changes get
1894 propogated back to all the places they're supposed to be.
1896 Grep wants private fixed already mapped.
1897 The main things grep needs to know about mmap are:
1898 * does it exist and is it safe to write into the mmap'd area
1899 * how to use it (BSD variants) */
1900 #include <sys/types.h>
1902 #include <sys/mman.h>
1904 /* This mess was copied from the GNU getpagesize.h. */
1905 #ifndef HAVE_GETPAGESIZE
1906 # ifdef HAVE_UNISTD_H
1907 # include <unistd.h>
1910 /* Assume that all systems that can run configure have sys/param.h. */
1911 # ifndef HAVE_SYS_PARAM_H
1912 # define HAVE_SYS_PARAM_H 1
1915 # ifdef _SC_PAGESIZE
1916 # define getpagesize() sysconf(_SC_PAGESIZE)
1917 # else /* no _SC_PAGESIZE */
1918 # ifdef HAVE_SYS_PARAM_H
1919 # include <sys/param.h>
1920 # ifdef EXEC_PAGESIZE
1921 # define getpagesize() EXEC_PAGESIZE
1922 # else /* no EXEC_PAGESIZE */
1924 # define getpagesize() NBPG * CLSIZE
1927 # endif /* no CLSIZE */
1928 # else /* no NBPG */
1930 # define getpagesize() NBPC
1931 # else /* no NBPC */
1933 # define getpagesize() PAGESIZE
1934 # endif /* PAGESIZE */
1935 # endif /* no NBPC */
1936 # endif /* no NBPG */
1937 # endif /* no EXEC_PAGESIZE */
1938 # else /* no HAVE_SYS_PARAM_H */
1939 # define getpagesize() 8192 /* punt totally */
1940 # endif /* no HAVE_SYS_PARAM_H */
1941 # endif /* no _SC_PAGESIZE */
1943 #endif /* no HAVE_GETPAGESIZE */
1946 extern "C" { void *malloc(unsigned); }
1954 char *data, *data2, *data3;
1958 pagesize = getpagesize();
1961 * First, make a file with some known garbage in it.
1963 data = malloc(pagesize);
1966 for (i = 0; i < pagesize; ++i)
1967 *(data + i) = rand();
1969 fd = creat("conftestmmap", 0600);
1972 if (write(fd, data, pagesize) != pagesize)
1977 * Next, try to mmap the file at a fixed address which
1978 * already has something else allocated at it. If we can,
1979 * also make sure that we see the same garbage.
1981 fd = open("conftestmmap", O_RDWR);
1984 data2 = malloc(2 * pagesize);
1987 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1988 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1989 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1991 for (i = 0; i < pagesize; ++i)
1992 if (*(data + i) != *(data2 + i))
1996 * Finally, make sure that changes to the mapped area
1997 * do not percolate back to the file as seen by read().
1998 * (This is a bug on some variants of i386 svr4.0.)
2000 for (i = 0; i < pagesize; ++i)
2001 *(data2 + i) = *(data2 + i) + 1;
2002 data3 = malloc(pagesize);
2005 if (read(fd, data3, pagesize) != pagesize)
2007 for (i = 0; i < pagesize; ++i)
2008 if (*(data + i) != *(data3 + i))
2011 unlink("conftestmmap");
2016 if { (eval echo configure
:2017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2018 ac_cv_func_mmap_fixed_mapped
=yes
2020 echo "configure: failed program was:" >&5
2021 cat conftest.
$ac_ext >&5
2023 ac_cv_func_mmap_fixed_mapped
=no
2030 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2031 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2032 cat >> confdefs.h
<<\EOF
2039 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2040 unistd.h values.h sys
/param.h
2042 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2043 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2044 echo "configure:2045: checking for $ac_hdr" >&5
2045 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2046 echo $ac_n "(cached) $ac_c" 1>&6
2048 cat > conftest.
$ac_ext <<EOF
2049 #line 2050 "configure"
2050 #include "confdefs.h"
2053 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2054 { (eval echo configure
:2055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2055 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2056 if test -z "$ac_err"; then
2058 eval "ac_cv_header_$ac_safe=yes"
2061 echo "configure: failed program was:" >&5
2062 cat conftest.
$ac_ext >&5
2064 eval "ac_cv_header_$ac_safe=no"
2068 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2069 echo "$ac_t""yes" 1>&6
2070 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2071 cat >> confdefs.h
<<EOF
2072 #define $ac_tr_hdr 1
2076 echo "$ac_t""no" 1>&6
2080 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2081 __argz_count __argz_stringify __argz_next
2083 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2084 echo "configure:2085: checking for $ac_func" >&5
2085 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2086 echo $ac_n "(cached) $ac_c" 1>&6
2088 cat > conftest.
$ac_ext <<EOF
2089 #line 2090 "configure"
2090 #include "confdefs.h"
2091 /* System header to define __stub macros and hopefully few prototypes,
2092 which can conflict with char $ac_func(); below. */
2094 /* Override any gcc2 internal prototype to avoid an error. */
2095 /* We use char because int might match the return type of a gcc2
2096 builtin and then its argument prototype would still apply. */
2101 /* The GNU C library defines this for functions which it implements
2102 to always fail with ENOSYS. Some functions are actually named
2103 something starting with __ and the normal name is an alias. */
2104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2112 if { (eval echo configure
:2113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2114 eval "ac_cv_func_$ac_func=yes"
2116 echo "configure: failed program was:" >&5
2117 cat conftest.
$ac_ext >&5
2119 eval "ac_cv_func_$ac_func=no"
2124 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2125 echo "$ac_t""yes" 1>&6
2126 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2127 cat >> confdefs.h
<<EOF
2128 #define $ac_tr_func 1
2132 echo "$ac_t""no" 1>&6
2137 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2138 for ac_func
in stpcpy
2140 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2141 echo "configure:2142: checking for $ac_func" >&5
2142 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2143 echo $ac_n "(cached) $ac_c" 1>&6
2145 cat > conftest.
$ac_ext <<EOF
2146 #line 2147 "configure"
2147 #include "confdefs.h"
2148 /* System header to define __stub macros and hopefully few prototypes,
2149 which can conflict with char $ac_func(); below. */
2151 /* Override any gcc2 internal prototype to avoid an error. */
2152 /* We use char because int might match the return type of a gcc2
2153 builtin and then its argument prototype would still apply. */
2158 /* The GNU C library defines this for functions which it implements
2159 to always fail with ENOSYS. Some functions are actually named
2160 something starting with __ and the normal name is an alias. */
2161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2169 if { (eval echo configure
:2170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2171 eval "ac_cv_func_$ac_func=yes"
2173 echo "configure: failed program was:" >&5
2174 cat conftest.
$ac_ext >&5
2176 eval "ac_cv_func_$ac_func=no"
2181 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2182 echo "$ac_t""yes" 1>&6
2183 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2184 cat >> confdefs.h
<<EOF
2185 #define $ac_tr_func 1
2189 echo "$ac_t""no" 1>&6
2194 if test "${ac_cv_func_stpcpy}" = "yes"; then
2195 cat >> confdefs.h
<<\EOF
2196 #define HAVE_STPCPY 1
2201 if test $ac_cv_header_locale_h = yes; then
2202 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2203 echo "configure:2204: checking for LC_MESSAGES" >&5
2204 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2205 echo $ac_n "(cached) $ac_c" 1>&6
2207 cat > conftest.
$ac_ext <<EOF
2208 #line 2209 "configure"
2209 #include "confdefs.h"
2215 if { (eval echo configure
:2216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2217 am_cv_val_LC_MESSAGES
=yes
2219 echo "configure: failed program was:" >&5
2220 cat conftest.
$ac_ext >&5
2222 am_cv_val_LC_MESSAGES
=no
2227 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2228 if test $am_cv_val_LC_MESSAGES = yes; then
2229 cat >> confdefs.h
<<\EOF
2230 #define HAVE_LC_MESSAGES 1
2235 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2236 echo "configure:2237: checking whether NLS is requested" >&5
2237 # Check whether --enable-nls or --disable-nls was given.
2238 if test "${enable_nls+set}" = set; then
2239 enableval
="$enable_nls"
2245 echo "$ac_t""$USE_NLS" 1>&6
2248 USE_INCLUDED_LIBINTL
=no
2250 if test "$USE_NLS" = "yes"; then
2251 cat >> confdefs.h
<<\EOF
2252 #define ENABLE_NLS 1
2255 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2256 echo "configure:2257: checking whether included gettext is requested" >&5
2257 # Check whether --with-included-gettext or --without-included-gettext was given.
2258 if test "${with_included_gettext+set}" = set; then
2259 withval
="$with_included_gettext"
2260 nls_cv_force_use_gnu_gettext
=$withval
2262 nls_cv_force_use_gnu_gettext
=no
2265 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2267 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2268 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2270 nls_cv_header_libgt
=
2273 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2274 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2275 echo "configure:2276: checking for libintl.h" >&5
2276 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2277 echo $ac_n "(cached) $ac_c" 1>&6
2279 cat > conftest.
$ac_ext <<EOF
2280 #line 2281 "configure"
2281 #include "confdefs.h"
2282 #include <libintl.h>
2284 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2285 { (eval echo configure
:2286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2286 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2287 if test -z "$ac_err"; then
2289 eval "ac_cv_header_$ac_safe=yes"
2292 echo "configure: failed program was:" >&5
2293 cat conftest.
$ac_ext >&5
2295 eval "ac_cv_header_$ac_safe=no"
2299 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2300 echo "$ac_t""yes" 1>&6
2301 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2302 echo "configure:2303: checking for gettext in libc" >&5
2303 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2304 echo $ac_n "(cached) $ac_c" 1>&6
2306 cat > conftest.
$ac_ext <<EOF
2307 #line 2308 "configure"
2308 #include "confdefs.h"
2309 #include <libintl.h>
2311 return (int) gettext ("")
2314 if { (eval echo configure
:2315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2316 gt_cv_func_gettext_libc
=yes
2318 echo "configure: failed program was:" >&5
2319 cat conftest.
$ac_ext >&5
2321 gt_cv_func_gettext_libc
=no
2326 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2328 if test "$gt_cv_func_gettext_libc" != "yes"; then
2329 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2330 echo "configure:2331: checking for bindtextdomain in -lintl" >&5
2331 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2332 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2333 echo $ac_n "(cached) $ac_c" 1>&6
2335 ac_save_LIBS
="$LIBS"
2337 cat > conftest.
$ac_ext <<EOF
2338 #line 2339 "configure"
2339 #include "confdefs.h"
2340 /* Override any gcc2 internal prototype to avoid an error. */
2341 /* We use char because int might match the return type of a gcc2
2342 builtin and then its argument prototype would still apply. */
2343 char bindtextdomain();
2349 if { (eval echo configure
:2350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2351 eval "ac_cv_lib_$ac_lib_var=yes"
2353 echo "configure: failed program was:" >&5
2354 cat conftest.
$ac_ext >&5
2356 eval "ac_cv_lib_$ac_lib_var=no"
2359 LIBS
="$ac_save_LIBS"
2362 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2363 echo "$ac_t""yes" 1>&6
2364 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2365 echo "configure:2366: checking for gettext in libintl" >&5
2366 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2367 echo $ac_n "(cached) $ac_c" 1>&6
2369 cat > conftest.
$ac_ext <<EOF
2370 #line 2371 "configure"
2371 #include "confdefs.h"
2374 return (int) gettext ("")
2377 if { (eval echo configure
:2378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2379 gt_cv_func_gettext_libintl
=yes
2381 echo "configure: failed program was:" >&5
2382 cat conftest.
$ac_ext >&5
2384 gt_cv_func_gettext_libintl
=no
2389 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2391 echo "$ac_t""no" 1>&6
2396 if test "$gt_cv_func_gettext_libc" = "yes" \
2397 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2398 cat >> confdefs.h
<<\EOF
2399 #define HAVE_GETTEXT 1
2402 # Extract the first word of "msgfmt", so it can be a program name with args.
2403 set dummy msgfmt
; ac_word
=$2
2404 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2405 echo "configure:2406: checking for $ac_word" >&5
2406 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2407 echo $ac_n "(cached) $ac_c" 1>&6
2411 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2414 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2415 for ac_dir
in $PATH; do
2416 test -z "$ac_dir" && ac_dir
=.
2417 if test -f $ac_dir/$ac_word; then
2418 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2419 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2425 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2429 MSGFMT
="$ac_cv_path_MSGFMT"
2430 if test -n "$MSGFMT"; then
2431 echo "$ac_t""$MSGFMT" 1>&6
2433 echo "$ac_t""no" 1>&6
2435 if test "$MSGFMT" != "no"; then
2436 for ac_func
in dcgettext
2438 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2439 echo "configure:2440: checking for $ac_func" >&5
2440 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2441 echo $ac_n "(cached) $ac_c" 1>&6
2443 cat > conftest.
$ac_ext <<EOF
2444 #line 2445 "configure"
2445 #include "confdefs.h"
2446 /* System header to define __stub macros and hopefully few prototypes,
2447 which can conflict with char $ac_func(); below. */
2449 /* Override any gcc2 internal prototype to avoid an error. */
2450 /* We use char because int might match the return type of a gcc2
2451 builtin and then its argument prototype would still apply. */
2456 /* The GNU C library defines this for functions which it implements
2457 to always fail with ENOSYS. Some functions are actually named
2458 something starting with __ and the normal name is an alias. */
2459 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2467 if { (eval echo configure
:2468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2469 eval "ac_cv_func_$ac_func=yes"
2471 echo "configure: failed program was:" >&5
2472 cat conftest.
$ac_ext >&5
2474 eval "ac_cv_func_$ac_func=no"
2479 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2480 echo "$ac_t""yes" 1>&6
2481 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2482 cat >> confdefs.h
<<EOF
2483 #define $ac_tr_func 1
2487 echo "$ac_t""no" 1>&6
2491 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2492 set dummy gmsgfmt
; ac_word
=$2
2493 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2494 echo "configure:2495: checking for $ac_word" >&5
2495 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2496 echo $ac_n "(cached) $ac_c" 1>&6
2500 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2503 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2506 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2508 for ac_dir
in $ac_dummy; do
2509 test -z "$ac_dir" && ac_dir
=.
2510 if test -f $ac_dir/$ac_word; then
2511 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2516 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2520 GMSGFMT
="$ac_cv_path_GMSGFMT"
2521 if test -n "$GMSGFMT"; then
2522 echo "$ac_t""$GMSGFMT" 1>&6
2524 echo "$ac_t""no" 1>&6
2527 # Extract the first word of "xgettext", so it can be a program name with args.
2528 set dummy xgettext
; ac_word
=$2
2529 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2530 echo "configure:2531: checking for $ac_word" >&5
2531 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2532 echo $ac_n "(cached) $ac_c" 1>&6
2536 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2539 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2540 for ac_dir
in $PATH; do
2541 test -z "$ac_dir" && ac_dir
=.
2542 if test -f $ac_dir/$ac_word; then
2543 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2544 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2550 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2554 XGETTEXT
="$ac_cv_path_XGETTEXT"
2555 if test -n "$XGETTEXT"; then
2556 echo "$ac_t""$XGETTEXT" 1>&6
2558 echo "$ac_t""no" 1>&6
2561 cat > conftest.
$ac_ext <<EOF
2562 #line 2563 "configure"
2563 #include "confdefs.h"
2566 extern int _nl_msg_cat_cntr;
2567 return _nl_msg_cat_cntr
2570 if { (eval echo configure
:2571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2575 echo "configure: failed program was:" >&5
2576 cat conftest.
$ac_ext >&5
2587 echo "$ac_t""no" 1>&6
2592 if test "$CATOBJEXT" = "NONE"; then
2593 nls_cv_use_gnu_gettext
=yes
2597 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2598 INTLOBJS
="\$(GETTOBJS)"
2599 # Extract the first word of "msgfmt", so it can be a program name with args.
2600 set dummy msgfmt
; ac_word
=$2
2601 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2602 echo "configure:2603: checking for $ac_word" >&5
2603 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2604 echo $ac_n "(cached) $ac_c" 1>&6
2608 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2611 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2612 for ac_dir
in $PATH; do
2613 test -z "$ac_dir" && ac_dir
=.
2614 if test -f $ac_dir/$ac_word; then
2615 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2616 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2622 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2626 MSGFMT
="$ac_cv_path_MSGFMT"
2627 if test -n "$MSGFMT"; then
2628 echo "$ac_t""$MSGFMT" 1>&6
2630 echo "$ac_t""no" 1>&6
2633 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2634 set dummy gmsgfmt
; ac_word
=$2
2635 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2636 echo "configure:2637: checking for $ac_word" >&5
2637 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2638 echo $ac_n "(cached) $ac_c" 1>&6
2642 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2645 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2648 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2650 for ac_dir
in $ac_dummy; do
2651 test -z "$ac_dir" && ac_dir
=.
2652 if test -f $ac_dir/$ac_word; then
2653 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2658 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2662 GMSGFMT
="$ac_cv_path_GMSGFMT"
2663 if test -n "$GMSGFMT"; then
2664 echo "$ac_t""$GMSGFMT" 1>&6
2666 echo "$ac_t""no" 1>&6
2669 # Extract the first word of "xgettext", so it can be a program name with args.
2670 set dummy xgettext
; ac_word
=$2
2671 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2672 echo "configure:2673: checking for $ac_word" >&5
2673 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2674 echo $ac_n "(cached) $ac_c" 1>&6
2678 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2681 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2682 for ac_dir
in $PATH; do
2683 test -z "$ac_dir" && ac_dir
=.
2684 if test -f $ac_dir/$ac_word; then
2685 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2686 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2692 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2696 XGETTEXT
="$ac_cv_path_XGETTEXT"
2697 if test -n "$XGETTEXT"; then
2698 echo "$ac_t""$XGETTEXT" 1>&6
2700 echo "$ac_t""no" 1>&6
2704 USE_INCLUDED_LIBINTL
=yes
2708 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2710 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2711 nls_cv_header_intl
=libintl.h
2712 nls_cv_header_libgt
=libgettext.h
2715 if test "$XGETTEXT" != ":"; then
2716 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2719 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2724 # We need to process the po/ directory.
2728 nls_cv_header_intl
=libintl.h
2729 nls_cv_header_libgt
=libgettext.h
2732 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2733 # because some of the sources are only built for this goal.
2734 if test "$PACKAGE" = gettext; then
2736 USE_INCLUDED_LIBINTL
=yes
2739 for lang
in $ALL_LINGUAS; do
2740 GMOFILES
="$GMOFILES $lang.gmo"
2741 POFILES
="$POFILES $lang.po"
2757 if test "x$CATOBJEXT" != "x"; then
2758 if test "x$ALL_LINGUAS" = "x"; then
2761 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2762 echo "configure:2763: checking for catalogs to be installed" >&5
2764 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2765 case "$ALL_LINGUAS" in
2766 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2769 LINGUAS
=$NEW_LINGUAS
2770 echo "$ac_t""$LINGUAS" 1>&6
2773 if test -n "$LINGUAS"; then
2774 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2778 if test $ac_cv_header_locale_h = yes; then
2779 INCLUDE_LOCALE_H
="#include <locale.h>"
2782 /* The system does not provide the header <locale.h>. Take care yourself. */"
2786 if test -f $srcdir/po2tbl.
sed.
in; then
2787 if test "$CATOBJEXT" = ".cat"; then
2788 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2789 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2790 echo "configure:2791: checking for linux/version.h" >&5
2791 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2792 echo $ac_n "(cached) $ac_c" 1>&6
2794 cat > conftest.
$ac_ext <<EOF
2795 #line 2796 "configure"
2796 #include "confdefs.h"
2797 #include <linux/version.h>
2799 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2800 { (eval echo configure
:2801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2801 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2802 if test -z "$ac_err"; then
2804 eval "ac_cv_header_$ac_safe=yes"
2807 echo "configure: failed program was:" >&5
2808 cat conftest.
$ac_ext >&5
2810 eval "ac_cv_header_$ac_safe=no"
2814 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2815 echo "$ac_t""yes" 1>&6
2818 echo "$ac_t""no" 1>&6
2823 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2825 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2826 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2829 if test "$PACKAGE" = "gettext"; then
2839 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2845 if test -d $srcdir/po
; then
2846 test -d po || mkdir po
2847 if test "x$srcdir" != "x."; then
2848 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2849 posrcprefix
="$srcdir/"
2851 posrcprefix
="../$srcdir/"
2857 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2858 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2862 for ac_hdr
in stdlib.h
time.h unistd.h
2864 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2865 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2866 echo "configure:2867: checking for $ac_hdr" >&5
2867 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2868 echo $ac_n "(cached) $ac_c" 1>&6
2870 cat > conftest.
$ac_ext <<EOF
2871 #line 2872 "configure"
2872 #include "confdefs.h"
2875 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2876 { (eval echo configure
:2877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2877 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2878 if test -z "$ac_err"; then
2880 eval "ac_cv_header_$ac_safe=yes"
2883 echo "configure: failed program was:" >&5
2884 cat conftest.
$ac_ext >&5
2886 eval "ac_cv_header_$ac_safe=no"
2890 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2891 echo "$ac_t""yes" 1>&6
2892 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2893 cat >> confdefs.h
<<EOF
2894 #define $ac_tr_hdr 1
2898 echo "$ac_t""no" 1>&6
2903 echo $ac_n "checking whether printf must be declared""... $ac_c" 1>&6
2904 echo "configure:2905: checking whether printf must be declared" >&5
2905 if eval "test \"`echo '$''{'sim_cv_decl_needed_printf'+set}'`\" = set"; then
2906 echo $ac_n "(cached) $ac_c" 1>&6
2908 cat > conftest.
$ac_ext <<EOF
2909 #line 2910 "configure"
2910 #include "confdefs.h"
2913 int (*pfn) = (int (*)) printf
2916 if { (eval echo configure
:2917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2918 sim_cv_decl_needed_printf
=no
2920 echo "configure: failed program was:" >&5
2921 cat conftest.
$ac_ext >&5
2923 sim_cv_decl_needed_printf
=yes
2928 echo "$ac_t""$sim_cv_decl_needed_printf" 1>&6
2929 if test $sim_cv_decl_needed_printf = yes; then
2930 cat >> confdefs.h
<<\EOF
2931 #define NEED_DECLARATION_PRINTF 1
2937 cat > confcache
<<\EOF
2938 # This file is a shell script that caches the results of configure
2939 # tests run on this system so they can be shared between configure
2940 # scripts and configure runs. It is not useful on other systems.
2941 # If it contains results you don't want to keep, you may remove or edit it.
2943 # By default, configure uses ./config.cache as the cache file,
2944 # creating it if it does not exist already. You can give configure
2945 # the --cache-file=FILE option to use a different cache file; that is
2946 # what configure does when it calls configure scripts in
2947 # subdirectories, so they share the cache.
2948 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2949 # config.status only pays attention to the cache file if you give it the
2950 # --recheck option to rerun configure.
2953 # The following way of writing the cache mishandles newlines in values,
2954 # but we know of no workaround that is simple, portable, and efficient.
2955 # So, don't put newlines in cache variables' values.
2956 # Ultrix sh set writes to stderr and can't be redirected directly,
2957 # and sets the high bit in the cache file unless we assign to the vars.
2959 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2961 # `set' does not quote correctly, so add quotes (double-quote substitution
2962 # turns \\\\ into \\, and sed turns \\ into \).
2964 -e "s/'/'\\\\''/g" \
2965 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2968 # `set' quotes correctly as required by POSIX, so do not add quotes.
2969 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2972 if cmp -s $cache_file confcache
; then
2975 if test -w $cache_file; then
2976 echo "updating cache $cache_file"
2977 cat confcache
> $cache_file
2979 echo "not updating unwritable cache $cache_file"
2984 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2986 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2987 # Let make expand exec_prefix.
2988 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2990 # Any assignment to VPATH causes Sun make to only execute
2991 # the first set of double-colon rules, so remove it if not needed.
2992 # If there is a colon in the path, we need to keep it.
2993 if test "x$srcdir" = x.
; then
2994 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2997 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2999 DEFS
=-DHAVE_CONFIG_H
3001 # Without the "./", some shells look in PATH for config.status.
3002 : ${CONFIG_STATUS=./config.status}
3004 echo creating
$CONFIG_STATUS
3005 rm -f $CONFIG_STATUS
3006 cat > $CONFIG_STATUS <<EOF
3008 # Generated automatically by configure.
3009 # Run this file to recreate the current configuration.
3010 # This directory was configured as follows,
3011 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3013 # $0 $ac_configure_args
3015 # Compiler output produced by configure, useful for debugging
3016 # configure, is in ./config.log if it exists.
3018 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3021 case "\$ac_option" in
3022 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3023 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3024 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3025 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3026 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3028 -help | --help | --hel | --he | --h)
3029 echo "\$ac_cs_usage"; exit 0 ;;
3030 *) echo "\$ac_cs_usage"; exit 1 ;;
3034 ac_given_srcdir=$srcdir
3035 ac_given_INSTALL="$INSTALL"
3037 trap 'rm -fr `echo "Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3039 cat >> $CONFIG_STATUS <<EOF
3041 # Protect against being on the right side of a sed subst in config.status.
3042 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3043 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3046 s%@sim_environment@%$sim_environment%g
3047 s%@sim_alignment@%$sim_alignment%g
3048 s%@sim_assert@%$sim_assert%g
3049 s%@sim_bitsize@%$sim_bitsize%g
3050 s%@sim_endian@%$sim_endian%g
3051 s%@sim_hostendian@%$sim_hostendian%g
3052 s%@sim_float@%$sim_float%g
3053 s%@sim_scache@%$sim_scache%g
3054 s%@sim_default_model@%$sim_default_model%g
3055 s%@sim_hw_cflags@%$sim_hw_cflags%g
3056 s%@sim_hw_objs@%$sim_hw_objs%g
3057 s%@sim_hw@%$sim_hw%g
3058 s%@sim_inline@%$sim_inline%g
3059 s%@sim_packages@%$sim_packages%g
3060 s%@sim_regparm@%$sim_regparm%g
3061 s%@sim_reserved_bits@%$sim_reserved_bits%g
3062 s%@sim_smp@%$sim_smp%g
3063 s%@sim_stdcall@%$sim_stdcall%g
3064 s%@sim_xor_endian@%$sim_xor_endian%g
3065 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
3066 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
3068 s%@CFLAGS@%$CFLAGS%g
3069 s%@CPPFLAGS@%$CPPFLAGS%g
3070 s%@CXXFLAGS@%$CXXFLAGS%g
3071 s%@FFLAGS@%$FFLAGS%g
3073 s%@LDFLAGS@%$LDFLAGS%g
3075 s%@exec_prefix@%$exec_prefix%g
3076 s%@prefix@%$prefix%g
3077 s%@program_transform_name@%$program_transform_name%g
3078 s%@bindir@%$bindir%g
3079 s%@sbindir@%$sbindir%g
3080 s%@libexecdir@%$libexecdir%g
3081 s%@datadir@%$datadir%g
3082 s%@sysconfdir@%$sysconfdir%g
3083 s%@sharedstatedir@%$sharedstatedir%g
3084 s%@localstatedir@%$localstatedir%g
3085 s%@libdir@%$libdir%g
3086 s%@includedir@%$includedir%g
3087 s%@oldincludedir@%$oldincludedir%g
3088 s%@infodir@%$infodir%g
3089 s%@mandir@%$mandir%g
3091 s%@host_alias@%$host_alias%g
3092 s%@host_cpu@%$host_cpu%g
3093 s%@host_vendor@%$host_vendor%g
3094 s%@host_os@%$host_os%g
3095 s%@target@%$target%g
3096 s%@target_alias@%$target_alias%g
3097 s%@target_cpu@%$target_cpu%g
3098 s%@target_vendor@%$target_vendor%g
3099 s%@target_os@%$target_os%g
3101 s%@build_alias@%$build_alias%g
3102 s%@build_cpu@%$build_cpu%g
3103 s%@build_vendor@%$build_vendor%g
3104 s%@build_os@%$build_os%g
3106 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3107 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3108 s%@INSTALL_DATA@%$INSTALL_DATA%g
3109 s%@HDEFINES@%$HDEFINES%g
3111 s%@RANLIB@%$RANLIB%g
3112 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
3113 s%@SET_MAKE@%$SET_MAKE%g
3115 s%@ALLOCA@%$ALLOCA%g
3116 s%@USE_NLS@%$USE_NLS%g
3117 s%@MSGFMT@%$MSGFMT%g
3118 s%@GMSGFMT@%$GMSGFMT%g
3119 s%@XGETTEXT@%$XGETTEXT%g
3120 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
3121 s%@CATALOGS@%$CATALOGS%g
3122 s%@CATOBJEXT@%$CATOBJEXT%g
3123 s%@DATADIRNAME@%$DATADIRNAME%g
3124 s%@GMOFILES@%$GMOFILES%g
3125 s%@INSTOBJEXT@%$INSTOBJEXT%g
3126 s%@INTLDEPS@%$INTLDEPS%g
3127 s%@INTLLIBS@%$INTLLIBS%g
3128 s%@INTLOBJS@%$INTLOBJS%g
3129 s%@POFILES@%$POFILES%g
3131 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
3133 s%@GT_YES@%$GT_YES%g
3134 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
3140 cat >> $CONFIG_STATUS <<\EOF
3142 # Split the substitutions into bite-sized pieces for seds with
3143 # small command number limits, like on Digital OSF/1 and HP-UX.
3144 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
3145 ac_file
=1 # Number of current file.
3146 ac_beg
=1 # First line for current file.
3147 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
3150 while $ac_more_lines; do
3151 if test $ac_beg -gt 1; then
3152 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
3154 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
3156 if test ! -s conftest.s
$ac_file; then
3158 rm -f conftest.s
$ac_file
3160 if test -z "$ac_sed_cmds"; then
3161 ac_sed_cmds
="sed -f conftest.s$ac_file"
3163 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
3165 ac_file
=`expr $ac_file + 1`
3167 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
3170 if test -z "$ac_sed_cmds"; then
3175 cat >> $CONFIG_STATUS <<EOF
3177 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
3179 cat >> $CONFIG_STATUS <<\EOF
3180 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
3181 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3183 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3184 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3185 *) ac_file_in
="${ac_file}.in" ;;
3188 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3190 # Remove last slash and all that follows it. Not all systems have dirname.
3191 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3192 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
3193 # The file is in a subdirectory.
3194 test ! -d "$ac_dir" && mkdir
"$ac_dir"
3195 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
3196 # A "../" for each directory in $ac_dir_suffix.
3197 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3199 ac_dir_suffix
= ac_dots
=
3202 case "$ac_given_srcdir" in
3204 if test -z "$ac_dots"; then top_srcdir
=.
3205 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3206 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
3208 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3209 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
3212 case "$ac_given_INSTALL" in
3213 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
3214 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
3217 echo creating
"$ac_file"
3219 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3221 *Makefile
*) ac_comsub
="1i\\
3222 # $configure_input" ;;
3226 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3228 s%@configure_input@%$configure_input%g
3229 s%@srcdir@%$srcdir%g
3230 s%@top_srcdir@%$top_srcdir%g
3231 s%@INSTALL@%$INSTALL%g
3232 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
3236 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3237 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3239 # ac_d sets the value in "#define NAME VALUE" lines.
3240 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3241 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
3244 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3245 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3246 ac_uB
='\([ ]\)%\1#\2define\3'
3249 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3250 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3251 ac_eB
='$%\1#\2define\3'
3255 if test "${CONFIG_HEADERS+set}" != set; then
3257 cat >> $CONFIG_STATUS <<EOF
3258 CONFIG_HEADERS="config.h:config.in"
3260 cat >> $CONFIG_STATUS <<\EOF
3262 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
3263 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3265 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3266 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3267 *) ac_file_in
="${ac_file}.in" ;;
3270 echo creating
$ac_file
3272 rm -f conftest.frag conftest.
in conftest.out
3273 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3274 cat $ac_file_inputs > conftest.
in
3278 # Transform confdefs.h into a sed script conftest.vals that substitutes
3279 # the proper values into config.h.in to produce config.h. And first:
3280 # Protect against being on the right side of a sed subst in config.status.
3281 # Protect against being in an unquoted here document in config.status.
3283 cat > conftest.hdr
<<\EOF
3286 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3290 sed -n -f conftest.hdr confdefs.h > conftest.vals
3293 # This sed command replaces #undef with comments. This is necessary, for
3294 # example, in the case of _POSIX_SOURCE, which is predefined and required
3295 # on some systems where configure will not decide to define it.
3296 cat >> conftest.vals <<\EOF
3297 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3300 # Break up conftest.vals because some shells have a limit on
3301 # the size of here documents, and old seds have small limits too.
3306 ac_lines=`grep -c . conftest.vals
`
3307 # grep -c gives empty output for an empty file on some AIX systems.
3308 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3309 # Write a limited-size here document to conftest.frag.
3310 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3311 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3313 sed -f conftest.frag conftest.in > conftest.out
3315 mv conftest.out conftest.in
3317 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3319 mv conftest.tail conftest.vals
3323 cat >> $CONFIG_STATUS <<\EOF
3324 rm -f conftest.frag conftest.h
3325 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3326 cat conftest.in >> conftest.h
3328 if cmp -s $ac_file conftest.h 2>/dev/null; then
3329 echo "$ac_file is unchanged"
3332 # Remove last slash and all that follows it. Not all systems have dirname.
3333 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
3334 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3335 # The file is in a subdirectory.
3336 test ! -d "$ac_dir" && mkdir "$ac_dir"
3339 mv conftest.h $ac_file
3344 cat >> $CONFIG_STATUS <<EOF
3347 cat >> $CONFIG_STATUS <<\EOF
3348 case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac
3351 chmod +x $CONFIG_STATUS
3352 rm -fr confdefs* $ac_clean_files
3353 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1