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-endian=endian Specify target byte endian orientation."
166 --enable-sim-bitsize=N Specify target bitsize (32 or 64)."
168 --enable-sim-float Specify that the target processor has floating point hardware."
170 --enable-sim-smp=n Specify number of processors to configure for (default ${default_sim_smp})."
172 --enable-sim-hardware=LIST Specify the hardware to be included in the build."
174 --with-x use the X Window System"
176 --with-sim-gpu2=path Use GPU2 library under given directory"
178 --with-x use the X Window System"
180 --with-sim-funit=path Use target FP library under given directory"
182 # Initialize some variables set by options.
183 # The variables have the same names as the options, with
184 # dashes changed to underlines.
186 cache_file
=.
/config.cache
195 program_transform_name
=s
,x
,x
,
203 bindir
='${exec_prefix}/bin'
204 sbindir
='${exec_prefix}/sbin'
205 libexecdir
='${exec_prefix}/libexec'
206 datadir
='${prefix}/share'
207 sysconfdir
='${prefix}/etc'
208 sharedstatedir
='${prefix}/com'
209 localstatedir
='${prefix}/var'
210 libdir
='${exec_prefix}/lib'
211 includedir
='${prefix}/include'
212 oldincludedir
='/usr/include'
213 infodir
='${prefix}/info'
214 mandir
='${prefix}/man'
216 # Initialize some other variables.
219 SHELL
=${CONFIG_SHELL-/bin/sh}
220 # Maximum number of lines to put in a shell here document.
227 # If the previous option needs an argument, assign it.
228 if test -n "$ac_prev"; then
229 eval "$ac_prev=\$ac_option"
235 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
239 # Accept the important Cygnus configure options, so we can diagnose typos.
243 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
245 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
246 bindir
="$ac_optarg" ;;
248 -build |
--build |
--buil |
--bui |
--bu)
250 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
251 build
="$ac_optarg" ;;
253 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
254 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
255 ac_prev
=cache_file
;;
256 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
257 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
258 cache_file
="$ac_optarg" ;;
260 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
262 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
264 datadir
="$ac_optarg" ;;
266 -disable-* |
--disable-*)
267 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
268 # Reject names that are not valid shell variable names.
269 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
270 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
272 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
273 eval "enable_${ac_feature}=no" ;;
275 -enable-* |
--enable-*)
276 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
277 # Reject names that are not valid shell variable names.
278 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
279 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
281 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
286 eval "enable_${ac_feature}='$ac_optarg'" ;;
288 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
289 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
290 |
--exec |
--exe |
--ex)
291 ac_prev
=exec_prefix
;;
292 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
293 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
294 |
--exec=* |
--exe=* |
--ex=*)
295 exec_prefix
="$ac_optarg" ;;
297 -gas |
--gas |
--ga |
--g)
298 # Obsolete; use --with-gas.
301 -help |
--help |
--hel |
--he)
302 # Omit some internal or obsolete options to make the list less imposing.
303 # This message is too long to be a string in the A/UX 3.1 sh.
305 Usage: configure [options] [host]
306 Options: [defaults in brackets after descriptions]
308 --cache-file=FILE cache test results in FILE
309 --help print this message
310 --no-create do not create output files
311 --quiet, --silent do not print \`checking...' messages
312 --version print the version of autoconf that created configure
313 Directory and file names:
314 --prefix=PREFIX install architecture-independent files in PREFIX
316 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
318 --bindir=DIR user executables in DIR [EPREFIX/bin]
319 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
320 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
321 --datadir=DIR read-only architecture-independent data in DIR
323 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
324 --sharedstatedir=DIR modifiable architecture-independent data in DIR
326 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
327 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
328 --includedir=DIR C header files in DIR [PREFIX/include]
329 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
330 --infodir=DIR info documentation in DIR [PREFIX/info]
331 --mandir=DIR man documentation in DIR [PREFIX/man]
332 --srcdir=DIR find the sources in DIR [configure dir or ..]
333 --program-prefix=PREFIX prepend PREFIX to installed program names
334 --program-suffix=SUFFIX append SUFFIX to installed program names
335 --program-transform-name=PROGRAM
336 run sed PROGRAM on installed program names
340 --build=BUILD configure for building on BUILD [BUILD=HOST]
341 --host=HOST configure for HOST [guessed]
342 --target=TARGET configure for TARGET [TARGET=HOST]
343 Features and packages:
344 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
345 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
346 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
347 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
348 --x-includes=DIR X include files are in DIR
349 --x-libraries=DIR X library files are in DIR
351 if test -n "$ac_help"; then
352 echo "--enable and --with options recognized:$ac_help"
356 -host |
--host |
--hos |
--ho)
358 -host=* |
--host=* |
--hos=* |
--ho=*)
361 -includedir |
--includedir |
--includedi |
--included |
--include \
362 |
--includ |
--inclu |
--incl |
--inc)
363 ac_prev
=includedir
;;
364 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
365 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
366 includedir
="$ac_optarg" ;;
368 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
370 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
371 infodir
="$ac_optarg" ;;
373 -libdir |
--libdir |
--libdi |
--libd)
375 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
376 libdir
="$ac_optarg" ;;
378 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
379 |
--libexe |
--libex |
--libe)
380 ac_prev
=libexecdir
;;
381 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
382 |
--libexe=* |
--libex=* |
--libe=*)
383 libexecdir
="$ac_optarg" ;;
385 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
386 |
--localstate |
--localstat |
--localsta |
--localst \
387 |
--locals |
--local |
--loca |
--loc |
--lo)
388 ac_prev
=localstatedir
;;
389 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
390 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
391 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
392 localstatedir
="$ac_optarg" ;;
394 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
396 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
397 mandir
="$ac_optarg" ;;
400 # Obsolete; use --without-fp.
403 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
407 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
408 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
411 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
412 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
413 |
--oldin |
--oldi |
--old |
--ol |
--o)
414 ac_prev
=oldincludedir
;;
415 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
416 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
417 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
418 oldincludedir
="$ac_optarg" ;;
420 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
422 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
423 prefix
="$ac_optarg" ;;
425 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
426 |
--program-pre |
--program-pr |
--program-p)
427 ac_prev
=program_prefix
;;
428 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
429 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
430 program_prefix
="$ac_optarg" ;;
432 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
433 |
--program-suf |
--program-su |
--program-s)
434 ac_prev
=program_suffix
;;
435 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
436 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
437 program_suffix
="$ac_optarg" ;;
439 -program-transform-name |
--program-transform-name \
440 |
--program-transform-nam |
--program-transform-na \
441 |
--program-transform-n |
--program-transform- \
442 |
--program-transform |
--program-transfor \
443 |
--program-transfo |
--program-transf \
444 |
--program-trans |
--program-tran \
445 |
--progr-tra |
--program-tr |
--program-t)
446 ac_prev
=program_transform_name
;;
447 -program-transform-name=* |
--program-transform-name=* \
448 |
--program-transform-nam=* |
--program-transform-na=* \
449 |
--program-transform-n=* |
--program-transform-=* \
450 |
--program-transform=* |
--program-transfor=* \
451 |
--program-transfo=* |
--program-transf=* \
452 |
--program-trans=* |
--program-tran=* \
453 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
454 program_transform_name
="$ac_optarg" ;;
456 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
457 |
-silent |
--silent |
--silen |
--sile |
--sil)
460 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
462 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
464 sbindir
="$ac_optarg" ;;
466 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
467 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
468 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
470 ac_prev
=sharedstatedir
;;
471 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
472 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
473 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
475 sharedstatedir
="$ac_optarg" ;;
477 -site |
--site |
--sit)
479 -site=* |
--site=* |
--sit=*)
482 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
484 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
485 srcdir
="$ac_optarg" ;;
487 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
488 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
489 ac_prev
=sysconfdir
;;
490 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
491 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
492 sysconfdir
="$ac_optarg" ;;
494 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
496 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
497 target
="$ac_optarg" ;;
499 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
502 -version |
--version |
--versio |
--versi |
--vers)
503 echo "configure generated by autoconf version 2.13"
507 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
508 # Reject names that are not valid shell variable names.
509 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
510 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
512 ac_package
=`echo $ac_package| sed 's/-/_/g'`
517 eval "with_${ac_package}='$ac_optarg'" ;;
519 -without-* |
--without-*)
520 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
521 # Reject names that are not valid shell variable names.
522 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
523 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
525 ac_package
=`echo $ac_package| sed 's/-/_/g'`
526 eval "with_${ac_package}=no" ;;
529 # Obsolete; use --with-x.
532 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
533 |
--x-incl |
--x-inc |
--x-in |
--x-i)
534 ac_prev
=x_includes
;;
535 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
536 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
537 x_includes
="$ac_optarg" ;;
539 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
540 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
541 ac_prev
=x_libraries
;;
542 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
543 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
544 x_libraries
="$ac_optarg" ;;
546 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
550 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
551 echo "configure: warning: $ac_option: invalid host type" 1>&2
553 if test "x$nonopt" != xNONE
; then
554 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
562 if test -n "$ac_prev"; then
563 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
566 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
568 # File descriptor usage:
571 # 2 errors and warnings
572 # 3 some systems may open it to /dev/tty
573 # 4 used on the Kubota Titan
574 # 6 checking for... messages and results
575 # 5 compiler messages saved in config.log
576 if test "$silent" = yes; then
584 This file contains any messages produced by compilers while
585 running configure, to aid debugging if configure makes a mistake.
588 # Strip out --no-create and --no-recursion so they do not pile up.
589 # Also quote any args containing shell metacharacters.
594 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
595 |
--no-cr |
--no-c) ;;
596 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
597 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
598 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
599 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
600 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
605 # Only set these to C if already set. These must not be set unconditionally
606 # because not all systems understand e.g. LANG=C (notably SCO).
607 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
608 # Non-C LC_CTYPE values break the ctype check.
609 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
610 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
611 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
612 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
614 # confdefs.h avoids OS command line length limits that DEFS can exceed.
615 rm -rf conftest
* confdefs.h
616 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
619 # A filename unique to this package, relative to the directory that
620 # configure is in, which we can look for to find out if srcdir is correct.
621 ac_unique_file
=Makefile.
in
623 # Find the source files, if location was not specified.
624 if test -z "$srcdir"; then
625 ac_srcdir_defaulted
=yes
626 # Try the directory containing this script, then its parent.
628 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
629 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
631 if test ! -r $srcdir/$ac_unique_file; then
635 ac_srcdir_defaulted
=no
637 if test ! -r $srcdir/$ac_unique_file; then
638 if test "$ac_srcdir_defaulted" = yes; then
639 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
641 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
644 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
646 # Prefer explicitly selected file to automatically selected ones.
647 if test -z "$CONFIG_SITE"; then
648 if test "x$prefix" != xNONE
; then
649 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
651 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
654 for ac_site_file
in $CONFIG_SITE; do
655 if test -r "$ac_site_file"; then
656 echo "loading site script $ac_site_file"
661 if test -r "$cache_file"; then
662 echo "loading cache $cache_file"
665 echo "creating cache $cache_file"
670 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
671 ac_cpp
='$CPP $CPPFLAGS'
672 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
673 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
674 cross_compiling
=$ac_cv_prog_cc_cross
678 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
679 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
680 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
687 ac_n
= ac_c
='\c' ac_t
=
692 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
693 echo "configure:694: checking how to run the C preprocessor" >&5
694 # On Suns, sometimes $CPP names a directory.
695 if test -n "$CPP" && test -d "$CPP"; then
698 if test -z "$CPP"; then
699 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
700 echo $ac_n "(cached) $ac_c" 1>&6
702 # This must be in double quotes, not single quotes, because CPP may get
703 # substituted into the Makefile and "${CC-cc}" will confuse make.
705 # On the NeXT, cc -E runs the code through the compiler's parser,
706 # not just through cpp.
707 cat > conftest.
$ac_ext <<EOF
708 #line 709 "configure"
709 #include "confdefs.h"
713 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
714 { (eval echo configure
:715: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
715 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
716 if test -z "$ac_err"; then
720 echo "configure: failed program was:" >&5
721 cat conftest.
$ac_ext >&5
723 CPP
="${CC-cc} -E -traditional-cpp"
724 cat > conftest.
$ac_ext <<EOF
725 #line 726 "configure"
726 #include "confdefs.h"
730 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
731 { (eval echo configure
:732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
732 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
733 if test -z "$ac_err"; then
737 echo "configure: failed program was:" >&5
738 cat conftest.
$ac_ext >&5
740 CPP
="${CC-cc} -nologo -E"
741 cat > conftest.
$ac_ext <<EOF
742 #line 743 "configure"
743 #include "confdefs.h"
747 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
748 { (eval echo configure
:749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
749 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
750 if test -z "$ac_err"; then
754 echo "configure: failed program was:" >&5
755 cat conftest.
$ac_ext >&5
764 ac_cv_prog_CPP
="$CPP"
766 CPP
="$ac_cv_prog_CPP"
768 ac_cv_prog_CPP
="$CPP"
770 echo "$ac_t""$CPP" 1>&6
772 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
773 echo "configure:774: checking whether ${MAKE-make} sets \${MAKE}" >&5
774 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
775 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
776 echo $ac_n "(cached) $ac_c" 1>&6
778 cat > conftestmake
<<\EOF
780 @
echo 'ac_maketemp="${MAKE}"'
782 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
783 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
784 if test -n "$ac_maketemp"; then
785 eval ac_cv_prog_make_
${ac_make}_set
=yes
787 eval ac_cv_prog_make_
${ac_make}_set
=no
791 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
792 echo "$ac_t""yes" 1>&6
795 echo "$ac_t""no" 1>&6
796 SET_MAKE
="MAKE=${MAKE-make}"
799 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
800 echo "configure:801: checking for POSIXized ISC" >&5
801 if test -d /etc
/conf
/kconfig.d
&&
802 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
804 echo "$ac_t""yes" 1>&6
805 ISC
=yes # If later tests want to check for ISC.
806 cat >> confdefs.h
<<\EOF
807 #define _POSIX_SOURCE 1
810 if test "$GCC" = yes; then
816 echo "$ac_t""no" 1>&6
820 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
821 echo "configure:822: checking for ANSI C header files" >&5
822 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
823 echo $ac_n "(cached) $ac_c" 1>&6
825 cat > conftest.
$ac_ext <<EOF
826 #line 827 "configure"
827 #include "confdefs.h"
833 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
834 { (eval echo configure
:835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
835 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
836 if test -z "$ac_err"; then
838 ac_cv_header_stdc
=yes
841 echo "configure: failed program was:" >&5
842 cat conftest.
$ac_ext >&5
848 if test $ac_cv_header_stdc = yes; then
849 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
850 cat > conftest.
$ac_ext <<EOF
851 #line 852 "configure"
852 #include "confdefs.h"
855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
856 egrep "memchr" >/dev
/null
2>&1; then
866 if test $ac_cv_header_stdc = yes; then
867 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
868 cat > conftest.
$ac_ext <<EOF
869 #line 870 "configure"
870 #include "confdefs.h"
873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
874 egrep "free" >/dev
/null
2>&1; then
884 if test $ac_cv_header_stdc = yes; then
885 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
886 if test "$cross_compiling" = yes; then
889 cat > conftest.
$ac_ext <<EOF
890 #line 891 "configure"
891 #include "confdefs.h"
893 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
894 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
895 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
896 int main () { int i; for (i = 0; i < 256; i++)
897 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
901 if { (eval echo configure
:902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
905 echo "configure: failed program was:" >&5
906 cat conftest.
$ac_ext >&5
916 echo "$ac_t""$ac_cv_header_stdc" 1>&6
917 if test $ac_cv_header_stdc = yes; then
918 cat >> confdefs.h
<<\EOF
919 #define STDC_HEADERS 1
924 echo $ac_n "checking for working const""... $ac_c" 1>&6
925 echo "configure:926: checking for working const" >&5
926 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
927 echo $ac_n "(cached) $ac_c" 1>&6
929 cat > conftest.
$ac_ext <<EOF
930 #line 931 "configure"
931 #include "confdefs.h"
935 /* Ultrix mips cc rejects this. */
936 typedef int charset[2]; const charset x;
937 /* SunOS 4.1.1 cc rejects this. */
938 char const *const *ccp;
940 /* NEC SVR4.0.2 mips cc rejects this. */
941 struct point {int x, y;};
942 static struct point const zero = {0,0};
943 /* AIX XL C 1.02.0.0 rejects this.
944 It does not let you subtract one const X* pointer from another in an arm
945 of an if-expression whose if-part is not a constant expression */
946 const char *g = "string";
947 ccp = &g + (g ? g-g : 0);
948 /* HPUX 7.0 cc rejects these. */
951 ccp = (char const *const *) p;
952 { /* SCO 3.2v4 cc rejects this. */
954 char const *s = 0 ? (char *) 0 : (char const *) 0;
958 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
960 const int *foo = &x[0];
963 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
964 typedef const int *iptr;
968 { /* AIX XL C 1.02.0.0 rejects this saying
969 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
970 struct s { int j; const int *ap[3]; };
971 struct s *b; b->j = 5;
973 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
979 if { (eval echo configure
:980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
983 echo "configure: failed program was:" >&5
984 cat conftest.
$ac_ext >&5
991 echo "$ac_t""$ac_cv_c_const" 1>&6
992 if test $ac_cv_c_const = no
; then
993 cat >> confdefs.h
<<\EOF
999 echo $ac_n "checking for inline""... $ac_c" 1>&6
1000 echo "configure:1001: checking for inline" >&5
1001 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1002 echo $ac_n "(cached) $ac_c" 1>&6
1005 for ac_kw
in inline __inline__ __inline
; do
1006 cat > conftest.
$ac_ext <<EOF
1007 #line 1008 "configure"
1008 #include "confdefs.h"
1014 if { (eval echo configure
:1015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1016 ac_cv_c_inline
=$ac_kw; break
1018 echo "configure: failed program was:" >&5
1019 cat conftest.
$ac_ext >&5
1026 echo "$ac_t""$ac_cv_c_inline" 1>&6
1027 case "$ac_cv_c_inline" in
1029 no
) cat >> confdefs.h
<<\EOF
1033 *) cat >> confdefs.h
<<EOF
1034 #define inline $ac_cv_c_inline
1039 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1040 echo "configure:1041: checking for off_t" >&5
1041 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1042 echo $ac_n "(cached) $ac_c" 1>&6
1044 cat > conftest.
$ac_ext <<EOF
1045 #line 1046 "configure"
1046 #include "confdefs.h"
1047 #include <sys/types.h>
1053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1054 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1056 ac_cv_type_off_t
=yes
1064 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1065 if test $ac_cv_type_off_t = no
; then
1066 cat >> confdefs.h
<<\EOF
1072 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1073 echo "configure:1074: checking for size_t" >&5
1074 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1075 echo $ac_n "(cached) $ac_c" 1>&6
1077 cat > conftest.
$ac_ext <<EOF
1078 #line 1079 "configure"
1079 #include "confdefs.h"
1080 #include <sys/types.h>
1086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1087 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1089 ac_cv_type_size_t
=yes
1092 ac_cv_type_size_t
=no
1097 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1098 if test $ac_cv_type_size_t = no
; then
1099 cat >> confdefs.h
<<\EOF
1100 #define size_t unsigned
1105 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1106 # for constant arguments. Useless!
1107 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1108 echo "configure:1109: checking for working alloca.h" >&5
1109 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1110 echo $ac_n "(cached) $ac_c" 1>&6
1112 cat > conftest.
$ac_ext <<EOF
1113 #line 1114 "configure"
1114 #include "confdefs.h"
1117 char *p = alloca(2 * sizeof(int));
1120 if { (eval echo configure
:1121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1122 ac_cv_header_alloca_h
=yes
1124 echo "configure: failed program was:" >&5
1125 cat conftest.
$ac_ext >&5
1127 ac_cv_header_alloca_h
=no
1132 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1133 if test $ac_cv_header_alloca_h = yes; then
1134 cat >> confdefs.h
<<\EOF
1135 #define HAVE_ALLOCA_H 1
1140 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1141 echo "configure:1142: checking for alloca" >&5
1142 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1143 echo $ac_n "(cached) $ac_c" 1>&6
1145 cat > conftest.
$ac_ext <<EOF
1146 #line 1147 "configure"
1147 #include "confdefs.h"
1150 # define alloca __builtin_alloca
1153 # include <malloc.h>
1154 # define alloca _alloca
1157 # include <alloca.h>
1162 # ifndef alloca /* predefined by HP cc +Olibcalls */
1171 char *p = (char *) alloca(1);
1174 if { (eval echo configure
:1175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1176 ac_cv_func_alloca_works
=yes
1178 echo "configure: failed program was:" >&5
1179 cat conftest.
$ac_ext >&5
1181 ac_cv_func_alloca_works
=no
1186 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1187 if test $ac_cv_func_alloca_works = yes; then
1188 cat >> confdefs.h
<<\EOF
1189 #define HAVE_ALLOCA 1
1194 if test $ac_cv_func_alloca_works = no
; then
1195 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1196 # that cause trouble. Some versions do not even contain alloca or
1197 # contain a buggy version. If you still want to use their alloca,
1198 # use ar to extract alloca.o from them instead of compiling alloca.c.
1199 ALLOCA
=alloca.
${ac_objext}
1200 cat >> confdefs.h
<<\EOF
1205 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1206 echo "configure:1207: checking whether alloca needs Cray hooks" >&5
1207 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1208 echo $ac_n "(cached) $ac_c" 1>&6
1210 cat > conftest.
$ac_ext <<EOF
1211 #line 1212 "configure"
1212 #include "confdefs.h"
1213 #if defined(CRAY) && ! defined(CRAY2)
1220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1221 egrep "webecray" >/dev
/null
2>&1; then
1232 echo "$ac_t""$ac_cv_os_cray" 1>&6
1233 if test $ac_cv_os_cray = yes; then
1234 for ac_func
in _getb67 GETB67 getb67
; do
1235 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1236 echo "configure:1237: checking for $ac_func" >&5
1237 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1238 echo $ac_n "(cached) $ac_c" 1>&6
1240 cat > conftest.
$ac_ext <<EOF
1241 #line 1242 "configure"
1242 #include "confdefs.h"
1243 /* System header to define __stub macros and hopefully few prototypes,
1244 which can conflict with char $ac_func(); below. */
1246 /* Override any gcc2 internal prototype to avoid an error. */
1247 /* We use char because int might match the return type of a gcc2
1248 builtin and then its argument prototype would still apply. */
1253 /* The GNU C library defines this for functions which it implements
1254 to always fail with ENOSYS. Some functions are actually named
1255 something starting with __ and the normal name is an alias. */
1256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1264 if { (eval echo configure
:1265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1266 eval "ac_cv_func_$ac_func=yes"
1268 echo "configure: failed program was:" >&5
1269 cat conftest.
$ac_ext >&5
1271 eval "ac_cv_func_$ac_func=no"
1276 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1277 echo "$ac_t""yes" 1>&6
1278 cat >> confdefs.h
<<EOF
1279 #define CRAY_STACKSEG_END $ac_func
1284 echo "$ac_t""no" 1>&6
1290 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1291 echo "configure:1292: checking stack direction for C alloca" >&5
1292 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1293 echo $ac_n "(cached) $ac_c" 1>&6
1295 if test "$cross_compiling" = yes; then
1296 ac_cv_c_stack_direction
=0
1298 cat > conftest.
$ac_ext <<EOF
1299 #line 1300 "configure"
1300 #include "confdefs.h"
1301 find_stack_direction ()
1303 static char *addr = 0;
1308 return find_stack_direction ();
1311 return (&dummy > addr) ? 1 : -1;
1315 exit (find_stack_direction() < 0);
1318 if { (eval echo configure
:1319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1320 ac_cv_c_stack_direction
=1
1322 echo "configure: failed program was:" >&5
1323 cat conftest.
$ac_ext >&5
1325 ac_cv_c_stack_direction
=-1
1332 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1333 cat >> confdefs.h
<<EOF
1334 #define STACK_DIRECTION $ac_cv_c_stack_direction
1339 for ac_hdr
in unistd.h
1341 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1342 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1343 echo "configure:1344: checking for $ac_hdr" >&5
1344 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1345 echo $ac_n "(cached) $ac_c" 1>&6
1347 cat > conftest.
$ac_ext <<EOF
1348 #line 1349 "configure"
1349 #include "confdefs.h"
1352 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1353 { (eval echo configure
:1354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1354 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1355 if test -z "$ac_err"; then
1357 eval "ac_cv_header_$ac_safe=yes"
1360 echo "configure: failed program was:" >&5
1361 cat conftest.
$ac_ext >&5
1363 eval "ac_cv_header_$ac_safe=no"
1367 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1368 echo "$ac_t""yes" 1>&6
1369 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1370 cat >> confdefs.h
<<EOF
1371 #define $ac_tr_hdr 1
1375 echo "$ac_t""no" 1>&6
1379 for ac_func
in getpagesize
1381 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1382 echo "configure:1383: checking for $ac_func" >&5
1383 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1384 echo $ac_n "(cached) $ac_c" 1>&6
1386 cat > conftest.
$ac_ext <<EOF
1387 #line 1388 "configure"
1388 #include "confdefs.h"
1389 /* System header to define __stub macros and hopefully few prototypes,
1390 which can conflict with char $ac_func(); below. */
1392 /* Override any gcc2 internal prototype to avoid an error. */
1393 /* We use char because int might match the return type of a gcc2
1394 builtin and then its argument prototype would still apply. */
1399 /* The GNU C library defines this for functions which it implements
1400 to always fail with ENOSYS. Some functions are actually named
1401 something starting with __ and the normal name is an alias. */
1402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1410 if { (eval echo configure
:1411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1412 eval "ac_cv_func_$ac_func=yes"
1414 echo "configure: failed program was:" >&5
1415 cat conftest.
$ac_ext >&5
1417 eval "ac_cv_func_$ac_func=no"
1422 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1423 echo "$ac_t""yes" 1>&6
1424 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1425 cat >> confdefs.h
<<EOF
1426 #define $ac_tr_func 1
1430 echo "$ac_t""no" 1>&6
1434 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1435 echo "configure:1436: checking for working mmap" >&5
1436 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1437 echo $ac_n "(cached) $ac_c" 1>&6
1439 if test "$cross_compiling" = yes; then
1440 ac_cv_func_mmap_fixed_mapped
=no
1442 cat > conftest.
$ac_ext <<EOF
1443 #line 1444 "configure"
1444 #include "confdefs.h"
1446 /* Thanks to Mike Haertel and Jim Avera for this test.
1447 Here is a matrix of mmap possibilities:
1448 mmap private not fixed
1449 mmap private fixed at somewhere currently unmapped
1450 mmap private fixed at somewhere already mapped
1451 mmap shared not fixed
1452 mmap shared fixed at somewhere currently unmapped
1453 mmap shared fixed at somewhere already mapped
1454 For private mappings, we should verify that changes cannot be read()
1455 back from the file, nor mmap's back from the file at a different
1456 address. (There have been systems where private was not correctly
1457 implemented like the infamous i386 svr4.0, and systems where the
1458 VM page cache was not coherent with the filesystem buffer cache
1459 like early versions of FreeBSD and possibly contemporary NetBSD.)
1460 For shared mappings, we should conversely verify that changes get
1461 propogated back to all the places they're supposed to be.
1463 Grep wants private fixed already mapped.
1464 The main things grep needs to know about mmap are:
1465 * does it exist and is it safe to write into the mmap'd area
1466 * how to use it (BSD variants) */
1467 #include <sys/types.h>
1469 #include <sys/mman.h>
1471 /* This mess was copied from the GNU getpagesize.h. */
1472 #ifndef HAVE_GETPAGESIZE
1473 # ifdef HAVE_UNISTD_H
1474 # include <unistd.h>
1477 /* Assume that all systems that can run configure have sys/param.h. */
1478 # ifndef HAVE_SYS_PARAM_H
1479 # define HAVE_SYS_PARAM_H 1
1482 # ifdef _SC_PAGESIZE
1483 # define getpagesize() sysconf(_SC_PAGESIZE)
1484 # else /* no _SC_PAGESIZE */
1485 # ifdef HAVE_SYS_PARAM_H
1486 # include <sys/param.h>
1487 # ifdef EXEC_PAGESIZE
1488 # define getpagesize() EXEC_PAGESIZE
1489 # else /* no EXEC_PAGESIZE */
1491 # define getpagesize() NBPG * CLSIZE
1494 # endif /* no CLSIZE */
1495 # else /* no NBPG */
1497 # define getpagesize() NBPC
1498 # else /* no NBPC */
1500 # define getpagesize() PAGESIZE
1501 # endif /* PAGESIZE */
1502 # endif /* no NBPC */
1503 # endif /* no NBPG */
1504 # endif /* no EXEC_PAGESIZE */
1505 # else /* no HAVE_SYS_PARAM_H */
1506 # define getpagesize() 8192 /* punt totally */
1507 # endif /* no HAVE_SYS_PARAM_H */
1508 # endif /* no _SC_PAGESIZE */
1510 #endif /* no HAVE_GETPAGESIZE */
1513 extern "C" { void *malloc(unsigned); }
1521 char *data, *data2, *data3;
1525 pagesize = getpagesize();
1528 * First, make a file with some known garbage in it.
1530 data = malloc(pagesize);
1533 for (i = 0; i < pagesize; ++i)
1534 *(data + i) = rand();
1536 fd = creat("conftestmmap", 0600);
1539 if (write(fd, data, pagesize) != pagesize)
1544 * Next, try to mmap the file at a fixed address which
1545 * already has something else allocated at it. If we can,
1546 * also make sure that we see the same garbage.
1548 fd = open("conftestmmap", O_RDWR);
1551 data2 = malloc(2 * pagesize);
1554 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1555 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1556 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1558 for (i = 0; i < pagesize; ++i)
1559 if (*(data + i) != *(data2 + i))
1563 * Finally, make sure that changes to the mapped area
1564 * do not percolate back to the file as seen by read().
1565 * (This is a bug on some variants of i386 svr4.0.)
1567 for (i = 0; i < pagesize; ++i)
1568 *(data2 + i) = *(data2 + i) + 1;
1569 data3 = malloc(pagesize);
1572 if (read(fd, data3, pagesize) != pagesize)
1574 for (i = 0; i < pagesize; ++i)
1575 if (*(data + i) != *(data3 + i))
1578 unlink("conftestmmap");
1583 if { (eval echo configure
:1584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1585 ac_cv_func_mmap_fixed_mapped
=yes
1587 echo "configure: failed program was:" >&5
1588 cat conftest.
$ac_ext >&5
1590 ac_cv_func_mmap_fixed_mapped
=no
1597 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1598 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1599 cat >> confdefs.h
<<\EOF
1605 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1606 echo "configure:1607: checking for Cygwin environment" >&5
1607 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1608 echo $ac_n "(cached) $ac_c" 1>&6
1610 cat > conftest.
$ac_ext <<EOF
1611 #line 1612 "configure"
1612 #include "confdefs.h"
1617 #define __CYGWIN__ __CYGWIN32__
1622 if { (eval echo configure
:1623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1626 echo "configure: failed program was:" >&5
1627 cat conftest.
$ac_ext >&5
1635 echo "$ac_t""$ac_cv_cygwin" 1>&6
1637 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
1638 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1639 echo "configure:1640: checking for mingw32 environment" >&5
1640 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1641 echo $ac_n "(cached) $ac_c" 1>&6
1643 cat > conftest.
$ac_ext <<EOF
1644 #line 1645 "configure"
1645 #include "confdefs.h"
1651 if { (eval echo configure
:1652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1655 echo "configure: failed program was:" >&5
1656 cat conftest.
$ac_ext >&5
1664 echo "$ac_t""$ac_cv_mingw32" 1>&6
1666 test "$ac_cv_mingw32" = yes && MINGW32
=yes
1668 # autoconf.info says this should be called right after AC_INIT.
1672 for ac_dir
in `cd $srcdir;pwd`/..
/..
$srcdir/`cd $srcdir;pwd`/..
/..
; do
1673 if test -f $ac_dir/install-sh
; then
1675 ac_install_sh
="$ac_aux_dir/install-sh -c"
1677 elif test -f $ac_dir/install.sh
; then
1679 ac_install_sh
="$ac_aux_dir/install.sh -c"
1683 if test -z "$ac_aux_dir"; then
1684 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
1686 ac_config_guess
=$ac_aux_dir/config.guess
1687 ac_config_sub
=$ac_aux_dir/config.sub
1688 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1691 # Do some error checking and defaulting for the host and target type.
1693 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1696 # 1. You are not allowed to specify --host, --target, and nonopt at the
1698 # 2. Host defaults to nonopt.
1699 # 3. If nonopt is not specified, then host defaults to the current host,
1700 # as determined by config.guess.
1701 # 4. Target and build default to nonopt.
1702 # 5. If nonopt is not specified, then target and build default to host.
1704 # The aliases save the names the user supplied, while $host etc.
1705 # will get canonicalized.
1706 case $host---$target---$nonopt in
1707 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1708 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1712 # Make sure we can run config.sub.
1713 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1714 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1717 echo $ac_n "checking host system type""... $ac_c" 1>&6
1718 echo "configure:1719: checking host system type" >&5
1721 case "$host_alias" in
1725 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1726 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1728 *) host_alias
=$nonopt ;;
1732 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1733 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1734 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1735 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1736 echo "$ac_t""$host" 1>&6
1738 echo $ac_n "checking target system type""... $ac_c" 1>&6
1739 echo "configure:1740: checking target system type" >&5
1741 target_alias
=$target
1742 case "$target_alias" in
1745 NONE
) target_alias
=$host_alias ;;
1746 *) target_alias
=$nonopt ;;
1750 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1751 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1752 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1753 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1754 echo "$ac_t""$target" 1>&6
1756 echo $ac_n "checking build system type""... $ac_c" 1>&6
1757 echo "configure:1758: checking build system type" >&5
1760 case "$build_alias" in
1763 NONE
) build_alias
=$host_alias ;;
1764 *) build_alias
=$nonopt ;;
1768 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1769 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1770 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1771 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1772 echo "$ac_t""$build" 1>&6
1774 test "$host_alias" != "$target_alias" &&
1775 test "$program_prefix$program_suffix$program_transform_name" = \
1777 program_prefix
=${target_alias}-
1779 if test "$program_transform_name" = s
,x
,x
,; then
1780 program_transform_name
=
1782 # Double any \ or $. echo might interpret backslashes.
1783 cat <<\EOF_SED
> conftestsed
1784 s
,\\,\\\\,g
; s
,\$
,$$
,g
1786 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1789 test "$program_prefix" != NONE
&&
1790 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1791 # Use a double $ so make ignores it.
1792 test "$program_suffix" != NONE
&&
1793 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1795 # sed with no file args requires a program.
1796 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1798 # Extract the first word of "gcc", so it can be a program name with args.
1799 set dummy gcc
; ac_word
=$2
1800 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1801 echo "configure:1802: checking for $ac_word" >&5
1802 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1803 echo $ac_n "(cached) $ac_c" 1>&6
1805 if test -n "$CC"; then
1806 ac_cv_prog_CC
="$CC" # Let the user override the test.
1808 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1810 for ac_dir
in $ac_dummy; do
1811 test -z "$ac_dir" && ac_dir
=.
1812 if test -f $ac_dir/$ac_word; then
1821 if test -n "$CC"; then
1822 echo "$ac_t""$CC" 1>&6
1824 echo "$ac_t""no" 1>&6
1827 if test -z "$CC"; then
1828 # Extract the first word of "cc", so it can be a program name with args.
1829 set dummy cc
; ac_word
=$2
1830 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1831 echo "configure:1832: checking for $ac_word" >&5
1832 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1833 echo $ac_n "(cached) $ac_c" 1>&6
1835 if test -n "$CC"; then
1836 ac_cv_prog_CC
="$CC" # Let the user override the test.
1838 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1841 for ac_dir
in $ac_dummy; do
1842 test -z "$ac_dir" && ac_dir
=.
1843 if test -f $ac_dir/$ac_word; then
1844 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1845 ac_prog_rejected
=yes
1853 if test $ac_prog_rejected = yes; then
1854 # We found a bogon in the path, so make sure we never use it.
1855 set dummy
$ac_cv_prog_CC
1857 if test $# -gt 0; then
1858 # We chose a different compiler from the bogus one.
1859 # However, it has the same basename, so the bogon will be chosen
1860 # first if we set CC to just the basename; use the full file name.
1862 set dummy
"$ac_dir/$ac_word" "$@"
1870 if test -n "$CC"; then
1871 echo "$ac_t""$CC" 1>&6
1873 echo "$ac_t""no" 1>&6
1876 if test -z "$CC"; then
1877 case "`uname -s`" in
1879 # Extract the first word of "cl", so it can be a program name with args.
1880 set dummy cl
; ac_word
=$2
1881 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1882 echo "configure:1883: checking for $ac_word" >&5
1883 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1884 echo $ac_n "(cached) $ac_c" 1>&6
1886 if test -n "$CC"; then
1887 ac_cv_prog_CC
="$CC" # Let the user override the test.
1889 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1891 for ac_dir
in $ac_dummy; do
1892 test -z "$ac_dir" && ac_dir
=.
1893 if test -f $ac_dir/$ac_word; then
1902 if test -n "$CC"; then
1903 echo "$ac_t""$CC" 1>&6
1905 echo "$ac_t""no" 1>&6
1910 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1913 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1914 echo "configure:1915: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1917 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1918 ac_cpp
='$CPP $CPPFLAGS'
1919 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1920 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1921 cross_compiling
=$ac_cv_prog_cc_cross
1923 cat > conftest.
$ac_ext << EOF
1925 #line 1926 "configure"
1926 #include "confdefs.h"
1930 if { (eval echo configure
:1931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1931 ac_cv_prog_cc_works
=yes
1932 # If we can't run a trivial program, we are probably using a cross compiler.
1933 if (.
/conftest
; exit) 2>/dev
/null
; then
1934 ac_cv_prog_cc_cross
=no
1936 ac_cv_prog_cc_cross
=yes
1939 echo "configure: failed program was:" >&5
1940 cat conftest.
$ac_ext >&5
1941 ac_cv_prog_cc_works
=no
1945 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1946 ac_cpp
='$CPP $CPPFLAGS'
1947 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1948 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1949 cross_compiling
=$ac_cv_prog_cc_cross
1951 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1952 if test $ac_cv_prog_cc_works = no
; then
1953 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1955 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1956 echo "configure:1957: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1957 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1958 cross_compiling
=$ac_cv_prog_cc_cross
1960 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1961 echo "configure:1962: checking whether we are using GNU C" >&5
1962 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1963 echo $ac_n "(cached) $ac_c" 1>&6
1965 cat > conftest.c
<<EOF
1970 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1977 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1979 if test $ac_cv_prog_gcc = yes; then
1985 ac_test_CFLAGS
="${CFLAGS+set}"
1986 ac_save_CFLAGS
="$CFLAGS"
1988 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1989 echo "configure:1990: checking whether ${CC-cc} accepts -g" >&5
1990 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1991 echo $ac_n "(cached) $ac_c" 1>&6
1993 echo 'void f(){}' > conftest.c
1994 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2003 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2004 if test "$ac_test_CFLAGS" = set; then
2005 CFLAGS
="$ac_save_CFLAGS"
2006 elif test $ac_cv_prog_cc_g = yes; then
2007 if test "$GCC" = yes; then
2013 if test "$GCC" = yes; then
2020 # Find a good install program. We prefer a C program (faster),
2021 # so one script is as good as another. But avoid the broken or
2022 # incompatible versions:
2023 # SysV /etc/install, /usr/sbin/install
2024 # SunOS /usr/etc/install
2025 # IRIX /sbin/install
2027 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2028 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2029 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2030 # ./install, which can be erroneously created by make from ./install.sh.
2031 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2032 echo "configure:2033: checking for a BSD compatible install" >&5
2033 if test -z "$INSTALL"; then
2034 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2035 echo $ac_n "(cached) $ac_c" 1>&6
2037 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2038 for ac_dir
in $PATH; do
2039 # Account for people who put trailing slashes in PATH elements.
2041 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2043 # OSF1 and SCO ODT 3.0 have their own names for install.
2044 # Don't use installbsd from OSF since it installs stuff as root
2046 for ac_prog
in ginstall scoinst
install; do
2047 if test -f $ac_dir/$ac_prog; then
2048 if test $ac_prog = install &&
2049 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2050 # AIX install. It has an incompatible calling convention.
2053 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2064 if test "${ac_cv_path_install+set}" = set; then
2065 INSTALL
="$ac_cv_path_install"
2067 # As a last resort, use the slow shell script. We don't cache a
2068 # path for INSTALL within a source directory, because that will
2069 # break other packages using the cache if that directory is
2070 # removed, or if the path is relative.
2071 INSTALL
="$ac_install_sh"
2074 echo "$ac_t""$INSTALL" 1>&6
2076 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2077 # It thinks the first close brace ends the variable substitution.
2078 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2080 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2082 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2085 # Put a plausible default for CC_FOR_BUILD in Makefile.
2086 if test "x$cross_compiling" = "xno"; then
2087 CC_FOR_BUILD
='$(CC)'
2097 # Extract the first word of "ranlib", so it can be a program name with args.
2098 set dummy ranlib
; ac_word
=$2
2099 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2100 echo "configure:2101: checking for $ac_word" >&5
2101 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2102 echo $ac_n "(cached) $ac_c" 1>&6
2104 if test -n "$RANLIB"; then
2105 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2107 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2109 for ac_dir
in $ac_dummy; do
2110 test -z "$ac_dir" && ac_dir
=.
2111 if test -f $ac_dir/$ac_word; then
2112 ac_cv_prog_RANLIB
="ranlib"
2117 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2120 RANLIB
="$ac_cv_prog_RANLIB"
2121 if test -n "$RANLIB"; then
2122 echo "$ac_t""$RANLIB" 1>&6
2124 echo "$ac_t""no" 1>&6
2130 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2131 unistd.h values.h sys
/param.h
2133 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2134 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2135 echo "configure:2136: checking for $ac_hdr" >&5
2136 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2137 echo $ac_n "(cached) $ac_c" 1>&6
2139 cat > conftest.
$ac_ext <<EOF
2140 #line 2141 "configure"
2141 #include "confdefs.h"
2144 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2145 { (eval echo configure
:2146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2146 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2147 if test -z "$ac_err"; then
2149 eval "ac_cv_header_$ac_safe=yes"
2152 echo "configure: failed program was:" >&5
2153 cat conftest.
$ac_ext >&5
2155 eval "ac_cv_header_$ac_safe=no"
2159 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2160 echo "$ac_t""yes" 1>&6
2161 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2162 cat >> confdefs.h
<<EOF
2163 #define $ac_tr_hdr 1
2167 echo "$ac_t""no" 1>&6
2171 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2172 __argz_count __argz_stringify __argz_next
2174 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2175 echo "configure:2176: checking for $ac_func" >&5
2176 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2177 echo $ac_n "(cached) $ac_c" 1>&6
2179 cat > conftest.
$ac_ext <<EOF
2180 #line 2181 "configure"
2181 #include "confdefs.h"
2182 /* System header to define __stub macros and hopefully few prototypes,
2183 which can conflict with char $ac_func(); below. */
2185 /* Override any gcc2 internal prototype to avoid an error. */
2186 /* We use char because int might match the return type of a gcc2
2187 builtin and then its argument prototype would still apply. */
2192 /* The GNU C library defines this for functions which it implements
2193 to always fail with ENOSYS. Some functions are actually named
2194 something starting with __ and the normal name is an alias. */
2195 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2203 if { (eval echo configure
:2204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2205 eval "ac_cv_func_$ac_func=yes"
2207 echo "configure: failed program was:" >&5
2208 cat conftest.
$ac_ext >&5
2210 eval "ac_cv_func_$ac_func=no"
2215 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2216 echo "$ac_t""yes" 1>&6
2217 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2218 cat >> confdefs.h
<<EOF
2219 #define $ac_tr_func 1
2223 echo "$ac_t""no" 1>&6
2228 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2229 for ac_func
in stpcpy
2231 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2232 echo "configure:2233: checking for $ac_func" >&5
2233 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2234 echo $ac_n "(cached) $ac_c" 1>&6
2236 cat > conftest.
$ac_ext <<EOF
2237 #line 2238 "configure"
2238 #include "confdefs.h"
2239 /* System header to define __stub macros and hopefully few prototypes,
2240 which can conflict with char $ac_func(); below. */
2242 /* Override any gcc2 internal prototype to avoid an error. */
2243 /* We use char because int might match the return type of a gcc2
2244 builtin and then its argument prototype would still apply. */
2249 /* The GNU C library defines this for functions which it implements
2250 to always fail with ENOSYS. Some functions are actually named
2251 something starting with __ and the normal name is an alias. */
2252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2260 if { (eval echo configure
:2261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2262 eval "ac_cv_func_$ac_func=yes"
2264 echo "configure: failed program was:" >&5
2265 cat conftest.
$ac_ext >&5
2267 eval "ac_cv_func_$ac_func=no"
2272 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2273 echo "$ac_t""yes" 1>&6
2274 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2275 cat >> confdefs.h
<<EOF
2276 #define $ac_tr_func 1
2280 echo "$ac_t""no" 1>&6
2285 if test "${ac_cv_func_stpcpy}" = "yes"; then
2286 cat >> confdefs.h
<<\EOF
2287 #define HAVE_STPCPY 1
2292 if test $ac_cv_header_locale_h = yes; then
2293 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2294 echo "configure:2295: checking for LC_MESSAGES" >&5
2295 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2296 echo $ac_n "(cached) $ac_c" 1>&6
2298 cat > conftest.
$ac_ext <<EOF
2299 #line 2300 "configure"
2300 #include "confdefs.h"
2306 if { (eval echo configure
:2307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2308 am_cv_val_LC_MESSAGES
=yes
2310 echo "configure: failed program was:" >&5
2311 cat conftest.
$ac_ext >&5
2313 am_cv_val_LC_MESSAGES
=no
2318 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2319 if test $am_cv_val_LC_MESSAGES = yes; then
2320 cat >> confdefs.h
<<\EOF
2321 #define HAVE_LC_MESSAGES 1
2326 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2327 echo "configure:2328: checking whether NLS is requested" >&5
2328 # Check whether --enable-nls or --disable-nls was given.
2329 if test "${enable_nls+set}" = set; then
2330 enableval
="$enable_nls"
2336 echo "$ac_t""$USE_NLS" 1>&6
2339 USE_INCLUDED_LIBINTL
=no
2341 if test "$USE_NLS" = "yes"; then
2342 cat >> confdefs.h
<<\EOF
2343 #define ENABLE_NLS 1
2346 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2347 echo "configure:2348: checking whether included gettext is requested" >&5
2348 # Check whether --with-included-gettext or --without-included-gettext was given.
2349 if test "${with_included_gettext+set}" = set; then
2350 withval
="$with_included_gettext"
2351 nls_cv_force_use_gnu_gettext
=$withval
2353 nls_cv_force_use_gnu_gettext
=no
2356 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2358 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2359 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2361 nls_cv_header_libgt
=
2364 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2365 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2366 echo "configure:2367: checking for libintl.h" >&5
2367 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2368 echo $ac_n "(cached) $ac_c" 1>&6
2370 cat > conftest.
$ac_ext <<EOF
2371 #line 2372 "configure"
2372 #include "confdefs.h"
2373 #include <libintl.h>
2375 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2376 { (eval echo configure
:2377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2377 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2378 if test -z "$ac_err"; then
2380 eval "ac_cv_header_$ac_safe=yes"
2383 echo "configure: failed program was:" >&5
2384 cat conftest.
$ac_ext >&5
2386 eval "ac_cv_header_$ac_safe=no"
2390 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2391 echo "$ac_t""yes" 1>&6
2392 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2393 echo "configure:2394: checking for gettext in libc" >&5
2394 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2395 echo $ac_n "(cached) $ac_c" 1>&6
2397 cat > conftest.
$ac_ext <<EOF
2398 #line 2399 "configure"
2399 #include "confdefs.h"
2400 #include <libintl.h>
2402 return (int) gettext ("")
2405 if { (eval echo configure
:2406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2407 gt_cv_func_gettext_libc
=yes
2409 echo "configure: failed program was:" >&5
2410 cat conftest.
$ac_ext >&5
2412 gt_cv_func_gettext_libc
=no
2417 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2419 if test "$gt_cv_func_gettext_libc" != "yes"; then
2420 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2421 echo "configure:2422: checking for bindtextdomain in -lintl" >&5
2422 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2423 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2424 echo $ac_n "(cached) $ac_c" 1>&6
2426 ac_save_LIBS
="$LIBS"
2428 cat > conftest.
$ac_ext <<EOF
2429 #line 2430 "configure"
2430 #include "confdefs.h"
2431 /* Override any gcc2 internal prototype to avoid an error. */
2432 /* We use char because int might match the return type of a gcc2
2433 builtin and then its argument prototype would still apply. */
2434 char bindtextdomain();
2440 if { (eval echo configure
:2441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2442 eval "ac_cv_lib_$ac_lib_var=yes"
2444 echo "configure: failed program was:" >&5
2445 cat conftest.
$ac_ext >&5
2447 eval "ac_cv_lib_$ac_lib_var=no"
2450 LIBS
="$ac_save_LIBS"
2453 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2454 echo "$ac_t""yes" 1>&6
2455 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2456 echo "configure:2457: checking for gettext in libintl" >&5
2457 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2458 echo $ac_n "(cached) $ac_c" 1>&6
2460 cat > conftest.
$ac_ext <<EOF
2461 #line 2462 "configure"
2462 #include "confdefs.h"
2465 return (int) gettext ("")
2468 if { (eval echo configure
:2469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2470 gt_cv_func_gettext_libintl
=yes
2472 echo "configure: failed program was:" >&5
2473 cat conftest.
$ac_ext >&5
2475 gt_cv_func_gettext_libintl
=no
2480 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2482 echo "$ac_t""no" 1>&6
2487 if test "$gt_cv_func_gettext_libc" = "yes" \
2488 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2489 cat >> confdefs.h
<<\EOF
2490 #define HAVE_GETTEXT 1
2493 # Extract the first word of "msgfmt", so it can be a program name with args.
2494 set dummy msgfmt
; ac_word
=$2
2495 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2496 echo "configure:2497: checking for $ac_word" >&5
2497 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2498 echo $ac_n "(cached) $ac_c" 1>&6
2502 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2505 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2506 for ac_dir
in $PATH; do
2507 test -z "$ac_dir" && ac_dir
=.
2508 if test -f $ac_dir/$ac_word; then
2509 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2510 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2516 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2520 MSGFMT
="$ac_cv_path_MSGFMT"
2521 if test -n "$MSGFMT"; then
2522 echo "$ac_t""$MSGFMT" 1>&6
2524 echo "$ac_t""no" 1>&6
2526 if test "$MSGFMT" != "no"; then
2527 for ac_func
in dcgettext
2529 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2530 echo "configure:2531: checking for $ac_func" >&5
2531 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2532 echo $ac_n "(cached) $ac_c" 1>&6
2534 cat > conftest.
$ac_ext <<EOF
2535 #line 2536 "configure"
2536 #include "confdefs.h"
2537 /* System header to define __stub macros and hopefully few prototypes,
2538 which can conflict with char $ac_func(); below. */
2540 /* Override any gcc2 internal prototype to avoid an error. */
2541 /* We use char because int might match the return type of a gcc2
2542 builtin and then its argument prototype would still apply. */
2547 /* The GNU C library defines this for functions which it implements
2548 to always fail with ENOSYS. Some functions are actually named
2549 something starting with __ and the normal name is an alias. */
2550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2558 if { (eval echo configure
:2559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2560 eval "ac_cv_func_$ac_func=yes"
2562 echo "configure: failed program was:" >&5
2563 cat conftest.
$ac_ext >&5
2565 eval "ac_cv_func_$ac_func=no"
2570 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2571 echo "$ac_t""yes" 1>&6
2572 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2573 cat >> confdefs.h
<<EOF
2574 #define $ac_tr_func 1
2578 echo "$ac_t""no" 1>&6
2582 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2583 set dummy gmsgfmt
; ac_word
=$2
2584 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2585 echo "configure:2586: checking for $ac_word" >&5
2586 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2587 echo $ac_n "(cached) $ac_c" 1>&6
2591 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2594 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2597 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2599 for ac_dir
in $ac_dummy; do
2600 test -z "$ac_dir" && ac_dir
=.
2601 if test -f $ac_dir/$ac_word; then
2602 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2607 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2611 GMSGFMT
="$ac_cv_path_GMSGFMT"
2612 if test -n "$GMSGFMT"; then
2613 echo "$ac_t""$GMSGFMT" 1>&6
2615 echo "$ac_t""no" 1>&6
2618 # Extract the first word of "xgettext", so it can be a program name with args.
2619 set dummy xgettext
; ac_word
=$2
2620 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2621 echo "configure:2622: checking for $ac_word" >&5
2622 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2623 echo $ac_n "(cached) $ac_c" 1>&6
2627 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2630 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2631 for ac_dir
in $PATH; do
2632 test -z "$ac_dir" && ac_dir
=.
2633 if test -f $ac_dir/$ac_word; then
2634 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2635 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2641 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2645 XGETTEXT
="$ac_cv_path_XGETTEXT"
2646 if test -n "$XGETTEXT"; then
2647 echo "$ac_t""$XGETTEXT" 1>&6
2649 echo "$ac_t""no" 1>&6
2652 cat > conftest.
$ac_ext <<EOF
2653 #line 2654 "configure"
2654 #include "confdefs.h"
2657 extern int _nl_msg_cat_cntr;
2658 return _nl_msg_cat_cntr
2661 if { (eval echo configure
:2662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2666 echo "configure: failed program was:" >&5
2667 cat conftest.
$ac_ext >&5
2678 echo "$ac_t""no" 1>&6
2683 if test "$CATOBJEXT" = "NONE"; then
2684 nls_cv_use_gnu_gettext
=yes
2688 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2689 INTLOBJS
="\$(GETTOBJS)"
2690 # Extract the first word of "msgfmt", so it can be a program name with args.
2691 set dummy msgfmt
; ac_word
=$2
2692 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2693 echo "configure:2694: checking for $ac_word" >&5
2694 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2695 echo $ac_n "(cached) $ac_c" 1>&6
2699 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2702 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2703 for ac_dir
in $PATH; do
2704 test -z "$ac_dir" && ac_dir
=.
2705 if test -f $ac_dir/$ac_word; then
2706 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2707 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2713 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2717 MSGFMT
="$ac_cv_path_MSGFMT"
2718 if test -n "$MSGFMT"; then
2719 echo "$ac_t""$MSGFMT" 1>&6
2721 echo "$ac_t""no" 1>&6
2724 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2725 set dummy gmsgfmt
; ac_word
=$2
2726 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2727 echo "configure:2728: checking for $ac_word" >&5
2728 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2729 echo $ac_n "(cached) $ac_c" 1>&6
2733 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2736 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2739 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2741 for ac_dir
in $ac_dummy; do
2742 test -z "$ac_dir" && ac_dir
=.
2743 if test -f $ac_dir/$ac_word; then
2744 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2749 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2753 GMSGFMT
="$ac_cv_path_GMSGFMT"
2754 if test -n "$GMSGFMT"; then
2755 echo "$ac_t""$GMSGFMT" 1>&6
2757 echo "$ac_t""no" 1>&6
2760 # Extract the first word of "xgettext", so it can be a program name with args.
2761 set dummy xgettext
; ac_word
=$2
2762 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2763 echo "configure:2764: checking for $ac_word" >&5
2764 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2765 echo $ac_n "(cached) $ac_c" 1>&6
2769 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2772 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2773 for ac_dir
in $PATH; do
2774 test -z "$ac_dir" && ac_dir
=.
2775 if test -f $ac_dir/$ac_word; then
2776 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2777 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2783 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2787 XGETTEXT
="$ac_cv_path_XGETTEXT"
2788 if test -n "$XGETTEXT"; then
2789 echo "$ac_t""$XGETTEXT" 1>&6
2791 echo "$ac_t""no" 1>&6
2795 USE_INCLUDED_LIBINTL
=yes
2799 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2801 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2802 nls_cv_header_intl
=libintl.h
2803 nls_cv_header_libgt
=libgettext.h
2806 if test "$XGETTEXT" != ":"; then
2807 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2810 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2815 # We need to process the po/ directory.
2819 nls_cv_header_intl
=libintl.h
2820 nls_cv_header_libgt
=libgettext.h
2823 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2824 # because some of the sources are only built for this goal.
2825 if test "$PACKAGE" = gettext; then
2827 USE_INCLUDED_LIBINTL
=yes
2830 for lang
in $ALL_LINGUAS; do
2831 GMOFILES
="$GMOFILES $lang.gmo"
2832 POFILES
="$POFILES $lang.po"
2848 if test "x$CATOBJEXT" != "x"; then
2849 if test "x$ALL_LINGUAS" = "x"; then
2852 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2853 echo "configure:2854: checking for catalogs to be installed" >&5
2855 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2856 case "$ALL_LINGUAS" in
2857 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2860 LINGUAS
=$NEW_LINGUAS
2861 echo "$ac_t""$LINGUAS" 1>&6
2864 if test -n "$LINGUAS"; then
2865 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2869 if test $ac_cv_header_locale_h = yes; then
2870 INCLUDE_LOCALE_H
="#include <locale.h>"
2873 /* The system does not provide the header <locale.h>. Take care yourself. */"
2877 if test -f $srcdir/po2tbl.
sed.
in; then
2878 if test "$CATOBJEXT" = ".cat"; then
2879 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2880 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2881 echo "configure:2882: checking for linux/version.h" >&5
2882 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2883 echo $ac_n "(cached) $ac_c" 1>&6
2885 cat > conftest.
$ac_ext <<EOF
2886 #line 2887 "configure"
2887 #include "confdefs.h"
2888 #include <linux/version.h>
2890 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2891 { (eval echo configure
:2892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2892 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2893 if test -z "$ac_err"; then
2895 eval "ac_cv_header_$ac_safe=yes"
2898 echo "configure: failed program was:" >&5
2899 cat conftest.
$ac_ext >&5
2901 eval "ac_cv_header_$ac_safe=no"
2905 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2906 echo "$ac_t""yes" 1>&6
2909 echo "$ac_t""no" 1>&6
2914 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2916 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2917 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2920 if test "$PACKAGE" = "gettext"; then
2930 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2936 if test -d $srcdir/po
; then
2937 test -d po || mkdir po
2938 if test "x$srcdir" != "x."; then
2939 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2940 posrcprefix
="$srcdir/"
2942 posrcprefix
="../$srcdir/"
2948 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2949 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2953 # Check for common headers.
2954 # FIXME: Seems to me this can cause problems for i386-windows hosts.
2955 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
2956 for ac_hdr
in stdlib.h string.h
strings.h unistd.h
time.h
2958 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2959 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2960 echo "configure:2961: checking for $ac_hdr" >&5
2961 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2962 echo $ac_n "(cached) $ac_c" 1>&6
2964 cat > conftest.
$ac_ext <<EOF
2965 #line 2966 "configure"
2966 #include "confdefs.h"
2969 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2970 { (eval echo configure
:2971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2971 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2972 if test -z "$ac_err"; then
2974 eval "ac_cv_header_$ac_safe=yes"
2977 echo "configure: failed program was:" >&5
2978 cat conftest.
$ac_ext >&5
2980 eval "ac_cv_header_$ac_safe=no"
2984 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2985 echo "$ac_t""yes" 1>&6
2986 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2987 cat >> confdefs.h
<<EOF
2988 #define $ac_tr_hdr 1
2992 echo "$ac_t""no" 1>&6
2996 for ac_hdr
in sys
/time.h sys
/resource.h
2998 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2999 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3000 echo "configure:3001: checking for $ac_hdr" >&5
3001 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3002 echo $ac_n "(cached) $ac_c" 1>&6
3004 cat > conftest.
$ac_ext <<EOF
3005 #line 3006 "configure"
3006 #include "confdefs.h"
3009 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3010 { (eval echo configure
:3011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3011 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3012 if test -z "$ac_err"; then
3014 eval "ac_cv_header_$ac_safe=yes"
3017 echo "configure: failed program was:" >&5
3018 cat conftest.
$ac_ext >&5
3020 eval "ac_cv_header_$ac_safe=no"
3024 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3025 echo "$ac_t""yes" 1>&6
3026 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3027 cat >> confdefs.h
<<EOF
3028 #define $ac_tr_hdr 1
3032 echo "$ac_t""no" 1>&6
3036 for ac_hdr
in fcntl.h fpu_control.h
3038 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3039 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3040 echo "configure:3041: checking for $ac_hdr" >&5
3041 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3042 echo $ac_n "(cached) $ac_c" 1>&6
3044 cat > conftest.
$ac_ext <<EOF
3045 #line 3046 "configure"
3046 #include "confdefs.h"
3049 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3050 { (eval echo configure
:3051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3051 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3052 if test -z "$ac_err"; then
3054 eval "ac_cv_header_$ac_safe=yes"
3057 echo "configure: failed program was:" >&5
3058 cat conftest.
$ac_ext >&5
3060 eval "ac_cv_header_$ac_safe=no"
3064 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3065 echo "$ac_t""yes" 1>&6
3066 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3067 cat >> confdefs.h
<<EOF
3068 #define $ac_tr_hdr 1
3072 echo "$ac_t""no" 1>&6
3076 for ac_hdr
in dlfcn.h errno.h sys
/stat.h
3078 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3079 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3080 echo "configure:3081: checking for $ac_hdr" >&5
3081 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3082 echo $ac_n "(cached) $ac_c" 1>&6
3084 cat > conftest.
$ac_ext <<EOF
3085 #line 3086 "configure"
3086 #include "confdefs.h"
3089 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3090 { (eval echo configure
:3091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3091 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3092 if test -z "$ac_err"; then
3094 eval "ac_cv_header_$ac_safe=yes"
3097 echo "configure: failed program was:" >&5
3098 cat conftest.
$ac_ext >&5
3100 eval "ac_cv_header_$ac_safe=no"
3104 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3105 echo "$ac_t""yes" 1>&6
3106 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3107 cat >> confdefs.h
<<EOF
3108 #define $ac_tr_hdr 1
3112 echo "$ac_t""no" 1>&6
3116 for ac_func
in getrusage
time sigaction __setfpucw
3118 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3119 echo "configure:3120: checking for $ac_func" >&5
3120 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3121 echo $ac_n "(cached) $ac_c" 1>&6
3123 cat > conftest.
$ac_ext <<EOF
3124 #line 3125 "configure"
3125 #include "confdefs.h"
3126 /* System header to define __stub macros and hopefully few prototypes,
3127 which can conflict with char $ac_func(); below. */
3129 /* Override any gcc2 internal prototype to avoid an error. */
3130 /* We use char because int might match the return type of a gcc2
3131 builtin and then its argument prototype would still apply. */
3136 /* The GNU C library defines this for functions which it implements
3137 to always fail with ENOSYS. Some functions are actually named
3138 something starting with __ and the normal name is an alias. */
3139 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3147 if { (eval echo configure
:3148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3149 eval "ac_cv_func_$ac_func=yes"
3151 echo "configure: failed program was:" >&5
3152 cat conftest.
$ac_ext >&5
3154 eval "ac_cv_func_$ac_func=no"
3159 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3160 echo "$ac_t""yes" 1>&6
3161 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3162 cat >> confdefs.h
<<EOF
3163 #define $ac_tr_func 1
3167 echo "$ac_t""no" 1>&6
3172 # Check for socket libraries
3173 echo $ac_n "checking for bind in -lsocket""... $ac_c" 1>&6
3174 echo "configure:3175: checking for bind in -lsocket" >&5
3175 ac_lib_var
=`echo socket'_'bind | sed 'y%./+-%__p_%'`
3176 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3177 echo $ac_n "(cached) $ac_c" 1>&6
3179 ac_save_LIBS
="$LIBS"
3180 LIBS
="-lsocket $LIBS"
3181 cat > conftest.
$ac_ext <<EOF
3182 #line 3183 "configure"
3183 #include "confdefs.h"
3184 /* Override any gcc2 internal prototype to avoid an error. */
3185 /* We use char because int might match the return type of a gcc2
3186 builtin and then its argument prototype would still apply. */
3193 if { (eval echo configure
:3194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3195 eval "ac_cv_lib_$ac_lib_var=yes"
3197 echo "configure: failed program was:" >&5
3198 cat conftest.
$ac_ext >&5
3200 eval "ac_cv_lib_$ac_lib_var=no"
3203 LIBS
="$ac_save_LIBS"
3206 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3207 echo "$ac_t""yes" 1>&6
3208 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3209 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3210 cat >> confdefs.h
<<EOF
3211 #define $ac_tr_lib 1
3214 LIBS
="-lsocket $LIBS"
3217 echo "$ac_t""no" 1>&6
3220 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3221 echo "configure:3222: checking for gethostbyname in -lnsl" >&5
3222 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3223 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3224 echo $ac_n "(cached) $ac_c" 1>&6
3226 ac_save_LIBS
="$LIBS"
3228 cat > conftest.
$ac_ext <<EOF
3229 #line 3230 "configure"
3230 #include "confdefs.h"
3231 /* Override any gcc2 internal prototype to avoid an error. */
3232 /* We use char because int might match the return type of a gcc2
3233 builtin and then its argument prototype would still apply. */
3234 char gethostbyname();
3240 if { (eval echo configure
:3241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3242 eval "ac_cv_lib_$ac_lib_var=yes"
3244 echo "configure: failed program was:" >&5
3245 cat conftest.
$ac_ext >&5
3247 eval "ac_cv_lib_$ac_lib_var=no"
3250 LIBS
="$ac_save_LIBS"
3253 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3254 echo "$ac_t""yes" 1>&6
3255 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3256 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3257 cat >> confdefs.h
<<EOF
3258 #define $ac_tr_lib 1
3264 echo "$ac_t""no" 1>&6
3268 .
${srcdir}/..
/..
/bfd
/configure.
host
3272 USE_MAINTAINER_MODE
=no
3273 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3274 if test "${enable_maintainer_mode+set}" = set; then
3275 enableval
="$enable_maintainer_mode"
3276 case "${enableval}" in
3277 yes) MAINT
="" USE_MAINTAINER_MODE
=yes ;;
3279 *) { echo "configure: error: "--enable-maintainer-mode does not take a value
"" 1>&2; exit 1; }; MAINT
="#" ;;
3281 if test x
"$silent" != x
"yes" && test x
"$MAINT" = x
""; then
3282 echo "Setting maintainer mode" 6>&1
3290 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
3291 if test "${enable_sim_bswap+set}" = set; then
3292 enableval
="$enable_sim_bswap"
3293 case "${enableval}" in
3294 yes) sim_bswap
="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
3295 no
) sim_bswap
="-DWITH_BSWAP=0";;
3296 *) { echo "configure: error: "--enable-sim-bswap does not take a value
"" 1>&2; exit 1; }; sim_bswap
="";;
3298 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
3299 echo "Setting bswap flags = $sim_bswap" 6>&1
3307 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
3308 if test "${enable_sim_cflags+set}" = set; then
3309 enableval
="$enable_sim_cflags"
3310 case "${enableval}" in
3311 yes) sim_cflags
="-O2 -fomit-frame-pointer";;
3312 trace
) { echo "configure: error: "Please use
--enable-sim-debug instead.
"" 1>&2; exit 1; }; sim_cflags
="";;
3314 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3316 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
3317 echo "Setting sim cflags = $sim_cflags" 6>&1
3325 # Check whether --enable-sim-debug or --disable-sim-debug was given.
3326 if test "${enable_sim_debug+set}" = set; then
3327 enableval
="$enable_sim_debug"
3328 case "${enableval}" in
3329 yes) sim_debug
="-DDEBUG=7 -DWITH_DEBUG=7";;
3330 no
) sim_debug
="-DDEBUG=0 -DWITH_DEBUG=0";;
3331 *) sim_debug
="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
3333 if test x
"$silent" != x
"yes" && test x
"$sim_debug" != x
""; then
3334 echo "Setting sim debug = $sim_debug" 6>&1
3342 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
3343 if test "${enable_sim_stdio+set}" = set; then
3344 enableval
="$enable_sim_stdio"
3345 case "${enableval}" in
3346 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
3347 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
3348 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-stdio"" 1>&2; exit 1; }; sim_stdio
="";;
3350 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
3351 echo "Setting stdio flags = $sim_stdio" 6>&1
3359 # Check whether --enable-sim-trace or --disable-sim-trace was given.
3360 if test "${enable_sim_trace+set}" = set; then
3361 enableval
="$enable_sim_trace"
3362 case "${enableval}" in
3363 yes) sim_trace
="-DTRACE=1 -DWITH_TRACE=-1";;
3364 no
) sim_trace
="-DTRACE=0 -DWITH_TRACE=0";;
3366 sim_trace
="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
3369 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
3370 if test x
"$sim_trace" = x
; then
3371 sim_trace
="-DWITH_TRACE='(TRACE_$x"
3373 sim_trace
="${sim_trace}|TRACE_$x"
3376 sim_trace
="$sim_trace)'" ;;
3378 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
3379 echo "Setting sim trace = $sim_trace" 6>&1
3387 # Check whether --enable-sim-profile or --disable-sim-profile was given.
3388 if test "${enable_sim_profile+set}" = set; then
3389 enableval
="$enable_sim_profile"
3390 case "${enableval}" in
3391 yes) sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1";;
3392 no
) sim_profile
="-DPROFILE=0 -DWITH_PROFILE=0";;
3394 sim_profile
="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
3397 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
3398 if test x
"$sim_profile" = x
; then
3399 sim_profile
="-DWITH_PROFILE='(PROFILE_$x"
3401 sim_profile
="${sim_profile}|PROFILE_$x"
3404 sim_profile
="$sim_profile)'" ;;
3406 if test x
"$silent" != x
"yes" && test x
"$sim_profile" != x
""; then
3407 echo "Setting sim profile = $sim_profile" 6>&1
3415 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3416 echo "configure:3417: checking return type of signal handlers" >&5
3417 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3418 echo $ac_n "(cached) $ac_c" 1>&6
3420 cat > conftest.
$ac_ext <<EOF
3421 #line 3422 "configure"
3422 #include "confdefs.h"
3423 #include <sys/types.h>
3429 extern "C" void (*signal (int, void (*)(int)))(int);
3431 void (*signal ()) ();
3438 if { (eval echo configure
:3439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3440 ac_cv_type_signal
=void
3442 echo "configure: failed program was:" >&5
3443 cat conftest.
$ac_ext >&5
3445 ac_cv_type_signal
=int
3450 echo "$ac_t""$ac_cv_type_signal" 1>&6
3451 cat >> confdefs.h
<<EOF
3452 #define RETSIGTYPE $ac_cv_type_signal
3459 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3460 echo "configure:3461: checking for executable suffix" >&5
3461 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
3462 echo $ac_n "(cached) $ac_c" 1>&6
3464 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
3468 echo 'int main () { return 0; }' > conftest.
$ac_ext
3470 if { (eval echo configure
:3471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3471 for file in conftest.
*; do
3473 *.c |
*.o |
*.obj
) ;;
3474 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
3478 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3481 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
3486 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
3487 echo "$ac_t""${ac_cv_exeext}" 1>&6
3494 sim_link_links
=tconfig.h
3495 if test -f ${srcdir}/tconfig.
in
3497 sim_link_files
=tconfig.
in
3499 sim_link_files
=..
/common
/tconfig.
in
3502 # targ-vals.def points to the libc macro description file.
3504 *-*-*) TARG_VALS_DEF
=..
/common
/nltvals.def
;;
3506 sim_link_files
="${sim_link_files} ${TARG_VALS_DEF}"
3507 sim_link_links
="${sim_link_links} targ-vals.def"
3512 default_sim_inline
=""
3513 # Check whether --enable-sim-inline or --disable-sim-inline was given.
3514 if test "${enable_sim_inline+set}" = set; then
3515 enableval
="$enable_sim_inline"
3517 case "$enableval" in
3518 no
) sim_inline
="-DDEFAULT_INLINE=0";;
3519 0) sim_inline
="-DDEFAULT_INLINE=0";;
3520 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_C_INLINE";;
3521 1) sim_inline
="-DDEFAULT_INLINE=INLINE_LOCALS";;
3522 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
3525 *_INLINE
=*) new_flag
="-D$x";;
3526 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
3527 *_INLINE
) new_flag
="-D$x=ALL_C_INLINE";;
3528 *) new_flag
="-D$x""_INLINE=ALL_C_INLINE";;
3530 if test x
"$sim_inline" = x
""; then
3531 sim_inline
="$new_flag"
3533 sim_inline
="$sim_inline $new_flag"
3537 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
3538 echo "Setting inline flags = $sim_inline" 6>&1
3542 if test "x$cross_compiling" = "xno"; then
3543 if test x
"$GCC" != "x" -a x
"${default_sim_inline}" != "x" ; then
3544 sim_inline
="${default_sim_inline}"
3545 if test x
"$silent" != x
"yes"; then
3546 echo "Setting inline flags = $sim_inline" 6>&1
3552 sim_inline
="-DDEFAULT_INLINE=0"
3556 wire_alignment
="NONSTRICT_ALIGNMENT"
3557 default_alignment
=""
3559 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
3560 if test "${enable_sim_alignment+set}" = set; then
3561 enableval
="$enable_sim_alignment"
3562 case "${enableval}" in
3563 strict | STRICT
) sim_alignment
="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
3564 nonstrict | NONSTRICT
) sim_alignment
="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
3565 forced | FORCED
) sim_alignment
="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
3566 yes) if test x
"$wire_alignment" != x
; then
3567 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
3569 if test x
"$default_alignment" != x
; then
3570 sim_alignment
="-DWITH_ALIGNMENT=${default_alignment}"
3572 echo "No hard-wired alignment for target $target" 1>&6
3573 sim_alignment
="-DWITH_ALIGNMENT=0"
3576 no
) if test x
"$default_alignment" != x
; then
3577 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
3579 if test x
"$wire_alignment" != x
; then
3580 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
3582 echo "No default alignment for target $target" 1>&6
3583 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=0"
3586 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-alignment"" 1>&2; exit 1; }; sim_alignment
="";;
3588 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
3589 echo "Setting alignment flags = $sim_alignment" 6>&1
3592 if test x
"$default_alignment" != x
; then
3593 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
3595 if test x
"$wire_alignment" != x
; then
3596 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
3604 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
3605 if test "${enable_sim_hostendian+set}" = set; then
3606 enableval
="$enable_sim_hostendian"
3607 case "${enableval}" in
3608 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
3609 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
3610 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
3611 *) { echo "configure: error: "Unknown value
$enableval for --enable-sim-hostendian"" 1>&2; exit 1; }; sim_hostendian
="";;
3613 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
3614 echo "Setting hostendian flags = $sim_hostendian" 6>&1
3618 if test "x$cross_compiling" = "xno"; then
3619 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3620 echo "configure:3621: checking whether byte ordering is bigendian" >&5
3621 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3622 echo $ac_n "(cached) $ac_c" 1>&6
3624 ac_cv_c_bigendian
=unknown
3625 # See if sys/param.h defines the BYTE_ORDER macro.
3626 cat > conftest.
$ac_ext <<EOF
3627 #line 3628 "configure"
3628 #include "confdefs.h"
3629 #include <sys/types.h>
3630 #include <sys/param.h>
3633 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3638 if { (eval echo configure
:3639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3640 # It does; now see whether it defined to BIG_ENDIAN or not.
3641 cat > conftest.
$ac_ext <<EOF
3642 #line 3643 "configure"
3643 #include "confdefs.h"
3644 #include <sys/types.h>
3645 #include <sys/param.h>
3648 #if BYTE_ORDER != BIG_ENDIAN
3653 if { (eval echo configure
:3654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3655 ac_cv_c_bigendian
=yes
3657 echo "configure: failed program was:" >&5
3658 cat conftest.
$ac_ext >&5
3660 ac_cv_c_bigendian
=no
3664 echo "configure: failed program was:" >&5
3665 cat conftest.
$ac_ext >&5
3668 if test $ac_cv_c_bigendian = unknown
; then
3669 if test "$cross_compiling" = yes; then
3670 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3672 cat > conftest.
$ac_ext <<EOF
3673 #line 3674 "configure"
3674 #include "confdefs.h"
3676 /* Are we little or big endian? From Harbison&Steele. */
3680 char c[sizeof (long)];
3683 exit (u.c[sizeof (long) - 1] == 1);
3686 if { (eval echo configure
:3687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3688 ac_cv_c_bigendian
=no
3690 echo "configure: failed program was:" >&5
3691 cat conftest.
$ac_ext >&5
3693 ac_cv_c_bigendian
=yes
3701 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3702 if test $ac_cv_c_bigendian = yes; then
3703 cat >> confdefs.h
<<\EOF
3704 #define WORDS_BIGENDIAN 1
3709 if test $ac_cv_c_bigendian = yes; then
3710 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
3712 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
3715 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
3720 # Check whether --enable-build-warnings or --disable-build-warnings was given.
3721 if test "${enable_build_warnings+set}" = set; then
3722 enableval
="$enable_build_warnings"
3723 build_warnings
="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations"
3724 case "${enableval}" in
3726 no
) build_warnings
="-w";;
3727 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
3728 build_warnings
="${build_warnings} ${t}";;
3729 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
3730 build_warnings
="${t} ${build_warnings}";;
3731 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3733 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
3734 echo "Setting warning flags = $build_warnings" 6>&1
3738 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
3740 # Separate out the -Werror flag as some files just cannot be
3741 # compiled with it enabled.
3742 for w
in ${build_warnings}; do
3744 -Werr*) WERROR_CFLAGS
=-Werror ;;
3745 *) WARN_CFLAGS
="${WARN_CFLAGS} $w"
3756 # Instead of defining a `subtarget' macro, code should be checking
3757 # the value of {STATE,CPU}_ARCHITECTURE to identify the architecture
3761 mips
*tx39
*) SIM_SUBTARGET
="-DSUBTARGET_R3900=1";;
3762 *) SIM_SUBTARGET
="";;
3769 # Select the byte order of the target
3774 mips64el
*-*-*) mips_endian
=LITTLE_ENDIAN
;;
3775 mips64vr
*el-
*-*) default_endian
=LITTLE_ENDIAN
;;
3776 mips64
*-*-*) default_endian
=BIG_ENDIAN
;;
3777 mips16
*-*-*) default_endian
=BIG_ENDIAN
;;
3778 mips
*-*-*) default_endian
=BIG_ENDIAN
;;
3779 *) default_endian
=BIG_ENDIAN
;;
3782 wire_endian
="$mips_endian"
3783 default_endian
="$default_endian"
3784 # Check whether --enable-sim-endian or --disable-sim-endian was given.
3785 if test "${enable_sim_endian+set}" = set; then
3786 enableval
="$enable_sim_endian"
3787 case "${enableval}" in
3788 b
*|B
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
3789 l
*|L
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
3790 yes) if test x
"$wire_endian" != x
; then
3791 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
3793 if test x
"$default_endian" != x
; then
3794 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
3796 echo "No hard-wired endian for target $target" 1>&6
3797 sim_endian
="-DWITH_TARGET_BYTE_ORDER=0"
3800 no
) if test x
"$default_endian" != x
; then
3801 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
3803 if test x
"$wire_endian" != x
; then
3804 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
3806 echo "No default endian for target $target" 1>&6
3807 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
3810 *) { echo "configure: error: "Unknown value
$enableval for --enable-sim-endian"" 1>&2; exit 1; }; sim_endian
="";;
3812 if test x
"$silent" != x
"yes" && test x
"$sim_endian" != x
""; then
3813 echo "Setting endian flags = $sim_endian" 6>&1
3816 if test x
"$default_endian" != x
; then
3817 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
3819 if test x
"$wire_endian" != x
; then
3820 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
3831 # Select the bitsize of the target
3835 mips64
*-*-*) mips_bitsize
=64 ; mips_msb
=63 ;;
3836 mips16
*-*-*) mips_bitsize
=64 ; mips_msb
=63 ;;
3837 mips
*-*-*) mips_bitsize
=32 ; mips_msb
=31 ;;
3838 *) mips_bitsize
=64 ; mips_msb
=63 ;;
3840 wire_word_bitsize
="$mips_bitsize"
3841 wire_word_msb
="$mips_msb"
3842 wire_address_bitsize
="$mips_addr_bitsize"
3843 wire_cell_bitsize
=""
3844 # Check whether --enable-sim-bitsize or --disable-sim-bitsize was given.
3845 if test "${enable_sim_bitsize+set}" = set; then
3846 enableval
="$enable_sim_bitsize"
3848 case "${enableval}" in
3849 64,63 |
64,63,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
3850 32,31 |
32,31,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
3851 64,0 |
64,0,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
3852 32,0 |
64,0,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
3853 32) if test x
"$wire_word_msb" != x
-a x
"$wire_word_msb" != x0
; then
3854 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
3856 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
3858 64) if test x
"$wire_word_msb" != x
-a x
"$wire_word_msb" != x0
; then
3859 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
3861 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
3863 *) { echo "configure: error: "--enable-sim-bitsize was given
$enableval. Expected
32 or
64"" 1>&2; exit 1; } ;;
3866 tmp
=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
3869 x32 | x32
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
3870 x64 | x64
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
3871 * ) { echo "configure: error: "--enable-sim-bitsize was given address size
$enableval. Expected
32 or
64"" 1>&2; exit 1; } ;;
3874 tmp
=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
3877 x32 | x32
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
3878 x64 | x64
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
3879 * ) { echo "configure: error: "--enable-sim-bitsize was given cell size
$enableval. Expected
32 or
64"" 1>&2; exit 1; } ;;
3881 if test x
"$silent" != x
"yes" && test x
"$sim_bitsize" != x
""; then
3882 echo "Setting bitsize flags = $sim_bitsize" 6>&1
3886 if test x
"$wire_word_bitsize" != x
; then
3887 sim_bitsize
="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
3889 if test x
"$wire_word_msb" != x
; then
3890 sim_bitsize
="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
3892 if test x
"$wire_address_bitsize" != x
; then
3893 sim_bitsize
="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
3895 if test x
"$wire_cell_bitsize" != x
; then
3896 sim_bitsize
="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
3904 # Select the floating hardware support of the target
3906 mips_fpu
=HARDWARE_FLOATING_POINT
3909 mips
*tx39
*) mips_fpu
=HARD_FLOATING_POINT
3912 mips64
*-*-*) mips_fpu
=HARD_FLOATING_POINT
;;
3913 mips16
*-*-*) mips_fpu
=HARD_FLOATING_POINT
;;
3914 mips
*-*-*) mips_fpu
=HARD_FLOATING_POINT
; mips_fpu_bitsize
=32 ;;
3915 *) mips_fpu
=HARD_FLOATING_POINT
;;
3918 default_sim_float
="$mips_fpu"
3919 default_sim_float_bitsize
="$mips_fpu_bitsize"
3920 # Check whether --enable-sim-float or --disable-sim-float was given.
3921 if test "${enable_sim_float+set}" = set; then
3922 enableval
="$enable_sim_float"
3923 case "${enableval}" in
3924 yes | hard
) sim_float
="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
3925 no | soft
) sim_float
="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
3926 32) sim_float
="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=32";;
3927 64) sim_float
="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=64";;
3928 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-float"" 1>&2; exit 1; }; sim_float
="";;
3930 if test x
"$silent" != x
"yes" && test x
"$sim_float" != x
""; then
3931 echo "Setting float flags = $sim_float" 6>&1
3936 if test x
"${default_sim_float}" != x
""; then
3937 sim_float
="-DWITH_FLOATING_POINT=${default_sim_float}"
3939 if test x
"${default_sim_float_bitsize}" != x
""; then
3940 sim_float
="$sim_float -DWITH_TARGET_FLOATING_POINT_BITSIZE=${default_sim_float_bitsize}"
3949 # Select the level of SMP support
3955 default_sim_smp
="$mips_smp"
3956 # Check whether --enable-sim-smp or --disable-sim-smp was given.
3957 if test "${enable_sim_smp+set}" = set; then
3958 enableval
="$enable_sim_smp"
3959 case "${enableval}" in
3960 yes) sim_smp
="-DWITH_SMP=5" ; sim_igen_smp
="-N 5";;
3961 no
) sim_smp
="-DWITH_SMP=0" ; sim_igen_smp
="-N 0";;
3962 *) sim_smp
="-DWITH_SMP=$enableval" ; sim_igen_smp
="-N $enableval";;
3964 if test x
"$silent" != x
"yes" && test x
"$sim_smp" != x
""; then
3965 echo "Setting smp flags = $sim_smp" 6>&1
3968 sim_smp
="-DWITH_SMP=${default_sim_smp}" ; sim_igen_smp
="-N ${default_sim_smp}"
3969 if test x
"$silent" != x
"yes"; then
3970 echo "Setting smp flags = $sim_smp" 6>&1
3978 # Select the IGEN architecture
3981 sim_igen_machine
="-M mipsIV"
3982 sim_m16_machine
="-M mips16"
3983 sim_igen_filter
="32,64,f"
3986 mips
*tx39
*) sim_gen
=IGEN
3987 sim_igen_filter
="32,f"
3988 sim_igen_machine
="-M r3900"
3990 mips64vr43
*-*-*) sim_gen
=IGEN
3991 sim_igen_machine
="-M mipsIV"
3993 mips64vr5
*-*-*) sim_gen
=IGEN
3994 sim_igen_machine
="-M vr5000"
3996 mips64vr41
*) sim_gen
=M16
3997 sim_igen_machine
="-M vr4100"
3998 sim_m16_machine
="-M vr4100"
3999 sim_igen_filter
="32,64,f"
4002 mips64
*-*-*) sim_igen_filter
="32,64,f"
4005 mips16
*-*-*) sim_gen
=M16
4006 sim_igen_filter
="32,64,f"
4009 mips
*lsi
*) sim_gen
=M16
4010 sim_igen_machine
="-M mipsIII,mips16"
4011 sim_m16_machine
="-M mips16,mipsIII"
4012 sim_igen_filter
="32,f"
4015 mips
*-*-*) sim_gen
=IGEN
4016 sim_igen_filter
="32,f"
4019 sim_igen_flags
="-F ${sim_igen_filter} ${sim_igen_machine} ${sim_igen_smp}"
4020 sim_m16_flags
=" -F ${sim_m16_filter} ${sim_m16_machine} ${sim_igen_smp}"
4027 # Add simulated hardware devices
4033 hw_extra_devices
="tx3904cpu tx3904irc tx3904tmr tx3904sio"
4034 mips_extra_objs
="dv-sockser.o"
4035 SIM_SUBTARGET
="$SIM_SUBTARGET -DTARGET_TX3904=1"
4042 if test x
"$hw_enabled" = x
"yes"; then
4047 if test "$hw_devices"; then
4048 hardware
="core pal glue"
4050 hardware
="core pal glue $hw_extra_devices"
4052 sim_hw_cflags
="-DWITH_HW=1"
4054 sim_hw_objs
="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
4055 # Check whether --enable-sim-hardware or --disable-sim-hardware was given.
4056 if test "${enable_sim_hardware+set}" = set; then
4057 enableval
="$enable_sim_hardware"
4059 case "${enableval}" in
4062 ,*) sim_hw_p
=yes; hardware
="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
4063 *,) sim_hw_p
=yes; hardware
="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
4064 *) sim_hw_p
=yes; hardware
="`echo ${enableval} | sed -e 's/,/ /'`"'';;
4066 if test "$sim_hw_p" != yes; then
4068 sim_hw_cflags
="-DWITH_HW=0"
4071 sim_hw_cflags
="-DWITH_HW=1"
4074 sim_hw_objs
="\$(SIM_COMMON_HW_OBJS)"
4075 for i
in x
$hardware ; do
4079 *) sim_hw
="$sim_hw $i" ; sim_hw_objs
="$sim_hw_objs dv-$i.o";;
4083 if test x
"$silent" != x
"yes" && test "$sim_hw_p" = "yes"; then
4084 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
4088 if test "$sim_hw_p" != yes; then
4090 sim_hw_cflags
="-DWITH_HW=0"
4093 if test x
"$silent" != x
"yes"; then
4094 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
4101 # Choose simulator engine
4103 *) mips_igen_engine
="engine.o"
4109 # If we find X, set shell vars x_includes and x_libraries to the
4110 # paths, otherwise set no_x=yes.
4111 # Uses ac_ vars as temps to allow command line to override cache and checks.
4112 # --without-x overrides everything else, but does not touch the cache.
4113 echo $ac_n "checking for X""... $ac_c" 1>&6
4114 echo "configure:4221: checking for X" >&5
4116 # Check whether --with-x or --without-x was given.
4117 if test "${with_x+set}" = set; then
4122 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4123 if test "x$with_x" = xno
; then
4124 # The user explicitly disabled X.
4127 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
4128 # Both variables are already set.
4131 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
4132 echo $ac_n "(cached) $ac_c" 1>&6
4134 # One or both of the vars are not set, and there is no cached value.
4135 ac_x_includes
=NO ac_x_libraries
=NO
4137 if mkdir conftestdir
; then
4139 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4140 cat > Imakefile
<<'EOF'
4142 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4144 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
4145 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4146 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4147 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4148 for ac_extension
in a so sl
; do
4149 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
4150 test -f $ac_im_libdir/libX11.
$ac_extension; then
4151 ac_im_usrlibdir
=$ac_im_libdir; break
4154 # Screen out bogus values from the imake configuration. They are
4155 # bogus both because they are the default anyway, and because
4156 # using them would break gcc on systems where it needs fixed includes.
4157 case "$ac_im_incroot" in
4159 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
4161 case "$ac_im_usrlibdir" in
4163 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
4170 if test "$ac_x_includes" = NO
; then
4171 # Guess where to find include files, by looking for this one X11 .h file.
4172 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
4174 # First, try using that file with no special directory specified.
4175 cat > conftest.
$ac_ext <<EOF
4176 #line 4283 "configure"
4177 #include "confdefs.h"
4178 #include <$x_direct_test_include>
4180 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4181 { (eval echo configure
:4288: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4182 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4183 if test -z "$ac_err"; then
4185 # We can compile using X headers with no special include directory.
4189 echo "configure: failed program was:" >&5
4190 cat conftest.
$ac_ext >&5
4192 # Look for the header file in a standard set of common directories.
4193 # Check X11 before X11Rn because it is often a symlink to the current release.
4196 /usr
/X11R
6/include \
4197 /usr
/X11R
5/include \
4198 /usr
/X11R
4/include \
4201 /usr
/include
/X11R6 \
4202 /usr
/include
/X11R5 \
4203 /usr
/include
/X11R4 \
4205 /usr
/local
/X11
/include \
4206 /usr
/local
/X11R
6/include \
4207 /usr
/local
/X11R
5/include \
4208 /usr
/local
/X11R
4/include \
4210 /usr
/local
/include
/X11 \
4211 /usr
/local
/include
/X11R6 \
4212 /usr
/local
/include
/X11R5 \
4213 /usr
/local
/include
/X11R4 \
4217 /usr
/XFree86
/include
/X11 \
4220 /usr
/local
/include \
4221 /usr
/unsupported
/include \
4222 /usr
/athena
/include \
4223 /usr
/local
/x11r
5/include \
4224 /usr
/lpp
/Xamples
/include \
4226 /usr
/openwin
/include \
4227 /usr
/openwin
/share
/include \
4230 if test -r "$ac_dir/$x_direct_test_include"; then
4231 ac_x_includes
=$ac_dir
4237 fi # $ac_x_includes = NO
4239 if test "$ac_x_libraries" = NO
; then
4240 # Check for the libraries.
4242 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
4243 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
4245 # See if we find them without any special options.
4246 # Don't add to $LIBS permanently.
4247 ac_save_LIBS
="$LIBS"
4248 LIBS
="-l$x_direct_test_library $LIBS"
4249 cat > conftest.
$ac_ext <<EOF
4250 #line 4357 "configure"
4251 #include "confdefs.h"
4254 ${x_direct_test_function}()
4257 if { (eval echo configure
:4364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4259 LIBS
="$ac_save_LIBS"
4260 # We can link X programs with no special library path.
4263 echo "configure: failed program was:" >&5
4264 cat conftest.
$ac_ext >&5
4266 LIBS
="$ac_save_LIBS"
4267 # First see if replacing the include by lib works.
4268 # Check X11 before X11Rn because it is often a symlink to the current release.
4269 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
4280 /usr
/local
/X11
/lib \
4281 /usr
/local
/X11R
6/lib \
4282 /usr
/local
/X11R
5/lib \
4283 /usr
/local
/X11R
4/lib \
4285 /usr
/local
/lib
/X11 \
4286 /usr
/local
/lib
/X11R6 \
4287 /usr
/local
/lib
/X11R5 \
4288 /usr
/local
/lib
/X11R4 \
4292 /usr
/XFree86
/lib
/X11 \
4296 /usr
/unsupported
/lib \
4298 /usr
/local
/x11r
5/lib \
4299 /usr
/lpp
/Xamples
/lib \
4303 /usr
/openwin
/share
/lib \
4306 for ac_extension
in a so sl
; do
4307 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
4308 ac_x_libraries
=$ac_dir
4315 fi # $ac_x_libraries = NO
4317 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
4318 # Didn't find X anywhere. Cache the known absence of X.
4319 ac_cv_have_x
="have_x=no"
4321 # Record where we found X for the cache.
4322 ac_cv_have_x
="have_x=yes \
4323 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4327 eval "$ac_cv_have_x"
4330 if test "$have_x" != yes; then
4331 echo "$ac_t""$have_x" 1>&6
4334 # If each of the values was on the command line, it overrides each guess.
4335 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
4336 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
4337 # Update the cache value to reflect the command line values.
4338 ac_cv_have_x
="have_x=yes \
4339 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4340 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
4346 for ac_hdr
in string.h
strings.h stdlib.h stdlib.h
4348 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4349 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4350 echo "configure:5251: checking for $ac_hdr" >&5
4351 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4352 echo $ac_n "(cached) $ac_c" 1>&6
4354 cat > conftest.
$ac_ext <<EOF
4355 #line 5256 "configure"
4356 #include "confdefs.h"
4359 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4360 { (eval echo configure
:5261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4361 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4362 if test -z "$ac_err"; then
4364 eval "ac_cv_header_$ac_safe=yes"
4367 echo "configure: failed program was:" >&5
4368 cat conftest.
$ac_ext >&5
4370 eval "ac_cv_header_$ac_safe=no"
4374 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4375 echo "$ac_t""yes" 1>&6
4376 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4377 cat >> confdefs.h
<<EOF
4378 #define $ac_tr_hdr 1
4382 echo "$ac_t""no" 1>&6
4386 echo $ac_n "checking for fabs in -lm""... $ac_c" 1>&6
4387 echo "configure:5288: checking for fabs in -lm" >&5
4388 ac_lib_var
=`echo m'_'fabs | sed 'y%./+-%__p_%'`
4389 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4390 echo $ac_n "(cached) $ac_c" 1>&6
4392 ac_save_LIBS
="$LIBS"
4394 cat > conftest.
$ac_ext <<EOF
4395 #line 5296 "configure"
4396 #include "confdefs.h"
4397 /* Override any gcc2 internal prototype to avoid an error. */
4398 /* We use char because int might match the return type of a gcc2
4399 builtin and then its argument prototype would still apply. */
4406 if { (eval echo configure
:5307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4408 eval "ac_cv_lib_$ac_lib_var=yes"
4410 echo "configure: failed program was:" >&5
4411 cat conftest.
$ac_ext >&5
4413 eval "ac_cv_lib_$ac_lib_var=no"
4416 LIBS
="$ac_save_LIBS"
4419 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4420 echo "$ac_t""yes" 1>&6
4421 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4422 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4423 cat >> confdefs.h
<<EOF
4424 #define $ac_tr_lib 1
4430 echo "$ac_t""no" 1>&6
4433 for ac_func
in aint anint sqrt
4435 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4436 echo "configure:5337: checking for $ac_func" >&5
4437 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4438 echo $ac_n "(cached) $ac_c" 1>&6
4440 cat > conftest.
$ac_ext <<EOF
4441 #line 5342 "configure"
4442 #include "confdefs.h"
4443 /* System header to define __stub macros and hopefully few prototypes,
4444 which can conflict with char $ac_func(); below. */
4446 /* Override any gcc2 internal prototype to avoid an error. */
4447 /* We use char because int might match the return type of a gcc2
4448 builtin and then its argument prototype would still apply. */
4453 /* The GNU C library defines this for functions which it implements
4454 to always fail with ENOSYS. Some functions are actually named
4455 something starting with __ and the normal name is an alias. */
4456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4464 if { (eval echo configure
:5365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4466 eval "ac_cv_func_$ac_func=yes"
4468 echo "configure: failed program was:" >&5
4469 cat conftest.
$ac_ext >&5
4471 eval "ac_cv_func_$ac_func=no"
4476 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4477 echo "$ac_t""yes" 1>&6
4478 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4479 cat >> confdefs.h
<<EOF
4480 #define $ac_tr_func 1
4484 echo "$ac_t""no" 1>&6
4492 cat > confcache
<<\EOF
4493 # This file is a shell script that caches the results of configure
4494 # tests run on this system so they can be shared between configure
4495 # scripts and configure runs. It is not useful on other systems.
4496 # If it contains results you don't want to keep, you may remove or edit it.
4498 # By default, configure uses ./config.cache as the cache file,
4499 # creating it if it does not exist already. You can give configure
4500 # the --cache-file=FILE option to use a different cache file; that is
4501 # what configure does when it calls configure scripts in
4502 # subdirectories, so they share the cache.
4503 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4504 # config.status only pays attention to the cache file if you give it the
4505 # --recheck option to rerun configure.
4508 # The following way of writing the cache mishandles newlines in values,
4509 # but we know of no workaround that is simple, portable, and efficient.
4510 # So, don't put newlines in cache variables' values.
4511 # Ultrix sh set writes to stderr and can't be redirected directly,
4512 # and sets the high bit in the cache file unless we assign to the vars.
4514 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4516 # `set' does not quote correctly, so add quotes (double-quote substitution
4517 # turns \\\\ into \\, and sed turns \\ into \).
4519 -e "s/'/'\\\\''/g" \
4520 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4523 # `set' quotes correctly as required by POSIX, so do not add quotes.
4524 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4527 if cmp -s $cache_file confcache
; then
4530 if test -w $cache_file; then
4531 echo "updating cache $cache_file"
4532 cat confcache
> $cache_file
4534 echo "not updating unwritable cache $cache_file"
4539 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4541 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4542 # Let make expand exec_prefix.
4543 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4545 # Any assignment to VPATH causes Sun make to only execute
4546 # the first set of double-colon rules, so remove it if not needed.
4547 # If there is a colon in the path, we need to keep it.
4548 if test "x$srcdir" = x.
; then
4549 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4552 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4554 DEFS
=-DHAVE_CONFIG_H
4556 # Without the "./", some shells look in PATH for config.status.
4557 : ${CONFIG_STATUS=./config.status}
4559 echo creating
$CONFIG_STATUS
4560 rm -f $CONFIG_STATUS
4561 cat > $CONFIG_STATUS <<EOF
4563 # Generated automatically by configure.
4564 # Run this file to recreate the current configuration.
4565 # This directory was configured as follows,
4566 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4568 # $0 $ac_configure_args
4570 # Compiler output produced by configure, useful for debugging
4571 # configure, is in ./config.log if it exists.
4573 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4576 case "\$ac_option" in
4577 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4578 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4579 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4580 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4581 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4583 -help | --help | --hel | --he | --h)
4584 echo "\$ac_cs_usage"; exit 0 ;;
4585 *) echo "\$ac_cs_usage"; exit 1 ;;
4589 ac_given_srcdir=$srcdir
4590 ac_given_INSTALL="$INSTALL"
4592 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
4594 cat >> $CONFIG_STATUS <<EOF
4596 # Protect against being on the right side of a sed subst in config.status.
4597 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4598 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4601 s%@sim_environment@%$sim_environment%g
4602 s%@sim_alignment@%$sim_alignment%g
4603 s%@sim_assert@%$sim_assert%g
4604 s%@sim_bitsize@%$sim_bitsize%g
4605 s%@sim_endian@%$sim_endian%g
4606 s%@sim_hostendian@%$sim_hostendian%g
4607 s%@sim_float@%$sim_float%g
4608 s%@sim_scache@%$sim_scache%g
4609 s%@sim_default_model@%$sim_default_model%g
4610 s%@sim_hw_cflags@%$sim_hw_cflags%g
4611 s%@sim_hw_objs@%$sim_hw_objs%g
4612 s%@sim_hw@%$sim_hw%g
4613 s%@sim_inline@%$sim_inline%g
4614 s%@sim_packages@%$sim_packages%g
4615 s%@sim_regparm@%$sim_regparm%g
4616 s%@sim_reserved_bits@%$sim_reserved_bits%g
4617 s%@sim_smp@%$sim_smp%g
4618 s%@sim_stdcall@%$sim_stdcall%g
4619 s%@sim_xor_endian@%$sim_xor_endian%g
4620 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
4621 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
4623 s%@CFLAGS@%$CFLAGS%g
4624 s%@CPPFLAGS@%$CPPFLAGS%g
4625 s%@CXXFLAGS@%$CXXFLAGS%g
4626 s%@FFLAGS@%$FFLAGS%g
4628 s%@LDFLAGS@%$LDFLAGS%g
4630 s%@exec_prefix@%$exec_prefix%g
4631 s%@prefix@%$prefix%g
4632 s%@program_transform_name@%$program_transform_name%g
4633 s%@bindir@%$bindir%g
4634 s%@sbindir@%$sbindir%g
4635 s%@libexecdir@%$libexecdir%g
4636 s%@datadir@%$datadir%g
4637 s%@sysconfdir@%$sysconfdir%g
4638 s%@sharedstatedir@%$sharedstatedir%g
4639 s%@localstatedir@%$localstatedir%g
4640 s%@libdir@%$libdir%g
4641 s%@includedir@%$includedir%g
4642 s%@oldincludedir@%$oldincludedir%g
4643 s%@infodir@%$infodir%g
4644 s%@mandir@%$mandir%g
4646 s%@host_alias@%$host_alias%g
4647 s%@host_cpu@%$host_cpu%g
4648 s%@host_vendor@%$host_vendor%g
4649 s%@host_os@%$host_os%g
4650 s%@target@%$target%g
4651 s%@target_alias@%$target_alias%g
4652 s%@target_cpu@%$target_cpu%g
4653 s%@target_vendor@%$target_vendor%g
4654 s%@target_os@%$target_os%g
4656 s%@build_alias@%$build_alias%g
4657 s%@build_cpu@%$build_cpu%g
4658 s%@build_vendor@%$build_vendor%g
4659 s%@build_os@%$build_os%g
4661 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4662 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4663 s%@INSTALL_DATA@%$INSTALL_DATA%g
4664 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
4665 s%@HDEFINES@%$HDEFINES%g
4667 s%@RANLIB@%$RANLIB%g
4668 s%@SET_MAKE@%$SET_MAKE%g
4670 s%@ALLOCA@%$ALLOCA%g
4671 s%@USE_NLS@%$USE_NLS%g
4672 s%@MSGFMT@%$MSGFMT%g
4673 s%@GMSGFMT@%$GMSGFMT%g
4674 s%@XGETTEXT@%$XGETTEXT%g
4675 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4676 s%@CATALOGS@%$CATALOGS%g
4677 s%@CATOBJEXT@%$CATOBJEXT%g
4678 s%@DATADIRNAME@%$DATADIRNAME%g
4679 s%@GMOFILES@%$GMOFILES%g
4680 s%@INSTOBJEXT@%$INSTOBJEXT%g
4681 s%@INTLDEPS@%$INTLDEPS%g
4682 s%@INTLLIBS@%$INTLLIBS%g
4683 s%@INTLOBJS@%$INTLOBJS%g
4684 s%@POFILES@%$POFILES%g
4686 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4688 s%@GT_YES@%$GT_YES%g
4689 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4692 s%@sim_bswap@%$sim_bswap%g
4693 s%@sim_cflags@%$sim_cflags%g
4694 s%@sim_debug@%$sim_debug%g
4695 s%@sim_stdio@%$sim_stdio%g
4696 s%@sim_trace@%$sim_trace%g
4697 s%@sim_profile@%$sim_profile%g
4698 s%@EXEEXT@%$EXEEXT%g
4699 s%@SIM_SUBTARGET@%$SIM_SUBTARGET%g
4700 s%@sim_igen_flags@%$sim_igen_flags%g
4701 s%@sim_m16_flags@%$sim_m16_flags%g
4702 s%@sim_gen@%$sim_gen%g
4703 s%@mips_extra_objs@%$mips_extra_objs%g
4704 s%@mips_igen_engine@%$mips_igen_engine%g
4705 s%@mips_extra_libs@%$mips_extra_libs%g
4710 cat >> $CONFIG_STATUS <<\EOF
4712 # Split the substitutions into bite-sized pieces for seds with
4713 # small command number limits, like on Digital OSF/1 and HP-UX.
4714 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4715 ac_file
=1 # Number of current file.
4716 ac_beg
=1 # First line for current file.
4717 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4720 while $ac_more_lines; do
4721 if test $ac_beg -gt 1; then
4722 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4724 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4726 if test ! -s conftest.s
$ac_file; then
4728 rm -f conftest.s
$ac_file
4730 if test -z "$ac_sed_cmds"; then
4731 ac_sed_cmds
="sed -f conftest.s$ac_file"
4733 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4735 ac_file
=`expr $ac_file + 1`
4737 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4740 if test -z "$ac_sed_cmds"; then
4745 cat >> $CONFIG_STATUS <<EOF
4747 CONFIG_FILES=\${CONFIG_FILES-"Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in"}
4749 cat >> $CONFIG_STATUS <<\EOF
4750 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4751 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4753 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4754 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4755 *) ac_file_in
="${ac_file}.in" ;;
4758 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4760 # Remove last slash and all that follows it. Not all systems have dirname.
4761 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4762 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
4763 # The file is in a subdirectory.
4764 test ! -d "$ac_dir" && mkdir
"$ac_dir"
4765 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
4766 # A "../" for each directory in $ac_dir_suffix.
4767 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4769 ac_dir_suffix
= ac_dots
=
4772 case "$ac_given_srcdir" in
4774 if test -z "$ac_dots"; then top_srcdir
=.
4775 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4776 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
4778 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4779 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
4782 case "$ac_given_INSTALL" in
4783 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
4784 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
4787 echo creating
"$ac_file"
4789 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4791 *Makefile
*) ac_comsub
="1i\\
4792 # $configure_input" ;;
4796 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4798 s%@configure_input@%$configure_input%g
4799 s%@srcdir@%$srcdir%g
4800 s%@top_srcdir@%$top_srcdir%g
4801 s%@INSTALL@%$INSTALL%g
4802 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
4806 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4807 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4809 # ac_d sets the value in "#define NAME VALUE" lines.
4810 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4811 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4814 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4815 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4816 ac_uB
='\([ ]\)%\1#\2define\3'
4819 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4820 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4821 ac_eB
='$%\1#\2define\3'
4825 if test "${CONFIG_HEADERS+set}" != set; then
4827 cat >> $CONFIG_STATUS <<EOF
4828 CONFIG_HEADERS="config.h:config.in"
4830 cat >> $CONFIG_STATUS <<\EOF
4832 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4833 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4835 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4836 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4837 *) ac_file_in
="${ac_file}.in" ;;
4840 echo creating
$ac_file
4842 rm -f conftest.frag conftest.
in conftest.out
4843 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4844 cat $ac_file_inputs > conftest.
in
4848 # Transform confdefs.h into a sed script conftest.vals that substitutes
4849 # the proper values into config.h.in to produce config.h. And first:
4850 # Protect against being on the right side of a sed subst in config.status.
4851 # Protect against being in an unquoted here document in config.status.
4853 cat > conftest.hdr
<<\EOF
4856 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4860 sed -n -f conftest.hdr confdefs.h > conftest.vals
4863 # This sed command replaces #undef with comments. This is necessary, for
4864 # example, in the case of _POSIX_SOURCE, which is predefined and required
4865 # on some systems where configure will not decide to define it.
4866 cat >> conftest.vals <<\EOF
4867 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4870 # Break up conftest.vals because some shells have a limit on
4871 # the size of here documents, and old seds have small limits too.
4876 ac_lines=`grep -c . conftest.vals
`
4877 # grep -c gives empty output for an empty file on some AIX systems.
4878 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4879 # Write a limited-size here document to conftest.frag.
4880 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4881 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4883 sed -f conftest.frag conftest.in > conftest.out
4885 mv conftest.out conftest.in
4887 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4889 mv conftest.tail conftest.vals
4893 cat >> $CONFIG_STATUS <<\EOF
4894 rm -f conftest.frag conftest.h
4895 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4896 cat conftest.in >> conftest.h
4898 if cmp -s $ac_file conftest.h 2>/dev/null; then
4899 echo "$ac_file is unchanged"
4902 # Remove last slash and all that follows it. Not all systems have dirname.
4903 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
4904 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4905 # The file is in a subdirectory.
4906 test ! -d "$ac_dir" && mkdir "$ac_dir"
4909 mv conftest.h $ac_file
4915 cat >> $CONFIG_STATUS <<EOF
4916 ac_sources="$sim_link_files"
4917 ac_dests="$sim_link_links"
4920 cat >> $CONFIG_STATUS <<\EOF
4921 srcdir=$ac_given_srcdir
4922 while test -n "$ac_sources"; do
4923 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
4924 set $ac_sources; ac_source=$1; shift; ac_sources=$*
4926 echo "linking $srcdir/$ac_source to $ac_dest"
4928 if test ! -r $srcdir/$ac_source; then
4929 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
4933 # Make relative symlinks.
4934 # Remove last slash and all that follows it. Not all systems have dirname.
4935 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
4936 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
4937 # The dest file is in a subdirectory.
4938 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
4939 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
4940 # A "../" for each directory in $ac_dest_dir_suffix.
4941 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
4943 ac_dest_dir_suffix= ac_dots=
4947 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
4948 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
4951 # Make a symlink if possible; otherwise try a hard link.
4952 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
4953 ln $srcdir/$ac_source $ac_dest; then :
4955 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
4959 cat >> $CONFIG_STATUS <<EOF
4962 cat >> $CONFIG_STATUS <<\EOF
4963 case "x$CONFIG_FILES" in
4965 echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
4966 rm -f Makesim1.tmp Makesim2.tmp Makefile
4967 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
4968 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
4969 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
4970 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
4971 <Makefile.sim >Makefile
4972 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
4975 case "x$CONFIG_HEADERS" in xconfig.h:config.in) echo > stamp-h ;; esac
4979 chmod +x $CONFIG_STATUS
4980 rm -fr confdefs* $ac_clean_files
4981 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1