45 sim_inline
="-DDEFAULT_INLINE=0"
81 # This file is derived from `gettext.m4'. The difference is that the
82 # included macros assume Cygnus-style source and build trees.
84 # Macro to add for using GNU gettext.
85 # Ulrich Drepper <drepper@cygnus.com>, 1995.
87 # This file file be copied and used freely without restrictions. It can
88 # be used in projects which are not available under the GNU Public License
89 # but which still want to provide support for the GNU gettext functionality.
90 # Please note that the actual code is *not* freely available.
98 # Search path for a program which passes the given test.
99 # Ulrich Drepper <drepper@cygnus.com>, 1996.
101 # This file file be copied and used freely without restrictions. It can
102 # be used in projects which are not available under the GNU Public License
103 # but which still want to provide support for the GNU gettext functionality.
104 # Please note that the actual code is *not* freely available.
110 # Check whether LC_MESSAGES is available in <locale.h>.
111 # Ulrich Drepper <drepper@cygnus.com>, 1995.
113 # This file file be copied and used freely without restrictions. It can
114 # be used in projects which are not available under the GNU Public License
115 # but which still want to provide support for the GNU gettext functionality.
116 # Please note that the actual code is *not* freely available.
122 # Check to see if we're running under Cygwin32, without using
123 # AC_CANONICAL_*. If so, set output variable CYGWIN32 to "yes".
124 # Otherwise set it to "no".
128 # Check to see if we're running under Win32, without using
129 # AC_CANONICAL_*. If so, set output variable EXEEXT to ".exe".
130 # Otherwise set it to "".
135 # Guess values for system-dependent variables and create Makefiles.
136 # Generated automatically using autoconf version 2.12.2
137 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
139 # This configure script is free software; the Free Software Foundation
140 # gives unlimited permission to copy, distribute and modify it.
144 ac_default_prefix
=/usr
/local
145 # Any additions from configure.in:
147 --disable-nls do not use Native Language Support"
149 --with-included-gettext use the GNU gettext library included here"
151 --enable-maintainer-mode Enable developer functionality."
153 --enable-sim-bswap Use Host specific BSWAP instruction."
155 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator"
157 --enable-sim-debug=opts Enable debugging flags"
159 --enable-sim-stdio Specify whether to use stdio for console input/output."
161 --enable-sim-trace=opts Enable tracing flags"
163 --enable-sim-profile=opts Enable profiling flags"
165 --enable-sim-inline=inlines Specify which functions should be inlined."
167 --enable-sim-alignment=align Specify strict, nonstrict or forced alignment of memory accesses."
169 --enable-sim-hostendian=end Specify host byte endian orientation."
171 --enable-build-warnings[=LIST] Enable build-time compiler warnings"
173 --enable-sim-endian=endian Specify target byte endian orientation."
175 --enable-sim-bitsize=N Specify target bitsize (32 or 64)."
177 --enable-sim-float Specify that the target processor has floating point hardware."
179 --enable-sim-smp=n Specify number of processors to configure for (default ${default_sim_smp})."
181 --enable-sim-igen=opts Enable IGEN simulator"
183 --enable-sim-hardware=LIST Specify the hardware to be included in the build."
185 --with-x use the X Window System"
187 --with-sim-gpu2=path Use GPU2 library under given directory"
189 --with-x use the X Window System"
191 --with-sim-funit=path Use target FP library under given directory"
193 # Initialize some variables set by options.
194 # The variables have the same names as the options, with
195 # dashes changed to underlines.
197 cache_file
=.
/config.cache
206 program_transform_name
=s
,x
,x
,
214 bindir
='${exec_prefix}/bin'
215 sbindir
='${exec_prefix}/sbin'
216 libexecdir
='${exec_prefix}/libexec'
217 datadir
='${prefix}/share'
218 sysconfdir
='${prefix}/etc'
219 sharedstatedir
='${prefix}/com'
220 localstatedir
='${prefix}/var'
221 libdir
='${exec_prefix}/lib'
222 includedir
='${prefix}/include'
223 oldincludedir
='/usr/include'
224 infodir
='${prefix}/info'
225 mandir
='${prefix}/man'
227 # Initialize some other variables.
230 SHELL
=${CONFIG_SHELL-/bin/sh}
231 # Maximum number of lines to put in a shell here document.
238 # If the previous option needs an argument, assign it.
239 if test -n "$ac_prev"; then
240 eval "$ac_prev=\$ac_option"
246 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
250 # Accept the important Cygnus configure options, so we can diagnose typos.
254 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
256 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
257 bindir
="$ac_optarg" ;;
259 -build |
--build |
--buil |
--bui |
--bu)
261 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
262 build
="$ac_optarg" ;;
264 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
265 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
266 ac_prev
=cache_file
;;
267 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
268 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
269 cache_file
="$ac_optarg" ;;
271 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
273 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
275 datadir
="$ac_optarg" ;;
277 -disable-* |
--disable-*)
278 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
279 # Reject names that are not valid shell variable names.
280 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
281 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
283 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
284 eval "enable_${ac_feature}=no" ;;
286 -enable-* |
--enable-*)
287 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
288 # Reject names that are not valid shell variable names.
289 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
290 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
292 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
297 eval "enable_${ac_feature}='$ac_optarg'" ;;
299 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
300 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
301 |
--exec |
--exe |
--ex)
302 ac_prev
=exec_prefix
;;
303 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
304 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
305 |
--exec=* |
--exe=* |
--ex=*)
306 exec_prefix
="$ac_optarg" ;;
308 -gas |
--gas |
--ga |
--g)
309 # Obsolete; use --with-gas.
312 -help |
--help |
--hel |
--he)
313 # Omit some internal or obsolete options to make the list less imposing.
314 # This message is too long to be a string in the A/UX 3.1 sh.
316 Usage: configure [options] [host]
317 Options: [defaults in brackets after descriptions]
319 --cache-file=FILE cache test results in FILE
320 --help print this message
321 --no-create do not create output files
322 --quiet, --silent do not print \`checking...' messages
323 --version print the version of autoconf that created configure
324 Directory and file names:
325 --prefix=PREFIX install architecture-independent files in PREFIX
327 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
329 --bindir=DIR user executables in DIR [EPREFIX/bin]
330 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
331 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
332 --datadir=DIR read-only architecture-independent data in DIR
334 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
335 --sharedstatedir=DIR modifiable architecture-independent data in DIR
337 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
338 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
339 --includedir=DIR C header files in DIR [PREFIX/include]
340 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
341 --infodir=DIR info documentation in DIR [PREFIX/info]
342 --mandir=DIR man documentation in DIR [PREFIX/man]
343 --srcdir=DIR find the sources in DIR [configure dir or ..]
344 --program-prefix=PREFIX prepend PREFIX to installed program names
345 --program-suffix=SUFFIX append SUFFIX to installed program names
346 --program-transform-name=PROGRAM
347 run sed PROGRAM on installed program names
351 --build=BUILD configure for building on BUILD [BUILD=HOST]
352 --host=HOST configure for HOST [guessed]
353 --target=TARGET configure for TARGET [TARGET=HOST]
354 Features and packages:
355 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
356 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
357 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
358 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
359 --x-includes=DIR X include files are in DIR
360 --x-libraries=DIR X library files are in DIR
362 if test -n "$ac_help"; then
363 echo "--enable and --with options recognized:$ac_help"
367 -host |
--host |
--hos |
--ho)
369 -host=* |
--host=* |
--hos=* |
--ho=*)
372 -includedir |
--includedir |
--includedi |
--included |
--include \
373 |
--includ |
--inclu |
--incl |
--inc)
374 ac_prev
=includedir
;;
375 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
376 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
377 includedir
="$ac_optarg" ;;
379 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
381 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
382 infodir
="$ac_optarg" ;;
384 -libdir |
--libdir |
--libdi |
--libd)
386 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
387 libdir
="$ac_optarg" ;;
389 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
390 |
--libexe |
--libex |
--libe)
391 ac_prev
=libexecdir
;;
392 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
393 |
--libexe=* |
--libex=* |
--libe=*)
394 libexecdir
="$ac_optarg" ;;
396 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
397 |
--localstate |
--localstat |
--localsta |
--localst \
398 |
--locals |
--local |
--loca |
--loc |
--lo)
399 ac_prev
=localstatedir
;;
400 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
401 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
402 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
403 localstatedir
="$ac_optarg" ;;
405 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
407 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
408 mandir
="$ac_optarg" ;;
411 # Obsolete; use --without-fp.
414 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
418 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
419 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
422 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
423 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
424 |
--oldin |
--oldi |
--old |
--ol |
--o)
425 ac_prev
=oldincludedir
;;
426 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
427 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
428 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
429 oldincludedir
="$ac_optarg" ;;
431 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
433 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
434 prefix
="$ac_optarg" ;;
436 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
437 |
--program-pre |
--program-pr |
--program-p)
438 ac_prev
=program_prefix
;;
439 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
440 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
441 program_prefix
="$ac_optarg" ;;
443 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
444 |
--program-suf |
--program-su |
--program-s)
445 ac_prev
=program_suffix
;;
446 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
447 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
448 program_suffix
="$ac_optarg" ;;
450 -program-transform-name |
--program-transform-name \
451 |
--program-transform-nam |
--program-transform-na \
452 |
--program-transform-n |
--program-transform- \
453 |
--program-transform |
--program-transfor \
454 |
--program-transfo |
--program-transf \
455 |
--program-trans |
--program-tran \
456 |
--progr-tra |
--program-tr |
--program-t)
457 ac_prev
=program_transform_name
;;
458 -program-transform-name=* |
--program-transform-name=* \
459 |
--program-transform-nam=* |
--program-transform-na=* \
460 |
--program-transform-n=* |
--program-transform-=* \
461 |
--program-transform=* |
--program-transfor=* \
462 |
--program-transfo=* |
--program-transf=* \
463 |
--program-trans=* |
--program-tran=* \
464 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
465 program_transform_name
="$ac_optarg" ;;
467 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
468 |
-silent |
--silent |
--silen |
--sile |
--sil)
471 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
473 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
475 sbindir
="$ac_optarg" ;;
477 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
478 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
479 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
481 ac_prev
=sharedstatedir
;;
482 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
483 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
484 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
486 sharedstatedir
="$ac_optarg" ;;
488 -site |
--site |
--sit)
490 -site=* |
--site=* |
--sit=*)
493 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
495 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
496 srcdir
="$ac_optarg" ;;
498 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
499 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
500 ac_prev
=sysconfdir
;;
501 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
502 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
503 sysconfdir
="$ac_optarg" ;;
505 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
507 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
508 target
="$ac_optarg" ;;
510 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
513 -version |
--version |
--versio |
--versi |
--vers)
514 echo "configure generated by autoconf version 2.12.2"
518 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
519 # Reject names that are not valid shell variable names.
520 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
521 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
523 ac_package
=`echo $ac_package| sed 's/-/_/g'`
528 eval "with_${ac_package}='$ac_optarg'" ;;
530 -without-* |
--without-*)
531 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
532 # Reject names that are not valid shell variable names.
533 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
534 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
536 ac_package
=`echo $ac_package| sed 's/-/_/g'`
537 eval "with_${ac_package}=no" ;;
540 # Obsolete; use --with-x.
543 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
544 |
--x-incl |
--x-inc |
--x-in |
--x-i)
545 ac_prev
=x_includes
;;
546 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
547 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
548 x_includes
="$ac_optarg" ;;
550 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
551 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
552 ac_prev
=x_libraries
;;
553 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
554 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
555 x_libraries
="$ac_optarg" ;;
557 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
561 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
562 echo "configure: warning: $ac_option: invalid host type" 1>&2
564 if test "x$nonopt" != xNONE
; then
565 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
573 if test -n "$ac_prev"; then
574 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
577 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
579 # File descriptor usage:
582 # 2 errors and warnings
583 # 3 some systems may open it to /dev/tty
584 # 4 used on the Kubota Titan
585 # 6 checking for... messages and results
586 # 5 compiler messages saved in config.log
587 if test "$silent" = yes; then
595 This file contains any messages produced by compilers while
596 running configure, to aid debugging if configure makes a mistake.
599 # Strip out --no-create and --no-recursion so they do not pile up.
600 # Also quote any args containing shell metacharacters.
605 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
606 |
--no-cr |
--no-c) ;;
607 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
608 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
609 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
610 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
611 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
616 # Only set these to C if already set. These must not be set unconditionally
617 # because not all systems understand e.g. LANG=C (notably SCO).
618 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
619 # Non-C LC_CTYPE values break the ctype check.
620 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
621 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
622 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
623 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
625 # confdefs.h avoids OS command line length limits that DEFS can exceed.
626 rm -rf conftest
* confdefs.h
627 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
630 # A filename unique to this package, relative to the directory that
631 # configure is in, which we can look for to find out if srcdir is correct.
632 ac_unique_file
=Makefile.
in
634 # Find the source files, if location was not specified.
635 if test -z "$srcdir"; then
636 ac_srcdir_defaulted
=yes
637 # Try the directory containing this script, then its parent.
639 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
640 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
642 if test ! -r $srcdir/$ac_unique_file; then
646 ac_srcdir_defaulted
=no
648 if test ! -r $srcdir/$ac_unique_file; then
649 if test "$ac_srcdir_defaulted" = yes; then
650 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
652 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
655 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
657 # Prefer explicitly selected file to automatically selected ones.
658 if test -z "$CONFIG_SITE"; then
659 if test "x$prefix" != xNONE
; then
660 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
662 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
665 for ac_site_file
in $CONFIG_SITE; do
666 if test -r "$ac_site_file"; then
667 echo "loading site script $ac_site_file"
672 if test -r "$cache_file"; then
673 echo "loading cache $cache_file"
676 echo "creating cache $cache_file"
681 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
682 ac_cpp
='$CPP $CPPFLAGS'
683 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
684 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
685 cross_compiling
=$ac_cv_prog_cc_cross
689 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
690 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
691 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
698 ac_n
= ac_c
='\c' ac_t
=
703 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
704 echo "configure:705: checking how to run the C preprocessor" >&5
705 # On Suns, sometimes $CPP names a directory.
706 if test -n "$CPP" && test -d "$CPP"; then
709 if test -z "$CPP"; then
710 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
711 echo $ac_n "(cached) $ac_c" 1>&6
713 # This must be in double quotes, not single quotes, because CPP may get
714 # substituted into the Makefile and "${CC-cc}" will confuse make.
716 # On the NeXT, cc -E runs the code through the compiler's parser,
717 # not just through cpp.
718 cat > conftest.
$ac_ext <<EOF
719 #line 720 "configure"
720 #include "confdefs.h"
724 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
725 { (eval echo configure
:726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
726 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
727 if test -z "$ac_err"; then
731 echo "configure: failed program was:" >&5
732 cat conftest.
$ac_ext >&5
734 CPP
="${CC-cc} -E -traditional-cpp"
735 cat > conftest.
$ac_ext <<EOF
736 #line 737 "configure"
737 #include "confdefs.h"
741 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
742 { (eval echo configure
:743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
743 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
744 if test -z "$ac_err"; then
748 echo "configure: failed program was:" >&5
749 cat conftest.
$ac_ext >&5
751 CPP
="${CC-cc} -nologo -E"
752 cat > conftest.
$ac_ext <<EOF
753 #line 754 "configure"
754 #include "confdefs.h"
758 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
759 { (eval echo configure
:760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
760 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
761 if test -z "$ac_err"; then
765 echo "configure: failed program was:" >&5
766 cat conftest.
$ac_ext >&5
775 ac_cv_prog_CPP
="$CPP"
777 CPP
="$ac_cv_prog_CPP"
779 ac_cv_prog_CPP
="$CPP"
781 echo "$ac_t""$CPP" 1>&6
783 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
784 echo "configure:785: checking whether ${MAKE-make} sets \${MAKE}" >&5
785 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
786 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
787 echo $ac_n "(cached) $ac_c" 1>&6
789 cat > conftestmake
<<\EOF
791 @
echo 'ac_maketemp="${MAKE}"'
793 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
794 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
795 if test -n "$ac_maketemp"; then
796 eval ac_cv_prog_make_
${ac_make}_set
=yes
798 eval ac_cv_prog_make_
${ac_make}_set
=no
802 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
803 echo "$ac_t""yes" 1>&6
806 echo "$ac_t""no" 1>&6
807 SET_MAKE
="MAKE=${MAKE-make}"
810 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
811 echo "configure:812: checking for POSIXized ISC" >&5
812 if test -d /etc
/conf
/kconfig.d
&&
813 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
815 echo "$ac_t""yes" 1>&6
816 ISC
=yes # If later tests want to check for ISC.
817 cat >> confdefs.h
<<\EOF
818 #define _POSIX_SOURCE 1
821 if test "$GCC" = yes; then
827 echo "$ac_t""no" 1>&6
831 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
832 echo "configure:833: checking for ANSI C header files" >&5
833 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
834 echo $ac_n "(cached) $ac_c" 1>&6
836 cat > conftest.
$ac_ext <<EOF
837 #line 838 "configure"
838 #include "confdefs.h"
844 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
845 { (eval echo configure
:846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
846 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
847 if test -z "$ac_err"; then
849 ac_cv_header_stdc
=yes
852 echo "configure: failed program was:" >&5
853 cat conftest.
$ac_ext >&5
859 if test $ac_cv_header_stdc = yes; then
860 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
861 cat > conftest.
$ac_ext <<EOF
862 #line 863 "configure"
863 #include "confdefs.h"
866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
867 egrep "memchr" >/dev
/null
2>&1; then
877 if test $ac_cv_header_stdc = yes; then
878 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
879 cat > conftest.
$ac_ext <<EOF
880 #line 881 "configure"
881 #include "confdefs.h"
884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
885 egrep "free" >/dev
/null
2>&1; then
895 if test $ac_cv_header_stdc = yes; then
896 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
897 if test "$cross_compiling" = yes; then
900 cat > conftest.
$ac_ext <<EOF
901 #line 902 "configure"
902 #include "confdefs.h"
904 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
905 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
906 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
907 int main () { int i; for (i = 0; i < 256; i++)
908 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
912 if { (eval echo configure
:913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
916 echo "configure: failed program was:" >&5
917 cat conftest.
$ac_ext >&5
927 echo "$ac_t""$ac_cv_header_stdc" 1>&6
928 if test $ac_cv_header_stdc = yes; then
929 cat >> confdefs.h
<<\EOF
930 #define STDC_HEADERS 1
935 echo $ac_n "checking for working const""... $ac_c" 1>&6
936 echo "configure:937: checking for working const" >&5
937 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
938 echo $ac_n "(cached) $ac_c" 1>&6
940 cat > conftest.
$ac_ext <<EOF
941 #line 942 "configure"
942 #include "confdefs.h"
946 /* Ultrix mips cc rejects this. */
947 typedef int charset[2]; const charset x;
948 /* SunOS 4.1.1 cc rejects this. */
949 char const *const *ccp;
951 /* NEC SVR4.0.2 mips cc rejects this. */
952 struct point {int x, y;};
953 static struct point const zero = {0,0};
954 /* AIX XL C 1.02.0.0 rejects this.
955 It does not let you subtract one const X* pointer from another in an arm
956 of an if-expression whose if-part is not a constant expression */
957 const char *g = "string";
958 ccp = &g + (g ? g-g : 0);
959 /* HPUX 7.0 cc rejects these. */
962 ccp = (char const *const *) p;
963 { /* SCO 3.2v4 cc rejects this. */
965 char const *s = 0 ? (char *) 0 : (char const *) 0;
969 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
971 const int *foo = &x[0];
974 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
975 typedef const int *iptr;
979 { /* AIX XL C 1.02.0.0 rejects this saying
980 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
981 struct s { int j; const int *ap[3]; };
982 struct s *b; b->j = 5;
984 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
990 if { (eval echo configure
:991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
994 echo "configure: failed program was:" >&5
995 cat conftest.
$ac_ext >&5
1002 echo "$ac_t""$ac_cv_c_const" 1>&6
1003 if test $ac_cv_c_const = no
; then
1004 cat >> confdefs.h
<<\EOF
1010 echo $ac_n "checking for inline""... $ac_c" 1>&6
1011 echo "configure:1012: checking for inline" >&5
1012 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1013 echo $ac_n "(cached) $ac_c" 1>&6
1016 for ac_kw
in inline __inline__ __inline
; do
1017 cat > conftest.
$ac_ext <<EOF
1018 #line 1019 "configure"
1019 #include "confdefs.h"
1025 if { (eval echo configure
:1026: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1027 ac_cv_c_inline
=$ac_kw; break
1029 echo "configure: failed program was:" >&5
1030 cat conftest.
$ac_ext >&5
1037 echo "$ac_t""$ac_cv_c_inline" 1>&6
1038 case "$ac_cv_c_inline" in
1040 no
) cat >> confdefs.h
<<\EOF
1044 *) cat >> confdefs.h
<<EOF
1045 #define inline $ac_cv_c_inline
1050 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1051 echo "configure:1052: checking for off_t" >&5
1052 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1053 echo $ac_n "(cached) $ac_c" 1>&6
1055 cat > conftest.
$ac_ext <<EOF
1056 #line 1057 "configure"
1057 #include "confdefs.h"
1058 #include <sys/types.h>
1064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1065 egrep "off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1067 ac_cv_type_off_t
=yes
1075 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1076 if test $ac_cv_type_off_t = no
; then
1077 cat >> confdefs.h
<<\EOF
1083 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1084 echo "configure:1085: checking for size_t" >&5
1085 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1086 echo $ac_n "(cached) $ac_c" 1>&6
1088 cat > conftest.
$ac_ext <<EOF
1089 #line 1090 "configure"
1090 #include "confdefs.h"
1091 #include <sys/types.h>
1097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1098 egrep "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1100 ac_cv_type_size_t
=yes
1103 ac_cv_type_size_t
=no
1108 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1109 if test $ac_cv_type_size_t = no
; then
1110 cat >> confdefs.h
<<\EOF
1111 #define size_t unsigned
1116 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1117 # for constant arguments. Useless!
1118 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1119 echo "configure:1120: checking for working alloca.h" >&5
1120 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1121 echo $ac_n "(cached) $ac_c" 1>&6
1123 cat > conftest.
$ac_ext <<EOF
1124 #line 1125 "configure"
1125 #include "confdefs.h"
1128 char *p = alloca(2 * sizeof(int));
1131 if { (eval echo configure
:1132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1133 ac_cv_header_alloca_h
=yes
1135 echo "configure: failed program was:" >&5
1136 cat conftest.
$ac_ext >&5
1138 ac_cv_header_alloca_h
=no
1143 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1144 if test $ac_cv_header_alloca_h = yes; then
1145 cat >> confdefs.h
<<\EOF
1146 #define HAVE_ALLOCA_H 1
1151 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1152 echo "configure:1153: checking for alloca" >&5
1153 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1154 echo $ac_n "(cached) $ac_c" 1>&6
1156 cat > conftest.
$ac_ext <<EOF
1157 #line 1158 "configure"
1158 #include "confdefs.h"
1161 # define alloca __builtin_alloca
1164 # include <malloc.h>
1165 # define alloca _alloca
1168 # include <alloca.h>
1173 # ifndef alloca /* predefined by HP cc +Olibcalls */
1182 char *p = (char *) alloca(1);
1185 if { (eval echo configure
:1186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1187 ac_cv_func_alloca_works
=yes
1189 echo "configure: failed program was:" >&5
1190 cat conftest.
$ac_ext >&5
1192 ac_cv_func_alloca_works
=no
1197 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1198 if test $ac_cv_func_alloca_works = yes; then
1199 cat >> confdefs.h
<<\EOF
1200 #define HAVE_ALLOCA 1
1205 if test $ac_cv_func_alloca_works = no
; then
1206 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1207 # that cause trouble. Some versions do not even contain alloca or
1208 # contain a buggy version. If you still want to use their alloca,
1209 # use ar to extract alloca.o from them instead of compiling alloca.c.
1210 ALLOCA
=alloca.
${ac_objext}
1211 cat >> confdefs.h
<<\EOF
1216 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1217 echo "configure:1218: checking whether alloca needs Cray hooks" >&5
1218 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1219 echo $ac_n "(cached) $ac_c" 1>&6
1221 cat > conftest.
$ac_ext <<EOF
1222 #line 1223 "configure"
1223 #include "confdefs.h"
1224 #if defined(CRAY) && ! defined(CRAY2)
1231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1232 egrep "webecray" >/dev
/null
2>&1; then
1243 echo "$ac_t""$ac_cv_os_cray" 1>&6
1244 if test $ac_cv_os_cray = yes; then
1245 for ac_func
in _getb67 GETB67 getb67
; do
1246 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1247 echo "configure:1248: checking for $ac_func" >&5
1248 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1249 echo $ac_n "(cached) $ac_c" 1>&6
1251 cat > conftest.
$ac_ext <<EOF
1252 #line 1253 "configure"
1253 #include "confdefs.h"
1254 /* System header to define __stub macros and hopefully few prototypes,
1255 which can conflict with char $ac_func(); below. */
1257 /* Override any gcc2 internal prototype to avoid an error. */
1258 /* We use char because int might match the return type of a gcc2
1259 builtin and then its argument prototype would still apply. */
1264 /* The GNU C library defines this for functions which it implements
1265 to always fail with ENOSYS. Some functions are actually named
1266 something starting with __ and the normal name is an alias. */
1267 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1275 if { (eval echo configure
:1276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1277 eval "ac_cv_func_$ac_func=yes"
1279 echo "configure: failed program was:" >&5
1280 cat conftest.
$ac_ext >&5
1282 eval "ac_cv_func_$ac_func=no"
1287 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1288 echo "$ac_t""yes" 1>&6
1289 cat >> confdefs.h
<<EOF
1290 #define CRAY_STACKSEG_END $ac_func
1295 echo "$ac_t""no" 1>&6
1301 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1302 echo "configure:1303: checking stack direction for C alloca" >&5
1303 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1304 echo $ac_n "(cached) $ac_c" 1>&6
1306 if test "$cross_compiling" = yes; then
1307 ac_cv_c_stack_direction
=0
1309 cat > conftest.
$ac_ext <<EOF
1310 #line 1311 "configure"
1311 #include "confdefs.h"
1312 find_stack_direction ()
1314 static char *addr = 0;
1319 return find_stack_direction ();
1322 return (&dummy > addr) ? 1 : -1;
1326 exit (find_stack_direction() < 0);
1329 if { (eval echo configure
:1330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1331 ac_cv_c_stack_direction
=1
1333 echo "configure: failed program was:" >&5
1334 cat conftest.
$ac_ext >&5
1336 ac_cv_c_stack_direction
=-1
1343 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1344 cat >> confdefs.h
<<EOF
1345 #define STACK_DIRECTION $ac_cv_c_stack_direction
1350 for ac_hdr
in unistd.h
1352 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1353 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1354 echo "configure:1355: checking for $ac_hdr" >&5
1355 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1356 echo $ac_n "(cached) $ac_c" 1>&6
1358 cat > conftest.
$ac_ext <<EOF
1359 #line 1360 "configure"
1360 #include "confdefs.h"
1363 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1364 { (eval echo configure
:1365: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1365 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1366 if test -z "$ac_err"; then
1368 eval "ac_cv_header_$ac_safe=yes"
1371 echo "configure: failed program was:" >&5
1372 cat conftest.
$ac_ext >&5
1374 eval "ac_cv_header_$ac_safe=no"
1378 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1379 echo "$ac_t""yes" 1>&6
1380 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1381 cat >> confdefs.h
<<EOF
1382 #define $ac_tr_hdr 1
1386 echo "$ac_t""no" 1>&6
1390 for ac_func
in getpagesize
1392 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1393 echo "configure:1394: checking for $ac_func" >&5
1394 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1395 echo $ac_n "(cached) $ac_c" 1>&6
1397 cat > conftest.
$ac_ext <<EOF
1398 #line 1399 "configure"
1399 #include "confdefs.h"
1400 /* System header to define __stub macros and hopefully few prototypes,
1401 which can conflict with char $ac_func(); below. */
1403 /* Override any gcc2 internal prototype to avoid an error. */
1404 /* We use char because int might match the return type of a gcc2
1405 builtin and then its argument prototype would still apply. */
1410 /* The GNU C library defines this for functions which it implements
1411 to always fail with ENOSYS. Some functions are actually named
1412 something starting with __ and the normal name is an alias. */
1413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1421 if { (eval echo configure
:1422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1423 eval "ac_cv_func_$ac_func=yes"
1425 echo "configure: failed program was:" >&5
1426 cat conftest.
$ac_ext >&5
1428 eval "ac_cv_func_$ac_func=no"
1433 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1434 echo "$ac_t""yes" 1>&6
1435 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1436 cat >> confdefs.h
<<EOF
1437 #define $ac_tr_func 1
1441 echo "$ac_t""no" 1>&6
1445 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1446 echo "configure:1447: checking for working mmap" >&5
1447 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1448 echo $ac_n "(cached) $ac_c" 1>&6
1450 if test "$cross_compiling" = yes; then
1451 ac_cv_func_mmap_fixed_mapped
=no
1453 cat > conftest.
$ac_ext <<EOF
1454 #line 1455 "configure"
1455 #include "confdefs.h"
1457 /* Thanks to Mike Haertel and Jim Avera for this test.
1458 Here is a matrix of mmap possibilities:
1459 mmap private not fixed
1460 mmap private fixed at somewhere currently unmapped
1461 mmap private fixed at somewhere already mapped
1462 mmap shared not fixed
1463 mmap shared fixed at somewhere currently unmapped
1464 mmap shared fixed at somewhere already mapped
1465 For private mappings, we should verify that changes cannot be read()
1466 back from the file, nor mmap's back from the file at a different
1467 address. (There have been systems where private was not correctly
1468 implemented like the infamous i386 svr4.0, and systems where the
1469 VM page cache was not coherent with the filesystem buffer cache
1470 like early versions of FreeBSD and possibly contemporary NetBSD.)
1471 For shared mappings, we should conversely verify that changes get
1472 propogated back to all the places they're supposed to be.
1474 Grep wants private fixed already mapped.
1475 The main things grep needs to know about mmap are:
1476 * does it exist and is it safe to write into the mmap'd area
1477 * how to use it (BSD variants) */
1478 #include <sys/types.h>
1480 #include <sys/mman.h>
1482 /* This mess was copied from the GNU getpagesize.h. */
1483 #ifndef HAVE_GETPAGESIZE
1484 # ifdef HAVE_UNISTD_H
1485 # include <unistd.h>
1488 /* Assume that all systems that can run configure have sys/param.h. */
1489 # ifndef HAVE_SYS_PARAM_H
1490 # define HAVE_SYS_PARAM_H 1
1493 # ifdef _SC_PAGESIZE
1494 # define getpagesize() sysconf(_SC_PAGESIZE)
1495 # else /* no _SC_PAGESIZE */
1496 # ifdef HAVE_SYS_PARAM_H
1497 # include <sys/param.h>
1498 # ifdef EXEC_PAGESIZE
1499 # define getpagesize() EXEC_PAGESIZE
1500 # else /* no EXEC_PAGESIZE */
1502 # define getpagesize() NBPG * CLSIZE
1505 # endif /* no CLSIZE */
1506 # else /* no NBPG */
1508 # define getpagesize() NBPC
1509 # else /* no NBPC */
1511 # define getpagesize() PAGESIZE
1512 # endif /* PAGESIZE */
1513 # endif /* no NBPC */
1514 # endif /* no NBPG */
1515 # endif /* no EXEC_PAGESIZE */
1516 # else /* no HAVE_SYS_PARAM_H */
1517 # define getpagesize() 8192 /* punt totally */
1518 # endif /* no HAVE_SYS_PARAM_H */
1519 # endif /* no _SC_PAGESIZE */
1521 #endif /* no HAVE_GETPAGESIZE */
1524 extern "C" { void *malloc(unsigned); }
1532 char *data, *data2, *data3;
1536 pagesize = getpagesize();
1539 * First, make a file with some known garbage in it.
1541 data = malloc(pagesize);
1544 for (i = 0; i < pagesize; ++i)
1545 *(data + i) = rand();
1547 fd = creat("conftestmmap", 0600);
1550 if (write(fd, data, pagesize) != pagesize)
1555 * Next, try to mmap the file at a fixed address which
1556 * already has something else allocated at it. If we can,
1557 * also make sure that we see the same garbage.
1559 fd = open("conftestmmap", O_RDWR);
1562 data2 = malloc(2 * pagesize);
1565 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1566 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1567 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1569 for (i = 0; i < pagesize; ++i)
1570 if (*(data + i) != *(data2 + i))
1574 * Finally, make sure that changes to the mapped area
1575 * do not percolate back to the file as seen by read().
1576 * (This is a bug on some variants of i386 svr4.0.)
1578 for (i = 0; i < pagesize; ++i)
1579 *(data2 + i) = *(data2 + i) + 1;
1580 data3 = malloc(pagesize);
1583 if (read(fd, data3, pagesize) != pagesize)
1585 for (i = 0; i < pagesize; ++i)
1586 if (*(data + i) != *(data3 + i))
1589 unlink("conftestmmap");
1594 if { (eval echo configure
:1595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1596 ac_cv_func_mmap_fixed_mapped
=yes
1598 echo "configure: failed program was:" >&5
1599 cat conftest.
$ac_ext >&5
1601 ac_cv_func_mmap_fixed_mapped
=no
1608 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1609 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1610 cat >> confdefs.h
<<\EOF
1617 # autoconf.info says this should be called right after AC_INIT.
1621 for ac_dir
in `cd $srcdir;pwd`/..
/..
$srcdir/`cd $srcdir;pwd`/..
/..
; do
1622 if test -f $ac_dir/install-sh
; then
1624 ac_install_sh
="$ac_aux_dir/install-sh -c"
1626 elif test -f $ac_dir/install.sh
; then
1628 ac_install_sh
="$ac_aux_dir/install.sh -c"
1632 if test -z "$ac_aux_dir"; then
1633 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
1635 ac_config_guess
=$ac_aux_dir/config.guess
1636 ac_config_sub
=$ac_aux_dir/config.sub
1637 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1640 # Do some error checking and defaulting for the host and target type.
1642 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1645 # 1. You are not allowed to specify --host, --target, and nonopt at the
1647 # 2. Host defaults to nonopt.
1648 # 3. If nonopt is not specified, then host defaults to the current host,
1649 # as determined by config.guess.
1650 # 4. Target and build default to nonopt.
1651 # 5. If nonopt is not specified, then target and build default to host.
1653 # The aliases save the names the user supplied, while $host etc.
1654 # will get canonicalized.
1655 case $host---$target---$nonopt in
1656 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1657 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1661 # Make sure we can run config.sub.
1662 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1663 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1666 echo $ac_n "checking host system type""... $ac_c" 1>&6
1667 echo "configure:1668: checking host system type" >&5
1670 case "$host_alias" in
1674 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1675 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1677 *) host_alias
=$nonopt ;;
1681 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1682 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1683 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1684 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1685 echo "$ac_t""$host" 1>&6
1687 echo $ac_n "checking target system type""... $ac_c" 1>&6
1688 echo "configure:1689: checking target system type" >&5
1690 target_alias
=$target
1691 case "$target_alias" in
1694 NONE
) target_alias
=$host_alias ;;
1695 *) target_alias
=$nonopt ;;
1699 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1700 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1701 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1702 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1703 echo "$ac_t""$target" 1>&6
1705 echo $ac_n "checking build system type""... $ac_c" 1>&6
1706 echo "configure:1707: checking build system type" >&5
1709 case "$build_alias" in
1712 NONE
) build_alias
=$host_alias ;;
1713 *) build_alias
=$nonopt ;;
1717 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1718 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1719 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1720 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1721 echo "$ac_t""$build" 1>&6
1723 test "$host_alias" != "$target_alias" &&
1724 test "$program_prefix$program_suffix$program_transform_name" = \
1726 program_prefix
=${target_alias}-
1728 if test "$program_transform_name" = s
,x
,x
,; then
1729 program_transform_name
=
1731 # Double any \ or $. echo might interpret backslashes.
1732 cat <<\EOF_SED
> conftestsed
1733 s
,\\,\\\\,g
; s
,\$
,$$
,g
1735 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1738 test "$program_prefix" != NONE
&&
1739 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1740 # Use a double $ so make ignores it.
1741 test "$program_suffix" != NONE
&&
1742 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1744 # sed with no file args requires a program.
1745 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1747 # Extract the first word of "gcc", so it can be a program name with args.
1748 set dummy gcc
; ac_word
=$2
1749 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1750 echo "configure:1751: checking for $ac_word" >&5
1751 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1752 echo $ac_n "(cached) $ac_c" 1>&6
1754 if test -n "$CC"; then
1755 ac_cv_prog_CC
="$CC" # Let the user override the test.
1757 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1758 for ac_dir
in $PATH; do
1759 test -z "$ac_dir" && ac_dir
=.
1760 if test -f $ac_dir/$ac_word; then
1769 if test -n "$CC"; then
1770 echo "$ac_t""$CC" 1>&6
1772 echo "$ac_t""no" 1>&6
1775 if test -z "$CC"; then
1776 # Extract the first word of "cc", so it can be a program name with args.
1777 set dummy cc
; ac_word
=$2
1778 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1779 echo "configure:1780: checking for $ac_word" >&5
1780 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1781 echo $ac_n "(cached) $ac_c" 1>&6
1783 if test -n "$CC"; then
1784 ac_cv_prog_CC
="$CC" # Let the user override the test.
1786 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1788 for ac_dir
in $PATH; do
1789 test -z "$ac_dir" && ac_dir
=.
1790 if test -f $ac_dir/$ac_word; then
1791 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1792 ac_prog_rejected
=yes
1800 if test $ac_prog_rejected = yes; then
1801 # We found a bogon in the path, so make sure we never use it.
1802 set dummy
$ac_cv_prog_CC
1804 if test $# -gt 0; then
1805 # We chose a different compiler from the bogus one.
1806 # However, it has the same basename, so the bogon will be chosen
1807 # first if we set CC to just the basename; use the full file name.
1809 set dummy
"$ac_dir/$ac_word" "$@"
1817 if test -n "$CC"; then
1818 echo "$ac_t""$CC" 1>&6
1820 echo "$ac_t""no" 1>&6
1823 if test -z "$CC"; then
1824 case "`uname -s`" in
1826 # Extract the first word of "cl", so it can be a program name with args.
1827 set dummy cl
; ac_word
=$2
1828 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1829 echo "configure:1830: checking for $ac_word" >&5
1830 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1831 echo $ac_n "(cached) $ac_c" 1>&6
1833 if test -n "$CC"; then
1834 ac_cv_prog_CC
="$CC" # Let the user override the test.
1836 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1837 for ac_dir
in $PATH; do
1838 test -z "$ac_dir" && ac_dir
=.
1839 if test -f $ac_dir/$ac_word; then
1848 if test -n "$CC"; then
1849 echo "$ac_t""$CC" 1>&6
1851 echo "$ac_t""no" 1>&6
1856 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1859 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1860 echo "configure:1861: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1863 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1864 ac_cpp
='$CPP $CPPFLAGS'
1865 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1866 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1867 cross_compiling
=$ac_cv_prog_cc_cross
1869 cat > conftest.
$ac_ext <<EOF
1870 #line 1871 "configure"
1871 #include "confdefs.h"
1874 if { (eval echo configure
:1875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1875 ac_cv_prog_cc_works
=yes
1876 # If we can't run a trivial program, we are probably using a cross compiler.
1877 if (.
/conftest
; exit) 2>/dev
/null
; then
1878 ac_cv_prog_cc_cross
=no
1880 ac_cv_prog_cc_cross
=yes
1883 echo "configure: failed program was:" >&5
1884 cat conftest.
$ac_ext >&5
1885 ac_cv_prog_cc_works
=no
1889 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1890 if test $ac_cv_prog_cc_works = no
; then
1891 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1893 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1894 echo "configure:1895: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1895 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1896 cross_compiling
=$ac_cv_prog_cc_cross
1898 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1899 echo "configure:1900: checking whether we are using GNU C" >&5
1900 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1901 echo $ac_n "(cached) $ac_c" 1>&6
1903 cat > conftest.c
<<EOF
1908 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1915 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1917 if test $ac_cv_prog_gcc = yes; then
1923 ac_test_CFLAGS
="${CFLAGS+set}"
1924 ac_save_CFLAGS
="$CFLAGS"
1926 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1927 echo "configure:1928: checking whether ${CC-cc} accepts -g" >&5
1928 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1929 echo $ac_n "(cached) $ac_c" 1>&6
1931 echo 'void f(){}' > conftest.c
1932 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1941 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1942 if test "$ac_test_CFLAGS" = set; then
1943 CFLAGS
="$ac_save_CFLAGS"
1944 elif test $ac_cv_prog_cc_g = yes; then
1945 if test "$GCC" = yes; then
1951 if test "$GCC" = yes; then
1958 # Find a good install program. We prefer a C program (faster),
1959 # so one script is as good as another. But avoid the broken or
1960 # incompatible versions:
1961 # SysV /etc/install, /usr/sbin/install
1962 # SunOS /usr/etc/install
1963 # IRIX /sbin/install
1965 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1966 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1967 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1968 # ./install, which can be erroneously created by make from ./install.sh.
1969 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1970 echo "configure:1971: checking for a BSD compatible install" >&5
1971 if test -z "$INSTALL"; then
1972 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1973 echo $ac_n "(cached) $ac_c" 1>&6
1975 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1976 for ac_dir
in $PATH; do
1977 # Account for people who put trailing slashes in PATH elements.
1979 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1981 # OSF1 and SCO ODT 3.0 have their own names for install.
1982 # Don't use installbsd from OSF since it installs stuff as root
1984 for ac_prog
in ginstall scoinst
install; do
1985 if test -f $ac_dir/$ac_prog; then
1986 if test $ac_prog = install &&
1987 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1988 # AIX install. It has an incompatible calling convention.
1991 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2002 if test "${ac_cv_path_install+set}" = set; then
2003 INSTALL
="$ac_cv_path_install"
2005 # As a last resort, use the slow shell script. We don't cache a
2006 # path for INSTALL within a source directory, because that will
2007 # break other packages using the cache if that directory is
2008 # removed, or if the path is relative.
2009 INSTALL
="$ac_install_sh"
2012 echo "$ac_t""$INSTALL" 1>&6
2014 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2015 # It thinks the first close brace ends the variable substitution.
2016 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2018 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2021 # Put a plausible default for CC_FOR_BUILD in Makefile.
2022 if test "x$cross_compiling" = "xno"; then
2023 CC_FOR_BUILD
='$(CC)'
2033 # Extract the first word of "ranlib", so it can be a program name with args.
2034 set dummy ranlib
; ac_word
=$2
2035 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2036 echo "configure:2037: checking for $ac_word" >&5
2037 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2038 echo $ac_n "(cached) $ac_c" 1>&6
2040 if test -n "$RANLIB"; then
2041 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2043 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2044 for ac_dir
in $PATH; do
2045 test -z "$ac_dir" && ac_dir
=.
2046 if test -f $ac_dir/$ac_word; then
2047 ac_cv_prog_RANLIB
="ranlib"
2052 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2055 RANLIB
="$ac_cv_prog_RANLIB"
2056 if test -n "$RANLIB"; then
2057 echo "$ac_t""$RANLIB" 1>&6
2059 echo "$ac_t""no" 1>&6
2065 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2066 unistd.h values.h sys
/param.h
2068 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2069 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2070 echo "configure:2071: checking for $ac_hdr" >&5
2071 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2072 echo $ac_n "(cached) $ac_c" 1>&6
2074 cat > conftest.
$ac_ext <<EOF
2075 #line 2076 "configure"
2076 #include "confdefs.h"
2079 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2080 { (eval echo configure
:2081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2081 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2082 if test -z "$ac_err"; then
2084 eval "ac_cv_header_$ac_safe=yes"
2087 echo "configure: failed program was:" >&5
2088 cat conftest.
$ac_ext >&5
2090 eval "ac_cv_header_$ac_safe=no"
2094 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2095 echo "$ac_t""yes" 1>&6
2096 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2097 cat >> confdefs.h
<<EOF
2098 #define $ac_tr_hdr 1
2102 echo "$ac_t""no" 1>&6
2106 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2107 __argz_count __argz_stringify __argz_next
2109 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2110 echo "configure:2111: checking for $ac_func" >&5
2111 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2112 echo $ac_n "(cached) $ac_c" 1>&6
2114 cat > conftest.
$ac_ext <<EOF
2115 #line 2116 "configure"
2116 #include "confdefs.h"
2117 /* System header to define __stub macros and hopefully few prototypes,
2118 which can conflict with char $ac_func(); below. */
2120 /* Override any gcc2 internal prototype to avoid an error. */
2121 /* We use char because int might match the return type of a gcc2
2122 builtin and then its argument prototype would still apply. */
2127 /* The GNU C library defines this for functions which it implements
2128 to always fail with ENOSYS. Some functions are actually named
2129 something starting with __ and the normal name is an alias. */
2130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2138 if { (eval echo configure
:2139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2140 eval "ac_cv_func_$ac_func=yes"
2142 echo "configure: failed program was:" >&5
2143 cat conftest.
$ac_ext >&5
2145 eval "ac_cv_func_$ac_func=no"
2150 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2151 echo "$ac_t""yes" 1>&6
2152 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2153 cat >> confdefs.h
<<EOF
2154 #define $ac_tr_func 1
2158 echo "$ac_t""no" 1>&6
2163 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2164 for ac_func
in stpcpy
2166 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2167 echo "configure:2168: checking for $ac_func" >&5
2168 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2169 echo $ac_n "(cached) $ac_c" 1>&6
2171 cat > conftest.
$ac_ext <<EOF
2172 #line 2173 "configure"
2173 #include "confdefs.h"
2174 /* System header to define __stub macros and hopefully few prototypes,
2175 which can conflict with char $ac_func(); below. */
2177 /* Override any gcc2 internal prototype to avoid an error. */
2178 /* We use char because int might match the return type of a gcc2
2179 builtin and then its argument prototype would still apply. */
2184 /* The GNU C library defines this for functions which it implements
2185 to always fail with ENOSYS. Some functions are actually named
2186 something starting with __ and the normal name is an alias. */
2187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2195 if { (eval echo configure
:2196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2197 eval "ac_cv_func_$ac_func=yes"
2199 echo "configure: failed program was:" >&5
2200 cat conftest.
$ac_ext >&5
2202 eval "ac_cv_func_$ac_func=no"
2207 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2208 echo "$ac_t""yes" 1>&6
2209 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2210 cat >> confdefs.h
<<EOF
2211 #define $ac_tr_func 1
2215 echo "$ac_t""no" 1>&6
2220 if test "${ac_cv_func_stpcpy}" = "yes"; then
2221 cat >> confdefs.h
<<\EOF
2222 #define HAVE_STPCPY 1
2227 if test $ac_cv_header_locale_h = yes; then
2228 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2229 echo "configure:2230: checking for LC_MESSAGES" >&5
2230 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2231 echo $ac_n "(cached) $ac_c" 1>&6
2233 cat > conftest.
$ac_ext <<EOF
2234 #line 2235 "configure"
2235 #include "confdefs.h"
2241 if { (eval echo configure
:2242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2243 am_cv_val_LC_MESSAGES
=yes
2245 echo "configure: failed program was:" >&5
2246 cat conftest.
$ac_ext >&5
2248 am_cv_val_LC_MESSAGES
=no
2253 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2254 if test $am_cv_val_LC_MESSAGES = yes; then
2255 cat >> confdefs.h
<<\EOF
2256 #define HAVE_LC_MESSAGES 1
2261 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2262 echo "configure:2263: checking whether NLS is requested" >&5
2263 # Check whether --enable-nls or --disable-nls was given.
2264 if test "${enable_nls+set}" = set; then
2265 enableval
="$enable_nls"
2271 echo "$ac_t""$USE_NLS" 1>&6
2274 USE_INCLUDED_LIBINTL
=no
2276 if test "$USE_NLS" = "yes"; then
2277 cat >> confdefs.h
<<\EOF
2278 #define ENABLE_NLS 1
2281 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2282 echo "configure:2283: checking whether included gettext is requested" >&5
2283 # Check whether --with-included-gettext or --without-included-gettext was given.
2284 if test "${with_included_gettext+set}" = set; then
2285 withval
="$with_included_gettext"
2286 nls_cv_force_use_gnu_gettext
=$withval
2288 nls_cv_force_use_gnu_gettext
=no
2291 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2293 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2294 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2296 nls_cv_header_libgt
=
2299 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2300 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2301 echo "configure:2302: checking for libintl.h" >&5
2302 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2303 echo $ac_n "(cached) $ac_c" 1>&6
2305 cat > conftest.
$ac_ext <<EOF
2306 #line 2307 "configure"
2307 #include "confdefs.h"
2308 #include <libintl.h>
2310 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2311 { (eval echo configure
:2312: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2312 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2313 if test -z "$ac_err"; then
2315 eval "ac_cv_header_$ac_safe=yes"
2318 echo "configure: failed program was:" >&5
2319 cat conftest.
$ac_ext >&5
2321 eval "ac_cv_header_$ac_safe=no"
2325 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2326 echo "$ac_t""yes" 1>&6
2327 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2328 echo "configure:2329: checking for gettext in libc" >&5
2329 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2330 echo $ac_n "(cached) $ac_c" 1>&6
2332 cat > conftest.
$ac_ext <<EOF
2333 #line 2334 "configure"
2334 #include "confdefs.h"
2335 #include <libintl.h>
2337 return (int) gettext ("")
2340 if { (eval echo configure
:2341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2342 gt_cv_func_gettext_libc
=yes
2344 echo "configure: failed program was:" >&5
2345 cat conftest.
$ac_ext >&5
2347 gt_cv_func_gettext_libc
=no
2352 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2354 if test "$gt_cv_func_gettext_libc" != "yes"; then
2355 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2356 echo "configure:2357: checking for bindtextdomain in -lintl" >&5
2357 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2358 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2359 echo $ac_n "(cached) $ac_c" 1>&6
2361 ac_save_LIBS
="$LIBS"
2363 cat > conftest.
$ac_ext <<EOF
2364 #line 2365 "configure"
2365 #include "confdefs.h"
2366 /* Override any gcc2 internal prototype to avoid an error. */
2367 /* We use char because int might match the return type of a gcc2
2368 builtin and then its argument prototype would still apply. */
2369 char bindtextdomain();
2375 if { (eval echo configure
:2376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2377 eval "ac_cv_lib_$ac_lib_var=yes"
2379 echo "configure: failed program was:" >&5
2380 cat conftest.
$ac_ext >&5
2382 eval "ac_cv_lib_$ac_lib_var=no"
2385 LIBS
="$ac_save_LIBS"
2388 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2389 echo "$ac_t""yes" 1>&6
2390 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2391 echo "configure:2392: checking for gettext in libintl" >&5
2392 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2393 echo $ac_n "(cached) $ac_c" 1>&6
2395 cat > conftest.
$ac_ext <<EOF
2396 #line 2397 "configure"
2397 #include "confdefs.h"
2400 return (int) gettext ("")
2403 if { (eval echo configure
:2404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2405 gt_cv_func_gettext_libintl
=yes
2407 echo "configure: failed program was:" >&5
2408 cat conftest.
$ac_ext >&5
2410 gt_cv_func_gettext_libintl
=no
2415 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2417 echo "$ac_t""no" 1>&6
2422 if test "$gt_cv_func_gettext_libc" = "yes" \
2423 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2424 cat >> confdefs.h
<<\EOF
2425 #define HAVE_GETTEXT 1
2428 # Extract the first word of "msgfmt", so it can be a program name with args.
2429 set dummy msgfmt
; ac_word
=$2
2430 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2431 echo "configure:2432: checking for $ac_word" >&5
2432 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2433 echo $ac_n "(cached) $ac_c" 1>&6
2437 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2440 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2441 for ac_dir
in $PATH; do
2442 test -z "$ac_dir" && ac_dir
=.
2443 if test -f $ac_dir/$ac_word; then
2444 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2445 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2451 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2455 MSGFMT
="$ac_cv_path_MSGFMT"
2456 if test -n "$MSGFMT"; then
2457 echo "$ac_t""$MSGFMT" 1>&6
2459 echo "$ac_t""no" 1>&6
2461 if test "$MSGFMT" != "no"; then
2462 for ac_func
in dcgettext
2464 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2465 echo "configure:2466: checking for $ac_func" >&5
2466 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2467 echo $ac_n "(cached) $ac_c" 1>&6
2469 cat > conftest.
$ac_ext <<EOF
2470 #line 2471 "configure"
2471 #include "confdefs.h"
2472 /* System header to define __stub macros and hopefully few prototypes,
2473 which can conflict with char $ac_func(); below. */
2475 /* Override any gcc2 internal prototype to avoid an error. */
2476 /* We use char because int might match the return type of a gcc2
2477 builtin and then its argument prototype would still apply. */
2482 /* The GNU C library defines this for functions which it implements
2483 to always fail with ENOSYS. Some functions are actually named
2484 something starting with __ and the normal name is an alias. */
2485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2493 if { (eval echo configure
:2494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2495 eval "ac_cv_func_$ac_func=yes"
2497 echo "configure: failed program was:" >&5
2498 cat conftest.
$ac_ext >&5
2500 eval "ac_cv_func_$ac_func=no"
2505 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2506 echo "$ac_t""yes" 1>&6
2507 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2508 cat >> confdefs.h
<<EOF
2509 #define $ac_tr_func 1
2513 echo "$ac_t""no" 1>&6
2517 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2518 set dummy gmsgfmt
; ac_word
=$2
2519 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2520 echo "configure:2521: checking for $ac_word" >&5
2521 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2522 echo $ac_n "(cached) $ac_c" 1>&6
2526 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2529 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2532 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2533 for ac_dir
in $PATH; do
2534 test -z "$ac_dir" && ac_dir
=.
2535 if test -f $ac_dir/$ac_word; then
2536 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2541 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2545 GMSGFMT
="$ac_cv_path_GMSGFMT"
2546 if test -n "$GMSGFMT"; then
2547 echo "$ac_t""$GMSGFMT" 1>&6
2549 echo "$ac_t""no" 1>&6
2552 # Extract the first word of "xgettext", so it can be a program name with args.
2553 set dummy xgettext
; ac_word
=$2
2554 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2555 echo "configure:2556: checking for $ac_word" >&5
2556 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2557 echo $ac_n "(cached) $ac_c" 1>&6
2561 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2564 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2565 for ac_dir
in $PATH; do
2566 test -z "$ac_dir" && ac_dir
=.
2567 if test -f $ac_dir/$ac_word; then
2568 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2569 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2575 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2579 XGETTEXT
="$ac_cv_path_XGETTEXT"
2580 if test -n "$XGETTEXT"; then
2581 echo "$ac_t""$XGETTEXT" 1>&6
2583 echo "$ac_t""no" 1>&6
2586 cat > conftest.
$ac_ext <<EOF
2587 #line 2588 "configure"
2588 #include "confdefs.h"
2591 extern int _nl_msg_cat_cntr;
2592 return _nl_msg_cat_cntr
2595 if { (eval echo configure
:2596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2600 echo "configure: failed program was:" >&5
2601 cat conftest.
$ac_ext >&5
2612 echo "$ac_t""no" 1>&6
2617 if test "$CATOBJEXT" = "NONE"; then
2618 nls_cv_use_gnu_gettext
=yes
2622 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2623 INTLOBJS
="\$(GETTOBJS)"
2624 # Extract the first word of "msgfmt", so it can be a program name with args.
2625 set dummy msgfmt
; ac_word
=$2
2626 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2627 echo "configure:2628: checking for $ac_word" >&5
2628 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2629 echo $ac_n "(cached) $ac_c" 1>&6
2633 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2636 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2637 for ac_dir
in $PATH; do
2638 test -z "$ac_dir" && ac_dir
=.
2639 if test -f $ac_dir/$ac_word; then
2640 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2641 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2647 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2651 MSGFMT
="$ac_cv_path_MSGFMT"
2652 if test -n "$MSGFMT"; then
2653 echo "$ac_t""$MSGFMT" 1>&6
2655 echo "$ac_t""no" 1>&6
2658 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2659 set dummy gmsgfmt
; ac_word
=$2
2660 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2661 echo "configure:2662: checking for $ac_word" >&5
2662 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2663 echo $ac_n "(cached) $ac_c" 1>&6
2667 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2670 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2673 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2674 for ac_dir
in $PATH; do
2675 test -z "$ac_dir" && ac_dir
=.
2676 if test -f $ac_dir/$ac_word; then
2677 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2682 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2686 GMSGFMT
="$ac_cv_path_GMSGFMT"
2687 if test -n "$GMSGFMT"; then
2688 echo "$ac_t""$GMSGFMT" 1>&6
2690 echo "$ac_t""no" 1>&6
2693 # Extract the first word of "xgettext", so it can be a program name with args.
2694 set dummy xgettext
; ac_word
=$2
2695 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2696 echo "configure:2697: checking for $ac_word" >&5
2697 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2698 echo $ac_n "(cached) $ac_c" 1>&6
2702 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2705 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2706 for ac_dir
in $PATH; do
2707 test -z "$ac_dir" && ac_dir
=.
2708 if test -f $ac_dir/$ac_word; then
2709 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2710 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2716 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2720 XGETTEXT
="$ac_cv_path_XGETTEXT"
2721 if test -n "$XGETTEXT"; then
2722 echo "$ac_t""$XGETTEXT" 1>&6
2724 echo "$ac_t""no" 1>&6
2728 USE_INCLUDED_LIBINTL
=yes
2732 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2734 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2735 nls_cv_header_intl
=libintl.h
2736 nls_cv_header_libgt
=libgettext.h
2739 if test "$XGETTEXT" != ":"; then
2740 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2743 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2748 # We need to process the po/ directory.
2752 nls_cv_header_intl
=libintl.h
2753 nls_cv_header_libgt
=libgettext.h
2756 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2757 # because some of the sources are only built for this goal.
2758 if test "$PACKAGE" = gettext; then
2760 USE_INCLUDED_LIBINTL
=yes
2763 for lang
in $ALL_LINGUAS; do
2764 GMOFILES
="$GMOFILES $lang.gmo"
2765 POFILES
="$POFILES $lang.po"
2781 if test "x$CATOBJEXT" != "x"; then
2782 if test "x$ALL_LINGUAS" = "x"; then
2785 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2786 echo "configure:2787: checking for catalogs to be installed" >&5
2788 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2789 case "$ALL_LINGUAS" in
2790 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2793 LINGUAS
=$NEW_LINGUAS
2794 echo "$ac_t""$LINGUAS" 1>&6
2797 if test -n "$LINGUAS"; then
2798 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2802 if test $ac_cv_header_locale_h = yes; then
2803 INCLUDE_LOCALE_H
="#include <locale.h>"
2806 /* The system does not provide the header <locale.h>. Take care yourself. */"
2810 if test -f $srcdir/po2tbl.
sed.
in; then
2811 if test "$CATOBJEXT" = ".cat"; then
2812 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2813 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2814 echo "configure:2815: checking for linux/version.h" >&5
2815 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2816 echo $ac_n "(cached) $ac_c" 1>&6
2818 cat > conftest.
$ac_ext <<EOF
2819 #line 2820 "configure"
2820 #include "confdefs.h"
2821 #include <linux/version.h>
2823 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2824 { (eval echo configure
:2825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2825 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2826 if test -z "$ac_err"; then
2828 eval "ac_cv_header_$ac_safe=yes"
2831 echo "configure: failed program was:" >&5
2832 cat conftest.
$ac_ext >&5
2834 eval "ac_cv_header_$ac_safe=no"
2838 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2839 echo "$ac_t""yes" 1>&6
2842 echo "$ac_t""no" 1>&6
2847 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2849 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2850 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2853 if test "$PACKAGE" = "gettext"; then
2863 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2869 if test -d $srcdir/po
; then
2870 test -d po || mkdir po
2871 if test "x$srcdir" != "x."; then
2872 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2873 posrcprefix
="$srcdir/"
2875 posrcprefix
="../$srcdir/"
2881 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2882 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2886 # Check for common headers.
2887 # FIXME: Seems to me this can cause problems for i386-windows hosts.
2888 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
2889 for ac_hdr
in stdlib.h string.h
strings.h unistd.h
time.h
2891 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2892 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2893 echo "configure:2894: checking for $ac_hdr" >&5
2894 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2895 echo $ac_n "(cached) $ac_c" 1>&6
2897 cat > conftest.
$ac_ext <<EOF
2898 #line 2899 "configure"
2899 #include "confdefs.h"
2902 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2903 { (eval echo configure
:2904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2904 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2905 if test -z "$ac_err"; then
2907 eval "ac_cv_header_$ac_safe=yes"
2910 echo "configure: failed program was:" >&5
2911 cat conftest.
$ac_ext >&5
2913 eval "ac_cv_header_$ac_safe=no"
2917 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2918 echo "$ac_t""yes" 1>&6
2919 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2920 cat >> confdefs.h
<<EOF
2921 #define $ac_tr_hdr 1
2925 echo "$ac_t""no" 1>&6
2929 for ac_hdr
in sys
/time.h sys
/resource.h
2931 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2932 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2933 echo "configure:2934: checking for $ac_hdr" >&5
2934 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2935 echo $ac_n "(cached) $ac_c" 1>&6
2937 cat > conftest.
$ac_ext <<EOF
2938 #line 2939 "configure"
2939 #include "confdefs.h"
2942 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2943 { (eval echo configure
:2944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2944 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2945 if test -z "$ac_err"; then
2947 eval "ac_cv_header_$ac_safe=yes"
2950 echo "configure: failed program was:" >&5
2951 cat conftest.
$ac_ext >&5
2953 eval "ac_cv_header_$ac_safe=no"
2957 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2958 echo "$ac_t""yes" 1>&6
2959 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2960 cat >> confdefs.h
<<EOF
2961 #define $ac_tr_hdr 1
2965 echo "$ac_t""no" 1>&6
2969 for ac_hdr
in fcntl.h fpu_control.h
2971 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2972 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2973 echo "configure:2974: checking for $ac_hdr" >&5
2974 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2975 echo $ac_n "(cached) $ac_c" 1>&6
2977 cat > conftest.
$ac_ext <<EOF
2978 #line 2979 "configure"
2979 #include "confdefs.h"
2982 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2983 { (eval echo configure
:2984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2984 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2985 if test -z "$ac_err"; then
2987 eval "ac_cv_header_$ac_safe=yes"
2990 echo "configure: failed program was:" >&5
2991 cat conftest.
$ac_ext >&5
2993 eval "ac_cv_header_$ac_safe=no"
2997 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2998 echo "$ac_t""yes" 1>&6
2999 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3000 cat >> confdefs.h
<<EOF
3001 #define $ac_tr_hdr 1
3005 echo "$ac_t""no" 1>&6
3009 for ac_func
in getrusage
time sigaction __setfpucw
3011 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3012 echo "configure:3013: checking for $ac_func" >&5
3013 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3014 echo $ac_n "(cached) $ac_c" 1>&6
3016 cat > conftest.
$ac_ext <<EOF
3017 #line 3018 "configure"
3018 #include "confdefs.h"
3019 /* System header to define __stub macros and hopefully few prototypes,
3020 which can conflict with char $ac_func(); below. */
3022 /* Override any gcc2 internal prototype to avoid an error. */
3023 /* We use char because int might match the return type of a gcc2
3024 builtin and then its argument prototype would still apply. */
3029 /* The GNU C library defines this for functions which it implements
3030 to always fail with ENOSYS. Some functions are actually named
3031 something starting with __ and the normal name is an alias. */
3032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3040 if { (eval echo configure
:3041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3042 eval "ac_cv_func_$ac_func=yes"
3044 echo "configure: failed program was:" >&5
3045 cat conftest.
$ac_ext >&5
3047 eval "ac_cv_func_$ac_func=no"
3052 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3053 echo "$ac_t""yes" 1>&6
3054 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3055 cat >> confdefs.h
<<EOF
3056 #define $ac_tr_func 1
3060 echo "$ac_t""no" 1>&6
3065 # Check for socket libraries
3066 echo $ac_n "checking for bind in -lsocket""... $ac_c" 1>&6
3067 echo "configure:3068: checking for bind in -lsocket" >&5
3068 ac_lib_var
=`echo socket'_'bind | sed 'y%./+-%__p_%'`
3069 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3070 echo $ac_n "(cached) $ac_c" 1>&6
3072 ac_save_LIBS
="$LIBS"
3073 LIBS
="-lsocket $LIBS"
3074 cat > conftest.
$ac_ext <<EOF
3075 #line 3076 "configure"
3076 #include "confdefs.h"
3077 /* Override any gcc2 internal prototype to avoid an error. */
3078 /* We use char because int might match the return type of a gcc2
3079 builtin and then its argument prototype would still apply. */
3086 if { (eval echo configure
:3087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3088 eval "ac_cv_lib_$ac_lib_var=yes"
3090 echo "configure: failed program was:" >&5
3091 cat conftest.
$ac_ext >&5
3093 eval "ac_cv_lib_$ac_lib_var=no"
3096 LIBS
="$ac_save_LIBS"
3099 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3100 echo "$ac_t""yes" 1>&6
3101 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3102 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3103 cat >> confdefs.h
<<EOF
3104 #define $ac_tr_lib 1
3107 LIBS
="-lsocket $LIBS"
3110 echo "$ac_t""no" 1>&6
3113 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3114 echo "configure:3115: checking for gethostbyname in -lnsl" >&5
3115 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3116 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3117 echo $ac_n "(cached) $ac_c" 1>&6
3119 ac_save_LIBS
="$LIBS"
3121 cat > conftest.
$ac_ext <<EOF
3122 #line 3123 "configure"
3123 #include "confdefs.h"
3124 /* Override any gcc2 internal prototype to avoid an error. */
3125 /* We use char because int might match the return type of a gcc2
3126 builtin and then its argument prototype would still apply. */
3127 char gethostbyname();
3133 if { (eval echo configure
:3134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3135 eval "ac_cv_lib_$ac_lib_var=yes"
3137 echo "configure: failed program was:" >&5
3138 cat conftest.
$ac_ext >&5
3140 eval "ac_cv_lib_$ac_lib_var=no"
3143 LIBS
="$ac_save_LIBS"
3146 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3147 echo "$ac_t""yes" 1>&6
3148 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3149 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3150 cat >> confdefs.h
<<EOF
3151 #define $ac_tr_lib 1
3157 echo "$ac_t""no" 1>&6
3161 .
${srcdir}/..
/..
/bfd
/configure.
host
3165 USE_MAINTAINER_MODE
=no
3166 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3167 if test "${enable_maintainer_mode+set}" = set; then
3168 enableval
="$enable_maintainer_mode"
3169 case "${enableval}" in
3170 yes) MAINT
="" USE_MAINTAINER_MODE
=yes ;;
3172 *) { echo "configure: error: "--enable-maintainer-mode does not take a value
"" 1>&2; exit 1; }; MAINT
="#" ;;
3174 if test x
"$silent" != x
"yes" && test x
"$MAINT" = x
""; then
3175 echo "Setting maintainer mode" 6>&1
3183 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
3184 if test "${enable_sim_bswap+set}" = set; then
3185 enableval
="$enable_sim_bswap"
3186 case "${enableval}" in
3187 yes) sim_bswap
="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
3188 no
) sim_bswap
="-DWITH_BSWAP=0";;
3189 *) { echo "configure: error: "--enable-sim-bswap does not take a value
"" 1>&2; exit 1; }; sim_bswap
="";;
3191 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
3192 echo "Setting bswap flags = $sim_bswap" 6>&1
3200 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
3201 if test "${enable_sim_cflags+set}" = set; then
3202 enableval
="$enable_sim_cflags"
3203 case "${enableval}" in
3204 yes) sim_cflags
="-O2 -fomit-frame-pointer";;
3205 trace
) { echo "configure: error: "Please use
--enable-sim-debug instead.
"" 1>&2; exit 1; }; sim_cflags
="";;
3207 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3209 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
3210 echo "Setting sim cflags = $sim_cflags" 6>&1
3218 # Check whether --enable-sim-debug or --disable-sim-debug was given.
3219 if test "${enable_sim_debug+set}" = set; then
3220 enableval
="$enable_sim_debug"
3221 case "${enableval}" in
3222 yes) sim_debug
="-DDEBUG=7 -DWITH_DEBUG=7";;
3223 no
) sim_debug
="-DDEBUG=0 -DWITH_DEBUG=0";;
3224 *) sim_debug
="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
3226 if test x
"$silent" != x
"yes" && test x
"$sim_debug" != x
""; then
3227 echo "Setting sim debug = $sim_debug" 6>&1
3235 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
3236 if test "${enable_sim_stdio+set}" = set; then
3237 enableval
="$enable_sim_stdio"
3238 case "${enableval}" in
3239 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
3240 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
3241 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-stdio"" 1>&2; exit 1; }; sim_stdio
="";;
3243 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
3244 echo "Setting stdio flags = $sim_stdio" 6>&1
3252 # Check whether --enable-sim-trace or --disable-sim-trace was given.
3253 if test "${enable_sim_trace+set}" = set; then
3254 enableval
="$enable_sim_trace"
3255 case "${enableval}" in
3256 yes) sim_trace
="-DTRACE=1 -DWITH_TRACE=-1";;
3257 no
) sim_trace
="-DTRACE=0 -DWITH_TRACE=0";;
3259 sim_trace
="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
3262 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
3263 if test x
"$sim_trace" = x
; then
3264 sim_trace
="-DWITH_TRACE='(TRACE_$x"
3266 sim_trace
="${sim_trace}|TRACE_$x"
3269 sim_trace
="$sim_trace)'" ;;
3271 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
3272 echo "Setting sim trace = $sim_trace" 6>&1
3280 # Check whether --enable-sim-profile or --disable-sim-profile was given.
3281 if test "${enable_sim_profile+set}" = set; then
3282 enableval
="$enable_sim_profile"
3283 case "${enableval}" in
3284 yes) sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1";;
3285 no
) sim_profile
="-DPROFILE=0 -DWITH_PROFILE=0";;
3287 sim_profile
="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
3290 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
3291 if test x
"$sim_profile" = x
; then
3292 sim_profile
="-DWITH_PROFILE='(PROFILE_$x"
3294 sim_profile
="${sim_profile}|PROFILE_$x"
3297 sim_profile
="$sim_profile)'" ;;
3299 if test x
"$silent" != x
"yes" && test x
"$sim_profile" != x
""; then
3300 echo "Setting sim profile = $sim_profile" 6>&1
3308 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3309 echo "configure:3310: checking return type of signal handlers" >&5
3310 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3311 echo $ac_n "(cached) $ac_c" 1>&6
3313 cat > conftest.
$ac_ext <<EOF
3314 #line 3315 "configure"
3315 #include "confdefs.h"
3316 #include <sys/types.h>
3322 extern "C" void (*signal (int, void (*)(int)))(int);
3324 void (*signal ()) ();
3331 if { (eval echo configure
:3332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3333 ac_cv_type_signal
=void
3335 echo "configure: failed program was:" >&5
3336 cat conftest.
$ac_ext >&5
3338 ac_cv_type_signal
=int
3343 echo "$ac_t""$ac_cv_type_signal" 1>&6
3344 cat >> confdefs.h
<<EOF
3345 #define RETSIGTYPE $ac_cv_type_signal
3350 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3351 echo "configure:3352: checking for executable suffix" >&5
3352 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
3353 echo $ac_n "(cached) $ac_c" 1>&6
3355 if test "$CYGWIN32" = yes; then
3358 cat > am_c_test.c
<< 'EOF'
3360 /* Nothing needed here
*/
3363 ${CC-cc} -o am_c_test
$CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c
$LIBS 1>&5
3364 am_cv_exeext
=`ls am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//`
3368 test x
"${am_cv_exeext}" = x
&& am_cv_exeext
=no
3371 test x
"${am_cv_exeext}" != xno
&& EXEEXT
=${am_cv_exeext}
3372 echo "$ac_t""${am_cv_exeext}" 1>&6
3378 sim_link_links
=tconfig.h
3379 if test -f ${srcdir}/tconfig.
in
3381 sim_link_files
=tconfig.
in
3383 sim_link_files
=..
/common
/tconfig.
in
3386 # targ-vals.def points to the libc macro description file.
3388 *-*-*) TARG_VALS_DEF
=..
/common
/nltvals.def
;;
3390 sim_link_files
="${sim_link_files} ${TARG_VALS_DEF}"
3391 sim_link_links
="${sim_link_links} targ-vals.def"
3396 default_sim_inline
=""
3397 # Check whether --enable-sim-inline or --disable-sim-inline was given.
3398 if test "${enable_sim_inline+set}" = set; then
3399 enableval
="$enable_sim_inline"
3401 case "$enableval" in
3402 no
) sim_inline
="-DDEFAULT_INLINE=0";;
3403 0) sim_inline
="-DDEFAULT_INLINE=0";;
3404 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_C_INLINE";;
3405 1) sim_inline
="-DDEFAULT_INLINE=INLINE_LOCALS";;
3406 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
3409 *_INLINE
=*) new_flag
="-D$x";;
3410 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
3411 *_INLINE
) new_flag
="-D$x=ALL_C_INLINE";;
3412 *) new_flag
="-D$x""_INLINE=ALL_C_INLINE";;
3414 if test x
"$sim_inline" = x
""; then
3415 sim_inline
="$new_flag"
3417 sim_inline
="$sim_inline $new_flag"
3421 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
3422 echo "Setting inline flags = $sim_inline" 6>&1
3426 if test "x$cross_compiling" = "xno"; then
3427 if test x
"$GCC" != "x" -a x
"${default_sim_inline}" != "x" ; then
3428 sim_inline
="${default_sim_inline}"
3429 if test x
"$silent" != x
"yes"; then
3430 echo "Setting inline flags = $sim_inline" 6>&1
3436 sim_inline
="-DDEFAULT_INLINE=0"
3440 wire_alignment
="NONSTRICT_ALIGNMENT"
3441 default_alignment
=""
3443 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
3444 if test "${enable_sim_alignment+set}" = set; then
3445 enableval
="$enable_sim_alignment"
3446 case "${enableval}" in
3447 strict | STRICT
) sim_alignment
="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
3448 nonstrict | NONSTRICT
) sim_alignment
="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
3449 forced | FORCED
) sim_alignment
="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
3450 yes) if test x
"$wire_alignment" != x
; then
3451 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
3453 if test x
"$default_alignment" != x
; then
3454 sim_alignment
="-DWITH_ALIGNMENT=${default_alignment}"
3456 echo "No hard-wired alignment for target $target" 1>&6
3457 sim_alignment
="-DWITH_ALIGNMENT=0"
3460 no
) if test x
"$default_alignment" != x
; then
3461 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
3463 if test x
"$wire_alignment" != x
; then
3464 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
3466 echo "No default alignment for target $target" 1>&6
3467 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=0"
3470 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-alignment"" 1>&2; exit 1; }; sim_alignment
="";;
3472 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
3473 echo "Setting alignment flags = $sim_alignment" 6>&1
3476 if test x
"$default_alignment" != x
; then
3477 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
3479 if test x
"$wire_alignment" != x
; then
3480 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
3488 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
3489 if test "${enable_sim_hostendian+set}" = set; then
3490 enableval
="$enable_sim_hostendian"
3491 case "${enableval}" in
3492 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
3493 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
3494 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
3495 *) { echo "configure: error: "Unknown value
$enableval for --enable-sim-hostendian"" 1>&2; exit 1; }; sim_hostendian
="";;
3497 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
3498 echo "Setting hostendian flags = $sim_hostendian" 6>&1
3502 if test "x$cross_compiling" = "xno"; then
3503 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3504 echo "configure:3505: checking whether byte ordering is bigendian" >&5
3505 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3506 echo $ac_n "(cached) $ac_c" 1>&6
3508 ac_cv_c_bigendian
=unknown
3509 # See if sys/param.h defines the BYTE_ORDER macro.
3510 cat > conftest.
$ac_ext <<EOF
3511 #line 3512 "configure"
3512 #include "confdefs.h"
3513 #include <sys/types.h>
3514 #include <sys/param.h>
3517 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3522 if { (eval echo configure
:3523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3524 # It does; now see whether it defined to BIG_ENDIAN or not.
3525 cat > conftest.
$ac_ext <<EOF
3526 #line 3527 "configure"
3527 #include "confdefs.h"
3528 #include <sys/types.h>
3529 #include <sys/param.h>
3532 #if BYTE_ORDER != BIG_ENDIAN
3537 if { (eval echo configure
:3538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3539 ac_cv_c_bigendian
=yes
3541 echo "configure: failed program was:" >&5
3542 cat conftest.
$ac_ext >&5
3544 ac_cv_c_bigendian
=no
3548 echo "configure: failed program was:" >&5
3549 cat conftest.
$ac_ext >&5
3552 if test $ac_cv_c_bigendian = unknown
; then
3553 if test "$cross_compiling" = yes; then
3554 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3556 cat > conftest.
$ac_ext <<EOF
3557 #line 3558 "configure"
3558 #include "confdefs.h"
3560 /* Are we little or big endian? From Harbison&Steele. */
3564 char c[sizeof (long)];
3567 exit (u.c[sizeof (long) - 1] == 1);
3570 if { (eval echo configure
:3571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3572 ac_cv_c_bigendian
=no
3574 echo "configure: failed program was:" >&5
3575 cat conftest.
$ac_ext >&5
3577 ac_cv_c_bigendian
=yes
3585 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3586 if test $ac_cv_c_bigendian = yes; then
3587 cat >> confdefs.h
<<\EOF
3588 #define WORDS_BIGENDIAN 1
3593 if test $ac_cv_c_bigendian = yes; then
3594 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
3596 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
3599 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
3604 # Check whether --enable-build-warnings or --disable-build-warnings was given.
3605 if test "${enable_build_warnings+set}" = set; then
3606 enableval
="$enable_build_warnings"
3607 build_warnings
="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations"
3608 case "${enableval}" in
3610 no
) build_warnings
="-w";;
3611 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
3612 build_warnings
="${build_warnings} ${t}";;
3613 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
3614 build_warnings
="${t} ${build_warnings}";;
3615 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3617 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
3618 echo "Setting warning flags = $build_warnings" 6>&1
3625 # Ensure a reasonable default simulator is constructed: (DEPRECATED)
3627 # start-sanitize-tx19
3628 mipstx19
*-*-*) SIMCONF
="-mips1 -mcpu=r1900 -mno-fp --warnings";;
3630 # start-sanitize-tx49
3631 mips64tx49
*-*-*) SIMCONF
="-mips3 --warnings -mcpu=r4900";;
3633 # start-sanitize-r5900
3634 mips64r59
*-*-*) SIMCONF
="-mips3 --warnings -mcpu=r5900";;
3635 # end-sanitize-r5900
3636 mips64vr4100-
*-*) SIMCOMF
="-mips0 -mcpu=r4100 -mgp64 --warnings" ;;
3637 mips64
*-*-*) SIMCONF
="-mips0 --warnings";;
3638 mips16
*-*-*) SIMCONF
="-mips0 --warnings";;
3639 mips
*-*-*) SIMCONF
="-mips2 --warnings";;
3640 *) SIMCONF
="-mips0 --warnings";;
3646 # Instead of defining a `subtarget' macro, code should be checking
3647 # the value of {STATE,CPU}_ARCHITECTURE to identify the architecture
3651 # start-sanitize-tx19
3652 mipstx19
*-*-*) SIM_SUBTARGET
="-DSUBTARGET_R3900=1";;
3654 mips
*tx39
*) SIM_SUBTARGET
="-DSUBTARGET_R3900=1";;
3655 *) SIM_SUBTARGET
="";;
3662 # Select the byte order of the target
3667 # start-sanitize-tx19
3668 mipstx19
*-*-*) default_endian
=BIG_ENDIAN
;;
3670 # start-sanitize-r5900
3671 mips64r59
*-*-*) mips_endian
=LITTLE_ENDIAN
;;
3672 # end-sanitize-r5900
3673 mips64el
*-*-*) mips_endian
=LITTLE_ENDIAN
;;
3674 mips64
*-*-*) default_endian
=BIG_ENDIAN
;;
3675 mips16
*-*-*) default_endian
=BIG_ENDIAN
;;
3676 mips
*-*-*) default_endian
=BIG_ENDIAN
;;
3677 *) default_endian
=BIG_ENDIAN
;;
3680 wire_endian
="$mips_endian"
3681 default_endian
="$default_endian"
3682 # Check whether --enable-sim-endian or --disable-sim-endian was given.
3683 if test "${enable_sim_endian+set}" = set; then
3684 enableval
="$enable_sim_endian"
3685 case "${enableval}" in
3686 b
*|B
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
3687 l
*|L
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
3688 yes) if test x
"$wire_endian" != x
; then
3689 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
3691 if test x
"$default_endian" != x
; then
3692 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
3694 echo "No hard-wired endian for target $target" 1>&6
3695 sim_endian
="-DWITH_TARGET_BYTE_ORDER=0"
3698 no
) if test x
"$default_endian" != x
; then
3699 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
3701 if test x
"$wire_endian" != x
; then
3702 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
3704 echo "No default endian for target $target" 1>&6
3705 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
3708 *) { echo "configure: error: "Unknown value
$enableval for --enable-sim-endian"" 1>&2; exit 1; }; sim_endian
="";;
3710 if test x
"$silent" != x
"yes" && test x
"$sim_endian" != x
""; then
3711 echo "Setting endian flags = $sim_endian" 6>&1
3714 if test x
"$default_endian" != x
; then
3715 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
3717 if test x
"$wire_endian" != x
; then
3718 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
3729 # Select the bitsize of the target
3733 # start-sanitize-tx19
3734 mipstx19
*-*-*) mips_bitsize
=32 ; mips_msb
=31 ;;
3736 # start-sanitize-r5900
3737 mips64r59
*-*-*) mips_bitsize
=64 ; mips_msb
=63 ; mips_addr_bitsize
=32;;
3738 # end-sanitize-r5900
3739 # start-sanitize-sky
3740 mips64
*-sky*-*) mips_bitsize
=64 ; mips_msb
=63 ; mips_addr_bitsize
=32;;
3742 mips64
*-*-*) mips_bitsize
=64 ; mips_msb
=63 ;;
3743 mips16
*-*-*) mips_bitsize
=64 ; mips_msb
=63 ;;
3744 mips
*-*-*) mips_bitsize
=32 ; mips_msb
=31 ;;
3745 *) mips_bitsize
=64 ; mips_msb
=63 ;;
3747 wire_word_bitsize
="$mips_bitsize"
3748 wire_word_msb
="$mips_msb"
3749 wire_address_bitsize
="$mips_addr_bitsize"
3750 wire_cell_bitsize
=""
3751 # Check whether --enable-sim-bitsize or --disable-sim-bitsize was given.
3752 if test "${enable_sim_bitsize+set}" = set; then
3753 enableval
="$enable_sim_bitsize"
3755 case "${enableval}" in
3756 64,63 |
64,63,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
3757 32,31 |
32,31,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
3758 64,0 |
64,0,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
3759 32,0 |
64,0,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
3760 32) if test x
"$wire_word_msb" != x
-a x
"$wire_word_msb" != x0
; then
3761 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
3763 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
3765 64) if test x
"$wire_word_msb" != x
-a x
"$wire_word_msb" != x0
; then
3766 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
3768 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
3770 *) { echo "configure: error: "--enable-sim-bitsize was given
$enableval. Expected
32 or
64"" 1>&2; exit 1; } ;;
3773 tmp
=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
3776 x32 | x32
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
3777 x64 | x64
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
3778 * ) { echo "configure: error: "--enable-sim-bitsize was given address size
$enableval. Expected
32 or
64"" 1>&2; exit 1; } ;;
3781 tmp
=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
3784 x32 | x32
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
3785 x64 | x64
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
3786 * ) { echo "configure: error: "--enable-sim-bitsize was given cell size
$enableval. Expected
32 or
64"" 1>&2; exit 1; } ;;
3788 if test x
"$silent" != x
"yes" && test x
"$sim_bitsize" != x
""; then
3789 echo "Setting bitsize flags = $sim_bitsize" 6>&1
3793 if test x
"$wire_word_bitsize" != x
; then
3794 sim_bitsize
="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
3796 if test x
"$wire_word_msb" != x
; then
3797 sim_bitsize
="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
3799 if test x
"$wire_address_bitsize" != x
; then
3800 sim_bitsize
="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
3802 if test x
"$wire_cell_bitsize" != x
; then
3803 sim_bitsize
="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
3811 # Select the floating hardware support of the target
3813 mips_fpu
=HARDWARE_FLOATING_POINT
3816 # start-sanitize-tx19
3817 mipstx19
*-*-*) mips_fpu
=SOFT_FLOATING_POINT
;;
3819 mips
*tx39
*) mips_fpu
=HARD_FLOATING_POINT
3822 # start-sanitize-r5900
3823 mips64r59
*-*-*) mips_fpu
=HARD_FLOATING_POINT
; mips_fpu_bitsize
=32 ;;
3824 # end-sanitize-r5900
3825 # start-sanitize-sky
3826 mips64
*-sky*-*) mips_fpu
=HARD_FLOATING_POINT
; mips_fpu_bitsize
=32 ;;
3828 mips64
*-*-*) mips_fpu
=HARD_FLOATING_POINT
;;
3829 mips16
*-*-*) mips_fpu
=HARD_FLOATING_POINT
;;
3830 mips
*-*-*) mips_fpu
=HARD_FLOATING_POINT
; mips_fpu_bitsize
=32 ;;
3831 *) mips_fpu
=HARD_FLOATING_POINT
;;
3834 default_sim_float
="$mips_fpu"
3835 default_sim_float_bitsize
="$mips_fpu_bitsize"
3836 # Check whether --enable-sim-float or --disable-sim-float was given.
3837 if test "${enable_sim_float+set}" = set; then
3838 enableval
="$enable_sim_float"
3839 case "${enableval}" in
3840 yes | hard
) sim_float
="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
3841 no | soft
) sim_float
="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
3842 32) sim_float
="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=32";;
3843 64) sim_float
="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=64";;
3844 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-float"" 1>&2; exit 1; }; sim_float
="";;
3846 if test x
"$silent" != x
"yes" && test x
"$sim_float" != x
""; then
3847 echo "Setting float flags = $sim_float" 6>&1
3852 if test x
"${default_sim_float}" != x
""; then
3853 sim_float
="-DWITH_FLOATING_POINT=${default_sim_float}"
3855 if test x
"${default_sim_float_bitsize}" != x
""; then
3856 sim_float
="$sim_float -DWITH_TARGET_FLOATING_POINT_BITSIZE=${default_sim_float_bitsize}"
3865 # Select the level of SMP support
3868 # start-sanitize-r5900
3869 mips64r59
*-*-*) mips_smp
=1 ;;
3870 # end-sanitize-r5900
3874 default_sim_smp
="$mips_smp"
3875 # Check whether --enable-sim-smp or --disable-sim-smp was given.
3876 if test "${enable_sim_smp+set}" = set; then
3877 enableval
="$enable_sim_smp"
3878 case "${enableval}" in
3879 yes) sim_smp
="-DWITH_SMP=5" ; sim_igen_smp
="-N 5";;
3880 no
) sim_smp
="-DWITH_SMP=0" ; sim_igen_smp
="-N 0";;
3881 *) sim_smp
="-DWITH_SMP=$enableval" ; sim_igen_smp
="-N $enableval";;
3883 if test x
"$silent" != x
"yes" && test x
"$sim_smp" != x
""; then
3884 echo "Setting smp flags = $sim_smp" 6>&1
3887 sim_smp
="-DWITH_SMP=${default_sim_smp}" ; sim_igen_smp
="-N ${default_sim_smp}"
3888 if test x
"$silent" != x
"yes"; then
3889 echo "Setting smp flags = $sim_smp" 6>&1
3897 # Select the IGEN architecture
3900 sim_igen_machine
="-M mipsIV"
3901 sim_m16_machine
="-M mips16"
3902 sim_igen_filter
="32,64,f"
3905 # start-sanitize-tx19
3906 mipstx19
*-*-*) sim_default_gen
=M16
3908 sim_igen_machine
="-M tx19"
3909 sim_m16_machine
="-M tx19"
3910 sim_igen_filter
="32"
3914 mips
*tx39
*) sim_default_gen
=IGEN
3916 sim_igen_filter
="32,f"
3917 sim_igen_machine
="-M r3900"
3919 # start-sanitize-r5900
3920 mips64r59
*-*-*) sim_default_gen
=IGEN
3922 sim_igen_machine
="-M r5900"
3924 # end-sanitize-r5900
3925 # start-sanitize-vr4320
3926 mips64vr4320-
*-*) sim_default_gen
=IGEN
3928 sim_igen_machine
="-M mipsIV,vr4320 -G gen-multi-sim=vr4320"
3930 # end-sanitize-vr4320
3931 mips64vr43
*-*-*) sim_default_gen
=IGEN
3933 sim_igen_machine
="-M mipsIV"
3934 # start-sanitize-vr4320
3935 sim_igen_machine
="-M mipsIV,vr4320 -G gen-multi-sim=mipsIV"
3936 # end-sanitize-vr4320
3938 # start-sanitize-cygnus
3939 mips64vr54
*-*-*) sim_default_gen
=IGEN
3941 sim_igen_machine
="-M vr5000,vr5400 -G gen-multi-sim=vr5400"
3943 # end-sanitize-cygnus
3944 mips64vr5
*-*-*) sim_default_gen
=IGEN
3946 sim_igen_machine
="-M vr5000"
3947 # start-sanitize-cygnus
3948 sim_igen_machine
="-M vr5000,vr5400 -G gen-multi-sim=vr5000"
3949 # end-sanitize-cygnus
3951 mips64vr4100-
*-*) echo "NOTE: mips64vr4100 still uses gencode"
3953 sim_igen_machine
="-M tx19"
3954 sim_m16_machine
="-M tx19"
3955 sim_igen_filter
= "32,64,f"
3956 sim_m16_filter
= "16"
3960 mips64
*-*-*) sim_default_gen
=IGEN
3961 sim_igen_filter
="32,64,f"
3964 mips16
*-*-*) sim_default_gen
=M16
3965 sim_igen_filter
="32,64,f"
3969 mips
*-*-*) sim_default_gen
=IGEN
3970 sim_igen_filter
="32,f"
3974 sim_igen_flags
="-F ${sim_igen_filter} ${sim_igen_machine} ${sim_igen_smp}"
3975 sim_m16_flags
=" -F ${sim_m16_filter} ${sim_m16_machine} ${sim_igen_smp}"
3984 # Check whether --enable-sim-igen or --disable-sim-igen was given.
3985 if test "${enable_sim_igen+set}" = set; then
3986 enableval
="$enable_sim_igen"
3987 case "${enableval}" in
3988 yes) sim_gen
="${sim_default_gen}";;
3991 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-igen"" 1>&2; exit 1; }; sim_gen
="";;
3993 if test x
"$silent" != x
"yes" && test x
"$sim_gen" != x
""; then
3994 echo "Setting sim_igen = $sim_gen" 6>&1
3997 sim_gen
="${sim_use_gen}"
4003 # Add simulated hardware devices
4007 # start-sanitize-tx3904
4010 hw_extra_devices
="tx3904cpu tx3904irc tx3904tmr tx3904sio"
4011 mips_extra_objs
="dv-sockser.o"
4012 SIM_SUBTARGET
="$SIM_SUBTARGET -DTARGET_TX3904=1"
4014 # end-sanitize-tx3904
4015 # start-sanitize-sky
4017 mips_extra_objs
='$(SIM_SKY_OBJS)'
4018 SIM_SUBTARGET
="-DTARGET_SKY -DWITH_DEVICES=1 -DDEVICE_INIT=1"
4021 mips_extra_objs
='$(SIM_SKY_OBJS)'
4022 SIM_SUBTARGET
="-DTARGET_SKY -DTARGET_SKY_B -DWITH_DEVICES=1 -DDEVICE_INIT=1"
4030 if test x
"$hw_enabled" = x
"yes"; then
4035 if test "$hw_devices"; then
4036 hardware
="core pal glue"
4038 hardware
="core pal glue $hw_extra_devices"
4040 sim_hw_cflags
="-DWITH_HW=1"
4042 sim_hw_objs
="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
4043 # Check whether --enable-sim-hardware or --disable-sim-hardware was given.
4044 if test "${enable_sim_hardware+set}" = set; then
4045 enableval
="$enable_sim_hardware"
4047 case "${enableval}" in
4050 ,*) sim_hw_p
=yes; hardware
="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
4051 *,) sim_hw_p
=yes; hardware
="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
4052 *) sim_hw_p
=yes; hardware
="`echo ${enableval} | sed -e 's/,/ /'`"'';;
4054 if test "$sim_hw_p" != yes; then
4056 sim_hw_cflags
="-DWITH_HW=0"
4059 sim_hw_cflags
="-DWITH_HW=1"
4062 sim_hw_objs
="\$(SIM_COMMON_HW_OBJS)"
4063 for i
in x
$hardware ; do
4067 *) sim_hw
="$sim_hw $i" ; sim_hw_objs
="$sim_hw_objs dv-$i.o";;
4071 if test x
"$silent" != x
"yes" && test "$sim_hw_p" = "yes"; then
4072 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
4076 if test "$sim_hw_p" != yes; then
4078 sim_hw_cflags
="-DWITH_HW=0"
4081 if test x
"$silent" != x
"yes"; then
4082 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
4089 # Choose simulator engine
4091 # start-sanitize-sky
4099 *) mips_igen_engine
="engine.o"
4105 # If we find X, set shell vars x_includes and x_libraries to the
4106 # paths, otherwise set no_x=yes.
4107 # Uses ac_ vars as temps to allow command line to override cache and checks.
4108 # --without-x overrides everything else, but does not touch the cache.
4109 echo $ac_n "checking for X""... $ac_c" 1>&6
4110 echo "configure:4111: checking for X" >&5
4112 # Check whether --with-x or --without-x was given.
4113 if test "${with_x+set}" = set; then
4118 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4119 if test "x$with_x" = xno
; then
4120 # The user explicitly disabled X.
4123 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
4124 # Both variables are already set.
4127 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
4128 echo $ac_n "(cached) $ac_c" 1>&6
4130 # One or both of the vars are not set, and there is no cached value.
4131 ac_x_includes
=NO ac_x_libraries
=NO
4133 if mkdir conftestdir
; then
4135 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4136 cat > Imakefile
<<'EOF'
4138 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4140 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
4141 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4142 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4143 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4144 for ac_extension
in a so sl
; do
4145 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
4146 test -f $ac_im_libdir/libX11.
$ac_extension; then
4147 ac_im_usrlibdir
=$ac_im_libdir; break
4150 # Screen out bogus values from the imake configuration. They are
4151 # bogus both because they are the default anyway, and because
4152 # using them would break gcc on systems where it needs fixed includes.
4153 case "$ac_im_incroot" in
4155 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
4157 case "$ac_im_usrlibdir" in
4159 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
4166 if test "$ac_x_includes" = NO
; then
4167 # Guess where to find include files, by looking for this one X11 .h file.
4168 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
4170 # First, try using that file with no special directory specified.
4171 cat > conftest.
$ac_ext <<EOF
4172 #line 4173 "configure"
4173 #include "confdefs.h"
4174 #include <$x_direct_test_include>
4176 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4177 { (eval echo configure
:4178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4178 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4179 if test -z "$ac_err"; then
4181 # We can compile using X headers with no special include directory.
4185 echo "configure: failed program was:" >&5
4186 cat conftest.
$ac_ext >&5
4188 # Look for the header file in a standard set of common directories.
4189 # Check X11 before X11Rn because it is often a symlink to the current release.
4192 /usr
/X11R
6/include \
4193 /usr
/X11R
5/include \
4194 /usr
/X11R
4/include \
4197 /usr
/include
/X11R6 \
4198 /usr
/include
/X11R5 \
4199 /usr
/include
/X11R4 \
4201 /usr
/local
/X11
/include \
4202 /usr
/local
/X11R
6/include \
4203 /usr
/local
/X11R
5/include \
4204 /usr
/local
/X11R
4/include \
4206 /usr
/local
/include
/X11 \
4207 /usr
/local
/include
/X11R6 \
4208 /usr
/local
/include
/X11R5 \
4209 /usr
/local
/include
/X11R4 \
4213 /usr
/XFree86
/include
/X11 \
4216 /usr
/local
/include \
4217 /usr
/unsupported
/include \
4218 /usr
/athena
/include \
4219 /usr
/local
/x11r
5/include \
4220 /usr
/lpp
/Xamples
/include \
4222 /usr
/openwin
/include \
4223 /usr
/openwin
/share
/include \
4226 if test -r "$ac_dir/$x_direct_test_include"; then
4227 ac_x_includes
=$ac_dir
4233 fi # $ac_x_includes = NO
4235 if test "$ac_x_libraries" = NO
; then
4236 # Check for the libraries.
4238 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
4239 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
4241 # See if we find them without any special options.
4242 # Don't add to $LIBS permanently.
4243 ac_save_LIBS
="$LIBS"
4244 LIBS
="-l$x_direct_test_library $LIBS"
4245 cat > conftest.
$ac_ext <<EOF
4246 #line 4247 "configure"
4247 #include "confdefs.h"
4250 ${x_direct_test_function}()
4253 if { (eval echo configure
:4254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4255 LIBS
="$ac_save_LIBS"
4256 # We can link X programs with no special library path.
4259 echo "configure: failed program was:" >&5
4260 cat conftest.
$ac_ext >&5
4262 LIBS
="$ac_save_LIBS"
4263 # First see if replacing the include by lib works.
4264 # Check X11 before X11Rn because it is often a symlink to the current release.
4265 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
4276 /usr
/local
/X11
/lib \
4277 /usr
/local
/X11R
6/lib \
4278 /usr
/local
/X11R
5/lib \
4279 /usr
/local
/X11R
4/lib \
4281 /usr
/local
/lib
/X11 \
4282 /usr
/local
/lib
/X11R6 \
4283 /usr
/local
/lib
/X11R5 \
4284 /usr
/local
/lib
/X11R4 \
4288 /usr
/XFree86
/lib
/X11 \
4292 /usr
/unsupported
/lib \
4294 /usr
/local
/x11r
5/lib \
4295 /usr
/lpp
/Xamples
/lib \
4299 /usr
/openwin
/share
/lib \
4302 for ac_extension
in a so sl
; do
4303 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
4304 ac_x_libraries
=$ac_dir
4311 fi # $ac_x_libraries = NO
4313 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
4314 # Didn't find X anywhere. Cache the known absence of X.
4315 ac_cv_have_x
="have_x=no"
4317 # Record where we found X for the cache.
4318 ac_cv_have_x
="have_x=yes \
4319 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4323 eval "$ac_cv_have_x"
4326 if test "$have_x" != yes; then
4327 echo "$ac_t""$have_x" 1>&6
4330 # If each of the values was on the command line, it overrides each guess.
4331 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
4332 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
4333 # Update the cache value to reflect the command line values.
4334 ac_cv_have_x
="have_x=yes \
4335 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4336 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
4340 # start-sanitize-sky
4341 # Enable GPU2 library
4342 # Check whether --with-sim-gpu2 or --without-sim-gpu2 was given.
4343 if test "${with_sim_gpu2+set}" = set; then
4344 withval
="$with_sim_gpu2"
4345 if test -d "${withval}"
4347 SIM_SUBTARGET
="${SIM_SUBTARGET} -DSKY_GPU2 -I${withval}/include"
4348 mips_extra_libs
="-L${withval}/lib -lgpu2 -L${x_libraries} -lX11 -lXext"
4349 WITH_GPU2
="yes" ; export WITH_GPU2
4351 # complex X/etc. detection; stolen shamelessly from tcl/tk/gdb configury. --angela
4353 #--------------------------------------------------------------------
4354 # Locate the X11 header files and the X11 library archive. Try
4355 # the ac_path_x macro first, but if it doesn't find the X stuff
4356 # (e.g. because there's no xmkmf program) then check through
4357 # a list of possible directories. Under some conditions the
4358 # autoconf macro will return an include directory that contains
4359 # no include files, so double-check its result just to be safe.
4360 #--------------------------------------------------------------------
4362 # If we find X, set shell vars x_includes and x_libraries to the
4363 # paths, otherwise set no_x=yes.
4364 # Uses ac_ vars as temps to allow command line to override cache and checks.
4365 # --without-x overrides everything else, but does not touch the cache.
4366 echo $ac_n "checking for X""... $ac_c" 1>&6
4367 echo "configure:4368: checking for X" >&5
4369 # Check whether --with-x or --without-x was given.
4370 if test "${with_x+set}" = set; then
4375 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4376 if test "x$with_x" = xno
; then
4377 # The user explicitly disabled X.
4380 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
4381 # Both variables are already set.
4384 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
4385 echo $ac_n "(cached) $ac_c" 1>&6
4387 # One or both of the vars are not set, and there is no cached value.
4388 ac_x_includes
=NO ac_x_libraries
=NO
4390 if mkdir conftestdir
; then
4392 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4393 cat > Imakefile
<<'EOF'
4395 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4397 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
4398 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4399 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4400 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4401 for ac_extension
in a so sl
; do
4402 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
4403 test -f $ac_im_libdir/libX11.
$ac_extension; then
4404 ac_im_usrlibdir
=$ac_im_libdir; break
4407 # Screen out bogus values from the imake configuration. They are
4408 # bogus both because they are the default anyway, and because
4409 # using them would break gcc on systems where it needs fixed includes.
4410 case "$ac_im_incroot" in
4412 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
4414 case "$ac_im_usrlibdir" in
4416 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
4423 if test "$ac_x_includes" = NO
; then
4424 # Guess where to find include files, by looking for this one X11 .h file.
4425 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
4427 # First, try using that file with no special directory specified.
4428 cat > conftest.
$ac_ext <<EOF
4429 #line 4430 "configure"
4430 #include "confdefs.h"
4431 #include <$x_direct_test_include>
4433 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4434 { (eval echo configure
:4435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4435 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4436 if test -z "$ac_err"; then
4438 # We can compile using X headers with no special include directory.
4442 echo "configure: failed program was:" >&5
4443 cat conftest.
$ac_ext >&5
4445 # Look for the header file in a standard set of common directories.
4446 # Check X11 before X11Rn because it is often a symlink to the current release.
4449 /usr
/X11R
6/include \
4450 /usr
/X11R
5/include \
4451 /usr
/X11R
4/include \
4454 /usr
/include
/X11R6 \
4455 /usr
/include
/X11R5 \
4456 /usr
/include
/X11R4 \
4458 /usr
/local
/X11
/include \
4459 /usr
/local
/X11R
6/include \
4460 /usr
/local
/X11R
5/include \
4461 /usr
/local
/X11R
4/include \
4463 /usr
/local
/include
/X11 \
4464 /usr
/local
/include
/X11R6 \
4465 /usr
/local
/include
/X11R5 \
4466 /usr
/local
/include
/X11R4 \
4470 /usr
/XFree86
/include
/X11 \
4473 /usr
/local
/include \
4474 /usr
/unsupported
/include \
4475 /usr
/athena
/include \
4476 /usr
/local
/x11r
5/include \
4477 /usr
/lpp
/Xamples
/include \
4479 /usr
/openwin
/include \
4480 /usr
/openwin
/share
/include \
4483 if test -r "$ac_dir/$x_direct_test_include"; then
4484 ac_x_includes
=$ac_dir
4490 fi # $ac_x_includes = NO
4492 if test "$ac_x_libraries" = NO
; then
4493 # Check for the libraries.
4495 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
4496 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
4498 # See if we find them without any special options.
4499 # Don't add to $LIBS permanently.
4500 ac_save_LIBS
="$LIBS"
4501 LIBS
="-l$x_direct_test_library $LIBS"
4502 cat > conftest.
$ac_ext <<EOF
4503 #line 4504 "configure"
4504 #include "confdefs.h"
4507 ${x_direct_test_function}()
4510 if { (eval echo configure
:4511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4512 LIBS
="$ac_save_LIBS"
4513 # We can link X programs with no special library path.
4516 echo "configure: failed program was:" >&5
4517 cat conftest.
$ac_ext >&5
4519 LIBS
="$ac_save_LIBS"
4520 # First see if replacing the include by lib works.
4521 # Check X11 before X11Rn because it is often a symlink to the current release.
4522 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
4533 /usr
/local
/X11
/lib \
4534 /usr
/local
/X11R
6/lib \
4535 /usr
/local
/X11R
5/lib \
4536 /usr
/local
/X11R
4/lib \
4538 /usr
/local
/lib
/X11 \
4539 /usr
/local
/lib
/X11R6 \
4540 /usr
/local
/lib
/X11R5 \
4541 /usr
/local
/lib
/X11R4 \
4545 /usr
/XFree86
/lib
/X11 \
4549 /usr
/unsupported
/lib \
4551 /usr
/local
/x11r
5/lib \
4552 /usr
/lpp
/Xamples
/lib \
4556 /usr
/openwin
/share
/lib \
4559 for ac_extension
in a so sl
; do
4560 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
4561 ac_x_libraries
=$ac_dir
4568 fi # $ac_x_libraries = NO
4570 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
4571 # Didn't find X anywhere. Cache the known absence of X.
4572 ac_cv_have_x
="have_x=no"
4574 # Record where we found X for the cache.
4575 ac_cv_have_x
="have_x=yes \
4576 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4580 eval "$ac_cv_have_x"
4583 if test "$have_x" != yes; then
4584 echo "$ac_t""$have_x" 1>&6
4587 # If each of the values was on the command line, it overrides each guess.
4588 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
4589 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
4590 # Update the cache value to reflect the command line values.
4591 ac_cv_have_x
="have_x=yes \
4592 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4593 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
4597 if test "$no_x" = ""; then
4598 if test "$x_includes" = ""; then
4599 cat > conftest.
$ac_ext <<EOF
4600 #line 4601 "configure"
4601 #include "confdefs.h"
4602 #include <X11/XIntrinsic.h>
4604 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4605 { (eval echo configure
:4606: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4606 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4607 if test -z "$ac_err"; then
4611 echo "configure: failed program was:" >&5
4612 cat conftest.
$ac_ext >&5
4614 not_really_there
="yes"
4618 if test ! -r $x_includes/X11
/Intrinsic.h
; then
4619 not_really_there
="yes"
4623 if test "$no_x" = "yes" -o "$not_really_there" = "yes"; then
4624 echo $ac_n "checking for X11 header files""... $ac_c" 1>&6
4625 echo "configure:4626: checking for X11 header files" >&5
4626 XINCLUDES
="# no special path needed"
4627 cat > conftest.
$ac_ext <<EOF
4628 #line 4629 "configure"
4629 #include "confdefs.h"
4630 #include <X11/Intrinsic.h>
4632 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4633 { (eval echo configure
:4634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4634 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4635 if test -z "$ac_err"; then
4639 echo "configure: failed program was:" >&5
4640 cat conftest.
$ac_ext >&5
4645 if test "$XINCLUDES" = nope
; then
4646 dirs="/usr/unsupported/include /usr/local/include /usr/X386/include /usr/X11R6/include /usr/X11R5/include /usr/include/X11R5 /usr/include/X11R4 /usr/openwin/include /usr/X11/include /usr/sww/include"
4648 if test -r $i/X11
/Intrinsic.h
; then
4649 echo "$ac_t""$i" 1>&6
4656 if test "$x_includes" != ""; then
4657 XINCLUDES
=-I$x_includes
4659 XINCLUDES
="# no special path needed"
4662 if test "$XINCLUDES" = nope
; then
4663 echo "$ac_t""couldn't find any!" 1>&6
4664 XINCLUDES
="# no include files found"
4667 if test "$no_x" = yes; then
4668 echo $ac_n "checking for X11 libraries""... $ac_c" 1>&6
4669 echo "configure:4670: checking for X11 libraries" >&5
4671 dirs="/usr/unsupported/lib /usr/local/lib /usr/X386/lib /usr/X11R6/lib /usr/X11R5/lib /usr/lib/X11R5 /usr/lib/X11R4 /usr/lib/X11 /usr/openwin/lib /usr/X11/lib /usr/sww/X11/lib"
4673 if test -r $i/libX11.a
-o -r $i/libX11.so
-o -r $i/libX11.sl
; then
4674 echo "$ac_t""$i" 1>&6
4681 if test "$x_libraries" = ""; then
4684 XLIBSW
="-L$x_libraries -lX11"
4687 if test "$XLIBSW" = nope
; then
4688 echo $ac_n "checking for XCreateWindow in -lXwindow""... $ac_c" 1>&6
4689 echo "configure:4690: checking for XCreateWindow in -lXwindow" >&5
4690 ac_lib_var
=`echo Xwindow'_'XCreateWindow | sed 'y%./+-%__p_%'`
4691 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4692 echo $ac_n "(cached) $ac_c" 1>&6
4694 ac_save_LIBS
="$LIBS"
4695 LIBS
="-lXwindow $LIBS"
4696 cat > conftest.
$ac_ext <<EOF
4697 #line 4698 "configure"
4698 #include "confdefs.h"
4699 /* Override any gcc2 internal prototype to avoid an error. */
4700 /* We use char because int might match the return type of a gcc2
4701 builtin and then its argument prototype would still apply. */
4702 char XCreateWindow();
4708 if { (eval echo configure
:4709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4710 eval "ac_cv_lib_$ac_lib_var=yes"
4712 echo "configure: failed program was:" >&5
4713 cat conftest.
$ac_ext >&5
4715 eval "ac_cv_lib_$ac_lib_var=no"
4718 LIBS
="$ac_save_LIBS"
4721 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4722 echo "$ac_t""yes" 1>&6
4725 echo "$ac_t""no" 1>&6
4729 if test "$XLIBSW" = nope
; then
4730 echo "$ac_t""couldn't find any! Using -lX11." 1>&6
4734 #--------------------------------------------------------------------
4735 # Various manipulations on the search path used at runtime to
4736 # find shared libraries:
4737 # 1. If the X library binaries are in a non-standard directory,
4738 # add the X library location into that search path.
4739 # 2. On systems such as AIX and Ultrix that use "-L" as the
4740 # search path option, colons cannot be used to separate
4741 # directories from each other. Change colons to " -L".
4742 # 3. Create two sets of search flags, one for use in cc lines
4743 # and the other for when the linker is invoked directly. In
4744 # the second case, '-Wl,' must be stripped off and commas must
4745 # be replaced by spaces.
4746 #--------------------------------------------------------------------
4749 # CYGNUS LOCAL: statically link on Solaris, HPUX & SunOS so that
4750 # we don't have problems with people not having libraries
4751 # installed or not having LD_LIBRARY_PATH set.
4756 # gdb linked statically w/ Solaris iff GCC and GNU ld are used,
4759 sparc-sun-solaris2
*)
4761 if test "x$GCC" = "xyes" ; then
4762 # This is probably the simplest way to test for GNU ld.
4763 # It only works with relatively recent versions of GNU
4765 gld_text
=`$CC -Wl,--version 2>&1 | sed 1q`
4768 # Why do we link against libX11 twice? Because the
4769 # Openwin X11 and Xext libraries are seriously broken.
4770 sol_xlibsw
="-Wl,-Bstatic $XLIBSW -lXext -lX11 -Wl,-Bdynamic"
4774 if test -z "$sol_xlibsw"; then
4775 if test "x$x_libraries" != "x"; then
4776 XLIBSW
="$XLIBSW -R$x_libraries"
4780 suppress_enable_shared
=yes
4784 # gdb linked statically w/ SunOS or HPUX
4786 m68k-hp-hpux
*|hppa
*-hp-hpux*|sparc-sun-sunos
*)
4787 if test "x$x_libraries" != "x" ;
4789 XLIBSW
="$x_libraries/libX11.a"
4791 XLIBSW
="/usr/lib/libX11.a"
4793 suppress_enable_shared
=yes
4796 # default is to link dynamically
4805 #--------------------------------------------------------------------
4806 # Check for the existence of various libraries. The order here
4807 # is important, so that then end up in the right order in the
4808 # command line generated by make. The -lsocket and -lnsl libraries
4809 # require a couple of special tricks:
4810 # 1. Use "connect" and "accept" to check for -lsocket, and
4811 # "gethostbyname" to check for -lnsl.
4812 # 2. Use each function name only once: can't redo a check because
4813 # autoconf caches the results of the last check and won't redo it.
4814 # 3. Use -lnsl and -lsocket only if they supply procedures that
4815 # aren't already present in the normal libraries. This is because
4816 # IRIX 5.2 has libraries, but they aren't needed and they're
4817 # bogus: they goof up name resolution if used.
4818 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
4819 # To get around this problem, check for both libraries together
4820 # if -lsocket doesn't work by itself.
4821 #--------------------------------------------------------------------
4823 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
4824 echo "configure:4825: checking for main in -lXbsd" >&5
4825 ac_lib_var
=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
4826 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4827 echo $ac_n "(cached) $ac_c" 1>&6
4829 ac_save_LIBS
="$LIBS"
4831 cat > conftest.
$ac_ext <<EOF
4832 #line 4833 "configure"
4833 #include "confdefs.h"
4839 if { (eval echo configure
:4840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4841 eval "ac_cv_lib_$ac_lib_var=yes"
4843 echo "configure: failed program was:" >&5
4844 cat conftest.
$ac_ext >&5
4846 eval "ac_cv_lib_$ac_lib_var=no"
4849 LIBS
="$ac_save_LIBS"
4852 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4853 echo "$ac_t""yes" 1>&6
4854 SOCKLIBSW
="$SOCKLIBSW -lXbsd"
4856 echo "$ac_t""no" 1>&6
4860 # CYGNUS LOCAL: Store any socket library(ies) in the cache, and don't
4861 # mess up the cache values of the functions we check for.
4862 echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
4863 echo "configure:4864: checking for socket libraries" >&5
4864 if eval "test \"`echo '$''{'sim_cv_lib_sockets'+set}'`\" = set"; then
4865 echo $ac_n "(cached) $ac_c" 1>&6
4869 unset ac_cv_func_connect
4870 echo $ac_n "checking for connect""... $ac_c" 1>&6
4871 echo "configure:4872: checking for connect" >&5
4872 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
4873 echo $ac_n "(cached) $ac_c" 1>&6
4875 cat > conftest.
$ac_ext <<EOF
4876 #line 4877 "configure"
4877 #include "confdefs.h"
4878 /* System header to define __stub macros and hopefully few prototypes,
4879 which can conflict with char connect(); below. */
4881 /* Override any gcc2 internal prototype to avoid an error. */
4882 /* We use char because int might match the return type of a gcc2
4883 builtin and then its argument prototype would still apply. */
4888 /* The GNU C library defines this for functions which it implements
4889 to always fail with ENOSYS. Some functions are actually named
4890 something starting with __ and the normal name is an alias. */
4891 #if defined (__stub_connect) || defined (__stub___connect)
4899 if { (eval echo configure
:4900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4901 eval "ac_cv_func_connect=yes"
4903 echo "configure: failed program was:" >&5
4904 cat conftest.
$ac_ext >&5
4906 eval "ac_cv_func_connect=no"
4911 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4912 echo "$ac_t""yes" 1>&6
4915 echo "$ac_t""no" 1>&6
4919 if test "$sim_checkSocket" = 1; then
4920 unset ac_cv_func_connect
4921 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4922 echo "configure:4923: checking for main in -lsocket" >&5
4923 ac_lib_var
=`echo socket'_'main | sed 'y%./+-%__p_%'`
4924 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4925 echo $ac_n "(cached) $ac_c" 1>&6
4927 ac_save_LIBS
="$LIBS"
4928 LIBS
="-lsocket $LIBS"
4929 cat > conftest.
$ac_ext <<EOF
4930 #line 4931 "configure"
4931 #include "confdefs.h"
4937 if { (eval echo configure
:4938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4939 eval "ac_cv_lib_$ac_lib_var=yes"
4941 echo "configure: failed program was:" >&5
4942 cat conftest.
$ac_ext >&5
4944 eval "ac_cv_lib_$ac_lib_var=no"
4947 LIBS
="$ac_save_LIBS"
4950 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4951 echo "$ac_t""yes" 1>&6
4952 sim_cv_lib_sockets
="-lsocket"
4954 echo "$ac_t""no" 1>&6
4959 if test "$sim_checkBoth" = 1; then
4960 sim_oldLibs
=$SOCKLIBSW
4961 SOCKLIBSW
="$SOCKLIBSW -lsocket -lnsl"
4962 unset ac_cv_func_accept
4963 echo $ac_n "checking for accept""... $ac_c" 1>&6
4964 echo "configure:4965: checking for accept" >&5
4965 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
4966 echo $ac_n "(cached) $ac_c" 1>&6
4968 cat > conftest.
$ac_ext <<EOF
4969 #line 4970 "configure"
4970 #include "confdefs.h"
4971 /* System header to define __stub macros and hopefully few prototypes,
4972 which can conflict with char accept(); below. */
4974 /* Override any gcc2 internal prototype to avoid an error. */
4975 /* We use char because int might match the return type of a gcc2
4976 builtin and then its argument prototype would still apply. */
4981 /* The GNU C library defines this for functions which it implements
4982 to always fail with ENOSYS. Some functions are actually named
4983 something starting with __ and the normal name is an alias. */
4984 #if defined (__stub_accept) || defined (__stub___accept)
4992 if { (eval echo configure
:4993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4994 eval "ac_cv_func_accept=yes"
4996 echo "configure: failed program was:" >&5
4997 cat conftest.
$ac_ext >&5
4999 eval "ac_cv_func_accept=no"
5004 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
5005 echo "$ac_t""yes" 1>&6
5007 sim_cv_lib_sockets
="-lsocket -lnsl"
5009 echo "$ac_t""no" 1>&6
5012 unset ac_cv_func_accept
5013 SOCKLIBSW
=$sim_oldLibs
5015 unset ac_cv_func_gethostbyname
5016 sim_oldLibs
=$SOCKLIBSW
5017 SOCKLIBSW
="$SOCKLIBSW $sim_cv_lib_sockets"
5018 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5019 echo "configure:5020: checking for gethostbyname" >&5
5020 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
5021 echo $ac_n "(cached) $ac_c" 1>&6
5023 cat > conftest.
$ac_ext <<EOF
5024 #line 5025 "configure"
5025 #include "confdefs.h"
5026 /* System header to define __stub macros and hopefully few prototypes,
5027 which can conflict with char gethostbyname(); below. */
5029 /* Override any gcc2 internal prototype to avoid an error. */
5030 /* We use char because int might match the return type of a gcc2
5031 builtin and then its argument prototype would still apply. */
5032 char gethostbyname();
5036 /* The GNU C library defines this for functions which it implements
5037 to always fail with ENOSYS. Some functions are actually named
5038 something starting with __ and the normal name is an alias. */
5039 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5047 if { (eval echo configure
:5048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5049 eval "ac_cv_func_gethostbyname=yes"
5051 echo "configure: failed program was:" >&5
5052 cat conftest.
$ac_ext >&5
5054 eval "ac_cv_func_gethostbyname=no"
5059 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5060 echo "$ac_t""yes" 1>&6
5063 echo "$ac_t""no" 1>&6
5064 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
5065 echo "configure:5066: checking for main in -lnsl" >&5
5066 ac_lib_var
=`echo nsl'_'main | sed 'y%./+-%__p_%'`
5067 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5068 echo $ac_n "(cached) $ac_c" 1>&6
5070 ac_save_LIBS
="$LIBS"
5072 cat > conftest.
$ac_ext <<EOF
5073 #line 5074 "configure"
5074 #include "confdefs.h"
5080 if { (eval echo configure
:5081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5082 eval "ac_cv_lib_$ac_lib_var=yes"
5084 echo "configure: failed program was:" >&5
5085 cat conftest.
$ac_ext >&5
5087 eval "ac_cv_lib_$ac_lib_var=no"
5090 LIBS
="$ac_save_LIBS"
5093 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5094 echo "$ac_t""yes" 1>&6
5095 sim_cv_lib_sockets
="$sim_cv_lib_sockets -lnsl"
5097 echo "$ac_t""no" 1>&6
5102 unset ac_cv_func_gethostbyname
5103 SOCKLIBSW
=$sim_oldSOCKLIBSW
5107 echo "$ac_t""$sim_cv_lib_sockets" 1>&6
5108 test -z "$sim_cv_lib_sockets" || SOCKLIBSW
="$SOCKLIBSW $sim_cv_lib_sockets"
5110 mips_extra_libs
="-L${withval}/lib -lgpu2 -lm $XLIBSW $SOCKLIBSW"
5111 cat > simConfig.sh
<< --EOF--
5112 mips_extra_libs="$mips_extra_libs"
5116 { echo "configure: error: "Directory
${withval} does not exist.
"" 1>&2; exit 1; };
5121 # Enable target accurate FP library
5122 # Check whether --with-sim-funit or --without-sim-funit was given.
5123 if test "${with_sim_funit+set}" = set; then
5124 withval
="$with_sim_funit"
5125 if test -d "${withval}"
5127 SIM_SUBTARGET
="${SIM_SUBTARGET} -DSKY_FUNIT -I${withval}/include"
5128 mips_extra_libs
="${mips_extra_libs} -L${withval}/lib -lfunit"
5130 { echo "configure: error: "Directory
${withval} does not exist.
"" 1>&2; exit 1; };
5136 for ac_hdr
in string.h
strings.h stdlib.h stdlib.h
5138 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5139 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5140 echo "configure:5141: checking for $ac_hdr" >&5
5141 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5142 echo $ac_n "(cached) $ac_c" 1>&6
5144 cat > conftest.
$ac_ext <<EOF
5145 #line 5146 "configure"
5146 #include "confdefs.h"
5149 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5150 { (eval echo configure
:5151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5151 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5152 if test -z "$ac_err"; then
5154 eval "ac_cv_header_$ac_safe=yes"
5157 echo "configure: failed program was:" >&5
5158 cat conftest.
$ac_ext >&5
5160 eval "ac_cv_header_$ac_safe=no"
5164 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5165 echo "$ac_t""yes" 1>&6
5166 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5167 cat >> confdefs.h
<<EOF
5168 #define $ac_tr_hdr 1
5172 echo "$ac_t""no" 1>&6
5176 echo $ac_n "checking for fabs in -lm""... $ac_c" 1>&6
5177 echo "configure:5178: checking for fabs in -lm" >&5
5178 ac_lib_var
=`echo m'_'fabs | sed 'y%./+-%__p_%'`
5179 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5180 echo $ac_n "(cached) $ac_c" 1>&6
5182 ac_save_LIBS
="$LIBS"
5184 cat > conftest.
$ac_ext <<EOF
5185 #line 5186 "configure"
5186 #include "confdefs.h"
5187 /* Override any gcc2 internal prototype to avoid an error. */
5188 /* We use char because int might match the return type of a gcc2
5189 builtin and then its argument prototype would still apply. */
5196 if { (eval echo configure
:5197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5198 eval "ac_cv_lib_$ac_lib_var=yes"
5200 echo "configure: failed program was:" >&5
5201 cat conftest.
$ac_ext >&5
5203 eval "ac_cv_lib_$ac_lib_var=no"
5206 LIBS
="$ac_save_LIBS"
5209 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5210 echo "$ac_t""yes" 1>&6
5211 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5212 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5213 cat >> confdefs.h
<<EOF
5214 #define $ac_tr_lib 1
5220 echo "$ac_t""no" 1>&6
5223 for ac_func
in aint anint sqrt
5225 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5226 echo "configure:5227: checking for $ac_func" >&5
5227 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5228 echo $ac_n "(cached) $ac_c" 1>&6
5230 cat > conftest.
$ac_ext <<EOF
5231 #line 5232 "configure"
5232 #include "confdefs.h"
5233 /* System header to define __stub macros and hopefully few prototypes,
5234 which can conflict with char $ac_func(); below. */
5236 /* Override any gcc2 internal prototype to avoid an error. */
5237 /* We use char because int might match the return type of a gcc2
5238 builtin and then its argument prototype would still apply. */
5243 /* The GNU C library defines this for functions which it implements
5244 to always fail with ENOSYS. Some functions are actually named
5245 something starting with __ and the normal name is an alias. */
5246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5254 if { (eval echo configure
:5255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5256 eval "ac_cv_func_$ac_func=yes"
5258 echo "configure: failed program was:" >&5
5259 cat conftest.
$ac_ext >&5
5261 eval "ac_cv_func_$ac_func=no"
5266 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5267 echo "$ac_t""yes" 1>&6
5268 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5269 cat >> confdefs.h
<<EOF
5270 #define $ac_tr_func 1
5274 echo "$ac_t""no" 1>&6
5282 cat > confcache
<<\EOF
5283 # This file is a shell script that caches the results of configure
5284 # tests run on this system so they can be shared between configure
5285 # scripts and configure runs. It is not useful on other systems.
5286 # If it contains results you don't want to keep, you may remove or edit it.
5288 # By default, configure uses ./config.cache as the cache file,
5289 # creating it if it does not exist already. You can give configure
5290 # the --cache-file=FILE option to use a different cache file; that is
5291 # what configure does when it calls configure scripts in
5292 # subdirectories, so they share the cache.
5293 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5294 # config.status only pays attention to the cache file if you give it the
5295 # --recheck option to rerun configure.
5298 # The following way of writing the cache mishandles newlines in values,
5299 # but we know of no workaround that is simple, portable, and efficient.
5300 # So, don't put newlines in cache variables' values.
5301 # Ultrix sh set writes to stderr and can't be redirected directly,
5302 # and sets the high bit in the cache file unless we assign to the vars.
5304 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
5306 # `set' does not quote correctly, so add quotes (double-quote substitution
5307 # turns \\\\ into \\, and sed turns \\ into \).
5309 -e "s/'/'\\\\''/g" \
5310 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5313 # `set' quotes correctly as required by POSIX, so do not add quotes.
5314 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5317 if cmp -s $cache_file confcache
; then
5320 if test -w $cache_file; then
5321 echo "updating cache $cache_file"
5322 cat confcache
> $cache_file
5324 echo "not updating unwritable cache $cache_file"
5329 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5331 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5332 # Let make expand exec_prefix.
5333 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5335 # Any assignment to VPATH causes Sun make to only execute
5336 # the first set of double-colon rules, so remove it if not needed.
5337 # If there is a colon in the path, we need to keep it.
5338 if test "x$srcdir" = x.
; then
5339 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5342 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5344 DEFS
=-DHAVE_CONFIG_H
5346 # Without the "./", some shells look in PATH for config.status.
5347 : ${CONFIG_STATUS=./config.status}
5349 echo creating
$CONFIG_STATUS
5350 rm -f $CONFIG_STATUS
5351 cat > $CONFIG_STATUS <<EOF
5353 # Generated automatically by configure.
5354 # Run this file to recreate the current configuration.
5355 # This directory was configured as follows,
5356 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5358 # $0 $ac_configure_args
5360 # Compiler output produced by configure, useful for debugging
5361 # configure, is in ./config.log if it exists.
5363 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5366 case "\$ac_option" in
5367 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5368 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5369 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5370 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5371 echo "$CONFIG_STATUS generated by autoconf version 2.12.2"
5373 -help | --help | --hel | --he | --h)
5374 echo "\$ac_cs_usage"; exit 0 ;;
5375 *) echo "\$ac_cs_usage"; exit 1 ;;
5379 ac_given_srcdir=$srcdir
5380 ac_given_INSTALL="$INSTALL"
5382 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
5384 cat >> $CONFIG_STATUS <<EOF
5386 # Protect against being on the right side of a sed subst in config.status.
5387 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5388 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5391 s%@sim_environment@%$sim_environment%g
5392 s%@sim_alignment@%$sim_alignment%g
5393 s%@sim_assert@%$sim_assert%g
5394 s%@sim_bitsize@%$sim_bitsize%g
5395 s%@sim_endian@%$sim_endian%g
5396 s%@sim_hostendian@%$sim_hostendian%g
5397 s%@sim_float@%$sim_float%g
5398 s%@sim_scache@%$sim_scache%g
5399 s%@sim_default_model@%$sim_default_model%g
5400 s%@sim_hw_cflags@%$sim_hw_cflags%g
5401 s%@sim_hw_objs@%$sim_hw_objs%g
5402 s%@sim_hw@%$sim_hw%g
5403 s%@sim_inline@%$sim_inline%g
5404 s%@sim_packages@%$sim_packages%g
5405 s%@sim_regparm@%$sim_regparm%g
5406 s%@sim_reserved_bits@%$sim_reserved_bits%g
5407 s%@sim_smp@%$sim_smp%g
5408 s%@sim_stdcall@%$sim_stdcall%g
5409 s%@sim_xor_endian@%$sim_xor_endian%g
5410 s%@build_warnings@%$build_warnings%g
5412 s%@CFLAGS@%$CFLAGS%g
5413 s%@CPPFLAGS@%$CPPFLAGS%g
5414 s%@CXXFLAGS@%$CXXFLAGS%g
5416 s%@LDFLAGS@%$LDFLAGS%g
5418 s%@exec_prefix@%$exec_prefix%g
5419 s%@prefix@%$prefix%g
5420 s%@program_transform_name@%$program_transform_name%g
5421 s%@bindir@%$bindir%g
5422 s%@sbindir@%$sbindir%g
5423 s%@libexecdir@%$libexecdir%g
5424 s%@datadir@%$datadir%g
5425 s%@sysconfdir@%$sysconfdir%g
5426 s%@sharedstatedir@%$sharedstatedir%g
5427 s%@localstatedir@%$localstatedir%g
5428 s%@libdir@%$libdir%g
5429 s%@includedir@%$includedir%g
5430 s%@oldincludedir@%$oldincludedir%g
5431 s%@infodir@%$infodir%g
5432 s%@mandir@%$mandir%g
5434 s%@host_alias@%$host_alias%g
5435 s%@host_cpu@%$host_cpu%g
5436 s%@host_vendor@%$host_vendor%g
5437 s%@host_os@%$host_os%g
5438 s%@target@%$target%g
5439 s%@target_alias@%$target_alias%g
5440 s%@target_cpu@%$target_cpu%g
5441 s%@target_vendor@%$target_vendor%g
5442 s%@target_os@%$target_os%g
5444 s%@build_alias@%$build_alias%g
5445 s%@build_cpu@%$build_cpu%g
5446 s%@build_vendor@%$build_vendor%g
5447 s%@build_os@%$build_os%g
5449 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5450 s%@INSTALL_DATA@%$INSTALL_DATA%g
5451 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
5452 s%@HDEFINES@%$HDEFINES%g
5454 s%@RANLIB@%$RANLIB%g
5455 s%@SET_MAKE@%$SET_MAKE%g
5457 s%@ALLOCA@%$ALLOCA%g
5458 s%@USE_NLS@%$USE_NLS%g
5459 s%@MSGFMT@%$MSGFMT%g
5460 s%@GMSGFMT@%$GMSGFMT%g
5461 s%@XGETTEXT@%$XGETTEXT%g
5462 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5463 s%@CATALOGS@%$CATALOGS%g
5464 s%@CATOBJEXT@%$CATOBJEXT%g
5465 s%@DATADIRNAME@%$DATADIRNAME%g
5466 s%@GMOFILES@%$GMOFILES%g
5467 s%@INSTOBJEXT@%$INSTOBJEXT%g
5468 s%@INTLDEPS@%$INTLDEPS%g
5469 s%@INTLLIBS@%$INTLLIBS%g
5470 s%@INTLOBJS@%$INTLOBJS%g
5471 s%@POFILES@%$POFILES%g
5473 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5475 s%@GT_YES@%$GT_YES%g
5476 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5479 s%@sim_bswap@%$sim_bswap%g
5480 s%@sim_cflags@%$sim_cflags%g
5481 s%@sim_debug@%$sim_debug%g
5482 s%@sim_stdio@%$sim_stdio%g
5483 s%@sim_trace@%$sim_trace%g
5484 s%@sim_profile@%$sim_profile%g
5485 s%@EXEEXT@%$EXEEXT%g
5486 s%@SIMCONF@%$SIMCONF%g
5487 s%@SIM_SUBTARGET@%$SIM_SUBTARGET%g
5488 s%@sim_igen_flags@%$sim_igen_flags%g
5489 s%@sim_m16_flags@%$sim_m16_flags%g
5490 s%@sim_gen@%$sim_gen%g
5491 s%@mips_extra_objs@%$mips_extra_objs%g
5492 s%@mips_igen_engine@%$mips_igen_engine%g
5493 s%@mips_extra_libs@%$mips_extra_libs%g
5498 cat >> $CONFIG_STATUS <<\EOF
5500 # Split the substitutions into bite-sized pieces for seds with
5501 # small command number limits, like on Digital OSF/1 and HP-UX.
5502 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5503 ac_file
=1 # Number of current file.
5504 ac_beg
=1 # First line for current file.
5505 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5508 while $ac_more_lines; do
5509 if test $ac_beg -gt 1; then
5510 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5512 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5514 if test ! -s conftest.s
$ac_file; then
5516 rm -f conftest.s
$ac_file
5518 if test -z "$ac_sed_cmds"; then
5519 ac_sed_cmds
="sed -f conftest.s$ac_file"
5521 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5523 ac_file
=`expr $ac_file + 1`
5525 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5528 if test -z "$ac_sed_cmds"; then
5533 cat >> $CONFIG_STATUS <<EOF
5535 CONFIG_FILES=\${CONFIG_FILES-"Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in"}
5537 cat >> $CONFIG_STATUS <<\EOF
5538 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5539 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5541 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5542 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5543 *) ac_file_in
="${ac_file}.in" ;;
5546 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5548 # Remove last slash and all that follows it. Not all systems have dirname.
5549 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5550 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5551 # The file is in a subdirectory.
5552 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5553 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5554 # A "../" for each directory in $ac_dir_suffix.
5555 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5557 ac_dir_suffix
= ac_dots
=
5560 case "$ac_given_srcdir" in
5562 if test -z "$ac_dots"; then top_srcdir
=.
5563 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5564 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5566 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5567 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5570 case "$ac_given_INSTALL" in
5571 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5572 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5575 echo creating
"$ac_file"
5577 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5579 *Makefile
*) ac_comsub
="1i\\
5580 # $configure_input" ;;
5584 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5586 s%@configure_input@%$configure_input%g
5587 s%@srcdir@%$srcdir%g
5588 s%@top_srcdir@%$top_srcdir%g
5589 s%@INSTALL@%$INSTALL%g
5590 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5594 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5595 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5597 # ac_d sets the value in "#define NAME VALUE" lines.
5598 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5599 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5602 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5603 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5604 ac_uB
='\([ ]\)%\1#\2define\3'
5607 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5608 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5609 ac_eB
='$%\1#\2define\3'
5613 if test "${CONFIG_HEADERS+set}" != set; then
5615 cat >> $CONFIG_STATUS <<EOF
5616 CONFIG_HEADERS="config.h:config.in"
5618 cat >> $CONFIG_STATUS <<\EOF
5620 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5621 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5623 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5624 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5625 *) ac_file_in
="${ac_file}.in" ;;
5628 echo creating
$ac_file
5630 rm -f conftest.frag conftest.
in conftest.out
5631 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5632 cat $ac_file_inputs > conftest.
in
5636 # Transform confdefs.h into a sed script conftest.vals that substitutes
5637 # the proper values into config.h.in to produce config.h. And first:
5638 # Protect against being on the right side of a sed subst in config.status.
5639 # Protect against being in an unquoted here document in config.status.
5641 cat > conftest.hdr
<<\EOF
5644 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5648 sed -n -f conftest.hdr confdefs.h > conftest.vals
5651 # This sed command replaces #undef with comments. This is necessary, for
5652 # example, in the case of _POSIX_SOURCE, which is predefined and required
5653 # on some systems where configure will not decide to define it.
5654 cat >> conftest.vals <<\EOF
5655 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5658 # Break up conftest.vals because some shells have a limit on
5659 # the size of here documents, and old seds have small limits too.
5664 ac_lines=`grep -c . conftest.vals
`
5665 # grep -c gives empty output for an empty file on some AIX systems.
5666 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5667 # Write a limited-size here document to conftest.frag.
5668 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5669 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5671 sed -f conftest.frag conftest.in > conftest.out
5673 mv conftest.out conftest.in
5675 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5677 mv conftest.tail conftest.vals
5681 cat >> $CONFIG_STATUS <<\EOF
5682 rm -f conftest.frag conftest.h
5683 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5684 cat conftest.in >> conftest.h
5686 if cmp -s $ac_file conftest.h 2>/dev/null; then
5687 echo "$ac_file is unchanged"
5690 # Remove last slash and all that follows it. Not all systems have dirname.
5691 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5692 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5693 # The file is in a subdirectory.
5694 test ! -d "$ac_dir" && mkdir "$ac_dir"
5697 mv conftest.h $ac_file
5703 cat >> $CONFIG_STATUS <<EOF
5704 ac_sources="$sim_link_files"
5705 ac_dests="$sim_link_links"
5708 cat >> $CONFIG_STATUS <<\EOF
5709 srcdir=$ac_given_srcdir
5710 while test -n "$ac_sources"; do
5711 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5712 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5714 echo "linking $srcdir/$ac_source to $ac_dest"
5716 if test ! -r $srcdir/$ac_source; then
5717 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
5721 # Make relative symlinks.
5722 # Remove last slash and all that follows it. Not all systems have dirname.
5723 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
5724 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
5725 # The dest file is in a subdirectory.
5726 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5727 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
5728 # A "../" for each directory in $ac_dest_dir_suffix.
5729 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
5731 ac_dest_dir_suffix= ac_dots=
5735 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5736 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5739 # Make a symlink if possible; otherwise try a hard link.
5740 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5741 ln $srcdir/$ac_source $ac_dest; then :
5743 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5747 cat >> $CONFIG_STATUS <<EOF
5750 cat >> $CONFIG_STATUS <<\EOF
5751 case "x$CONFIG_FILES" in
5753 echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
5754 rm -f Makesim1.tmp Makesim2.tmp Makefile
5755 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
5756 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
5757 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
5758 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
5759 <Makefile.sim >Makefile
5760 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
5763 case "x$CONFIG_HEADERS" in xconfig.h:config.in) echo > stamp-h ;; esac
5767 chmod +x $CONFIG_STATUS
5768 rm -fr confdefs* $ac_clean_files
5769 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1