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 --enable-maintainer-mode Enable developer functionality."
144 --enable-sim-bswap Use Host specific BSWAP instruction."
146 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator"
148 --enable-sim-debug=opts Enable debugging flags"
150 --enable-sim-stdio Specify whether to use stdio for console input/output."
152 --enable-sim-trace=opts Enable tracing flags"
154 --enable-sim-profile=opts Enable profiling flags"
156 --enable-sim-inline=inlines Specify which functions should be inlined."
158 --enable-sim-alignment=align Specify strict, nonstrict or forced alignment of memory accesses."
160 --enable-sim-hostendian=end Specify host byte endian orientation."
162 --enable-build-warnings[=LIST] Enable build-time compiler warnings"
164 --enable-sim-hardware=LIST Specify the hardware to be included in the build."
166 # Initialize some variables set by options.
167 # The variables have the same names as the options, with
168 # dashes changed to underlines.
170 cache_file
=.
/config.cache
179 program_transform_name
=s
,x
,x
,
188 bindir
='${exec_prefix}/bin'
189 sbindir
='${exec_prefix}/sbin'
190 libexecdir
='${exec_prefix}/libexec'
191 datadir
='${prefix}/share'
192 sysconfdir
='${prefix}/etc'
193 sharedstatedir
='${prefix}/com'
194 localstatedir
='${prefix}/var'
195 libdir
='${exec_prefix}/lib'
196 includedir
='${prefix}/include'
197 oldincludedir
='/usr/include'
198 infodir
='${prefix}/info'
199 mandir
='${prefix}/man'
201 # Initialize some other variables.
204 SHELL
=${CONFIG_SHELL-/bin/sh}
205 # Maximum number of lines to put in a shell here document.
212 # If the previous option needs an argument, assign it.
213 if test -n "$ac_prev"; then
214 eval "$ac_prev=\$ac_option"
220 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
224 # Accept the important Cygnus configure options, so we can diagnose typos.
228 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
230 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
231 bindir
="$ac_optarg" ;;
233 -build |
--build |
--buil |
--bui |
--bu)
235 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
236 build
="$ac_optarg" ;;
238 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
239 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
240 ac_prev
=cache_file
;;
241 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
242 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
243 cache_file
="$ac_optarg" ;;
245 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
247 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
249 datadir
="$ac_optarg" ;;
251 -disable-* |
--disable-*)
252 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
253 # Reject names that are not valid shell variable names.
254 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
255 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
257 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
258 eval "enable_${ac_feature}=no" ;;
260 -enable-* |
--enable-*)
261 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
262 # Reject names that are not valid shell variable names.
263 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
264 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
266 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
271 eval "enable_${ac_feature}='$ac_optarg'" ;;
273 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
274 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
275 |
--exec |
--exe |
--ex)
276 ac_prev
=exec_prefix
;;
277 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
278 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
279 |
--exec=* |
--exe=* |
--ex=*)
280 exec_prefix
="$ac_optarg" ;;
282 -gas |
--gas |
--ga |
--g)
283 # Obsolete; use --with-gas.
286 -help |
--help |
--hel |
--he)
287 # Omit some internal or obsolete options to make the list less imposing.
288 # This message is too long to be a string in the A/UX 3.1 sh.
290 Usage: configure [options] [host]
291 Options: [defaults in brackets after descriptions]
293 --cache-file=FILE cache test results in FILE
294 --help print this message
295 --no-create do not create output files
296 --quiet, --silent do not print \`checking...' messages
297 --site-file=FILE use FILE as the site file
298 --version print the version of autoconf that created configure
299 Directory and file names:
300 --prefix=PREFIX install architecture-independent files in PREFIX
302 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
304 --bindir=DIR user executables in DIR [EPREFIX/bin]
305 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
306 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
307 --datadir=DIR read-only architecture-independent data in DIR
309 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
310 --sharedstatedir=DIR modifiable architecture-independent data in DIR
312 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
313 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
314 --includedir=DIR C header files in DIR [PREFIX/include]
315 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
316 --infodir=DIR info documentation in DIR [PREFIX/info]
317 --mandir=DIR man documentation in DIR [PREFIX/man]
318 --srcdir=DIR find the sources in DIR [configure dir or ..]
319 --program-prefix=PREFIX prepend PREFIX to installed program names
320 --program-suffix=SUFFIX append SUFFIX to installed program names
321 --program-transform-name=PROGRAM
322 run sed PROGRAM on installed program names
326 --build=BUILD configure for building on BUILD [BUILD=HOST]
327 --host=HOST configure for HOST [guessed]
328 --target=TARGET configure for TARGET [TARGET=HOST]
329 Features and packages:
330 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
331 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
332 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
333 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
334 --x-includes=DIR X include files are in DIR
335 --x-libraries=DIR X library files are in DIR
337 if test -n "$ac_help"; then
338 echo "--enable and --with options recognized:$ac_help"
342 -host |
--host |
--hos |
--ho)
344 -host=* |
--host=* |
--hos=* |
--ho=*)
347 -includedir |
--includedir |
--includedi |
--included |
--include \
348 |
--includ |
--inclu |
--incl |
--inc)
349 ac_prev
=includedir
;;
350 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
351 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
352 includedir
="$ac_optarg" ;;
354 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
356 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
357 infodir
="$ac_optarg" ;;
359 -libdir |
--libdir |
--libdi |
--libd)
361 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
362 libdir
="$ac_optarg" ;;
364 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
365 |
--libexe |
--libex |
--libe)
366 ac_prev
=libexecdir
;;
367 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
368 |
--libexe=* |
--libex=* |
--libe=*)
369 libexecdir
="$ac_optarg" ;;
371 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
372 |
--localstate |
--localstat |
--localsta |
--localst \
373 |
--locals |
--local |
--loca |
--loc |
--lo)
374 ac_prev
=localstatedir
;;
375 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
376 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
377 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
378 localstatedir
="$ac_optarg" ;;
380 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
382 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
383 mandir
="$ac_optarg" ;;
386 # Obsolete; use --without-fp.
389 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
393 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
394 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
397 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
398 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
399 |
--oldin |
--oldi |
--old |
--ol |
--o)
400 ac_prev
=oldincludedir
;;
401 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
402 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
403 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
404 oldincludedir
="$ac_optarg" ;;
406 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
408 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
409 prefix
="$ac_optarg" ;;
411 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
412 |
--program-pre |
--program-pr |
--program-p)
413 ac_prev
=program_prefix
;;
414 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
415 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
416 program_prefix
="$ac_optarg" ;;
418 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
419 |
--program-suf |
--program-su |
--program-s)
420 ac_prev
=program_suffix
;;
421 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
422 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
423 program_suffix
="$ac_optarg" ;;
425 -program-transform-name |
--program-transform-name \
426 |
--program-transform-nam |
--program-transform-na \
427 |
--program-transform-n |
--program-transform- \
428 |
--program-transform |
--program-transfor \
429 |
--program-transfo |
--program-transf \
430 |
--program-trans |
--program-tran \
431 |
--progr-tra |
--program-tr |
--program-t)
432 ac_prev
=program_transform_name
;;
433 -program-transform-name=* |
--program-transform-name=* \
434 |
--program-transform-nam=* |
--program-transform-na=* \
435 |
--program-transform-n=* |
--program-transform-=* \
436 |
--program-transform=* |
--program-transfor=* \
437 |
--program-transfo=* |
--program-transf=* \
438 |
--program-trans=* |
--program-tran=* \
439 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
440 program_transform_name
="$ac_optarg" ;;
442 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
443 |
-silent |
--silent |
--silen |
--sile |
--sil)
446 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
448 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
450 sbindir
="$ac_optarg" ;;
452 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
453 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
454 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
456 ac_prev
=sharedstatedir
;;
457 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
458 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
459 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
461 sharedstatedir
="$ac_optarg" ;;
463 -site |
--site |
--sit)
465 -site=* |
--site=* |
--sit=*)
468 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
470 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
471 sitefile
="$ac_optarg" ;;
473 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
475 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
476 srcdir
="$ac_optarg" ;;
478 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
479 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
480 ac_prev
=sysconfdir
;;
481 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
482 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
483 sysconfdir
="$ac_optarg" ;;
485 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
487 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
488 target
="$ac_optarg" ;;
490 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
493 -version |
--version |
--versio |
--versi |
--vers)
494 echo "configure generated by autoconf version 2.13"
498 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
499 # Reject names that are not valid shell variable names.
500 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
501 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
503 ac_package
=`echo $ac_package| sed 's/-/_/g'`
508 eval "with_${ac_package}='$ac_optarg'" ;;
510 -without-* |
--without-*)
511 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
512 # Reject names that are not valid shell variable names.
513 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
514 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
516 ac_package
=`echo $ac_package| sed 's/-/_/g'`
517 eval "with_${ac_package}=no" ;;
520 # Obsolete; use --with-x.
523 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
524 |
--x-incl |
--x-inc |
--x-in |
--x-i)
525 ac_prev
=x_includes
;;
526 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
527 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
528 x_includes
="$ac_optarg" ;;
530 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
531 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
532 ac_prev
=x_libraries
;;
533 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
534 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
535 x_libraries
="$ac_optarg" ;;
537 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
541 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
542 echo "configure: warning: $ac_option: invalid host type" 1>&2
544 if test "x$nonopt" != xNONE
; then
545 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
553 if test -n "$ac_prev"; then
554 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
557 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
559 # File descriptor usage:
562 # 2 errors and warnings
563 # 3 some systems may open it to /dev/tty
564 # 4 used on the Kubota Titan
565 # 6 checking for... messages and results
566 # 5 compiler messages saved in config.log
567 if test "$silent" = yes; then
575 This file contains any messages produced by compilers while
576 running configure, to aid debugging if configure makes a mistake.
579 # Strip out --no-create and --no-recursion so they do not pile up.
580 # Also quote any args containing shell metacharacters.
585 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
586 |
--no-cr |
--no-c) ;;
587 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
588 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
589 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
590 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
591 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
596 # Only set these to C if already set. These must not be set unconditionally
597 # because not all systems understand e.g. LANG=C (notably SCO).
598 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
599 # Non-C LC_CTYPE values break the ctype check.
600 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
601 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
602 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
603 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
605 # confdefs.h avoids OS command line length limits that DEFS can exceed.
606 rm -rf conftest
* confdefs.h
607 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
610 # A filename unique to this package, relative to the directory that
611 # configure is in, which we can look for to find out if srcdir is correct.
612 ac_unique_file
=Makefile.
in
614 # Find the source files, if location was not specified.
615 if test -z "$srcdir"; then
616 ac_srcdir_defaulted
=yes
617 # Try the directory containing this script, then its parent.
619 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
620 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
622 if test ! -r $srcdir/$ac_unique_file; then
626 ac_srcdir_defaulted
=no
628 if test ! -r $srcdir/$ac_unique_file; then
629 if test "$ac_srcdir_defaulted" = yes; then
630 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
632 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
635 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
637 # Prefer explicitly selected file to automatically selected ones.
638 if test -z "$sitefile"; then
639 if test -z "$CONFIG_SITE"; then
640 if test "x$prefix" != xNONE
; then
641 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
643 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
647 CONFIG_SITE
="$sitefile"
649 for ac_site_file
in $CONFIG_SITE; do
650 if test -r "$ac_site_file"; then
651 echo "loading site script $ac_site_file"
656 if test -r "$cache_file"; then
657 echo "loading cache $cache_file"
660 echo "creating cache $cache_file"
665 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
666 ac_cpp
='$CPP $CPPFLAGS'
667 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
668 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
669 cross_compiling
=$ac_cv_prog_cc_cross
673 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
674 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
675 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
682 ac_n
= ac_c
='\c' ac_t
=
687 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
688 echo "configure:689: checking how to run the C preprocessor" >&5
689 # On Suns, sometimes $CPP names a directory.
690 if test -n "$CPP" && test -d "$CPP"; then
693 if test -z "$CPP"; then
694 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
695 echo $ac_n "(cached) $ac_c" 1>&6
697 # This must be in double quotes, not single quotes, because CPP may get
698 # substituted into the Makefile and "${CC-cc}" will confuse make.
700 # On the NeXT, cc -E runs the code through the compiler's parser,
701 # not just through cpp.
702 cat > conftest.
$ac_ext <<EOF
703 #line 704 "configure"
704 #include "confdefs.h"
708 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
709 { (eval echo configure
:710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
710 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
711 if test -z "$ac_err"; then
715 echo "configure: failed program was:" >&5
716 cat conftest.
$ac_ext >&5
718 CPP
="${CC-cc} -E -traditional-cpp"
719 cat > conftest.
$ac_ext <<EOF
720 #line 721 "configure"
721 #include "confdefs.h"
725 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726 { (eval echo configure
:727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
727 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
728 if test -z "$ac_err"; then
732 echo "configure: failed program was:" >&5
733 cat conftest.
$ac_ext >&5
735 CPP
="${CC-cc} -nologo -E"
736 cat > conftest.
$ac_ext <<EOF
737 #line 738 "configure"
738 #include "confdefs.h"
742 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
743 { (eval echo configure
:744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
744 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
745 if test -z "$ac_err"; then
749 echo "configure: failed program was:" >&5
750 cat conftest.
$ac_ext >&5
759 ac_cv_prog_CPP
="$CPP"
761 CPP
="$ac_cv_prog_CPP"
763 ac_cv_prog_CPP
="$CPP"
765 echo "$ac_t""$CPP" 1>&6
767 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
768 echo "configure:769: checking whether ${MAKE-make} sets \${MAKE}" >&5
769 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
770 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
771 echo $ac_n "(cached) $ac_c" 1>&6
773 cat > conftestmake
<<\EOF
775 @
echo 'ac_maketemp="${MAKE}"'
777 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
778 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
779 if test -n "$ac_maketemp"; then
780 eval ac_cv_prog_make_
${ac_make}_set
=yes
782 eval ac_cv_prog_make_
${ac_make}_set
=no
786 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
787 echo "$ac_t""yes" 1>&6
790 echo "$ac_t""no" 1>&6
791 SET_MAKE
="MAKE=${MAKE-make}"
794 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
795 echo "configure:796: checking for POSIXized ISC" >&5
796 if test -d /etc
/conf
/kconfig.d
&&
797 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
799 echo "$ac_t""yes" 1>&6
800 ISC
=yes # If later tests want to check for ISC.
801 cat >> confdefs.h
<<\EOF
802 #define _POSIX_SOURCE 1
805 if test "$GCC" = yes; then
811 echo "$ac_t""no" 1>&6
815 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
816 echo "configure:817: checking for ANSI C header files" >&5
817 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
818 echo $ac_n "(cached) $ac_c" 1>&6
820 cat > conftest.
$ac_ext <<EOF
821 #line 822 "configure"
822 #include "confdefs.h"
828 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
829 { (eval echo configure
:830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
830 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
831 if test -z "$ac_err"; then
833 ac_cv_header_stdc
=yes
836 echo "configure: failed program was:" >&5
837 cat conftest.
$ac_ext >&5
843 if test $ac_cv_header_stdc = yes; then
844 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
845 cat > conftest.
$ac_ext <<EOF
846 #line 847 "configure"
847 #include "confdefs.h"
850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
851 egrep "memchr" >/dev
/null
2>&1; then
861 if test $ac_cv_header_stdc = yes; then
862 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
863 cat > conftest.
$ac_ext <<EOF
864 #line 865 "configure"
865 #include "confdefs.h"
868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
869 egrep "free" >/dev
/null
2>&1; then
879 if test $ac_cv_header_stdc = yes; then
880 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
881 if test "$cross_compiling" = yes; then
884 cat > conftest.
$ac_ext <<EOF
885 #line 886 "configure"
886 #include "confdefs.h"
888 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
889 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
890 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
891 int main () { int i; for (i = 0; i < 256; i++)
892 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
896 if { (eval echo configure
:897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
900 echo "configure: failed program was:" >&5
901 cat conftest.
$ac_ext >&5
911 echo "$ac_t""$ac_cv_header_stdc" 1>&6
912 if test $ac_cv_header_stdc = yes; then
913 cat >> confdefs.h
<<\EOF
914 #define STDC_HEADERS 1
919 echo $ac_n "checking for working const""... $ac_c" 1>&6
920 echo "configure:921: checking for working const" >&5
921 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
922 echo $ac_n "(cached) $ac_c" 1>&6
924 cat > conftest.
$ac_ext <<EOF
925 #line 926 "configure"
926 #include "confdefs.h"
930 /* Ultrix mips cc rejects this. */
931 typedef int charset[2]; const charset x;
932 /* SunOS 4.1.1 cc rejects this. */
933 char const *const *ccp;
935 /* NEC SVR4.0.2 mips cc rejects this. */
936 struct point {int x, y;};
937 static struct point const zero = {0,0};
938 /* AIX XL C 1.02.0.0 rejects this.
939 It does not let you subtract one const X* pointer from another in an arm
940 of an if-expression whose if-part is not a constant expression */
941 const char *g = "string";
942 ccp = &g + (g ? g-g : 0);
943 /* HPUX 7.0 cc rejects these. */
946 ccp = (char const *const *) p;
947 { /* SCO 3.2v4 cc rejects this. */
949 char const *s = 0 ? (char *) 0 : (char const *) 0;
953 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
955 const int *foo = &x[0];
958 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
959 typedef const int *iptr;
963 { /* AIX XL C 1.02.0.0 rejects this saying
964 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
965 struct s { int j; const int *ap[3]; };
966 struct s *b; b->j = 5;
968 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
974 if { (eval echo configure
:975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
978 echo "configure: failed program was:" >&5
979 cat conftest.
$ac_ext >&5
986 echo "$ac_t""$ac_cv_c_const" 1>&6
987 if test $ac_cv_c_const = no
; then
988 cat >> confdefs.h
<<\EOF
994 echo $ac_n "checking for inline""... $ac_c" 1>&6
995 echo "configure:996: checking for inline" >&5
996 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
997 echo $ac_n "(cached) $ac_c" 1>&6
1000 for ac_kw
in inline __inline__ __inline
; do
1001 cat > conftest.
$ac_ext <<EOF
1002 #line 1003 "configure"
1003 #include "confdefs.h"
1009 if { (eval echo configure
:1010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1011 ac_cv_c_inline
=$ac_kw; break
1013 echo "configure: failed program was:" >&5
1014 cat conftest.
$ac_ext >&5
1021 echo "$ac_t""$ac_cv_c_inline" 1>&6
1022 case "$ac_cv_c_inline" in
1024 no
) cat >> confdefs.h
<<\EOF
1028 *) cat >> confdefs.h
<<EOF
1029 #define inline $ac_cv_c_inline
1034 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1035 echo "configure:1036: checking for off_t" >&5
1036 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1037 echo $ac_n "(cached) $ac_c" 1>&6
1039 cat > conftest.
$ac_ext <<EOF
1040 #line 1041 "configure"
1041 #include "confdefs.h"
1042 #include <sys/types.h>
1048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1049 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1051 ac_cv_type_off_t
=yes
1059 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1060 if test $ac_cv_type_off_t = no
; then
1061 cat >> confdefs.h
<<\EOF
1067 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1068 echo "configure:1069: checking for size_t" >&5
1069 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1070 echo $ac_n "(cached) $ac_c" 1>&6
1072 cat > conftest.
$ac_ext <<EOF
1073 #line 1074 "configure"
1074 #include "confdefs.h"
1075 #include <sys/types.h>
1081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1082 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1084 ac_cv_type_size_t
=yes
1087 ac_cv_type_size_t
=no
1092 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1093 if test $ac_cv_type_size_t = no
; then
1094 cat >> confdefs.h
<<\EOF
1095 #define size_t unsigned
1100 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1101 # for constant arguments. Useless!
1102 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1103 echo "configure:1104: checking for working alloca.h" >&5
1104 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1105 echo $ac_n "(cached) $ac_c" 1>&6
1107 cat > conftest.
$ac_ext <<EOF
1108 #line 1109 "configure"
1109 #include "confdefs.h"
1112 char *p = alloca(2 * sizeof(int));
1115 if { (eval echo configure
:1116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1117 ac_cv_header_alloca_h
=yes
1119 echo "configure: failed program was:" >&5
1120 cat conftest.
$ac_ext >&5
1122 ac_cv_header_alloca_h
=no
1127 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1128 if test $ac_cv_header_alloca_h = yes; then
1129 cat >> confdefs.h
<<\EOF
1130 #define HAVE_ALLOCA_H 1
1135 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1136 echo "configure:1137: checking for alloca" >&5
1137 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1138 echo $ac_n "(cached) $ac_c" 1>&6
1140 cat > conftest.
$ac_ext <<EOF
1141 #line 1142 "configure"
1142 #include "confdefs.h"
1145 # define alloca __builtin_alloca
1148 # include <malloc.h>
1149 # define alloca _alloca
1152 # include <alloca.h>
1157 # ifndef alloca /* predefined by HP cc +Olibcalls */
1166 char *p = (char *) alloca(1);
1169 if { (eval echo configure
:1170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1171 ac_cv_func_alloca_works
=yes
1173 echo "configure: failed program was:" >&5
1174 cat conftest.
$ac_ext >&5
1176 ac_cv_func_alloca_works
=no
1181 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1182 if test $ac_cv_func_alloca_works = yes; then
1183 cat >> confdefs.h
<<\EOF
1184 #define HAVE_ALLOCA 1
1189 if test $ac_cv_func_alloca_works = no
; then
1190 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1191 # that cause trouble. Some versions do not even contain alloca or
1192 # contain a buggy version. If you still want to use their alloca,
1193 # use ar to extract alloca.o from them instead of compiling alloca.c.
1194 ALLOCA
=alloca.
${ac_objext}
1195 cat >> confdefs.h
<<\EOF
1200 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1201 echo "configure:1202: checking whether alloca needs Cray hooks" >&5
1202 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1203 echo $ac_n "(cached) $ac_c" 1>&6
1205 cat > conftest.
$ac_ext <<EOF
1206 #line 1207 "configure"
1207 #include "confdefs.h"
1208 #if defined(CRAY) && ! defined(CRAY2)
1215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1216 egrep "webecray" >/dev
/null
2>&1; then
1227 echo "$ac_t""$ac_cv_os_cray" 1>&6
1228 if test $ac_cv_os_cray = yes; then
1229 for ac_func
in _getb67 GETB67 getb67
; do
1230 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1231 echo "configure:1232: checking for $ac_func" >&5
1232 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1233 echo $ac_n "(cached) $ac_c" 1>&6
1235 cat > conftest.
$ac_ext <<EOF
1236 #line 1237 "configure"
1237 #include "confdefs.h"
1238 /* System header to define __stub macros and hopefully few prototypes,
1239 which can conflict with char $ac_func(); below. */
1241 /* Override any gcc2 internal prototype to avoid an error. */
1242 /* We use char because int might match the return type of a gcc2
1243 builtin and then its argument prototype would still apply. */
1248 /* The GNU C library defines this for functions which it implements
1249 to always fail with ENOSYS. Some functions are actually named
1250 something starting with __ and the normal name is an alias. */
1251 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1259 if { (eval echo configure
:1260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1261 eval "ac_cv_func_$ac_func=yes"
1263 echo "configure: failed program was:" >&5
1264 cat conftest.
$ac_ext >&5
1266 eval "ac_cv_func_$ac_func=no"
1271 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1272 echo "$ac_t""yes" 1>&6
1273 cat >> confdefs.h
<<EOF
1274 #define CRAY_STACKSEG_END $ac_func
1279 echo "$ac_t""no" 1>&6
1285 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1286 echo "configure:1287: checking stack direction for C alloca" >&5
1287 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1288 echo $ac_n "(cached) $ac_c" 1>&6
1290 if test "$cross_compiling" = yes; then
1291 ac_cv_c_stack_direction
=0
1293 cat > conftest.
$ac_ext <<EOF
1294 #line 1295 "configure"
1295 #include "confdefs.h"
1296 find_stack_direction ()
1298 static char *addr = 0;
1303 return find_stack_direction ();
1306 return (&dummy > addr) ? 1 : -1;
1310 exit (find_stack_direction() < 0);
1313 if { (eval echo configure
:1314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1315 ac_cv_c_stack_direction
=1
1317 echo "configure: failed program was:" >&5
1318 cat conftest.
$ac_ext >&5
1320 ac_cv_c_stack_direction
=-1
1327 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1328 cat >> confdefs.h
<<EOF
1329 #define STACK_DIRECTION $ac_cv_c_stack_direction
1334 for ac_hdr
in unistd.h
1336 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1337 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1338 echo "configure:1339: checking for $ac_hdr" >&5
1339 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1340 echo $ac_n "(cached) $ac_c" 1>&6
1342 cat > conftest.
$ac_ext <<EOF
1343 #line 1344 "configure"
1344 #include "confdefs.h"
1347 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1348 { (eval echo configure
:1349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1349 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1350 if test -z "$ac_err"; then
1352 eval "ac_cv_header_$ac_safe=yes"
1355 echo "configure: failed program was:" >&5
1356 cat conftest.
$ac_ext >&5
1358 eval "ac_cv_header_$ac_safe=no"
1362 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1363 echo "$ac_t""yes" 1>&6
1364 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1365 cat >> confdefs.h
<<EOF
1366 #define $ac_tr_hdr 1
1370 echo "$ac_t""no" 1>&6
1374 for ac_func
in getpagesize
1376 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1377 echo "configure:1378: checking for $ac_func" >&5
1378 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1379 echo $ac_n "(cached) $ac_c" 1>&6
1381 cat > conftest.
$ac_ext <<EOF
1382 #line 1383 "configure"
1383 #include "confdefs.h"
1384 /* System header to define __stub macros and hopefully few prototypes,
1385 which can conflict with char $ac_func(); below. */
1387 /* Override any gcc2 internal prototype to avoid an error. */
1388 /* We use char because int might match the return type of a gcc2
1389 builtin and then its argument prototype would still apply. */
1394 /* The GNU C library defines this for functions which it implements
1395 to always fail with ENOSYS. Some functions are actually named
1396 something starting with __ and the normal name is an alias. */
1397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1405 if { (eval echo configure
:1406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1407 eval "ac_cv_func_$ac_func=yes"
1409 echo "configure: failed program was:" >&5
1410 cat conftest.
$ac_ext >&5
1412 eval "ac_cv_func_$ac_func=no"
1417 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1418 echo "$ac_t""yes" 1>&6
1419 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1420 cat >> confdefs.h
<<EOF
1421 #define $ac_tr_func 1
1425 echo "$ac_t""no" 1>&6
1429 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1430 echo "configure:1431: checking for working mmap" >&5
1431 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1432 echo $ac_n "(cached) $ac_c" 1>&6
1434 if test "$cross_compiling" = yes; then
1435 ac_cv_func_mmap_fixed_mapped
=no
1437 cat > conftest.
$ac_ext <<EOF
1438 #line 1439 "configure"
1439 #include "confdefs.h"
1441 /* Thanks to Mike Haertel and Jim Avera for this test.
1442 Here is a matrix of mmap possibilities:
1443 mmap private not fixed
1444 mmap private fixed at somewhere currently unmapped
1445 mmap private fixed at somewhere already mapped
1446 mmap shared not fixed
1447 mmap shared fixed at somewhere currently unmapped
1448 mmap shared fixed at somewhere already mapped
1449 For private mappings, we should verify that changes cannot be read()
1450 back from the file, nor mmap's back from the file at a different
1451 address. (There have been systems where private was not correctly
1452 implemented like the infamous i386 svr4.0, and systems where the
1453 VM page cache was not coherent with the filesystem buffer cache
1454 like early versions of FreeBSD and possibly contemporary NetBSD.)
1455 For shared mappings, we should conversely verify that changes get
1456 propogated back to all the places they're supposed to be.
1458 Grep wants private fixed already mapped.
1459 The main things grep needs to know about mmap are:
1460 * does it exist and is it safe to write into the mmap'd area
1461 * how to use it (BSD variants) */
1462 #include <sys/types.h>
1464 #include <sys/mman.h>
1466 /* This mess was copied from the GNU getpagesize.h. */
1467 #ifndef HAVE_GETPAGESIZE
1468 # ifdef HAVE_UNISTD_H
1469 # include <unistd.h>
1472 /* Assume that all systems that can run configure have sys/param.h. */
1473 # ifndef HAVE_SYS_PARAM_H
1474 # define HAVE_SYS_PARAM_H 1
1477 # ifdef _SC_PAGESIZE
1478 # define getpagesize() sysconf(_SC_PAGESIZE)
1479 # else /* no _SC_PAGESIZE */
1480 # ifdef HAVE_SYS_PARAM_H
1481 # include <sys/param.h>
1482 # ifdef EXEC_PAGESIZE
1483 # define getpagesize() EXEC_PAGESIZE
1484 # else /* no EXEC_PAGESIZE */
1486 # define getpagesize() NBPG * CLSIZE
1489 # endif /* no CLSIZE */
1490 # else /* no NBPG */
1492 # define getpagesize() NBPC
1493 # else /* no NBPC */
1495 # define getpagesize() PAGESIZE
1496 # endif /* PAGESIZE */
1497 # endif /* no NBPC */
1498 # endif /* no NBPG */
1499 # endif /* no EXEC_PAGESIZE */
1500 # else /* no HAVE_SYS_PARAM_H */
1501 # define getpagesize() 8192 /* punt totally */
1502 # endif /* no HAVE_SYS_PARAM_H */
1503 # endif /* no _SC_PAGESIZE */
1505 #endif /* no HAVE_GETPAGESIZE */
1508 extern "C" { void *malloc(unsigned); }
1516 char *data, *data2, *data3;
1520 pagesize = getpagesize();
1523 * First, make a file with some known garbage in it.
1525 data = malloc(pagesize);
1528 for (i = 0; i < pagesize; ++i)
1529 *(data + i) = rand();
1531 fd = creat("conftestmmap", 0600);
1534 if (write(fd, data, pagesize) != pagesize)
1539 * Next, try to mmap the file at a fixed address which
1540 * already has something else allocated at it. If we can,
1541 * also make sure that we see the same garbage.
1543 fd = open("conftestmmap", O_RDWR);
1546 data2 = malloc(2 * pagesize);
1549 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1550 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1551 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1553 for (i = 0; i < pagesize; ++i)
1554 if (*(data + i) != *(data2 + i))
1558 * Finally, make sure that changes to the mapped area
1559 * do not percolate back to the file as seen by read().
1560 * (This is a bug on some variants of i386 svr4.0.)
1562 for (i = 0; i < pagesize; ++i)
1563 *(data2 + i) = *(data2 + i) + 1;
1564 data3 = malloc(pagesize);
1567 if (read(fd, data3, pagesize) != pagesize)
1569 for (i = 0; i < pagesize; ++i)
1570 if (*(data + i) != *(data3 + i))
1573 unlink("conftestmmap");
1578 if { (eval echo configure
:1579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1580 ac_cv_func_mmap_fixed_mapped
=yes
1582 echo "configure: failed program was:" >&5
1583 cat conftest.
$ac_ext >&5
1585 ac_cv_func_mmap_fixed_mapped
=no
1592 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1593 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1594 cat >> confdefs.h
<<\EOF
1600 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1601 echo "configure:1602: checking for Cygwin environment" >&5
1602 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1603 echo $ac_n "(cached) $ac_c" 1>&6
1605 cat > conftest.
$ac_ext <<EOF
1606 #line 1607 "configure"
1607 #include "confdefs.h"
1612 #define __CYGWIN__ __CYGWIN32__
1617 if { (eval echo configure
:1618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1621 echo "configure: failed program was:" >&5
1622 cat conftest.
$ac_ext >&5
1630 echo "$ac_t""$ac_cv_cygwin" 1>&6
1632 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
1633 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1634 echo "configure:1635: checking for mingw32 environment" >&5
1635 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1636 echo $ac_n "(cached) $ac_c" 1>&6
1638 cat > conftest.
$ac_ext <<EOF
1639 #line 1640 "configure"
1640 #include "confdefs.h"
1646 if { (eval echo configure
:1647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1650 echo "configure: failed program was:" >&5
1651 cat conftest.
$ac_ext >&5
1659 echo "$ac_t""$ac_cv_mingw32" 1>&6
1661 test "$ac_cv_mingw32" = yes && MINGW32
=yes
1663 # autoconf.info says this should be called right after AC_INIT.
1667 for ac_dir
in `cd $srcdir;pwd`/..
/..
$srcdir/`cd $srcdir;pwd`/..
/..
; do
1668 if test -f $ac_dir/install-sh
; then
1670 ac_install_sh
="$ac_aux_dir/install-sh -c"
1672 elif test -f $ac_dir/install.sh
; then
1674 ac_install_sh
="$ac_aux_dir/install.sh -c"
1678 if test -z "$ac_aux_dir"; then
1679 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
1681 ac_config_guess
=$ac_aux_dir/config.guess
1682 ac_config_sub
=$ac_aux_dir/config.sub
1683 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1686 # Do some error checking and defaulting for the host and target type.
1688 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1691 # 1. You are not allowed to specify --host, --target, and nonopt at the
1693 # 2. Host defaults to nonopt.
1694 # 3. If nonopt is not specified, then host defaults to the current host,
1695 # as determined by config.guess.
1696 # 4. Target and build default to nonopt.
1697 # 5. If nonopt is not specified, then target and build default to host.
1699 # The aliases save the names the user supplied, while $host etc.
1700 # will get canonicalized.
1701 case $host---$target---$nonopt in
1702 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1703 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1707 # Make sure we can run config.sub.
1708 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1709 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1712 echo $ac_n "checking host system type""... $ac_c" 1>&6
1713 echo "configure:1714: checking host system type" >&5
1716 case "$host_alias" in
1720 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1721 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1723 *) host_alias
=$nonopt ;;
1727 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1728 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1729 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1730 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1731 echo "$ac_t""$host" 1>&6
1733 echo $ac_n "checking target system type""... $ac_c" 1>&6
1734 echo "configure:1735: checking target system type" >&5
1736 target_alias
=$target
1737 case "$target_alias" in
1740 NONE
) target_alias
=$host_alias ;;
1741 *) target_alias
=$nonopt ;;
1745 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1746 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1747 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1748 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1749 echo "$ac_t""$target" 1>&6
1751 echo $ac_n "checking build system type""... $ac_c" 1>&6
1752 echo "configure:1753: checking build system type" >&5
1755 case "$build_alias" in
1758 NONE
) build_alias
=$host_alias ;;
1759 *) build_alias
=$nonopt ;;
1763 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1764 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1765 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1766 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1767 echo "$ac_t""$build" 1>&6
1769 test "$host_alias" != "$target_alias" &&
1770 test "$program_prefix$program_suffix$program_transform_name" = \
1772 program_prefix
=${target_alias}-
1774 if test "$program_transform_name" = s
,x
,x
,; then
1775 program_transform_name
=
1777 # Double any \ or $. echo might interpret backslashes.
1778 cat <<\EOF_SED
> conftestsed
1779 s
,\\,\\\\,g
; s
,\$
,$$
,g
1781 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1784 test "$program_prefix" != NONE
&&
1785 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1786 # Use a double $ so make ignores it.
1787 test "$program_suffix" != NONE
&&
1788 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1790 # sed with no file args requires a program.
1791 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1793 # Extract the first word of "gcc", so it can be a program name with args.
1794 set dummy gcc
; ac_word
=$2
1795 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1796 echo "configure:1797: checking for $ac_word" >&5
1797 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1798 echo $ac_n "(cached) $ac_c" 1>&6
1800 if test -n "$CC"; then
1801 ac_cv_prog_CC
="$CC" # Let the user override the test.
1803 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1805 for ac_dir
in $ac_dummy; do
1806 test -z "$ac_dir" && ac_dir
=.
1807 if test -f $ac_dir/$ac_word; then
1816 if test -n "$CC"; then
1817 echo "$ac_t""$CC" 1>&6
1819 echo "$ac_t""no" 1>&6
1822 if test -z "$CC"; then
1823 # Extract the first word of "cc", so it can be a program name with args.
1824 set dummy cc
; ac_word
=$2
1825 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1826 echo "configure:1827: checking for $ac_word" >&5
1827 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1828 echo $ac_n "(cached) $ac_c" 1>&6
1830 if test -n "$CC"; then
1831 ac_cv_prog_CC
="$CC" # Let the user override the test.
1833 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1836 for ac_dir
in $ac_dummy; do
1837 test -z "$ac_dir" && ac_dir
=.
1838 if test -f $ac_dir/$ac_word; then
1839 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1840 ac_prog_rejected
=yes
1848 if test $ac_prog_rejected = yes; then
1849 # We found a bogon in the path, so make sure we never use it.
1850 set dummy
$ac_cv_prog_CC
1852 if test $# -gt 0; then
1853 # We chose a different compiler from the bogus one.
1854 # However, it has the same basename, so the bogon will be chosen
1855 # first if we set CC to just the basename; use the full file name.
1857 set dummy
"$ac_dir/$ac_word" "$@"
1865 if test -n "$CC"; then
1866 echo "$ac_t""$CC" 1>&6
1868 echo "$ac_t""no" 1>&6
1871 if test -z "$CC"; then
1872 case "`uname -s`" in
1874 # Extract the first word of "cl", so it can be a program name with args.
1875 set dummy cl
; ac_word
=$2
1876 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1877 echo "configure:1878: checking for $ac_word" >&5
1878 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1879 echo $ac_n "(cached) $ac_c" 1>&6
1881 if test -n "$CC"; then
1882 ac_cv_prog_CC
="$CC" # Let the user override the test.
1884 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1886 for ac_dir
in $ac_dummy; do
1887 test -z "$ac_dir" && ac_dir
=.
1888 if test -f $ac_dir/$ac_word; then
1897 if test -n "$CC"; then
1898 echo "$ac_t""$CC" 1>&6
1900 echo "$ac_t""no" 1>&6
1905 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1908 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1909 echo "configure:1910: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1912 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1913 ac_cpp
='$CPP $CPPFLAGS'
1914 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1915 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1916 cross_compiling
=$ac_cv_prog_cc_cross
1918 cat > conftest.
$ac_ext << EOF
1920 #line 1921 "configure"
1921 #include "confdefs.h"
1925 if { (eval echo configure
:1926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1926 ac_cv_prog_cc_works
=yes
1927 # If we can't run a trivial program, we are probably using a cross compiler.
1928 if (.
/conftest
; exit) 2>/dev
/null
; then
1929 ac_cv_prog_cc_cross
=no
1931 ac_cv_prog_cc_cross
=yes
1934 echo "configure: failed program was:" >&5
1935 cat conftest.
$ac_ext >&5
1936 ac_cv_prog_cc_works
=no
1940 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1941 ac_cpp
='$CPP $CPPFLAGS'
1942 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1943 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1944 cross_compiling
=$ac_cv_prog_cc_cross
1946 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1947 if test $ac_cv_prog_cc_works = no
; then
1948 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1950 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1951 echo "configure:1952: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1952 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1953 cross_compiling
=$ac_cv_prog_cc_cross
1955 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1956 echo "configure:1957: checking whether we are using GNU C" >&5
1957 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1958 echo $ac_n "(cached) $ac_c" 1>&6
1960 cat > conftest.c
<<EOF
1965 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1972 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1974 if test $ac_cv_prog_gcc = yes; then
1980 ac_test_CFLAGS
="${CFLAGS+set}"
1981 ac_save_CFLAGS
="$CFLAGS"
1983 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1984 echo "configure:1985: checking whether ${CC-cc} accepts -g" >&5
1985 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1986 echo $ac_n "(cached) $ac_c" 1>&6
1988 echo 'void f(){}' > conftest.c
1989 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1998 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1999 if test "$ac_test_CFLAGS" = set; then
2000 CFLAGS
="$ac_save_CFLAGS"
2001 elif test $ac_cv_prog_cc_g = yes; then
2002 if test "$GCC" = yes; then
2008 if test "$GCC" = yes; then
2015 # Find a good install program. We prefer a C program (faster),
2016 # so one script is as good as another. But avoid the broken or
2017 # incompatible versions:
2018 # SysV /etc/install, /usr/sbin/install
2019 # SunOS /usr/etc/install
2020 # IRIX /sbin/install
2022 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2023 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2024 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2025 # ./install, which can be erroneously created by make from ./install.sh.
2026 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2027 echo "configure:2028: checking for a BSD compatible install" >&5
2028 if test -z "$INSTALL"; then
2029 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2030 echo $ac_n "(cached) $ac_c" 1>&6
2032 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2033 for ac_dir
in $PATH; do
2034 # Account for people who put trailing slashes in PATH elements.
2036 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2038 # OSF1 and SCO ODT 3.0 have their own names for install.
2039 # Don't use installbsd from OSF since it installs stuff as root
2041 for ac_prog
in ginstall scoinst
install; do
2042 if test -f $ac_dir/$ac_prog; then
2043 if test $ac_prog = install &&
2044 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2045 # AIX install. It has an incompatible calling convention.
2048 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2059 if test "${ac_cv_path_install+set}" = set; then
2060 INSTALL
="$ac_cv_path_install"
2062 # As a last resort, use the slow shell script. We don't cache a
2063 # path for INSTALL within a source directory, because that will
2064 # break other packages using the cache if that directory is
2065 # removed, or if the path is relative.
2066 INSTALL
="$ac_install_sh"
2069 echo "$ac_t""$INSTALL" 1>&6
2071 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2072 # It thinks the first close brace ends the variable substitution.
2073 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2075 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2077 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2080 # Put a plausible default for CC_FOR_BUILD in Makefile.
2081 if test "x$cross_compiling" = "xno"; then
2082 CC_FOR_BUILD
='$(CC)'
2092 # Extract the first word of "ranlib", so it can be a program name with args.
2093 set dummy ranlib
; ac_word
=$2
2094 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2095 echo "configure:2096: checking for $ac_word" >&5
2096 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2097 echo $ac_n "(cached) $ac_c" 1>&6
2099 if test -n "$RANLIB"; then
2100 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2102 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2104 for ac_dir
in $ac_dummy; do
2105 test -z "$ac_dir" && ac_dir
=.
2106 if test -f $ac_dir/$ac_word; then
2107 ac_cv_prog_RANLIB
="ranlib"
2112 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2115 RANLIB
="$ac_cv_prog_RANLIB"
2116 if test -n "$RANLIB"; then
2117 echo "$ac_t""$RANLIB" 1>&6
2119 echo "$ac_t""no" 1>&6
2125 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2126 unistd.h values.h sys
/param.h
2128 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2129 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2130 echo "configure:2131: checking for $ac_hdr" >&5
2131 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2132 echo $ac_n "(cached) $ac_c" 1>&6
2134 cat > conftest.
$ac_ext <<EOF
2135 #line 2136 "configure"
2136 #include "confdefs.h"
2139 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2140 { (eval echo configure
:2141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2141 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2142 if test -z "$ac_err"; then
2144 eval "ac_cv_header_$ac_safe=yes"
2147 echo "configure: failed program was:" >&5
2148 cat conftest.
$ac_ext >&5
2150 eval "ac_cv_header_$ac_safe=no"
2154 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2155 echo "$ac_t""yes" 1>&6
2156 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2157 cat >> confdefs.h
<<EOF
2158 #define $ac_tr_hdr 1
2162 echo "$ac_t""no" 1>&6
2166 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2167 __argz_count __argz_stringify __argz_next
2169 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2170 echo "configure:2171: checking for $ac_func" >&5
2171 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2172 echo $ac_n "(cached) $ac_c" 1>&6
2174 cat > conftest.
$ac_ext <<EOF
2175 #line 2176 "configure"
2176 #include "confdefs.h"
2177 /* System header to define __stub macros and hopefully few prototypes,
2178 which can conflict with char $ac_func(); below. */
2180 /* Override any gcc2 internal prototype to avoid an error. */
2181 /* We use char because int might match the return type of a gcc2
2182 builtin and then its argument prototype would still apply. */
2187 /* The GNU C library defines this for functions which it implements
2188 to always fail with ENOSYS. Some functions are actually named
2189 something starting with __ and the normal name is an alias. */
2190 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2198 if { (eval echo configure
:2199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2200 eval "ac_cv_func_$ac_func=yes"
2202 echo "configure: failed program was:" >&5
2203 cat conftest.
$ac_ext >&5
2205 eval "ac_cv_func_$ac_func=no"
2210 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2211 echo "$ac_t""yes" 1>&6
2212 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2213 cat >> confdefs.h
<<EOF
2214 #define $ac_tr_func 1
2218 echo "$ac_t""no" 1>&6
2223 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2224 for ac_func
in stpcpy
2226 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2227 echo "configure:2228: checking for $ac_func" >&5
2228 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2229 echo $ac_n "(cached) $ac_c" 1>&6
2231 cat > conftest.
$ac_ext <<EOF
2232 #line 2233 "configure"
2233 #include "confdefs.h"
2234 /* System header to define __stub macros and hopefully few prototypes,
2235 which can conflict with char $ac_func(); below. */
2237 /* Override any gcc2 internal prototype to avoid an error. */
2238 /* We use char because int might match the return type of a gcc2
2239 builtin and then its argument prototype would still apply. */
2244 /* The GNU C library defines this for functions which it implements
2245 to always fail with ENOSYS. Some functions are actually named
2246 something starting with __ and the normal name is an alias. */
2247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2255 if { (eval echo configure
:2256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2257 eval "ac_cv_func_$ac_func=yes"
2259 echo "configure: failed program was:" >&5
2260 cat conftest.
$ac_ext >&5
2262 eval "ac_cv_func_$ac_func=no"
2267 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2268 echo "$ac_t""yes" 1>&6
2269 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2270 cat >> confdefs.h
<<EOF
2271 #define $ac_tr_func 1
2275 echo "$ac_t""no" 1>&6
2280 if test "${ac_cv_func_stpcpy}" = "yes"; then
2281 cat >> confdefs.h
<<\EOF
2282 #define HAVE_STPCPY 1
2287 if test $ac_cv_header_locale_h = yes; then
2288 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2289 echo "configure:2290: checking for LC_MESSAGES" >&5
2290 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2291 echo $ac_n "(cached) $ac_c" 1>&6
2293 cat > conftest.
$ac_ext <<EOF
2294 #line 2295 "configure"
2295 #include "confdefs.h"
2301 if { (eval echo configure
:2302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2303 am_cv_val_LC_MESSAGES
=yes
2305 echo "configure: failed program was:" >&5
2306 cat conftest.
$ac_ext >&5
2308 am_cv_val_LC_MESSAGES
=no
2313 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2314 if test $am_cv_val_LC_MESSAGES = yes; then
2315 cat >> confdefs.h
<<\EOF
2316 #define HAVE_LC_MESSAGES 1
2321 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2322 echo "configure:2323: checking whether NLS is requested" >&5
2323 # Check whether --enable-nls or --disable-nls was given.
2324 if test "${enable_nls+set}" = set; then
2325 enableval
="$enable_nls"
2331 echo "$ac_t""$USE_NLS" 1>&6
2334 USE_INCLUDED_LIBINTL
=no
2336 if test "$USE_NLS" = "yes"; then
2337 cat >> confdefs.h
<<\EOF
2338 #define ENABLE_NLS 1
2341 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2342 echo "configure:2343: checking whether included gettext is requested" >&5
2343 # Check whether --with-included-gettext or --without-included-gettext was given.
2344 if test "${with_included_gettext+set}" = set; then
2345 withval
="$with_included_gettext"
2346 nls_cv_force_use_gnu_gettext
=$withval
2348 nls_cv_force_use_gnu_gettext
=no
2351 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2353 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2354 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2356 nls_cv_header_libgt
=
2359 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2360 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2361 echo "configure:2362: checking for libintl.h" >&5
2362 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2363 echo $ac_n "(cached) $ac_c" 1>&6
2365 cat > conftest.
$ac_ext <<EOF
2366 #line 2367 "configure"
2367 #include "confdefs.h"
2368 #include <libintl.h>
2370 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2371 { (eval echo configure
:2372: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2372 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2373 if test -z "$ac_err"; then
2375 eval "ac_cv_header_$ac_safe=yes"
2378 echo "configure: failed program was:" >&5
2379 cat conftest.
$ac_ext >&5
2381 eval "ac_cv_header_$ac_safe=no"
2385 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2386 echo "$ac_t""yes" 1>&6
2387 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2388 echo "configure:2389: checking for gettext in libc" >&5
2389 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2390 echo $ac_n "(cached) $ac_c" 1>&6
2392 cat > conftest.
$ac_ext <<EOF
2393 #line 2394 "configure"
2394 #include "confdefs.h"
2395 #include <libintl.h>
2397 return (int) gettext ("")
2400 if { (eval echo configure
:2401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2402 gt_cv_func_gettext_libc
=yes
2404 echo "configure: failed program was:" >&5
2405 cat conftest.
$ac_ext >&5
2407 gt_cv_func_gettext_libc
=no
2412 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2414 if test "$gt_cv_func_gettext_libc" != "yes"; then
2415 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2416 echo "configure:2417: checking for bindtextdomain in -lintl" >&5
2417 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2418 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2419 echo $ac_n "(cached) $ac_c" 1>&6
2421 ac_save_LIBS
="$LIBS"
2423 cat > conftest.
$ac_ext <<EOF
2424 #line 2425 "configure"
2425 #include "confdefs.h"
2426 /* Override any gcc2 internal prototype to avoid an error. */
2427 /* We use char because int might match the return type of a gcc2
2428 builtin and then its argument prototype would still apply. */
2429 char bindtextdomain();
2435 if { (eval echo configure
:2436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2437 eval "ac_cv_lib_$ac_lib_var=yes"
2439 echo "configure: failed program was:" >&5
2440 cat conftest.
$ac_ext >&5
2442 eval "ac_cv_lib_$ac_lib_var=no"
2445 LIBS
="$ac_save_LIBS"
2448 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2449 echo "$ac_t""yes" 1>&6
2450 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2451 echo "configure:2452: checking for gettext in libintl" >&5
2452 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2453 echo $ac_n "(cached) $ac_c" 1>&6
2455 cat > conftest.
$ac_ext <<EOF
2456 #line 2457 "configure"
2457 #include "confdefs.h"
2460 return (int) gettext ("")
2463 if { (eval echo configure
:2464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2465 gt_cv_func_gettext_libintl
=yes
2467 echo "configure: failed program was:" >&5
2468 cat conftest.
$ac_ext >&5
2470 gt_cv_func_gettext_libintl
=no
2475 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2477 echo "$ac_t""no" 1>&6
2482 if test "$gt_cv_func_gettext_libc" = "yes" \
2483 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2484 cat >> confdefs.h
<<\EOF
2485 #define HAVE_GETTEXT 1
2488 # Extract the first word of "msgfmt", so it can be a program name with args.
2489 set dummy msgfmt
; ac_word
=$2
2490 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2491 echo "configure:2492: checking for $ac_word" >&5
2492 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2493 echo $ac_n "(cached) $ac_c" 1>&6
2497 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2500 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2501 for ac_dir
in $PATH; do
2502 test -z "$ac_dir" && ac_dir
=.
2503 if test -f $ac_dir/$ac_word; then
2504 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2505 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2511 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2515 MSGFMT
="$ac_cv_path_MSGFMT"
2516 if test -n "$MSGFMT"; then
2517 echo "$ac_t""$MSGFMT" 1>&6
2519 echo "$ac_t""no" 1>&6
2521 if test "$MSGFMT" != "no"; then
2522 for ac_func
in dcgettext
2524 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2525 echo "configure:2526: checking for $ac_func" >&5
2526 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+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 /* System header to define __stub macros and hopefully few prototypes,
2533 which can conflict with char $ac_func(); below. */
2535 /* Override any gcc2 internal prototype to avoid an error. */
2536 /* We use char because int might match the return type of a gcc2
2537 builtin and then its argument prototype would still apply. */
2542 /* The GNU C library defines this for functions which it implements
2543 to always fail with ENOSYS. Some functions are actually named
2544 something starting with __ and the normal name is an alias. */
2545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2553 if { (eval echo configure
:2554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2555 eval "ac_cv_func_$ac_func=yes"
2557 echo "configure: failed program was:" >&5
2558 cat conftest.
$ac_ext >&5
2560 eval "ac_cv_func_$ac_func=no"
2565 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2566 echo "$ac_t""yes" 1>&6
2567 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2568 cat >> confdefs.h
<<EOF
2569 #define $ac_tr_func 1
2573 echo "$ac_t""no" 1>&6
2577 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2578 set dummy gmsgfmt
; ac_word
=$2
2579 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2580 echo "configure:2581: checking for $ac_word" >&5
2581 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2582 echo $ac_n "(cached) $ac_c" 1>&6
2586 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2589 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2592 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2594 for ac_dir
in $ac_dummy; do
2595 test -z "$ac_dir" && ac_dir
=.
2596 if test -f $ac_dir/$ac_word; then
2597 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2602 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2606 GMSGFMT
="$ac_cv_path_GMSGFMT"
2607 if test -n "$GMSGFMT"; then
2608 echo "$ac_t""$GMSGFMT" 1>&6
2610 echo "$ac_t""no" 1>&6
2613 # Extract the first word of "xgettext", so it can be a program name with args.
2614 set dummy xgettext
; ac_word
=$2
2615 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2616 echo "configure:2617: checking for $ac_word" >&5
2617 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2618 echo $ac_n "(cached) $ac_c" 1>&6
2622 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2625 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2626 for ac_dir
in $PATH; do
2627 test -z "$ac_dir" && ac_dir
=.
2628 if test -f $ac_dir/$ac_word; then
2629 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2630 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2636 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2640 XGETTEXT
="$ac_cv_path_XGETTEXT"
2641 if test -n "$XGETTEXT"; then
2642 echo "$ac_t""$XGETTEXT" 1>&6
2644 echo "$ac_t""no" 1>&6
2647 cat > conftest.
$ac_ext <<EOF
2648 #line 2649 "configure"
2649 #include "confdefs.h"
2652 extern int _nl_msg_cat_cntr;
2653 return _nl_msg_cat_cntr
2656 if { (eval echo configure
:2657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2661 echo "configure: failed program was:" >&5
2662 cat conftest.
$ac_ext >&5
2673 echo "$ac_t""no" 1>&6
2678 if test "$CATOBJEXT" = "NONE"; then
2679 nls_cv_use_gnu_gettext
=yes
2683 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2684 INTLOBJS
="\$(GETTOBJS)"
2685 # Extract the first word of "msgfmt", so it can be a program name with args.
2686 set dummy msgfmt
; ac_word
=$2
2687 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2688 echo "configure:2689: checking for $ac_word" >&5
2689 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2690 echo $ac_n "(cached) $ac_c" 1>&6
2694 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2697 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2698 for ac_dir
in $PATH; do
2699 test -z "$ac_dir" && ac_dir
=.
2700 if test -f $ac_dir/$ac_word; then
2701 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2702 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2708 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2712 MSGFMT
="$ac_cv_path_MSGFMT"
2713 if test -n "$MSGFMT"; then
2714 echo "$ac_t""$MSGFMT" 1>&6
2716 echo "$ac_t""no" 1>&6
2719 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2720 set dummy gmsgfmt
; ac_word
=$2
2721 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2722 echo "configure:2723: checking for $ac_word" >&5
2723 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2724 echo $ac_n "(cached) $ac_c" 1>&6
2728 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2731 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2734 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2736 for ac_dir
in $ac_dummy; do
2737 test -z "$ac_dir" && ac_dir
=.
2738 if test -f $ac_dir/$ac_word; then
2739 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2744 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2748 GMSGFMT
="$ac_cv_path_GMSGFMT"
2749 if test -n "$GMSGFMT"; then
2750 echo "$ac_t""$GMSGFMT" 1>&6
2752 echo "$ac_t""no" 1>&6
2755 # Extract the first word of "xgettext", so it can be a program name with args.
2756 set dummy xgettext
; ac_word
=$2
2757 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2758 echo "configure:2759: checking for $ac_word" >&5
2759 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2760 echo $ac_n "(cached) $ac_c" 1>&6
2764 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2767 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2768 for ac_dir
in $PATH; do
2769 test -z "$ac_dir" && ac_dir
=.
2770 if test -f $ac_dir/$ac_word; then
2771 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2772 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2778 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2782 XGETTEXT
="$ac_cv_path_XGETTEXT"
2783 if test -n "$XGETTEXT"; then
2784 echo "$ac_t""$XGETTEXT" 1>&6
2786 echo "$ac_t""no" 1>&6
2790 USE_INCLUDED_LIBINTL
=yes
2794 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2796 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2797 nls_cv_header_intl
=libintl.h
2798 nls_cv_header_libgt
=libgettext.h
2801 if test "$XGETTEXT" != ":"; then
2802 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2805 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2810 # We need to process the po/ directory.
2814 nls_cv_header_intl
=libintl.h
2815 nls_cv_header_libgt
=libgettext.h
2818 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2819 # because some of the sources are only built for this goal.
2820 if test "$PACKAGE" = gettext; then
2822 USE_INCLUDED_LIBINTL
=yes
2825 for lang
in $ALL_LINGUAS; do
2826 GMOFILES
="$GMOFILES $lang.gmo"
2827 POFILES
="$POFILES $lang.po"
2843 if test "x$CATOBJEXT" != "x"; then
2844 if test "x$ALL_LINGUAS" = "x"; then
2847 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2848 echo "configure:2849: checking for catalogs to be installed" >&5
2850 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2851 case "$ALL_LINGUAS" in
2852 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2855 LINGUAS
=$NEW_LINGUAS
2856 echo "$ac_t""$LINGUAS" 1>&6
2859 if test -n "$LINGUAS"; then
2860 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2864 if test $ac_cv_header_locale_h = yes; then
2865 INCLUDE_LOCALE_H
="#include <locale.h>"
2868 /* The system does not provide the header <locale.h>. Take care yourself. */"
2872 if test -f $srcdir/po2tbl.
sed.
in; then
2873 if test "$CATOBJEXT" = ".cat"; then
2874 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2875 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2876 echo "configure:2877: checking for linux/version.h" >&5
2877 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2878 echo $ac_n "(cached) $ac_c" 1>&6
2880 cat > conftest.
$ac_ext <<EOF
2881 #line 2882 "configure"
2882 #include "confdefs.h"
2883 #include <linux/version.h>
2885 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2886 { (eval echo configure
:2887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2887 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2888 if test -z "$ac_err"; then
2890 eval "ac_cv_header_$ac_safe=yes"
2893 echo "configure: failed program was:" >&5
2894 cat conftest.
$ac_ext >&5
2896 eval "ac_cv_header_$ac_safe=no"
2900 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2901 echo "$ac_t""yes" 1>&6
2904 echo "$ac_t""no" 1>&6
2909 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2911 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2912 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2915 if test "$PACKAGE" = "gettext"; then
2925 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2931 if test -d $srcdir/po
; then
2932 test -d po || mkdir po
2933 if test "x$srcdir" != "x."; then
2934 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2935 posrcprefix
="$srcdir/"
2937 posrcprefix
="../$srcdir/"
2943 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2944 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2948 # Check for common headers.
2949 # FIXME: Seems to me this can cause problems for i386-windows hosts.
2950 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
2951 for ac_hdr
in stdlib.h string.h
strings.h unistd.h
time.h
2953 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2954 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2955 echo "configure:2956: checking for $ac_hdr" >&5
2956 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2957 echo $ac_n "(cached) $ac_c" 1>&6
2959 cat > conftest.
$ac_ext <<EOF
2960 #line 2961 "configure"
2961 #include "confdefs.h"
2964 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2965 { (eval echo configure
:2966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2966 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2967 if test -z "$ac_err"; then
2969 eval "ac_cv_header_$ac_safe=yes"
2972 echo "configure: failed program was:" >&5
2973 cat conftest.
$ac_ext >&5
2975 eval "ac_cv_header_$ac_safe=no"
2979 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2980 echo "$ac_t""yes" 1>&6
2981 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2982 cat >> confdefs.h
<<EOF
2983 #define $ac_tr_hdr 1
2987 echo "$ac_t""no" 1>&6
2991 for ac_hdr
in sys
/time.h sys
/resource.h
2993 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2994 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2995 echo "configure:2996: checking for $ac_hdr" >&5
2996 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2997 echo $ac_n "(cached) $ac_c" 1>&6
2999 cat > conftest.
$ac_ext <<EOF
3000 #line 3001 "configure"
3001 #include "confdefs.h"
3004 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3005 { (eval echo configure
:3006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3006 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3007 if test -z "$ac_err"; then
3009 eval "ac_cv_header_$ac_safe=yes"
3012 echo "configure: failed program was:" >&5
3013 cat conftest.
$ac_ext >&5
3015 eval "ac_cv_header_$ac_safe=no"
3019 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3020 echo "$ac_t""yes" 1>&6
3021 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3022 cat >> confdefs.h
<<EOF
3023 #define $ac_tr_hdr 1
3027 echo "$ac_t""no" 1>&6
3031 for ac_hdr
in fcntl.h fpu_control.h
3033 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3034 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3035 echo "configure:3036: checking for $ac_hdr" >&5
3036 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3037 echo $ac_n "(cached) $ac_c" 1>&6
3039 cat > conftest.
$ac_ext <<EOF
3040 #line 3041 "configure"
3041 #include "confdefs.h"
3044 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3045 { (eval echo configure
:3046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3046 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3047 if test -z "$ac_err"; then
3049 eval "ac_cv_header_$ac_safe=yes"
3052 echo "configure: failed program was:" >&5
3053 cat conftest.
$ac_ext >&5
3055 eval "ac_cv_header_$ac_safe=no"
3059 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3060 echo "$ac_t""yes" 1>&6
3061 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3062 cat >> confdefs.h
<<EOF
3063 #define $ac_tr_hdr 1
3067 echo "$ac_t""no" 1>&6
3071 for ac_hdr
in dlfcn.h errno.h sys
/stat.h
3073 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3074 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3075 echo "configure:3076: checking for $ac_hdr" >&5
3076 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3077 echo $ac_n "(cached) $ac_c" 1>&6
3079 cat > conftest.
$ac_ext <<EOF
3080 #line 3081 "configure"
3081 #include "confdefs.h"
3084 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3085 { (eval echo configure
:3086: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3086 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3087 if test -z "$ac_err"; then
3089 eval "ac_cv_header_$ac_safe=yes"
3092 echo "configure: failed program was:" >&5
3093 cat conftest.
$ac_ext >&5
3095 eval "ac_cv_header_$ac_safe=no"
3099 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3100 echo "$ac_t""yes" 1>&6
3101 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3102 cat >> confdefs.h
<<EOF
3103 #define $ac_tr_hdr 1
3107 echo "$ac_t""no" 1>&6
3111 for ac_func
in getrusage
time sigaction __setfpucw
3113 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3114 echo "configure:3115: checking for $ac_func" >&5
3115 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3116 echo $ac_n "(cached) $ac_c" 1>&6
3118 cat > conftest.
$ac_ext <<EOF
3119 #line 3120 "configure"
3120 #include "confdefs.h"
3121 /* System header to define __stub macros and hopefully few prototypes,
3122 which can conflict with char $ac_func(); below. */
3124 /* Override any gcc2 internal prototype to avoid an error. */
3125 /* We use char because int might match the return type of a gcc2
3126 builtin and then its argument prototype would still apply. */
3131 /* The GNU C library defines this for functions which it implements
3132 to always fail with ENOSYS. Some functions are actually named
3133 something starting with __ and the normal name is an alias. */
3134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3142 if { (eval echo configure
:3143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3144 eval "ac_cv_func_$ac_func=yes"
3146 echo "configure: failed program was:" >&5
3147 cat conftest.
$ac_ext >&5
3149 eval "ac_cv_func_$ac_func=no"
3154 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3155 echo "$ac_t""yes" 1>&6
3156 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3157 cat >> confdefs.h
<<EOF
3158 #define $ac_tr_func 1
3162 echo "$ac_t""no" 1>&6
3167 # Check for socket libraries
3168 echo $ac_n "checking for bind in -lsocket""... $ac_c" 1>&6
3169 echo "configure:3170: checking for bind in -lsocket" >&5
3170 ac_lib_var
=`echo socket'_'bind | sed 'y%./+-%__p_%'`
3171 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3172 echo $ac_n "(cached) $ac_c" 1>&6
3174 ac_save_LIBS
="$LIBS"
3175 LIBS
="-lsocket $LIBS"
3176 cat > conftest.
$ac_ext <<EOF
3177 #line 3178 "configure"
3178 #include "confdefs.h"
3179 /* Override any gcc2 internal prototype to avoid an error. */
3180 /* We use char because int might match the return type of a gcc2
3181 builtin and then its argument prototype would still apply. */
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_lib_$ac_lib_var=yes"
3192 echo "configure: failed program was:" >&5
3193 cat conftest.
$ac_ext >&5
3195 eval "ac_cv_lib_$ac_lib_var=no"
3198 LIBS
="$ac_save_LIBS"
3201 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3202 echo "$ac_t""yes" 1>&6
3203 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3204 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3205 cat >> confdefs.h
<<EOF
3206 #define $ac_tr_lib 1
3209 LIBS
="-lsocket $LIBS"
3212 echo "$ac_t""no" 1>&6
3215 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3216 echo "configure:3217: checking for gethostbyname in -lnsl" >&5
3217 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3218 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3219 echo $ac_n "(cached) $ac_c" 1>&6
3221 ac_save_LIBS
="$LIBS"
3223 cat > conftest.
$ac_ext <<EOF
3224 #line 3225 "configure"
3225 #include "confdefs.h"
3226 /* Override any gcc2 internal prototype to avoid an error. */
3227 /* We use char because int might match the return type of a gcc2
3228 builtin and then its argument prototype would still apply. */
3229 char gethostbyname();
3235 if { (eval echo configure
:3236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3237 eval "ac_cv_lib_$ac_lib_var=yes"
3239 echo "configure: failed program was:" >&5
3240 cat conftest.
$ac_ext >&5
3242 eval "ac_cv_lib_$ac_lib_var=no"
3245 LIBS
="$ac_save_LIBS"
3248 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3249 echo "$ac_t""yes" 1>&6
3250 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3251 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3252 cat >> confdefs.h
<<EOF
3253 #define $ac_tr_lib 1
3259 echo "$ac_t""no" 1>&6
3263 .
${srcdir}/..
/..
/bfd
/configure.
host
3267 USE_MAINTAINER_MODE
=no
3268 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3269 if test "${enable_maintainer_mode+set}" = set; then
3270 enableval
="$enable_maintainer_mode"
3271 case "${enableval}" in
3272 yes) MAINT
="" USE_MAINTAINER_MODE
=yes ;;
3274 *) { echo "configure: error: "--enable-maintainer-mode does not take a value
"" 1>&2; exit 1; }; MAINT
="#" ;;
3276 if test x
"$silent" != x
"yes" && test x
"$MAINT" = x
""; then
3277 echo "Setting maintainer mode" 6>&1
3285 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
3286 if test "${enable_sim_bswap+set}" = set; then
3287 enableval
="$enable_sim_bswap"
3288 case "${enableval}" in
3289 yes) sim_bswap
="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
3290 no
) sim_bswap
="-DWITH_BSWAP=0";;
3291 *) { echo "configure: error: "--enable-sim-bswap does not take a value
"" 1>&2; exit 1; }; sim_bswap
="";;
3293 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
3294 echo "Setting bswap flags = $sim_bswap" 6>&1
3302 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
3303 if test "${enable_sim_cflags+set}" = set; then
3304 enableval
="$enable_sim_cflags"
3305 case "${enableval}" in
3306 yes) sim_cflags
="-O2 -fomit-frame-pointer";;
3307 trace
) { echo "configure: error: "Please use
--enable-sim-debug instead.
"" 1>&2; exit 1; }; sim_cflags
="";;
3309 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3311 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
3312 echo "Setting sim cflags = $sim_cflags" 6>&1
3320 # Check whether --enable-sim-debug or --disable-sim-debug was given.
3321 if test "${enable_sim_debug+set}" = set; then
3322 enableval
="$enable_sim_debug"
3323 case "${enableval}" in
3324 yes) sim_debug
="-DDEBUG=7 -DWITH_DEBUG=7";;
3325 no
) sim_debug
="-DDEBUG=0 -DWITH_DEBUG=0";;
3326 *) sim_debug
="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
3328 if test x
"$silent" != x
"yes" && test x
"$sim_debug" != x
""; then
3329 echo "Setting sim debug = $sim_debug" 6>&1
3337 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
3338 if test "${enable_sim_stdio+set}" = set; then
3339 enableval
="$enable_sim_stdio"
3340 case "${enableval}" in
3341 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
3342 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
3343 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-stdio"" 1>&2; exit 1; }; sim_stdio
="";;
3345 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
3346 echo "Setting stdio flags = $sim_stdio" 6>&1
3354 # Check whether --enable-sim-trace or --disable-sim-trace was given.
3355 if test "${enable_sim_trace+set}" = set; then
3356 enableval
="$enable_sim_trace"
3357 case "${enableval}" in
3358 yes) sim_trace
="-DTRACE=1 -DWITH_TRACE=-1";;
3359 no
) sim_trace
="-DTRACE=0 -DWITH_TRACE=0";;
3361 sim_trace
="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
3364 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
3365 if test x
"$sim_trace" = x
; then
3366 sim_trace
="-DWITH_TRACE='(TRACE_$x"
3368 sim_trace
="${sim_trace}|TRACE_$x"
3371 sim_trace
="$sim_trace)'" ;;
3373 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
3374 echo "Setting sim trace = $sim_trace" 6>&1
3382 # Check whether --enable-sim-profile or --disable-sim-profile was given.
3383 if test "${enable_sim_profile+set}" = set; then
3384 enableval
="$enable_sim_profile"
3385 case "${enableval}" in
3386 yes) sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1";;
3387 no
) sim_profile
="-DPROFILE=0 -DWITH_PROFILE=0";;
3389 sim_profile
="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
3392 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
3393 if test x
"$sim_profile" = x
; then
3394 sim_profile
="-DWITH_PROFILE='(PROFILE_$x"
3396 sim_profile
="${sim_profile}|PROFILE_$x"
3399 sim_profile
="$sim_profile)'" ;;
3401 if test x
"$silent" != x
"yes" && test x
"$sim_profile" != x
""; then
3402 echo "Setting sim profile = $sim_profile" 6>&1
3405 sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1"
3410 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3411 echo "configure:3412: checking return type of signal handlers" >&5
3412 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3413 echo $ac_n "(cached) $ac_c" 1>&6
3415 cat > conftest.
$ac_ext <<EOF
3416 #line 3417 "configure"
3417 #include "confdefs.h"
3418 #include <sys/types.h>
3424 extern "C" void (*signal (int, void (*)(int)))(int);
3426 void (*signal ()) ();
3433 if { (eval echo configure
:3434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3435 ac_cv_type_signal
=void
3437 echo "configure: failed program was:" >&5
3438 cat conftest.
$ac_ext >&5
3440 ac_cv_type_signal
=int
3445 echo "$ac_t""$ac_cv_type_signal" 1>&6
3446 cat >> confdefs.h
<<EOF
3447 #define RETSIGTYPE $ac_cv_type_signal
3454 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3455 echo "configure:3456: checking for executable suffix" >&5
3456 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
3457 echo $ac_n "(cached) $ac_c" 1>&6
3459 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
3463 echo 'int main () { return 0; }' > conftest.
$ac_ext
3465 if { (eval echo configure
:3466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3466 for file in conftest.
*; do
3468 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
3469 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
3473 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3476 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
3481 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
3482 echo "$ac_t""${ac_cv_exeext}" 1>&6
3489 sim_link_links
=tconfig.h
3490 if test -f ${srcdir}/tconfig.
in
3492 sim_link_files
=tconfig.
in
3494 sim_link_files
=..
/common
/tconfig.
in
3497 # targ-vals.def points to the libc macro description file.
3499 *-*-*) TARG_VALS_DEF
=..
/common
/nltvals.def
;;
3501 sim_link_files
="${sim_link_files} ${TARG_VALS_DEF}"
3502 sim_link_links
="${sim_link_links} targ-vals.def"
3507 default_sim_inline
=""
3508 # Check whether --enable-sim-inline or --disable-sim-inline was given.
3509 if test "${enable_sim_inline+set}" = set; then
3510 enableval
="$enable_sim_inline"
3512 case "$enableval" in
3513 no
) sim_inline
="-DDEFAULT_INLINE=0";;
3514 0) sim_inline
="-DDEFAULT_INLINE=0";;
3515 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_C_INLINE";;
3516 1) sim_inline
="-DDEFAULT_INLINE=INLINE_LOCALS";;
3517 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
3520 *_INLINE
=*) new_flag
="-D$x";;
3521 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
3522 *_INLINE
) new_flag
="-D$x=ALL_C_INLINE";;
3523 *) new_flag
="-D$x""_INLINE=ALL_C_INLINE";;
3525 if test x
"$sim_inline" = x
""; then
3526 sim_inline
="$new_flag"
3528 sim_inline
="$sim_inline $new_flag"
3532 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
3533 echo "Setting inline flags = $sim_inline" 6>&1
3537 if test "x$cross_compiling" = "xno"; then
3538 if test x
"$GCC" != "x" -a x
"${default_sim_inline}" != "x" ; then
3539 sim_inline
="${default_sim_inline}"
3540 if test x
"$silent" != x
"yes"; then
3541 echo "Setting inline flags = $sim_inline" 6>&1
3547 sim_inline
="-DDEFAULT_INLINE=0"
3551 wire_alignment
="NONSTRICT_ALIGNMENT"
3552 default_alignment
=""
3554 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
3555 if test "${enable_sim_alignment+set}" = set; then
3556 enableval
="$enable_sim_alignment"
3557 case "${enableval}" in
3558 strict | STRICT
) sim_alignment
="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
3559 nonstrict | NONSTRICT
) sim_alignment
="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
3560 forced | FORCED
) sim_alignment
="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
3561 yes) if test x
"$wire_alignment" != x
; then
3562 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
3564 if test x
"$default_alignment" != x
; then
3565 sim_alignment
="-DWITH_ALIGNMENT=${default_alignment}"
3567 echo "No hard-wired alignment for target $target" 1>&6
3568 sim_alignment
="-DWITH_ALIGNMENT=0"
3571 no
) if test x
"$default_alignment" != x
; then
3572 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
3574 if test x
"$wire_alignment" != x
; then
3575 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
3577 echo "No default alignment for target $target" 1>&6
3578 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=0"
3581 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-alignment"" 1>&2; exit 1; }; sim_alignment
="";;
3583 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
3584 echo "Setting alignment flags = $sim_alignment" 6>&1
3587 if test x
"$default_alignment" != x
; then
3588 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
3590 if test x
"$wire_alignment" != x
; then
3591 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
3599 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
3600 if test "${enable_sim_hostendian+set}" = set; then
3601 enableval
="$enable_sim_hostendian"
3602 case "${enableval}" in
3603 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
3604 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
3605 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
3606 *) { echo "configure: error: "Unknown value
$enableval for --enable-sim-hostendian"" 1>&2; exit 1; }; sim_hostendian
="";;
3608 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
3609 echo "Setting hostendian flags = $sim_hostendian" 6>&1
3613 if test "x$cross_compiling" = "xno"; then
3614 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3615 echo "configure:3616: checking whether byte ordering is bigendian" >&5
3616 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3617 echo $ac_n "(cached) $ac_c" 1>&6
3619 ac_cv_c_bigendian
=unknown
3620 # See if sys/param.h defines the BYTE_ORDER macro.
3621 cat > conftest.
$ac_ext <<EOF
3622 #line 3623 "configure"
3623 #include "confdefs.h"
3624 #include <sys/types.h>
3625 #include <sys/param.h>
3628 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3633 if { (eval echo configure
:3634: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3635 # It does; now see whether it defined to BIG_ENDIAN or not.
3636 cat > conftest.
$ac_ext <<EOF
3637 #line 3638 "configure"
3638 #include "confdefs.h"
3639 #include <sys/types.h>
3640 #include <sys/param.h>
3643 #if BYTE_ORDER != BIG_ENDIAN
3648 if { (eval echo configure
:3649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3650 ac_cv_c_bigendian
=yes
3652 echo "configure: failed program was:" >&5
3653 cat conftest.
$ac_ext >&5
3655 ac_cv_c_bigendian
=no
3659 echo "configure: failed program was:" >&5
3660 cat conftest.
$ac_ext >&5
3663 if test $ac_cv_c_bigendian = unknown
; then
3664 if test "$cross_compiling" = yes; then
3665 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3667 cat > conftest.
$ac_ext <<EOF
3668 #line 3669 "configure"
3669 #include "confdefs.h"
3671 /* Are we little or big endian? From Harbison&Steele. */
3675 char c[sizeof (long)];
3678 exit (u.c[sizeof (long) - 1] == 1);
3681 if { (eval echo configure
:3682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3683 ac_cv_c_bigendian
=no
3685 echo "configure: failed program was:" >&5
3686 cat conftest.
$ac_ext >&5
3688 ac_cv_c_bigendian
=yes
3696 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3697 if test $ac_cv_c_bigendian = yes; then
3698 cat >> confdefs.h
<<\EOF
3699 #define WORDS_BIGENDIAN 1
3704 if test $ac_cv_c_bigendian = yes; then
3705 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
3707 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
3710 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
3715 # Check whether --enable-build-warnings or --disable-build-warnings was given.
3716 if test "${enable_build_warnings+set}" = set; then
3717 enableval
="$enable_build_warnings"
3718 build_warnings
="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations"
3719 case "${enableval}" in
3721 no
) build_warnings
="-w";;
3722 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
3723 build_warnings
="${build_warnings} ${t}";;
3724 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
3725 build_warnings
="${t} ${build_warnings}";;
3726 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3728 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
3729 echo "Setting warning flags = $build_warnings" 6>&1
3733 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
3735 # Separate out the -Werror flag as some files just cannot be
3736 # compiled with it enabled.
3737 for w
in ${build_warnings}; do
3739 -Werr*) WERROR_CFLAGS
=-Werror ;;
3740 *) WARN_CFLAGS
="${WARN_CFLAGS} $w"
3750 # Add simulated hardware devices
3754 m68hc11-
*-*|m6811-
*-*)
3756 hw_extra_devices
="m68hc11 m68hc11sio m68hc11eepr m68hc11tim m68hc11spi nvram"
3757 m68hc11_extra_objs
="dv-sockser.o"
3758 SIM_SUBTARGET
="$SIM_SUBTARGET -DTARGET_M68HC11=1"
3761 m68hc11_extra_objs
=""
3765 if test x
"$hw_enabled" = x
"yes"; then
3770 if test "$hw_devices"; then
3771 hardware
="core pal glue"
3773 hardware
="core pal glue $hw_extra_devices"
3775 sim_hw_cflags
="-DWITH_HW=1"
3777 sim_hw_objs
="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
3778 # Check whether --enable-sim-hardware or --disable-sim-hardware was given.
3779 if test "${enable_sim_hardware+set}" = set; then
3780 enableval
="$enable_sim_hardware"
3782 case "${enableval}" in
3785 ,*) sim_hw_p
=yes; hardware
="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
3786 *,) sim_hw_p
=yes; hardware
="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
3787 *) sim_hw_p
=yes; hardware
="`echo ${enableval} | sed -e 's/,/ /'`"'';;
3789 if test "$sim_hw_p" != yes; then
3791 sim_hw_cflags
="-DWITH_HW=0"
3794 sim_hw_cflags
="-DWITH_HW=1"
3797 sim_hw_objs
="\$(SIM_COMMON_HW_OBJS)"
3798 for i
in x
$hardware ; do
3802 *) sim_hw
="$sim_hw $i" ; sim_hw_objs
="$sim_hw_objs dv-$i.o";;
3806 if test x
"$silent" != x
"yes" && test "$sim_hw_p" = "yes"; then
3807 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
3811 if test "$sim_hw_p" != yes; then
3813 sim_hw_cflags
="-DWITH_HW=0"
3816 if test x
"$silent" != x
"yes"; then
3817 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
3822 for ac_hdr
in string.h
strings.h stdlib.h stdlib.h fcntl.h
3824 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3825 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3826 echo "configure:3827: checking for $ac_hdr" >&5
3827 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3828 echo $ac_n "(cached) $ac_c" 1>&6
3830 cat > conftest.
$ac_ext <<EOF
3831 #line 3832 "configure"
3832 #include "confdefs.h"
3835 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3836 { (eval echo configure
:3837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3837 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3838 if test -z "$ac_err"; then
3840 eval "ac_cv_header_$ac_safe=yes"
3843 echo "configure: failed program was:" >&5
3844 cat conftest.
$ac_ext >&5
3846 eval "ac_cv_header_$ac_safe=no"
3850 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3851 echo "$ac_t""yes" 1>&6
3852 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3853 cat >> confdefs.h
<<EOF
3854 #define $ac_tr_hdr 1
3858 echo "$ac_t""no" 1>&6
3868 cat > confcache
<<\EOF
3869 # This file is a shell script that caches the results of configure
3870 # tests run on this system so they can be shared between configure
3871 # scripts and configure runs. It is not useful on other systems.
3872 # If it contains results you don't want to keep, you may remove or edit it.
3874 # By default, configure uses ./config.cache as the cache file,
3875 # creating it if it does not exist already. You can give configure
3876 # the --cache-file=FILE option to use a different cache file; that is
3877 # what configure does when it calls configure scripts in
3878 # subdirectories, so they share the cache.
3879 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3880 # config.status only pays attention to the cache file if you give it the
3881 # --recheck option to rerun configure.
3884 # The following way of writing the cache mishandles newlines in values,
3885 # but we know of no workaround that is simple, portable, and efficient.
3886 # So, don't put newlines in cache variables' values.
3887 # Ultrix sh set writes to stderr and can't be redirected directly,
3888 # and sets the high bit in the cache file unless we assign to the vars.
3890 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3892 # `set' does not quote correctly, so add quotes (double-quote substitution
3893 # turns \\\\ into \\, and sed turns \\ into \).
3895 -e "s/'/'\\\\''/g" \
3896 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3899 # `set' quotes correctly as required by POSIX, so do not add quotes.
3900 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3903 if cmp -s $cache_file confcache
; then
3906 if test -w $cache_file; then
3907 echo "updating cache $cache_file"
3908 cat confcache
> $cache_file
3910 echo "not updating unwritable cache $cache_file"
3915 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3917 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3918 # Let make expand exec_prefix.
3919 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3921 # Any assignment to VPATH causes Sun make to only execute
3922 # the first set of double-colon rules, so remove it if not needed.
3923 # If there is a colon in the path, we need to keep it.
3924 if test "x$srcdir" = x.
; then
3925 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
3928 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3930 DEFS
=-DHAVE_CONFIG_H
3932 # Without the "./", some shells look in PATH for config.status.
3933 : ${CONFIG_STATUS=./config.status}
3935 echo creating
$CONFIG_STATUS
3936 rm -f $CONFIG_STATUS
3937 cat > $CONFIG_STATUS <<EOF
3939 # Generated automatically by configure.
3940 # Run this file to recreate the current configuration.
3941 # This directory was configured as follows,
3942 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3944 # $0 $ac_configure_args
3946 # Compiler output produced by configure, useful for debugging
3947 # configure, is in ./config.log if it exists.
3949 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3952 case "\$ac_option" in
3953 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3954 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3955 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3956 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3957 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3959 -help | --help | --hel | --he | --h)
3960 echo "\$ac_cs_usage"; exit 0 ;;
3961 *) echo "\$ac_cs_usage"; exit 1 ;;
3965 ac_given_srcdir=$srcdir
3966 ac_given_INSTALL="$INSTALL"
3968 trap 'rm -fr `echo "Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3970 cat >> $CONFIG_STATUS <<EOF
3972 # Protect against being on the right side of a sed subst in config.status.
3973 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3974 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3977 s%@sim_environment@%$sim_environment%g
3978 s%@sim_alignment@%$sim_alignment%g
3979 s%@sim_assert@%$sim_assert%g
3980 s%@sim_bitsize@%$sim_bitsize%g
3981 s%@sim_endian@%$sim_endian%g
3982 s%@sim_hostendian@%$sim_hostendian%g
3983 s%@sim_float@%$sim_float%g
3984 s%@sim_scache@%$sim_scache%g
3985 s%@sim_default_model@%$sim_default_model%g
3986 s%@sim_hw_cflags@%$sim_hw_cflags%g
3987 s%@sim_hw_objs@%$sim_hw_objs%g
3988 s%@sim_hw@%$sim_hw%g
3989 s%@sim_inline@%$sim_inline%g
3990 s%@sim_packages@%$sim_packages%g
3991 s%@sim_regparm@%$sim_regparm%g
3992 s%@sim_reserved_bits@%$sim_reserved_bits%g
3993 s%@sim_smp@%$sim_smp%g
3994 s%@sim_stdcall@%$sim_stdcall%g
3995 s%@sim_xor_endian@%$sim_xor_endian%g
3996 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
3997 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
3999 s%@CFLAGS@%$CFLAGS%g
4000 s%@CPPFLAGS@%$CPPFLAGS%g
4001 s%@CXXFLAGS@%$CXXFLAGS%g
4002 s%@FFLAGS@%$FFLAGS%g
4004 s%@LDFLAGS@%$LDFLAGS%g
4006 s%@exec_prefix@%$exec_prefix%g
4007 s%@prefix@%$prefix%g
4008 s%@program_transform_name@%$program_transform_name%g
4009 s%@bindir@%$bindir%g
4010 s%@sbindir@%$sbindir%g
4011 s%@libexecdir@%$libexecdir%g
4012 s%@datadir@%$datadir%g
4013 s%@sysconfdir@%$sysconfdir%g
4014 s%@sharedstatedir@%$sharedstatedir%g
4015 s%@localstatedir@%$localstatedir%g
4016 s%@libdir@%$libdir%g
4017 s%@includedir@%$includedir%g
4018 s%@oldincludedir@%$oldincludedir%g
4019 s%@infodir@%$infodir%g
4020 s%@mandir@%$mandir%g
4022 s%@host_alias@%$host_alias%g
4023 s%@host_cpu@%$host_cpu%g
4024 s%@host_vendor@%$host_vendor%g
4025 s%@host_os@%$host_os%g
4026 s%@target@%$target%g
4027 s%@target_alias@%$target_alias%g
4028 s%@target_cpu@%$target_cpu%g
4029 s%@target_vendor@%$target_vendor%g
4030 s%@target_os@%$target_os%g
4032 s%@build_alias@%$build_alias%g
4033 s%@build_cpu@%$build_cpu%g
4034 s%@build_vendor@%$build_vendor%g
4035 s%@build_os@%$build_os%g
4037 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4038 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4039 s%@INSTALL_DATA@%$INSTALL_DATA%g
4040 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
4041 s%@HDEFINES@%$HDEFINES%g
4043 s%@RANLIB@%$RANLIB%g
4044 s%@SET_MAKE@%$SET_MAKE%g
4046 s%@ALLOCA@%$ALLOCA%g
4047 s%@USE_NLS@%$USE_NLS%g
4048 s%@MSGFMT@%$MSGFMT%g
4049 s%@GMSGFMT@%$GMSGFMT%g
4050 s%@XGETTEXT@%$XGETTEXT%g
4051 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4052 s%@CATALOGS@%$CATALOGS%g
4053 s%@CATOBJEXT@%$CATOBJEXT%g
4054 s%@DATADIRNAME@%$DATADIRNAME%g
4055 s%@GMOFILES@%$GMOFILES%g
4056 s%@INSTOBJEXT@%$INSTOBJEXT%g
4057 s%@INTLDEPS@%$INTLDEPS%g
4058 s%@INTLLIBS@%$INTLLIBS%g
4059 s%@INTLOBJS@%$INTLOBJS%g
4060 s%@POFILES@%$POFILES%g
4062 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4064 s%@GT_YES@%$GT_YES%g
4065 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4068 s%@sim_bswap@%$sim_bswap%g
4069 s%@sim_cflags@%$sim_cflags%g
4070 s%@sim_debug@%$sim_debug%g
4071 s%@sim_stdio@%$sim_stdio%g
4072 s%@sim_trace@%$sim_trace%g
4073 s%@sim_profile@%$sim_profile%g
4074 s%@EXEEXT@%$EXEEXT%g
4075 s%@m68hc11_extra_objs@%$m68hc11_extra_objs%g
4080 cat >> $CONFIG_STATUS <<\EOF
4082 # Split the substitutions into bite-sized pieces for seds with
4083 # small command number limits, like on Digital OSF/1 and HP-UX.
4084 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4085 ac_file
=1 # Number of current file.
4086 ac_beg
=1 # First line for current file.
4087 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4090 while $ac_more_lines; do
4091 if test $ac_beg -gt 1; then
4092 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4094 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4096 if test ! -s conftest.s
$ac_file; then
4098 rm -f conftest.s
$ac_file
4100 if test -z "$ac_sed_cmds"; then
4101 ac_sed_cmds
="sed -f conftest.s$ac_file"
4103 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4105 ac_file
=`expr $ac_file + 1`
4107 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4110 if test -z "$ac_sed_cmds"; then
4115 cat >> $CONFIG_STATUS <<EOF
4117 CONFIG_FILES=\${CONFIG_FILES-"Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in"}
4119 cat >> $CONFIG_STATUS <<\EOF
4120 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4121 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4123 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4124 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4125 *) ac_file_in
="${ac_file}.in" ;;
4128 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4130 # Remove last slash and all that follows it. Not all systems have dirname.
4131 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4132 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
4133 # The file is in a subdirectory.
4134 test ! -d "$ac_dir" && mkdir
"$ac_dir"
4135 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
4136 # A "../" for each directory in $ac_dir_suffix.
4137 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4139 ac_dir_suffix
= ac_dots
=
4142 case "$ac_given_srcdir" in
4144 if test -z "$ac_dots"; then top_srcdir
=.
4145 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4146 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
4148 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4149 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
4152 case "$ac_given_INSTALL" in
4153 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
4154 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
4157 echo creating
"$ac_file"
4159 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4161 *Makefile
*) ac_comsub
="1i\\
4162 # $configure_input" ;;
4166 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4168 s%@configure_input@%$configure_input%g
4169 s%@srcdir@%$srcdir%g
4170 s%@top_srcdir@%$top_srcdir%g
4171 s%@INSTALL@%$INSTALL%g
4172 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
4176 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4177 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4179 # ac_d sets the value in "#define NAME VALUE" lines.
4180 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4181 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4184 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4185 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4186 ac_uB
='\([ ]\)%\1#\2define\3'
4189 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4190 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4191 ac_eB
='$%\1#\2define\3'
4195 if test "${CONFIG_HEADERS+set}" != set; then
4197 cat >> $CONFIG_STATUS <<EOF
4198 CONFIG_HEADERS="config.h:config.in"
4200 cat >> $CONFIG_STATUS <<\EOF
4202 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4203 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4205 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4206 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4207 *) ac_file_in
="${ac_file}.in" ;;
4210 echo creating
$ac_file
4212 rm -f conftest.frag conftest.
in conftest.out
4213 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4214 cat $ac_file_inputs > conftest.
in
4218 # Transform confdefs.h into a sed script conftest.vals that substitutes
4219 # the proper values into config.h.in to produce config.h. And first:
4220 # Protect against being on the right side of a sed subst in config.status.
4221 # Protect against being in an unquoted here document in config.status.
4223 cat > conftest.hdr
<<\EOF
4226 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4230 sed -n -f conftest.hdr confdefs.h > conftest.vals
4233 # This sed command replaces #undef with comments. This is necessary, for
4234 # example, in the case of _POSIX_SOURCE, which is predefined and required
4235 # on some systems where configure will not decide to define it.
4236 cat >> conftest.vals <<\EOF
4237 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4240 # Break up conftest.vals because some shells have a limit on
4241 # the size of here documents, and old seds have small limits too.
4246 ac_lines=`grep -c . conftest.vals
`
4247 # grep -c gives empty output for an empty file on some AIX systems.
4248 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4249 # Write a limited-size here document to conftest.frag.
4250 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4251 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4253 sed -f conftest.frag conftest.in > conftest.out
4255 mv conftest.out conftest.in
4257 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4259 mv conftest.tail conftest.vals
4263 cat >> $CONFIG_STATUS <<\EOF
4264 rm -f conftest.frag conftest.h
4265 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4266 cat conftest.in >> conftest.h
4268 if cmp -s $ac_file conftest.h 2>/dev/null; then
4269 echo "$ac_file is unchanged"
4272 # Remove last slash and all that follows it. Not all systems have dirname.
4273 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
4274 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4275 # The file is in a subdirectory.
4276 test ! -d "$ac_dir" && mkdir "$ac_dir"
4279 mv conftest.h $ac_file
4285 cat >> $CONFIG_STATUS <<EOF
4286 ac_sources="$sim_link_files"
4287 ac_dests="$sim_link_links"
4290 cat >> $CONFIG_STATUS <<\EOF
4291 srcdir=$ac_given_srcdir
4292 while test -n "$ac_sources"; do
4293 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
4294 set $ac_sources; ac_source=$1; shift; ac_sources=$*
4296 echo "linking $srcdir/$ac_source to $ac_dest"
4298 if test ! -r $srcdir/$ac_source; then
4299 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
4303 # Make relative symlinks.
4304 # Remove last slash and all that follows it. Not all systems have dirname.
4305 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
4306 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
4307 # The dest file is in a subdirectory.
4308 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
4309 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
4310 # A "../" for each directory in $ac_dest_dir_suffix.
4311 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
4313 ac_dest_dir_suffix= ac_dots=
4317 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
4318 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
4321 # Make a symlink if possible; otherwise try a hard link.
4322 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
4323 ln $srcdir/$ac_source $ac_dest; then :
4325 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
4329 cat >> $CONFIG_STATUS <<EOF
4332 cat >> $CONFIG_STATUS <<\EOF
4333 case "x$CONFIG_FILES" in
4335 echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
4336 rm -f Makesim1.tmp Makesim2.tmp Makefile
4337 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
4338 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
4339 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
4340 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
4341 <Makefile.sim >Makefile
4342 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
4345 case "x$CONFIG_HEADERS" in xconfig.h:config.in) echo > stamp-h ;; esac
4349 chmod +x $CONFIG_STATUS
4350 rm -fr confdefs* $ac_clean_files
4351 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1