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-hardware=LIST Specify the hardware to be included in the build."
183 --with-x use the X Window System"
185 --with-sim-gpu2=path Use GPU2 library under given directory"
187 --with-x use the X Window System"
189 --with-sim-funit=path Use target FP library under given directory"
191 # Initialize some variables set by options.
192 # The variables have the same names as the options, with
193 # dashes changed to underlines.
195 cache_file
=.
/config.cache
204 program_transform_name
=s
,x
,x
,
212 bindir
='${exec_prefix}/bin'
213 sbindir
='${exec_prefix}/sbin'
214 libexecdir
='${exec_prefix}/libexec'
215 datadir
='${prefix}/share'
216 sysconfdir
='${prefix}/etc'
217 sharedstatedir
='${prefix}/com'
218 localstatedir
='${prefix}/var'
219 libdir
='${exec_prefix}/lib'
220 includedir
='${prefix}/include'
221 oldincludedir
='/usr/include'
222 infodir
='${prefix}/info'
223 mandir
='${prefix}/man'
225 # Initialize some other variables.
228 SHELL
=${CONFIG_SHELL-/bin/sh}
229 # Maximum number of lines to put in a shell here document.
236 # If the previous option needs an argument, assign it.
237 if test -n "$ac_prev"; then
238 eval "$ac_prev=\$ac_option"
244 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
248 # Accept the important Cygnus configure options, so we can diagnose typos.
252 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
254 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
255 bindir
="$ac_optarg" ;;
257 -build |
--build |
--buil |
--bui |
--bu)
259 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
260 build
="$ac_optarg" ;;
262 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
263 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
264 ac_prev
=cache_file
;;
265 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
266 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
267 cache_file
="$ac_optarg" ;;
269 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
271 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
273 datadir
="$ac_optarg" ;;
275 -disable-* |
--disable-*)
276 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
277 # Reject names that are not valid shell variable names.
278 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
279 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
281 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
282 eval "enable_${ac_feature}=no" ;;
284 -enable-* |
--enable-*)
285 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
286 # Reject names that are not valid shell variable names.
287 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
288 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
290 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
295 eval "enable_${ac_feature}='$ac_optarg'" ;;
297 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
298 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
299 |
--exec |
--exe |
--ex)
300 ac_prev
=exec_prefix
;;
301 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
302 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
303 |
--exec=* |
--exe=* |
--ex=*)
304 exec_prefix
="$ac_optarg" ;;
306 -gas |
--gas |
--ga |
--g)
307 # Obsolete; use --with-gas.
310 -help |
--help |
--hel |
--he)
311 # Omit some internal or obsolete options to make the list less imposing.
312 # This message is too long to be a string in the A/UX 3.1 sh.
314 Usage: configure [options] [host]
315 Options: [defaults in brackets after descriptions]
317 --cache-file=FILE cache test results in FILE
318 --help print this message
319 --no-create do not create output files
320 --quiet, --silent do not print \`checking...' messages
321 --version print the version of autoconf that created configure
322 Directory and file names:
323 --prefix=PREFIX install architecture-independent files in PREFIX
325 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
327 --bindir=DIR user executables in DIR [EPREFIX/bin]
328 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
329 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
330 --datadir=DIR read-only architecture-independent data in DIR
332 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
333 --sharedstatedir=DIR modifiable architecture-independent data in DIR
335 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
336 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
337 --includedir=DIR C header files in DIR [PREFIX/include]
338 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
339 --infodir=DIR info documentation in DIR [PREFIX/info]
340 --mandir=DIR man documentation in DIR [PREFIX/man]
341 --srcdir=DIR find the sources in DIR [configure dir or ..]
342 --program-prefix=PREFIX prepend PREFIX to installed program names
343 --program-suffix=SUFFIX append SUFFIX to installed program names
344 --program-transform-name=PROGRAM
345 run sed PROGRAM on installed program names
349 --build=BUILD configure for building on BUILD [BUILD=HOST]
350 --host=HOST configure for HOST [guessed]
351 --target=TARGET configure for TARGET [TARGET=HOST]
352 Features and packages:
353 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
354 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
355 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
356 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
357 --x-includes=DIR X include files are in DIR
358 --x-libraries=DIR X library files are in DIR
360 if test -n "$ac_help"; then
361 echo "--enable and --with options recognized:$ac_help"
365 -host |
--host |
--hos |
--ho)
367 -host=* |
--host=* |
--hos=* |
--ho=*)
370 -includedir |
--includedir |
--includedi |
--included |
--include \
371 |
--includ |
--inclu |
--incl |
--inc)
372 ac_prev
=includedir
;;
373 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
374 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
375 includedir
="$ac_optarg" ;;
377 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
379 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
380 infodir
="$ac_optarg" ;;
382 -libdir |
--libdir |
--libdi |
--libd)
384 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
385 libdir
="$ac_optarg" ;;
387 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
388 |
--libexe |
--libex |
--libe)
389 ac_prev
=libexecdir
;;
390 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
391 |
--libexe=* |
--libex=* |
--libe=*)
392 libexecdir
="$ac_optarg" ;;
394 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
395 |
--localstate |
--localstat |
--localsta |
--localst \
396 |
--locals |
--local |
--loca |
--loc |
--lo)
397 ac_prev
=localstatedir
;;
398 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
399 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
400 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
401 localstatedir
="$ac_optarg" ;;
403 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
405 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
406 mandir
="$ac_optarg" ;;
409 # Obsolete; use --without-fp.
412 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
416 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
417 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
420 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
421 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
422 |
--oldin |
--oldi |
--old |
--ol |
--o)
423 ac_prev
=oldincludedir
;;
424 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
425 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
426 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
427 oldincludedir
="$ac_optarg" ;;
429 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
431 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
432 prefix
="$ac_optarg" ;;
434 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
435 |
--program-pre |
--program-pr |
--program-p)
436 ac_prev
=program_prefix
;;
437 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
438 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
439 program_prefix
="$ac_optarg" ;;
441 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
442 |
--program-suf |
--program-su |
--program-s)
443 ac_prev
=program_suffix
;;
444 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
445 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
446 program_suffix
="$ac_optarg" ;;
448 -program-transform-name |
--program-transform-name \
449 |
--program-transform-nam |
--program-transform-na \
450 |
--program-transform-n |
--program-transform- \
451 |
--program-transform |
--program-transfor \
452 |
--program-transfo |
--program-transf \
453 |
--program-trans |
--program-tran \
454 |
--progr-tra |
--program-tr |
--program-t)
455 ac_prev
=program_transform_name
;;
456 -program-transform-name=* |
--program-transform-name=* \
457 |
--program-transform-nam=* |
--program-transform-na=* \
458 |
--program-transform-n=* |
--program-transform-=* \
459 |
--program-transform=* |
--program-transfor=* \
460 |
--program-transfo=* |
--program-transf=* \
461 |
--program-trans=* |
--program-tran=* \
462 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
463 program_transform_name
="$ac_optarg" ;;
465 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
466 |
-silent |
--silent |
--silen |
--sile |
--sil)
469 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
471 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
473 sbindir
="$ac_optarg" ;;
475 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
476 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
477 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
479 ac_prev
=sharedstatedir
;;
480 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
481 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
482 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
484 sharedstatedir
="$ac_optarg" ;;
486 -site |
--site |
--sit)
488 -site=* |
--site=* |
--sit=*)
491 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
493 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
494 srcdir
="$ac_optarg" ;;
496 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
497 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
498 ac_prev
=sysconfdir
;;
499 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
500 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
501 sysconfdir
="$ac_optarg" ;;
503 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
505 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
506 target
="$ac_optarg" ;;
508 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
511 -version |
--version |
--versio |
--versi |
--vers)
512 echo "configure generated by autoconf version 2.12.2"
516 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
517 # Reject names that are not valid shell variable names.
518 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
519 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
521 ac_package
=`echo $ac_package| sed 's/-/_/g'`
526 eval "with_${ac_package}='$ac_optarg'" ;;
528 -without-* |
--without-*)
529 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
530 # Reject names that are not valid shell variable names.
531 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
532 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
534 ac_package
=`echo $ac_package| sed 's/-/_/g'`
535 eval "with_${ac_package}=no" ;;
538 # Obsolete; use --with-x.
541 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
542 |
--x-incl |
--x-inc |
--x-in |
--x-i)
543 ac_prev
=x_includes
;;
544 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
545 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
546 x_includes
="$ac_optarg" ;;
548 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
549 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
550 ac_prev
=x_libraries
;;
551 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
552 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
553 x_libraries
="$ac_optarg" ;;
555 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
559 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
560 echo "configure: warning: $ac_option: invalid host type" 1>&2
562 if test "x$nonopt" != xNONE
; then
563 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
571 if test -n "$ac_prev"; then
572 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
575 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
577 # File descriptor usage:
580 # 2 errors and warnings
581 # 3 some systems may open it to /dev/tty
582 # 4 used on the Kubota Titan
583 # 6 checking for... messages and results
584 # 5 compiler messages saved in config.log
585 if test "$silent" = yes; then
593 This file contains any messages produced by compilers while
594 running configure, to aid debugging if configure makes a mistake.
597 # Strip out --no-create and --no-recursion so they do not pile up.
598 # Also quote any args containing shell metacharacters.
603 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
604 |
--no-cr |
--no-c) ;;
605 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
606 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
607 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
608 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
609 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
614 # Only set these to C if already set. These must not be set unconditionally
615 # because not all systems understand e.g. LANG=C (notably SCO).
616 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
617 # Non-C LC_CTYPE values break the ctype check.
618 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
619 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
620 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
621 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
623 # confdefs.h avoids OS command line length limits that DEFS can exceed.
624 rm -rf conftest
* confdefs.h
625 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
628 # A filename unique to this package, relative to the directory that
629 # configure is in, which we can look for to find out if srcdir is correct.
630 ac_unique_file
=Makefile.
in
632 # Find the source files, if location was not specified.
633 if test -z "$srcdir"; then
634 ac_srcdir_defaulted
=yes
635 # Try the directory containing this script, then its parent.
637 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
638 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
640 if test ! -r $srcdir/$ac_unique_file; then
644 ac_srcdir_defaulted
=no
646 if test ! -r $srcdir/$ac_unique_file; then
647 if test "$ac_srcdir_defaulted" = yes; then
648 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
650 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
653 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
655 # Prefer explicitly selected file to automatically selected ones.
656 if test -z "$CONFIG_SITE"; then
657 if test "x$prefix" != xNONE
; then
658 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
660 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
663 for ac_site_file
in $CONFIG_SITE; do
664 if test -r "$ac_site_file"; then
665 echo "loading site script $ac_site_file"
670 if test -r "$cache_file"; then
671 echo "loading cache $cache_file"
674 echo "creating cache $cache_file"
679 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
680 ac_cpp
='$CPP $CPPFLAGS'
681 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
682 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
683 cross_compiling
=$ac_cv_prog_cc_cross
687 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
688 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
689 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
696 ac_n
= ac_c
='\c' ac_t
=
701 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
702 echo "configure:703: checking how to run the C preprocessor" >&5
703 # On Suns, sometimes $CPP names a directory.
704 if test -n "$CPP" && test -d "$CPP"; then
707 if test -z "$CPP"; then
708 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
709 echo $ac_n "(cached) $ac_c" 1>&6
711 # This must be in double quotes, not single quotes, because CPP may get
712 # substituted into the Makefile and "${CC-cc}" will confuse make.
714 # On the NeXT, cc -E runs the code through the compiler's parser,
715 # not just through cpp.
716 cat > conftest.
$ac_ext <<EOF
717 #line 718 "configure"
718 #include "confdefs.h"
722 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
723 { (eval echo configure
:724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
724 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
725 if test -z "$ac_err"; then
729 echo "configure: failed program was:" >&5
730 cat conftest.
$ac_ext >&5
732 CPP
="${CC-cc} -E -traditional-cpp"
733 cat > conftest.
$ac_ext <<EOF
734 #line 735 "configure"
735 #include "confdefs.h"
739 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
740 { (eval echo configure
:741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
741 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
742 if test -z "$ac_err"; then
746 echo "configure: failed program was:" >&5
747 cat conftest.
$ac_ext >&5
749 CPP
="${CC-cc} -nologo -E"
750 cat > conftest.
$ac_ext <<EOF
751 #line 752 "configure"
752 #include "confdefs.h"
756 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
757 { (eval echo configure
:758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
758 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
759 if test -z "$ac_err"; then
763 echo "configure: failed program was:" >&5
764 cat conftest.
$ac_ext >&5
773 ac_cv_prog_CPP
="$CPP"
775 CPP
="$ac_cv_prog_CPP"
777 ac_cv_prog_CPP
="$CPP"
779 echo "$ac_t""$CPP" 1>&6
781 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
782 echo "configure:783: checking whether ${MAKE-make} sets \${MAKE}" >&5
783 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
784 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
785 echo $ac_n "(cached) $ac_c" 1>&6
787 cat > conftestmake
<<\EOF
789 @
echo 'ac_maketemp="${MAKE}"'
791 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
792 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
793 if test -n "$ac_maketemp"; then
794 eval ac_cv_prog_make_
${ac_make}_set
=yes
796 eval ac_cv_prog_make_
${ac_make}_set
=no
800 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
801 echo "$ac_t""yes" 1>&6
804 echo "$ac_t""no" 1>&6
805 SET_MAKE
="MAKE=${MAKE-make}"
808 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
809 echo "configure:810: checking for POSIXized ISC" >&5
810 if test -d /etc
/conf
/kconfig.d
&&
811 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
813 echo "$ac_t""yes" 1>&6
814 ISC
=yes # If later tests want to check for ISC.
815 cat >> confdefs.h
<<\EOF
816 #define _POSIX_SOURCE 1
819 if test "$GCC" = yes; then
825 echo "$ac_t""no" 1>&6
829 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
830 echo "configure:831: checking for ANSI C header files" >&5
831 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
832 echo $ac_n "(cached) $ac_c" 1>&6
834 cat > conftest.
$ac_ext <<EOF
835 #line 836 "configure"
836 #include "confdefs.h"
842 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
843 { (eval echo configure
:844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
844 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
845 if test -z "$ac_err"; then
847 ac_cv_header_stdc
=yes
850 echo "configure: failed program was:" >&5
851 cat conftest.
$ac_ext >&5
857 if test $ac_cv_header_stdc = yes; then
858 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
859 cat > conftest.
$ac_ext <<EOF
860 #line 861 "configure"
861 #include "confdefs.h"
864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
865 egrep "memchr" >/dev
/null
2>&1; then
875 if test $ac_cv_header_stdc = yes; then
876 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
877 cat > conftest.
$ac_ext <<EOF
878 #line 879 "configure"
879 #include "confdefs.h"
882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
883 egrep "free" >/dev
/null
2>&1; then
893 if test $ac_cv_header_stdc = yes; then
894 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
895 if test "$cross_compiling" = yes; then
898 cat > conftest.
$ac_ext <<EOF
899 #line 900 "configure"
900 #include "confdefs.h"
902 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
903 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
904 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
905 int main () { int i; for (i = 0; i < 256; i++)
906 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
910 if { (eval echo configure
:911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
914 echo "configure: failed program was:" >&5
915 cat conftest.
$ac_ext >&5
925 echo "$ac_t""$ac_cv_header_stdc" 1>&6
926 if test $ac_cv_header_stdc = yes; then
927 cat >> confdefs.h
<<\EOF
928 #define STDC_HEADERS 1
933 echo $ac_n "checking for working const""... $ac_c" 1>&6
934 echo "configure:935: checking for working const" >&5
935 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
936 echo $ac_n "(cached) $ac_c" 1>&6
938 cat > conftest.
$ac_ext <<EOF
939 #line 940 "configure"
940 #include "confdefs.h"
944 /* Ultrix mips cc rejects this. */
945 typedef int charset[2]; const charset x;
946 /* SunOS 4.1.1 cc rejects this. */
947 char const *const *ccp;
949 /* NEC SVR4.0.2 mips cc rejects this. */
950 struct point {int x, y;};
951 static struct point const zero = {0,0};
952 /* AIX XL C 1.02.0.0 rejects this.
953 It does not let you subtract one const X* pointer from another in an arm
954 of an if-expression whose if-part is not a constant expression */
955 const char *g = "string";
956 ccp = &g + (g ? g-g : 0);
957 /* HPUX 7.0 cc rejects these. */
960 ccp = (char const *const *) p;
961 { /* SCO 3.2v4 cc rejects this. */
963 char const *s = 0 ? (char *) 0 : (char const *) 0;
967 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
969 const int *foo = &x[0];
972 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
973 typedef const int *iptr;
977 { /* AIX XL C 1.02.0.0 rejects this saying
978 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
979 struct s { int j; const int *ap[3]; };
980 struct s *b; b->j = 5;
982 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
988 if { (eval echo configure
:989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
992 echo "configure: failed program was:" >&5
993 cat conftest.
$ac_ext >&5
1000 echo "$ac_t""$ac_cv_c_const" 1>&6
1001 if test $ac_cv_c_const = no
; then
1002 cat >> confdefs.h
<<\EOF
1008 echo $ac_n "checking for inline""... $ac_c" 1>&6
1009 echo "configure:1010: checking for inline" >&5
1010 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1011 echo $ac_n "(cached) $ac_c" 1>&6
1014 for ac_kw
in inline __inline__ __inline
; do
1015 cat > conftest.
$ac_ext <<EOF
1016 #line 1017 "configure"
1017 #include "confdefs.h"
1023 if { (eval echo configure
:1024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1025 ac_cv_c_inline
=$ac_kw; break
1027 echo "configure: failed program was:" >&5
1028 cat conftest.
$ac_ext >&5
1035 echo "$ac_t""$ac_cv_c_inline" 1>&6
1036 case "$ac_cv_c_inline" in
1038 no
) cat >> confdefs.h
<<\EOF
1042 *) cat >> confdefs.h
<<EOF
1043 #define inline $ac_cv_c_inline
1048 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1049 echo "configure:1050: checking for off_t" >&5
1050 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1051 echo $ac_n "(cached) $ac_c" 1>&6
1053 cat > conftest.
$ac_ext <<EOF
1054 #line 1055 "configure"
1055 #include "confdefs.h"
1056 #include <sys/types.h>
1062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1063 egrep "off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1065 ac_cv_type_off_t
=yes
1073 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1074 if test $ac_cv_type_off_t = no
; then
1075 cat >> confdefs.h
<<\EOF
1081 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1082 echo "configure:1083: checking for size_t" >&5
1083 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1084 echo $ac_n "(cached) $ac_c" 1>&6
1086 cat > conftest.
$ac_ext <<EOF
1087 #line 1088 "configure"
1088 #include "confdefs.h"
1089 #include <sys/types.h>
1095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1096 egrep "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1098 ac_cv_type_size_t
=yes
1101 ac_cv_type_size_t
=no
1106 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1107 if test $ac_cv_type_size_t = no
; then
1108 cat >> confdefs.h
<<\EOF
1109 #define size_t unsigned
1114 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1115 # for constant arguments. Useless!
1116 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1117 echo "configure:1118: checking for working alloca.h" >&5
1118 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1119 echo $ac_n "(cached) $ac_c" 1>&6
1121 cat > conftest.
$ac_ext <<EOF
1122 #line 1123 "configure"
1123 #include "confdefs.h"
1126 char *p = alloca(2 * sizeof(int));
1129 if { (eval echo configure
:1130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1131 ac_cv_header_alloca_h
=yes
1133 echo "configure: failed program was:" >&5
1134 cat conftest.
$ac_ext >&5
1136 ac_cv_header_alloca_h
=no
1141 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1142 if test $ac_cv_header_alloca_h = yes; then
1143 cat >> confdefs.h
<<\EOF
1144 #define HAVE_ALLOCA_H 1
1149 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1150 echo "configure:1151: checking for alloca" >&5
1151 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1152 echo $ac_n "(cached) $ac_c" 1>&6
1154 cat > conftest.
$ac_ext <<EOF
1155 #line 1156 "configure"
1156 #include "confdefs.h"
1159 # define alloca __builtin_alloca
1162 # include <malloc.h>
1163 # define alloca _alloca
1166 # include <alloca.h>
1171 # ifndef alloca /* predefined by HP cc +Olibcalls */
1180 char *p = (char *) alloca(1);
1183 if { (eval echo configure
:1184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1185 ac_cv_func_alloca_works
=yes
1187 echo "configure: failed program was:" >&5
1188 cat conftest.
$ac_ext >&5
1190 ac_cv_func_alloca_works
=no
1195 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1196 if test $ac_cv_func_alloca_works = yes; then
1197 cat >> confdefs.h
<<\EOF
1198 #define HAVE_ALLOCA 1
1203 if test $ac_cv_func_alloca_works = no
; then
1204 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1205 # that cause trouble. Some versions do not even contain alloca or
1206 # contain a buggy version. If you still want to use their alloca,
1207 # use ar to extract alloca.o from them instead of compiling alloca.c.
1208 ALLOCA
=alloca.
${ac_objext}
1209 cat >> confdefs.h
<<\EOF
1214 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1215 echo "configure:1216: checking whether alloca needs Cray hooks" >&5
1216 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1217 echo $ac_n "(cached) $ac_c" 1>&6
1219 cat > conftest.
$ac_ext <<EOF
1220 #line 1221 "configure"
1221 #include "confdefs.h"
1222 #if defined(CRAY) && ! defined(CRAY2)
1229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1230 egrep "webecray" >/dev
/null
2>&1; then
1241 echo "$ac_t""$ac_cv_os_cray" 1>&6
1242 if test $ac_cv_os_cray = yes; then
1243 for ac_func
in _getb67 GETB67 getb67
; do
1244 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1245 echo "configure:1246: checking for $ac_func" >&5
1246 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1247 echo $ac_n "(cached) $ac_c" 1>&6
1249 cat > conftest.
$ac_ext <<EOF
1250 #line 1251 "configure"
1251 #include "confdefs.h"
1252 /* System header to define __stub macros and hopefully few prototypes,
1253 which can conflict with char $ac_func(); below. */
1255 /* Override any gcc2 internal prototype to avoid an error. */
1256 /* We use char because int might match the return type of a gcc2
1257 builtin and then its argument prototype would still apply. */
1262 /* The GNU C library defines this for functions which it implements
1263 to always fail with ENOSYS. Some functions are actually named
1264 something starting with __ and the normal name is an alias. */
1265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1273 if { (eval echo configure
:1274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1275 eval "ac_cv_func_$ac_func=yes"
1277 echo "configure: failed program was:" >&5
1278 cat conftest.
$ac_ext >&5
1280 eval "ac_cv_func_$ac_func=no"
1285 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1286 echo "$ac_t""yes" 1>&6
1287 cat >> confdefs.h
<<EOF
1288 #define CRAY_STACKSEG_END $ac_func
1293 echo "$ac_t""no" 1>&6
1299 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1300 echo "configure:1301: checking stack direction for C alloca" >&5
1301 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1302 echo $ac_n "(cached) $ac_c" 1>&6
1304 if test "$cross_compiling" = yes; then
1305 ac_cv_c_stack_direction
=0
1307 cat > conftest.
$ac_ext <<EOF
1308 #line 1309 "configure"
1309 #include "confdefs.h"
1310 find_stack_direction ()
1312 static char *addr = 0;
1317 return find_stack_direction ();
1320 return (&dummy > addr) ? 1 : -1;
1324 exit (find_stack_direction() < 0);
1327 if { (eval echo configure
:1328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1329 ac_cv_c_stack_direction
=1
1331 echo "configure: failed program was:" >&5
1332 cat conftest.
$ac_ext >&5
1334 ac_cv_c_stack_direction
=-1
1341 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1342 cat >> confdefs.h
<<EOF
1343 #define STACK_DIRECTION $ac_cv_c_stack_direction
1348 for ac_hdr
in unistd.h
1350 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1351 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1352 echo "configure:1353: checking for $ac_hdr" >&5
1353 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1354 echo $ac_n "(cached) $ac_c" 1>&6
1356 cat > conftest.
$ac_ext <<EOF
1357 #line 1358 "configure"
1358 #include "confdefs.h"
1361 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1362 { (eval echo configure
:1363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1363 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1364 if test -z "$ac_err"; then
1366 eval "ac_cv_header_$ac_safe=yes"
1369 echo "configure: failed program was:" >&5
1370 cat conftest.
$ac_ext >&5
1372 eval "ac_cv_header_$ac_safe=no"
1376 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1377 echo "$ac_t""yes" 1>&6
1378 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1379 cat >> confdefs.h
<<EOF
1380 #define $ac_tr_hdr 1
1384 echo "$ac_t""no" 1>&6
1388 for ac_func
in getpagesize
1390 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1391 echo "configure:1392: checking for $ac_func" >&5
1392 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1393 echo $ac_n "(cached) $ac_c" 1>&6
1395 cat > conftest.
$ac_ext <<EOF
1396 #line 1397 "configure"
1397 #include "confdefs.h"
1398 /* System header to define __stub macros and hopefully few prototypes,
1399 which can conflict with char $ac_func(); below. */
1401 /* Override any gcc2 internal prototype to avoid an error. */
1402 /* We use char because int might match the return type of a gcc2
1403 builtin and then its argument prototype would still apply. */
1408 /* The GNU C library defines this for functions which it implements
1409 to always fail with ENOSYS. Some functions are actually named
1410 something starting with __ and the normal name is an alias. */
1411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1419 if { (eval echo configure
:1420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1421 eval "ac_cv_func_$ac_func=yes"
1423 echo "configure: failed program was:" >&5
1424 cat conftest.
$ac_ext >&5
1426 eval "ac_cv_func_$ac_func=no"
1431 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1432 echo "$ac_t""yes" 1>&6
1433 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1434 cat >> confdefs.h
<<EOF
1435 #define $ac_tr_func 1
1439 echo "$ac_t""no" 1>&6
1443 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1444 echo "configure:1445: checking for working mmap" >&5
1445 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1446 echo $ac_n "(cached) $ac_c" 1>&6
1448 if test "$cross_compiling" = yes; then
1449 ac_cv_func_mmap_fixed_mapped
=no
1451 cat > conftest.
$ac_ext <<EOF
1452 #line 1453 "configure"
1453 #include "confdefs.h"
1455 /* Thanks to Mike Haertel and Jim Avera for this test.
1456 Here is a matrix of mmap possibilities:
1457 mmap private not fixed
1458 mmap private fixed at somewhere currently unmapped
1459 mmap private fixed at somewhere already mapped
1460 mmap shared not fixed
1461 mmap shared fixed at somewhere currently unmapped
1462 mmap shared fixed at somewhere already mapped
1463 For private mappings, we should verify that changes cannot be read()
1464 back from the file, nor mmap's back from the file at a different
1465 address. (There have been systems where private was not correctly
1466 implemented like the infamous i386 svr4.0, and systems where the
1467 VM page cache was not coherent with the filesystem buffer cache
1468 like early versions of FreeBSD and possibly contemporary NetBSD.)
1469 For shared mappings, we should conversely verify that changes get
1470 propogated back to all the places they're supposed to be.
1472 Grep wants private fixed already mapped.
1473 The main things grep needs to know about mmap are:
1474 * does it exist and is it safe to write into the mmap'd area
1475 * how to use it (BSD variants) */
1476 #include <sys/types.h>
1478 #include <sys/mman.h>
1480 /* This mess was copied from the GNU getpagesize.h. */
1481 #ifndef HAVE_GETPAGESIZE
1482 # ifdef HAVE_UNISTD_H
1483 # include <unistd.h>
1486 /* Assume that all systems that can run configure have sys/param.h. */
1487 # ifndef HAVE_SYS_PARAM_H
1488 # define HAVE_SYS_PARAM_H 1
1491 # ifdef _SC_PAGESIZE
1492 # define getpagesize() sysconf(_SC_PAGESIZE)
1493 # else /* no _SC_PAGESIZE */
1494 # ifdef HAVE_SYS_PARAM_H
1495 # include <sys/param.h>
1496 # ifdef EXEC_PAGESIZE
1497 # define getpagesize() EXEC_PAGESIZE
1498 # else /* no EXEC_PAGESIZE */
1500 # define getpagesize() NBPG * CLSIZE
1503 # endif /* no CLSIZE */
1504 # else /* no NBPG */
1506 # define getpagesize() NBPC
1507 # else /* no NBPC */
1509 # define getpagesize() PAGESIZE
1510 # endif /* PAGESIZE */
1511 # endif /* no NBPC */
1512 # endif /* no NBPG */
1513 # endif /* no EXEC_PAGESIZE */
1514 # else /* no HAVE_SYS_PARAM_H */
1515 # define getpagesize() 8192 /* punt totally */
1516 # endif /* no HAVE_SYS_PARAM_H */
1517 # endif /* no _SC_PAGESIZE */
1519 #endif /* no HAVE_GETPAGESIZE */
1522 extern "C" { void *malloc(unsigned); }
1530 char *data, *data2, *data3;
1534 pagesize = getpagesize();
1537 * First, make a file with some known garbage in it.
1539 data = malloc(pagesize);
1542 for (i = 0; i < pagesize; ++i)
1543 *(data + i) = rand();
1545 fd = creat("conftestmmap", 0600);
1548 if (write(fd, data, pagesize) != pagesize)
1553 * Next, try to mmap the file at a fixed address which
1554 * already has something else allocated at it. If we can,
1555 * also make sure that we see the same garbage.
1557 fd = open("conftestmmap", O_RDWR);
1560 data2 = malloc(2 * pagesize);
1563 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1564 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1565 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1567 for (i = 0; i < pagesize; ++i)
1568 if (*(data + i) != *(data2 + i))
1572 * Finally, make sure that changes to the mapped area
1573 * do not percolate back to the file as seen by read().
1574 * (This is a bug on some variants of i386 svr4.0.)
1576 for (i = 0; i < pagesize; ++i)
1577 *(data2 + i) = *(data2 + i) + 1;
1578 data3 = malloc(pagesize);
1581 if (read(fd, data3, pagesize) != pagesize)
1583 for (i = 0; i < pagesize; ++i)
1584 if (*(data + i) != *(data3 + i))
1587 unlink("conftestmmap");
1592 if { (eval echo configure
:1593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1594 ac_cv_func_mmap_fixed_mapped
=yes
1596 echo "configure: failed program was:" >&5
1597 cat conftest.
$ac_ext >&5
1599 ac_cv_func_mmap_fixed_mapped
=no
1606 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1607 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1608 cat >> confdefs.h
<<\EOF
1615 # autoconf.info says this should be called right after AC_INIT.
1619 for ac_dir
in `cd $srcdir;pwd`/..
/..
$srcdir/`cd $srcdir;pwd`/..
/..
; do
1620 if test -f $ac_dir/install-sh
; then
1622 ac_install_sh
="$ac_aux_dir/install-sh -c"
1624 elif test -f $ac_dir/install.sh
; then
1626 ac_install_sh
="$ac_aux_dir/install.sh -c"
1630 if test -z "$ac_aux_dir"; then
1631 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
1633 ac_config_guess
=$ac_aux_dir/config.guess
1634 ac_config_sub
=$ac_aux_dir/config.sub
1635 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1638 # Do some error checking and defaulting for the host and target type.
1640 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1643 # 1. You are not allowed to specify --host, --target, and nonopt at the
1645 # 2. Host defaults to nonopt.
1646 # 3. If nonopt is not specified, then host defaults to the current host,
1647 # as determined by config.guess.
1648 # 4. Target and build default to nonopt.
1649 # 5. If nonopt is not specified, then target and build default to host.
1651 # The aliases save the names the user supplied, while $host etc.
1652 # will get canonicalized.
1653 case $host---$target---$nonopt in
1654 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1655 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1659 # Make sure we can run config.sub.
1660 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1661 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1664 echo $ac_n "checking host system type""... $ac_c" 1>&6
1665 echo "configure:1666: checking host system type" >&5
1668 case "$host_alias" in
1672 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1673 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1675 *) host_alias
=$nonopt ;;
1679 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1680 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1681 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1682 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1683 echo "$ac_t""$host" 1>&6
1685 echo $ac_n "checking target system type""... $ac_c" 1>&6
1686 echo "configure:1687: checking target system type" >&5
1688 target_alias
=$target
1689 case "$target_alias" in
1692 NONE
) target_alias
=$host_alias ;;
1693 *) target_alias
=$nonopt ;;
1697 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1698 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1699 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1700 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1701 echo "$ac_t""$target" 1>&6
1703 echo $ac_n "checking build system type""... $ac_c" 1>&6
1704 echo "configure:1705: checking build system type" >&5
1707 case "$build_alias" in
1710 NONE
) build_alias
=$host_alias ;;
1711 *) build_alias
=$nonopt ;;
1715 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1716 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1717 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1718 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1719 echo "$ac_t""$build" 1>&6
1721 test "$host_alias" != "$target_alias" &&
1722 test "$program_prefix$program_suffix$program_transform_name" = \
1724 program_prefix
=${target_alias}-
1726 if test "$program_transform_name" = s
,x
,x
,; then
1727 program_transform_name
=
1729 # Double any \ or $. echo might interpret backslashes.
1730 cat <<\EOF_SED
> conftestsed
1731 s
,\\,\\\\,g
; s
,\$
,$$
,g
1733 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1736 test "$program_prefix" != NONE
&&
1737 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1738 # Use a double $ so make ignores it.
1739 test "$program_suffix" != NONE
&&
1740 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1742 # sed with no file args requires a program.
1743 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1745 # Extract the first word of "gcc", so it can be a program name with args.
1746 set dummy gcc
; ac_word
=$2
1747 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1748 echo "configure:1749: checking for $ac_word" >&5
1749 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1750 echo $ac_n "(cached) $ac_c" 1>&6
1752 if test -n "$CC"; then
1753 ac_cv_prog_CC
="$CC" # Let the user override the test.
1755 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1756 for ac_dir
in $PATH; do
1757 test -z "$ac_dir" && ac_dir
=.
1758 if test -f $ac_dir/$ac_word; then
1767 if test -n "$CC"; then
1768 echo "$ac_t""$CC" 1>&6
1770 echo "$ac_t""no" 1>&6
1773 if test -z "$CC"; then
1774 # Extract the first word of "cc", so it can be a program name with args.
1775 set dummy cc
; ac_word
=$2
1776 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1777 echo "configure:1778: checking for $ac_word" >&5
1778 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1779 echo $ac_n "(cached) $ac_c" 1>&6
1781 if test -n "$CC"; then
1782 ac_cv_prog_CC
="$CC" # Let the user override the test.
1784 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1786 for ac_dir
in $PATH; do
1787 test -z "$ac_dir" && ac_dir
=.
1788 if test -f $ac_dir/$ac_word; then
1789 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1790 ac_prog_rejected
=yes
1798 if test $ac_prog_rejected = yes; then
1799 # We found a bogon in the path, so make sure we never use it.
1800 set dummy
$ac_cv_prog_CC
1802 if test $# -gt 0; then
1803 # We chose a different compiler from the bogus one.
1804 # However, it has the same basename, so the bogon will be chosen
1805 # first if we set CC to just the basename; use the full file name.
1807 set dummy
"$ac_dir/$ac_word" "$@"
1815 if test -n "$CC"; then
1816 echo "$ac_t""$CC" 1>&6
1818 echo "$ac_t""no" 1>&6
1821 if test -z "$CC"; then
1822 case "`uname -s`" in
1824 # Extract the first word of "cl", so it can be a program name with args.
1825 set dummy cl
; ac_word
=$2
1826 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1827 echo "configure:1828: checking for $ac_word" >&5
1828 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1829 echo $ac_n "(cached) $ac_c" 1>&6
1831 if test -n "$CC"; then
1832 ac_cv_prog_CC
="$CC" # Let the user override the test.
1834 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1835 for ac_dir
in $PATH; do
1836 test -z "$ac_dir" && ac_dir
=.
1837 if test -f $ac_dir/$ac_word; then
1846 if test -n "$CC"; then
1847 echo "$ac_t""$CC" 1>&6
1849 echo "$ac_t""no" 1>&6
1854 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1857 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1858 echo "configure:1859: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1861 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1862 ac_cpp
='$CPP $CPPFLAGS'
1863 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1864 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1865 cross_compiling
=$ac_cv_prog_cc_cross
1867 cat > conftest.
$ac_ext <<EOF
1868 #line 1869 "configure"
1869 #include "confdefs.h"
1872 if { (eval echo configure
:1873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1873 ac_cv_prog_cc_works
=yes
1874 # If we can't run a trivial program, we are probably using a cross compiler.
1875 if (.
/conftest
; exit) 2>/dev
/null
; then
1876 ac_cv_prog_cc_cross
=no
1878 ac_cv_prog_cc_cross
=yes
1881 echo "configure: failed program was:" >&5
1882 cat conftest.
$ac_ext >&5
1883 ac_cv_prog_cc_works
=no
1887 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1888 if test $ac_cv_prog_cc_works = no
; then
1889 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1891 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1892 echo "configure:1893: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1893 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1894 cross_compiling
=$ac_cv_prog_cc_cross
1896 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1897 echo "configure:1898: checking whether we are using GNU C" >&5
1898 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1899 echo $ac_n "(cached) $ac_c" 1>&6
1901 cat > conftest.c
<<EOF
1906 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1913 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1915 if test $ac_cv_prog_gcc = yes; then
1921 ac_test_CFLAGS
="${CFLAGS+set}"
1922 ac_save_CFLAGS
="$CFLAGS"
1924 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1925 echo "configure:1926: checking whether ${CC-cc} accepts -g" >&5
1926 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1927 echo $ac_n "(cached) $ac_c" 1>&6
1929 echo 'void f(){}' > conftest.c
1930 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1939 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1940 if test "$ac_test_CFLAGS" = set; then
1941 CFLAGS
="$ac_save_CFLAGS"
1942 elif test $ac_cv_prog_cc_g = yes; then
1943 if test "$GCC" = yes; then
1949 if test "$GCC" = yes; then
1956 # Find a good install program. We prefer a C program (faster),
1957 # so one script is as good as another. But avoid the broken or
1958 # incompatible versions:
1959 # SysV /etc/install, /usr/sbin/install
1960 # SunOS /usr/etc/install
1961 # IRIX /sbin/install
1963 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1964 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1965 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1966 # ./install, which can be erroneously created by make from ./install.sh.
1967 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1968 echo "configure:1969: checking for a BSD compatible install" >&5
1969 if test -z "$INSTALL"; then
1970 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1971 echo $ac_n "(cached) $ac_c" 1>&6
1973 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1974 for ac_dir
in $PATH; do
1975 # Account for people who put trailing slashes in PATH elements.
1977 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1979 # OSF1 and SCO ODT 3.0 have their own names for install.
1980 # Don't use installbsd from OSF since it installs stuff as root
1982 for ac_prog
in ginstall scoinst
install; do
1983 if test -f $ac_dir/$ac_prog; then
1984 if test $ac_prog = install &&
1985 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1986 # AIX install. It has an incompatible calling convention.
1989 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2000 if test "${ac_cv_path_install+set}" = set; then
2001 INSTALL
="$ac_cv_path_install"
2003 # As a last resort, use the slow shell script. We don't cache a
2004 # path for INSTALL within a source directory, because that will
2005 # break other packages using the cache if that directory is
2006 # removed, or if the path is relative.
2007 INSTALL
="$ac_install_sh"
2010 echo "$ac_t""$INSTALL" 1>&6
2012 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2013 # It thinks the first close brace ends the variable substitution.
2014 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2016 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2019 # Put a plausible default for CC_FOR_BUILD in Makefile.
2020 if test "x$cross_compiling" = "xno"; then
2021 CC_FOR_BUILD
='$(CC)'
2031 # Extract the first word of "ranlib", so it can be a program name with args.
2032 set dummy ranlib
; ac_word
=$2
2033 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2034 echo "configure:2035: checking for $ac_word" >&5
2035 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2036 echo $ac_n "(cached) $ac_c" 1>&6
2038 if test -n "$RANLIB"; then
2039 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2041 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2042 for ac_dir
in $PATH; do
2043 test -z "$ac_dir" && ac_dir
=.
2044 if test -f $ac_dir/$ac_word; then
2045 ac_cv_prog_RANLIB
="ranlib"
2050 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2053 RANLIB
="$ac_cv_prog_RANLIB"
2054 if test -n "$RANLIB"; then
2055 echo "$ac_t""$RANLIB" 1>&6
2057 echo "$ac_t""no" 1>&6
2063 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2064 unistd.h values.h sys
/param.h
2066 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2067 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2068 echo "configure:2069: checking for $ac_hdr" >&5
2069 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2070 echo $ac_n "(cached) $ac_c" 1>&6
2072 cat > conftest.
$ac_ext <<EOF
2073 #line 2074 "configure"
2074 #include "confdefs.h"
2077 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2078 { (eval echo configure
:2079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2079 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2080 if test -z "$ac_err"; then
2082 eval "ac_cv_header_$ac_safe=yes"
2085 echo "configure: failed program was:" >&5
2086 cat conftest.
$ac_ext >&5
2088 eval "ac_cv_header_$ac_safe=no"
2092 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2093 echo "$ac_t""yes" 1>&6
2094 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2095 cat >> confdefs.h
<<EOF
2096 #define $ac_tr_hdr 1
2100 echo "$ac_t""no" 1>&6
2104 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2105 __argz_count __argz_stringify __argz_next
2107 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2108 echo "configure:2109: checking for $ac_func" >&5
2109 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2110 echo $ac_n "(cached) $ac_c" 1>&6
2112 cat > conftest.
$ac_ext <<EOF
2113 #line 2114 "configure"
2114 #include "confdefs.h"
2115 /* System header to define __stub macros and hopefully few prototypes,
2116 which can conflict with char $ac_func(); below. */
2118 /* Override any gcc2 internal prototype to avoid an error. */
2119 /* We use char because int might match the return type of a gcc2
2120 builtin and then its argument prototype would still apply. */
2125 /* The GNU C library defines this for functions which it implements
2126 to always fail with ENOSYS. Some functions are actually named
2127 something starting with __ and the normal name is an alias. */
2128 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2136 if { (eval echo configure
:2137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2138 eval "ac_cv_func_$ac_func=yes"
2140 echo "configure: failed program was:" >&5
2141 cat conftest.
$ac_ext >&5
2143 eval "ac_cv_func_$ac_func=no"
2148 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2149 echo "$ac_t""yes" 1>&6
2150 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2151 cat >> confdefs.h
<<EOF
2152 #define $ac_tr_func 1
2156 echo "$ac_t""no" 1>&6
2161 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2162 for ac_func
in stpcpy
2164 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2165 echo "configure:2166: checking for $ac_func" >&5
2166 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2167 echo $ac_n "(cached) $ac_c" 1>&6
2169 cat > conftest.
$ac_ext <<EOF
2170 #line 2171 "configure"
2171 #include "confdefs.h"
2172 /* System header to define __stub macros and hopefully few prototypes,
2173 which can conflict with char $ac_func(); below. */
2175 /* Override any gcc2 internal prototype to avoid an error. */
2176 /* We use char because int might match the return type of a gcc2
2177 builtin and then its argument prototype would still apply. */
2182 /* The GNU C library defines this for functions which it implements
2183 to always fail with ENOSYS. Some functions are actually named
2184 something starting with __ and the normal name is an alias. */
2185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2193 if { (eval echo configure
:2194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2195 eval "ac_cv_func_$ac_func=yes"
2197 echo "configure: failed program was:" >&5
2198 cat conftest.
$ac_ext >&5
2200 eval "ac_cv_func_$ac_func=no"
2205 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2206 echo "$ac_t""yes" 1>&6
2207 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2208 cat >> confdefs.h
<<EOF
2209 #define $ac_tr_func 1
2213 echo "$ac_t""no" 1>&6
2218 if test "${ac_cv_func_stpcpy}" = "yes"; then
2219 cat >> confdefs.h
<<\EOF
2220 #define HAVE_STPCPY 1
2225 if test $ac_cv_header_locale_h = yes; then
2226 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2227 echo "configure:2228: checking for LC_MESSAGES" >&5
2228 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2229 echo $ac_n "(cached) $ac_c" 1>&6
2231 cat > conftest.
$ac_ext <<EOF
2232 #line 2233 "configure"
2233 #include "confdefs.h"
2239 if { (eval echo configure
:2240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2241 am_cv_val_LC_MESSAGES
=yes
2243 echo "configure: failed program was:" >&5
2244 cat conftest.
$ac_ext >&5
2246 am_cv_val_LC_MESSAGES
=no
2251 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2252 if test $am_cv_val_LC_MESSAGES = yes; then
2253 cat >> confdefs.h
<<\EOF
2254 #define HAVE_LC_MESSAGES 1
2259 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2260 echo "configure:2261: checking whether NLS is requested" >&5
2261 # Check whether --enable-nls or --disable-nls was given.
2262 if test "${enable_nls+set}" = set; then
2263 enableval
="$enable_nls"
2269 echo "$ac_t""$USE_NLS" 1>&6
2272 USE_INCLUDED_LIBINTL
=no
2274 if test "$USE_NLS" = "yes"; then
2275 cat >> confdefs.h
<<\EOF
2276 #define ENABLE_NLS 1
2279 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2280 echo "configure:2281: checking whether included gettext is requested" >&5
2281 # Check whether --with-included-gettext or --without-included-gettext was given.
2282 if test "${with_included_gettext+set}" = set; then
2283 withval
="$with_included_gettext"
2284 nls_cv_force_use_gnu_gettext
=$withval
2286 nls_cv_force_use_gnu_gettext
=no
2289 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2291 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2292 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2294 nls_cv_header_libgt
=
2297 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2298 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2299 echo "configure:2300: checking for libintl.h" >&5
2300 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2301 echo $ac_n "(cached) $ac_c" 1>&6
2303 cat > conftest.
$ac_ext <<EOF
2304 #line 2305 "configure"
2305 #include "confdefs.h"
2306 #include <libintl.h>
2308 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2309 { (eval echo configure
:2310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2310 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2311 if test -z "$ac_err"; then
2313 eval "ac_cv_header_$ac_safe=yes"
2316 echo "configure: failed program was:" >&5
2317 cat conftest.
$ac_ext >&5
2319 eval "ac_cv_header_$ac_safe=no"
2323 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2324 echo "$ac_t""yes" 1>&6
2325 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2326 echo "configure:2327: checking for gettext in libc" >&5
2327 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2328 echo $ac_n "(cached) $ac_c" 1>&6
2330 cat > conftest.
$ac_ext <<EOF
2331 #line 2332 "configure"
2332 #include "confdefs.h"
2333 #include <libintl.h>
2335 return (int) gettext ("")
2338 if { (eval echo configure
:2339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2340 gt_cv_func_gettext_libc
=yes
2342 echo "configure: failed program was:" >&5
2343 cat conftest.
$ac_ext >&5
2345 gt_cv_func_gettext_libc
=no
2350 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2352 if test "$gt_cv_func_gettext_libc" != "yes"; then
2353 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2354 echo "configure:2355: checking for bindtextdomain in -lintl" >&5
2355 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2356 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2357 echo $ac_n "(cached) $ac_c" 1>&6
2359 ac_save_LIBS
="$LIBS"
2361 cat > conftest.
$ac_ext <<EOF
2362 #line 2363 "configure"
2363 #include "confdefs.h"
2364 /* Override any gcc2 internal prototype to avoid an error. */
2365 /* We use char because int might match the return type of a gcc2
2366 builtin and then its argument prototype would still apply. */
2367 char bindtextdomain();
2373 if { (eval echo configure
:2374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2375 eval "ac_cv_lib_$ac_lib_var=yes"
2377 echo "configure: failed program was:" >&5
2378 cat conftest.
$ac_ext >&5
2380 eval "ac_cv_lib_$ac_lib_var=no"
2383 LIBS
="$ac_save_LIBS"
2386 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2387 echo "$ac_t""yes" 1>&6
2388 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2389 echo "configure:2390: checking for gettext in libintl" >&5
2390 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2391 echo $ac_n "(cached) $ac_c" 1>&6
2393 cat > conftest.
$ac_ext <<EOF
2394 #line 2395 "configure"
2395 #include "confdefs.h"
2398 return (int) gettext ("")
2401 if { (eval echo configure
:2402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2403 gt_cv_func_gettext_libintl
=yes
2405 echo "configure: failed program was:" >&5
2406 cat conftest.
$ac_ext >&5
2408 gt_cv_func_gettext_libintl
=no
2413 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2415 echo "$ac_t""no" 1>&6
2420 if test "$gt_cv_func_gettext_libc" = "yes" \
2421 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2422 cat >> confdefs.h
<<\EOF
2423 #define HAVE_GETTEXT 1
2426 # Extract the first word of "msgfmt", so it can be a program name with args.
2427 set dummy msgfmt
; ac_word
=$2
2428 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2429 echo "configure:2430: checking for $ac_word" >&5
2430 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2431 echo $ac_n "(cached) $ac_c" 1>&6
2435 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2438 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2439 for ac_dir
in $PATH; do
2440 test -z "$ac_dir" && ac_dir
=.
2441 if test -f $ac_dir/$ac_word; then
2442 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2443 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2449 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2453 MSGFMT
="$ac_cv_path_MSGFMT"
2454 if test -n "$MSGFMT"; then
2455 echo "$ac_t""$MSGFMT" 1>&6
2457 echo "$ac_t""no" 1>&6
2459 if test "$MSGFMT" != "no"; then
2460 for ac_func
in dcgettext
2462 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2463 echo "configure:2464: checking for $ac_func" >&5
2464 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2465 echo $ac_n "(cached) $ac_c" 1>&6
2467 cat > conftest.
$ac_ext <<EOF
2468 #line 2469 "configure"
2469 #include "confdefs.h"
2470 /* System header to define __stub macros and hopefully few prototypes,
2471 which can conflict with char $ac_func(); below. */
2473 /* Override any gcc2 internal prototype to avoid an error. */
2474 /* We use char because int might match the return type of a gcc2
2475 builtin and then its argument prototype would still apply. */
2480 /* The GNU C library defines this for functions which it implements
2481 to always fail with ENOSYS. Some functions are actually named
2482 something starting with __ and the normal name is an alias. */
2483 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2491 if { (eval echo configure
:2492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2493 eval "ac_cv_func_$ac_func=yes"
2495 echo "configure: failed program was:" >&5
2496 cat conftest.
$ac_ext >&5
2498 eval "ac_cv_func_$ac_func=no"
2503 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2504 echo "$ac_t""yes" 1>&6
2505 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2506 cat >> confdefs.h
<<EOF
2507 #define $ac_tr_func 1
2511 echo "$ac_t""no" 1>&6
2515 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2516 set dummy gmsgfmt
; ac_word
=$2
2517 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2518 echo "configure:2519: checking for $ac_word" >&5
2519 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2520 echo $ac_n "(cached) $ac_c" 1>&6
2524 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2527 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2530 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2531 for ac_dir
in $PATH; do
2532 test -z "$ac_dir" && ac_dir
=.
2533 if test -f $ac_dir/$ac_word; then
2534 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2539 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2543 GMSGFMT
="$ac_cv_path_GMSGFMT"
2544 if test -n "$GMSGFMT"; then
2545 echo "$ac_t""$GMSGFMT" 1>&6
2547 echo "$ac_t""no" 1>&6
2550 # Extract the first word of "xgettext", so it can be a program name with args.
2551 set dummy xgettext
; ac_word
=$2
2552 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2553 echo "configure:2554: checking for $ac_word" >&5
2554 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2555 echo $ac_n "(cached) $ac_c" 1>&6
2559 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2562 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2563 for ac_dir
in $PATH; do
2564 test -z "$ac_dir" && ac_dir
=.
2565 if test -f $ac_dir/$ac_word; then
2566 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2567 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2573 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2577 XGETTEXT
="$ac_cv_path_XGETTEXT"
2578 if test -n "$XGETTEXT"; then
2579 echo "$ac_t""$XGETTEXT" 1>&6
2581 echo "$ac_t""no" 1>&6
2584 cat > conftest.
$ac_ext <<EOF
2585 #line 2586 "configure"
2586 #include "confdefs.h"
2589 extern int _nl_msg_cat_cntr;
2590 return _nl_msg_cat_cntr
2593 if { (eval echo configure
:2594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2598 echo "configure: failed program was:" >&5
2599 cat conftest.
$ac_ext >&5
2610 echo "$ac_t""no" 1>&6
2615 if test "$CATOBJEXT" = "NONE"; then
2616 nls_cv_use_gnu_gettext
=yes
2620 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2621 INTLOBJS
="\$(GETTOBJS)"
2622 # Extract the first word of "msgfmt", so it can be a program name with args.
2623 set dummy msgfmt
; ac_word
=$2
2624 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2625 echo "configure:2626: checking for $ac_word" >&5
2626 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2627 echo $ac_n "(cached) $ac_c" 1>&6
2631 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2634 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2635 for ac_dir
in $PATH; do
2636 test -z "$ac_dir" && ac_dir
=.
2637 if test -f $ac_dir/$ac_word; then
2638 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2639 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2645 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2649 MSGFMT
="$ac_cv_path_MSGFMT"
2650 if test -n "$MSGFMT"; then
2651 echo "$ac_t""$MSGFMT" 1>&6
2653 echo "$ac_t""no" 1>&6
2656 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2657 set dummy gmsgfmt
; ac_word
=$2
2658 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2659 echo "configure:2660: checking for $ac_word" >&5
2660 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2661 echo $ac_n "(cached) $ac_c" 1>&6
2665 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2668 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2671 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2672 for ac_dir
in $PATH; do
2673 test -z "$ac_dir" && ac_dir
=.
2674 if test -f $ac_dir/$ac_word; then
2675 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2680 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2684 GMSGFMT
="$ac_cv_path_GMSGFMT"
2685 if test -n "$GMSGFMT"; then
2686 echo "$ac_t""$GMSGFMT" 1>&6
2688 echo "$ac_t""no" 1>&6
2691 # Extract the first word of "xgettext", so it can be a program name with args.
2692 set dummy xgettext
; ac_word
=$2
2693 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2694 echo "configure:2695: checking for $ac_word" >&5
2695 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2696 echo $ac_n "(cached) $ac_c" 1>&6
2700 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2703 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2704 for ac_dir
in $PATH; do
2705 test -z "$ac_dir" && ac_dir
=.
2706 if test -f $ac_dir/$ac_word; then
2707 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2708 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2714 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2718 XGETTEXT
="$ac_cv_path_XGETTEXT"
2719 if test -n "$XGETTEXT"; then
2720 echo "$ac_t""$XGETTEXT" 1>&6
2722 echo "$ac_t""no" 1>&6
2726 USE_INCLUDED_LIBINTL
=yes
2730 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2732 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2733 nls_cv_header_intl
=libintl.h
2734 nls_cv_header_libgt
=libgettext.h
2737 if test "$XGETTEXT" != ":"; then
2738 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2741 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2746 # We need to process the po/ directory.
2750 nls_cv_header_intl
=libintl.h
2751 nls_cv_header_libgt
=libgettext.h
2754 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2755 # because some of the sources are only built for this goal.
2756 if test "$PACKAGE" = gettext; then
2758 USE_INCLUDED_LIBINTL
=yes
2761 for lang
in $ALL_LINGUAS; do
2762 GMOFILES
="$GMOFILES $lang.gmo"
2763 POFILES
="$POFILES $lang.po"
2779 if test "x$CATOBJEXT" != "x"; then
2780 if test "x$ALL_LINGUAS" = "x"; then
2783 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2784 echo "configure:2785: checking for catalogs to be installed" >&5
2786 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2787 case "$ALL_LINGUAS" in
2788 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2791 LINGUAS
=$NEW_LINGUAS
2792 echo "$ac_t""$LINGUAS" 1>&6
2795 if test -n "$LINGUAS"; then
2796 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2800 if test $ac_cv_header_locale_h = yes; then
2801 INCLUDE_LOCALE_H
="#include <locale.h>"
2804 /* The system does not provide the header <locale.h>. Take care yourself. */"
2808 if test -f $srcdir/po2tbl.
sed.
in; then
2809 if test "$CATOBJEXT" = ".cat"; then
2810 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2811 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2812 echo "configure:2813: checking for linux/version.h" >&5
2813 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2814 echo $ac_n "(cached) $ac_c" 1>&6
2816 cat > conftest.
$ac_ext <<EOF
2817 #line 2818 "configure"
2818 #include "confdefs.h"
2819 #include <linux/version.h>
2821 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2822 { (eval echo configure
:2823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2823 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2824 if test -z "$ac_err"; then
2826 eval "ac_cv_header_$ac_safe=yes"
2829 echo "configure: failed program was:" >&5
2830 cat conftest.
$ac_ext >&5
2832 eval "ac_cv_header_$ac_safe=no"
2836 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2837 echo "$ac_t""yes" 1>&6
2840 echo "$ac_t""no" 1>&6
2845 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2847 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2848 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2851 if test "$PACKAGE" = "gettext"; then
2861 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2867 if test -d $srcdir/po
; then
2868 test -d po || mkdir po
2869 if test "x$srcdir" != "x."; then
2870 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2871 posrcprefix
="$srcdir/"
2873 posrcprefix
="../$srcdir/"
2879 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2880 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2884 # Check for common headers.
2885 # FIXME: Seems to me this can cause problems for i386-windows hosts.
2886 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
2887 for ac_hdr
in stdlib.h string.h
strings.h unistd.h
time.h
2889 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2890 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2891 echo "configure:2892: checking for $ac_hdr" >&5
2892 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2893 echo $ac_n "(cached) $ac_c" 1>&6
2895 cat > conftest.
$ac_ext <<EOF
2896 #line 2897 "configure"
2897 #include "confdefs.h"
2900 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2901 { (eval echo configure
:2902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2902 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2903 if test -z "$ac_err"; then
2905 eval "ac_cv_header_$ac_safe=yes"
2908 echo "configure: failed program was:" >&5
2909 cat conftest.
$ac_ext >&5
2911 eval "ac_cv_header_$ac_safe=no"
2915 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2916 echo "$ac_t""yes" 1>&6
2917 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2918 cat >> confdefs.h
<<EOF
2919 #define $ac_tr_hdr 1
2923 echo "$ac_t""no" 1>&6
2927 for ac_hdr
in sys
/time.h sys
/resource.h
2929 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2930 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2931 echo "configure:2932: checking for $ac_hdr" >&5
2932 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2933 echo $ac_n "(cached) $ac_c" 1>&6
2935 cat > conftest.
$ac_ext <<EOF
2936 #line 2937 "configure"
2937 #include "confdefs.h"
2940 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2941 { (eval echo configure
:2942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2942 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2943 if test -z "$ac_err"; then
2945 eval "ac_cv_header_$ac_safe=yes"
2948 echo "configure: failed program was:" >&5
2949 cat conftest.
$ac_ext >&5
2951 eval "ac_cv_header_$ac_safe=no"
2955 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2956 echo "$ac_t""yes" 1>&6
2957 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2958 cat >> confdefs.h
<<EOF
2959 #define $ac_tr_hdr 1
2963 echo "$ac_t""no" 1>&6
2967 for ac_hdr
in fcntl.h fpu_control.h
2969 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2970 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2971 echo "configure:2972: checking for $ac_hdr" >&5
2972 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2973 echo $ac_n "(cached) $ac_c" 1>&6
2975 cat > conftest.
$ac_ext <<EOF
2976 #line 2977 "configure"
2977 #include "confdefs.h"
2980 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2981 { (eval echo configure
:2982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2982 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2983 if test -z "$ac_err"; then
2985 eval "ac_cv_header_$ac_safe=yes"
2988 echo "configure: failed program was:" >&5
2989 cat conftest.
$ac_ext >&5
2991 eval "ac_cv_header_$ac_safe=no"
2995 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2996 echo "$ac_t""yes" 1>&6
2997 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2998 cat >> confdefs.h
<<EOF
2999 #define $ac_tr_hdr 1
3003 echo "$ac_t""no" 1>&6
3007 for ac_hdr
in dlfcn.h errno.h sys
/stat.h
3009 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3010 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3011 echo "configure:3012: checking for $ac_hdr" >&5
3012 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3013 echo $ac_n "(cached) $ac_c" 1>&6
3015 cat > conftest.
$ac_ext <<EOF
3016 #line 3017 "configure"
3017 #include "confdefs.h"
3020 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3021 { (eval echo configure
:3022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3022 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3023 if test -z "$ac_err"; then
3025 eval "ac_cv_header_$ac_safe=yes"
3028 echo "configure: failed program was:" >&5
3029 cat conftest.
$ac_ext >&5
3031 eval "ac_cv_header_$ac_safe=no"
3035 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3036 echo "$ac_t""yes" 1>&6
3037 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3038 cat >> confdefs.h
<<EOF
3039 #define $ac_tr_hdr 1
3043 echo "$ac_t""no" 1>&6
3047 for ac_func
in getrusage
time sigaction __setfpucw
3049 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3050 echo "configure:3051: checking for $ac_func" >&5
3051 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3052 echo $ac_n "(cached) $ac_c" 1>&6
3054 cat > conftest.
$ac_ext <<EOF
3055 #line 3056 "configure"
3056 #include "confdefs.h"
3057 /* System header to define __stub macros and hopefully few prototypes,
3058 which can conflict with char $ac_func(); below. */
3060 /* Override any gcc2 internal prototype to avoid an error. */
3061 /* We use char because int might match the return type of a gcc2
3062 builtin and then its argument prototype would still apply. */
3067 /* The GNU C library defines this for functions which it implements
3068 to always fail with ENOSYS. Some functions are actually named
3069 something starting with __ and the normal name is an alias. */
3070 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3078 if { (eval echo configure
:3079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3080 eval "ac_cv_func_$ac_func=yes"
3082 echo "configure: failed program was:" >&5
3083 cat conftest.
$ac_ext >&5
3085 eval "ac_cv_func_$ac_func=no"
3090 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3091 echo "$ac_t""yes" 1>&6
3092 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3093 cat >> confdefs.h
<<EOF
3094 #define $ac_tr_func 1
3098 echo "$ac_t""no" 1>&6
3103 # Check for socket libraries
3104 echo $ac_n "checking for bind in -lsocket""... $ac_c" 1>&6
3105 echo "configure:3106: checking for bind in -lsocket" >&5
3106 ac_lib_var
=`echo socket'_'bind | sed 'y%./+-%__p_%'`
3107 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3108 echo $ac_n "(cached) $ac_c" 1>&6
3110 ac_save_LIBS
="$LIBS"
3111 LIBS
="-lsocket $LIBS"
3112 cat > conftest.
$ac_ext <<EOF
3113 #line 3114 "configure"
3114 #include "confdefs.h"
3115 /* Override any gcc2 internal prototype to avoid an error. */
3116 /* We use char because int might match the return type of a gcc2
3117 builtin and then its argument prototype would still apply. */
3124 if { (eval echo configure
:3125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3126 eval "ac_cv_lib_$ac_lib_var=yes"
3128 echo "configure: failed program was:" >&5
3129 cat conftest.
$ac_ext >&5
3131 eval "ac_cv_lib_$ac_lib_var=no"
3134 LIBS
="$ac_save_LIBS"
3137 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3138 echo "$ac_t""yes" 1>&6
3139 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3140 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3141 cat >> confdefs.h
<<EOF
3142 #define $ac_tr_lib 1
3145 LIBS
="-lsocket $LIBS"
3148 echo "$ac_t""no" 1>&6
3151 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3152 echo "configure:3153: checking for gethostbyname in -lnsl" >&5
3153 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3154 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3155 echo $ac_n "(cached) $ac_c" 1>&6
3157 ac_save_LIBS
="$LIBS"
3159 cat > conftest.
$ac_ext <<EOF
3160 #line 3161 "configure"
3161 #include "confdefs.h"
3162 /* Override any gcc2 internal prototype to avoid an error. */
3163 /* We use char because int might match the return type of a gcc2
3164 builtin and then its argument prototype would still apply. */
3165 char gethostbyname();
3171 if { (eval echo configure
:3172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3173 eval "ac_cv_lib_$ac_lib_var=yes"
3175 echo "configure: failed program was:" >&5
3176 cat conftest.
$ac_ext >&5
3178 eval "ac_cv_lib_$ac_lib_var=no"
3181 LIBS
="$ac_save_LIBS"
3184 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3185 echo "$ac_t""yes" 1>&6
3186 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3187 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3188 cat >> confdefs.h
<<EOF
3189 #define $ac_tr_lib 1
3195 echo "$ac_t""no" 1>&6
3199 .
${srcdir}/..
/..
/bfd
/configure.
host
3203 USE_MAINTAINER_MODE
=no
3204 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3205 if test "${enable_maintainer_mode+set}" = set; then
3206 enableval
="$enable_maintainer_mode"
3207 case "${enableval}" in
3208 yes) MAINT
="" USE_MAINTAINER_MODE
=yes ;;
3210 *) { echo "configure: error: "--enable-maintainer-mode does not take a value
"" 1>&2; exit 1; }; MAINT
="#" ;;
3212 if test x
"$silent" != x
"yes" && test x
"$MAINT" = x
""; then
3213 echo "Setting maintainer mode" 6>&1
3221 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
3222 if test "${enable_sim_bswap+set}" = set; then
3223 enableval
="$enable_sim_bswap"
3224 case "${enableval}" in
3225 yes) sim_bswap
="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
3226 no
) sim_bswap
="-DWITH_BSWAP=0";;
3227 *) { echo "configure: error: "--enable-sim-bswap does not take a value
"" 1>&2; exit 1; }; sim_bswap
="";;
3229 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
3230 echo "Setting bswap flags = $sim_bswap" 6>&1
3238 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
3239 if test "${enable_sim_cflags+set}" = set; then
3240 enableval
="$enable_sim_cflags"
3241 case "${enableval}" in
3242 yes) sim_cflags
="-O2 -fomit-frame-pointer";;
3243 trace
) { echo "configure: error: "Please use
--enable-sim-debug instead.
"" 1>&2; exit 1; }; sim_cflags
="";;
3245 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3247 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
3248 echo "Setting sim cflags = $sim_cflags" 6>&1
3256 # Check whether --enable-sim-debug or --disable-sim-debug was given.
3257 if test "${enable_sim_debug+set}" = set; then
3258 enableval
="$enable_sim_debug"
3259 case "${enableval}" in
3260 yes) sim_debug
="-DDEBUG=7 -DWITH_DEBUG=7";;
3261 no
) sim_debug
="-DDEBUG=0 -DWITH_DEBUG=0";;
3262 *) sim_debug
="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
3264 if test x
"$silent" != x
"yes" && test x
"$sim_debug" != x
""; then
3265 echo "Setting sim debug = $sim_debug" 6>&1
3273 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
3274 if test "${enable_sim_stdio+set}" = set; then
3275 enableval
="$enable_sim_stdio"
3276 case "${enableval}" in
3277 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
3278 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
3279 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-stdio"" 1>&2; exit 1; }; sim_stdio
="";;
3281 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
3282 echo "Setting stdio flags = $sim_stdio" 6>&1
3290 # Check whether --enable-sim-trace or --disable-sim-trace was given.
3291 if test "${enable_sim_trace+set}" = set; then
3292 enableval
="$enable_sim_trace"
3293 case "${enableval}" in
3294 yes) sim_trace
="-DTRACE=1 -DWITH_TRACE=-1";;
3295 no
) sim_trace
="-DTRACE=0 -DWITH_TRACE=0";;
3297 sim_trace
="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
3300 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
3301 if test x
"$sim_trace" = x
; then
3302 sim_trace
="-DWITH_TRACE='(TRACE_$x"
3304 sim_trace
="${sim_trace}|TRACE_$x"
3307 sim_trace
="$sim_trace)'" ;;
3309 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
3310 echo "Setting sim trace = $sim_trace" 6>&1
3318 # Check whether --enable-sim-profile or --disable-sim-profile was given.
3319 if test "${enable_sim_profile+set}" = set; then
3320 enableval
="$enable_sim_profile"
3321 case "${enableval}" in
3322 yes) sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1";;
3323 no
) sim_profile
="-DPROFILE=0 -DWITH_PROFILE=0";;
3325 sim_profile
="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
3328 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
3329 if test x
"$sim_profile" = x
; then
3330 sim_profile
="-DWITH_PROFILE='(PROFILE_$x"
3332 sim_profile
="${sim_profile}|PROFILE_$x"
3335 sim_profile
="$sim_profile)'" ;;
3337 if test x
"$silent" != x
"yes" && test x
"$sim_profile" != x
""; then
3338 echo "Setting sim profile = $sim_profile" 6>&1
3346 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3347 echo "configure:3348: checking return type of signal handlers" >&5
3348 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3349 echo $ac_n "(cached) $ac_c" 1>&6
3351 cat > conftest.
$ac_ext <<EOF
3352 #line 3353 "configure"
3353 #include "confdefs.h"
3354 #include <sys/types.h>
3360 extern "C" void (*signal (int, void (*)(int)))(int);
3362 void (*signal ()) ();
3369 if { (eval echo configure
:3370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3371 ac_cv_type_signal
=void
3373 echo "configure: failed program was:" >&5
3374 cat conftest.
$ac_ext >&5
3376 ac_cv_type_signal
=int
3381 echo "$ac_t""$ac_cv_type_signal" 1>&6
3382 cat >> confdefs.h
<<EOF
3383 #define RETSIGTYPE $ac_cv_type_signal
3388 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3389 echo "configure:3390: checking for executable suffix" >&5
3390 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
3391 echo $ac_n "(cached) $ac_c" 1>&6
3393 if test "$CYGWIN32" = yes; then
3396 cat > am_c_test.c
<< 'EOF'
3398 /* Nothing needed here
*/
3401 ${CC-cc} -o am_c_test
$CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c
$LIBS 1>&5
3402 am_cv_exeext
=`ls am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//`
3406 test x
"${am_cv_exeext}" = x
&& am_cv_exeext
=no
3409 test x
"${am_cv_exeext}" != xno
&& EXEEXT
=${am_cv_exeext}
3410 echo "$ac_t""${am_cv_exeext}" 1>&6
3416 sim_link_links
=tconfig.h
3417 if test -f ${srcdir}/tconfig.
in
3419 sim_link_files
=tconfig.
in
3421 sim_link_files
=..
/common
/tconfig.
in
3424 # targ-vals.def points to the libc macro description file.
3426 *-*-*) TARG_VALS_DEF
=..
/common
/nltvals.def
;;
3428 sim_link_files
="${sim_link_files} ${TARG_VALS_DEF}"
3429 sim_link_links
="${sim_link_links} targ-vals.def"
3434 default_sim_inline
=""
3435 # Check whether --enable-sim-inline or --disable-sim-inline was given.
3436 if test "${enable_sim_inline+set}" = set; then
3437 enableval
="$enable_sim_inline"
3439 case "$enableval" in
3440 no
) sim_inline
="-DDEFAULT_INLINE=0";;
3441 0) sim_inline
="-DDEFAULT_INLINE=0";;
3442 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_C_INLINE";;
3443 1) sim_inline
="-DDEFAULT_INLINE=INLINE_LOCALS";;
3444 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
3447 *_INLINE
=*) new_flag
="-D$x";;
3448 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
3449 *_INLINE
) new_flag
="-D$x=ALL_C_INLINE";;
3450 *) new_flag
="-D$x""_INLINE=ALL_C_INLINE";;
3452 if test x
"$sim_inline" = x
""; then
3453 sim_inline
="$new_flag"
3455 sim_inline
="$sim_inline $new_flag"
3459 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
3460 echo "Setting inline flags = $sim_inline" 6>&1
3464 if test "x$cross_compiling" = "xno"; then
3465 if test x
"$GCC" != "x" -a x
"${default_sim_inline}" != "x" ; then
3466 sim_inline
="${default_sim_inline}"
3467 if test x
"$silent" != x
"yes"; then
3468 echo "Setting inline flags = $sim_inline" 6>&1
3474 sim_inline
="-DDEFAULT_INLINE=0"
3478 wire_alignment
="NONSTRICT_ALIGNMENT"
3479 default_alignment
=""
3481 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
3482 if test "${enable_sim_alignment+set}" = set; then
3483 enableval
="$enable_sim_alignment"
3484 case "${enableval}" in
3485 strict | STRICT
) sim_alignment
="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
3486 nonstrict | NONSTRICT
) sim_alignment
="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
3487 forced | FORCED
) sim_alignment
="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
3488 yes) if test x
"$wire_alignment" != x
; then
3489 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
3491 if test x
"$default_alignment" != x
; then
3492 sim_alignment
="-DWITH_ALIGNMENT=${default_alignment}"
3494 echo "No hard-wired alignment for target $target" 1>&6
3495 sim_alignment
="-DWITH_ALIGNMENT=0"
3498 no
) if test x
"$default_alignment" != x
; then
3499 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
3501 if test x
"$wire_alignment" != x
; then
3502 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
3504 echo "No default alignment for target $target" 1>&6
3505 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=0"
3508 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-alignment"" 1>&2; exit 1; }; sim_alignment
="";;
3510 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
3511 echo "Setting alignment flags = $sim_alignment" 6>&1
3514 if test x
"$default_alignment" != x
; then
3515 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
3517 if test x
"$wire_alignment" != x
; then
3518 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
3526 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
3527 if test "${enable_sim_hostendian+set}" = set; then
3528 enableval
="$enable_sim_hostendian"
3529 case "${enableval}" in
3530 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
3531 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
3532 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
3533 *) { echo "configure: error: "Unknown value
$enableval for --enable-sim-hostendian"" 1>&2; exit 1; }; sim_hostendian
="";;
3535 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
3536 echo "Setting hostendian flags = $sim_hostendian" 6>&1
3540 if test "x$cross_compiling" = "xno"; then
3541 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3542 echo "configure:3543: checking whether byte ordering is bigendian" >&5
3543 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3544 echo $ac_n "(cached) $ac_c" 1>&6
3546 ac_cv_c_bigendian
=unknown
3547 # See if sys/param.h defines the BYTE_ORDER macro.
3548 cat > conftest.
$ac_ext <<EOF
3549 #line 3550 "configure"
3550 #include "confdefs.h"
3551 #include <sys/types.h>
3552 #include <sys/param.h>
3555 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3560 if { (eval echo configure
:3561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3562 # It does; now see whether it defined to BIG_ENDIAN or not.
3563 cat > conftest.
$ac_ext <<EOF
3564 #line 3565 "configure"
3565 #include "confdefs.h"
3566 #include <sys/types.h>
3567 #include <sys/param.h>
3570 #if BYTE_ORDER != BIG_ENDIAN
3575 if { (eval echo configure
:3576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3577 ac_cv_c_bigendian
=yes
3579 echo "configure: failed program was:" >&5
3580 cat conftest.
$ac_ext >&5
3582 ac_cv_c_bigendian
=no
3586 echo "configure: failed program was:" >&5
3587 cat conftest.
$ac_ext >&5
3590 if test $ac_cv_c_bigendian = unknown
; then
3591 if test "$cross_compiling" = yes; then
3592 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3594 cat > conftest.
$ac_ext <<EOF
3595 #line 3596 "configure"
3596 #include "confdefs.h"
3598 /* Are we little or big endian? From Harbison&Steele. */
3602 char c[sizeof (long)];
3605 exit (u.c[sizeof (long) - 1] == 1);
3608 if { (eval echo configure
:3609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3610 ac_cv_c_bigendian
=no
3612 echo "configure: failed program was:" >&5
3613 cat conftest.
$ac_ext >&5
3615 ac_cv_c_bigendian
=yes
3623 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3624 if test $ac_cv_c_bigendian = yes; then
3625 cat >> confdefs.h
<<\EOF
3626 #define WORDS_BIGENDIAN 1
3631 if test $ac_cv_c_bigendian = yes; then
3632 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
3634 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
3637 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
3642 # Check whether --enable-build-warnings or --disable-build-warnings was given.
3643 if test "${enable_build_warnings+set}" = set; then
3644 enableval
="$enable_build_warnings"
3645 build_warnings
="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations"
3646 case "${enableval}" in
3648 no
) build_warnings
="-w";;
3649 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
3650 build_warnings
="${build_warnings} ${t}";;
3651 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
3652 build_warnings
="${t} ${build_warnings}";;
3653 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3655 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
3656 echo "Setting warning flags = $build_warnings" 6>&1
3665 # Instead of defining a `subtarget' macro, code should be checking
3666 # the value of {STATE,CPU}_ARCHITECTURE to identify the architecture
3670 # start-sanitize-vr4xxx
3671 mips64vr4xxx
*-*-*) SIM_SUBTARGET
="-DTARGET_ENABLE_FR=1" ;;
3672 # end-sanitize-vr4xxx
3673 # start-sanitize-tx19
3674 mips
*tx19
*) SIM_SUBTARGET
="-DSUBTARGET_R3900=1";;
3676 mips64vr5xxx
*-*-*) SIM_SUBTARGET
="-DTARGET_ENABLE_FR=1" ;;
3677 mips
*tx39
*) SIM_SUBTARGET
="-DSUBTARGET_R3900=1";;
3678 *) SIM_SUBTARGET
="";;
3685 # Select the byte order of the target
3690 # start-sanitize-tx19
3691 mips
*tx19
*) default_endian
=BIG_ENDIAN
;;
3693 # start-sanitize-r5900
3694 mips64r59
*-*-*) mips_endian
=LITTLE_ENDIAN
;;
3695 # end-sanitize-r5900
3696 mips64el
*-*-*) mips_endian
=LITTLE_ENDIAN
;;
3697 mips64
*-*-*) default_endian
=BIG_ENDIAN
;;
3698 mips16
*-*-*) default_endian
=BIG_ENDIAN
;;
3699 mips
*-*-*) default_endian
=BIG_ENDIAN
;;
3700 *) default_endian
=BIG_ENDIAN
;;
3703 wire_endian
="$mips_endian"
3704 default_endian
="$default_endian"
3705 # Check whether --enable-sim-endian or --disable-sim-endian was given.
3706 if test "${enable_sim_endian+set}" = set; then
3707 enableval
="$enable_sim_endian"
3708 case "${enableval}" in
3709 b
*|B
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
3710 l
*|L
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
3711 yes) if test x
"$wire_endian" != x
; then
3712 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
3714 if test x
"$default_endian" != x
; then
3715 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
3717 echo "No hard-wired endian for target $target" 1>&6
3718 sim_endian
="-DWITH_TARGET_BYTE_ORDER=0"
3721 no
) if test x
"$default_endian" != x
; then
3722 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
3724 if test x
"$wire_endian" != x
; then
3725 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
3727 echo "No default endian for target $target" 1>&6
3728 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
3731 *) { echo "configure: error: "Unknown value
$enableval for --enable-sim-endian"" 1>&2; exit 1; }; sim_endian
="";;
3733 if test x
"$silent" != x
"yes" && test x
"$sim_endian" != x
""; then
3734 echo "Setting endian flags = $sim_endian" 6>&1
3737 if test x
"$default_endian" != x
; then
3738 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
3740 if test x
"$wire_endian" != x
; then
3741 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
3752 # Select the bitsize of the target
3756 # start-sanitize-tx19
3757 mips
*tx19
*) mips_bitsize
=32 ; mips_msb
=31 ;;
3759 # start-sanitize-r5900
3760 mips64r59
*-*-*) mips_bitsize
=64 ; mips_msb
=63 ; mips_addr_bitsize
=32;;
3761 # end-sanitize-r5900
3762 # start-sanitize-sky
3763 mips64
*-sky*-*) mips_bitsize
=64 ; mips_msb
=63 ; mips_addr_bitsize
=32;;
3765 mips64
*-*-*) mips_bitsize
=64 ; mips_msb
=63 ;;
3766 mips16
*-*-*) mips_bitsize
=64 ; mips_msb
=63 ;;
3767 mips
*-*-*) mips_bitsize
=32 ; mips_msb
=31 ;;
3768 *) mips_bitsize
=64 ; mips_msb
=63 ;;
3770 wire_word_bitsize
="$mips_bitsize"
3771 wire_word_msb
="$mips_msb"
3772 wire_address_bitsize
="$mips_addr_bitsize"
3773 wire_cell_bitsize
=""
3774 # Check whether --enable-sim-bitsize or --disable-sim-bitsize was given.
3775 if test "${enable_sim_bitsize+set}" = set; then
3776 enableval
="$enable_sim_bitsize"
3778 case "${enableval}" in
3779 64,63 |
64,63,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
3780 32,31 |
32,31,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
3781 64,0 |
64,0,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
3782 32,0 |
64,0,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
3783 32) if test x
"$wire_word_msb" != x
-a x
"$wire_word_msb" != x0
; then
3784 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
3786 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
3788 64) if test x
"$wire_word_msb" != x
-a x
"$wire_word_msb" != x0
; then
3789 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
3791 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
3793 *) { echo "configure: error: "--enable-sim-bitsize was given
$enableval. Expected
32 or
64"" 1>&2; exit 1; } ;;
3796 tmp
=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
3799 x32 | x32
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
3800 x64 | x64
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
3801 * ) { echo "configure: error: "--enable-sim-bitsize was given address size
$enableval. Expected
32 or
64"" 1>&2; exit 1; } ;;
3804 tmp
=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
3807 x32 | x32
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
3808 x64 | x64
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
3809 * ) { echo "configure: error: "--enable-sim-bitsize was given cell size
$enableval. Expected
32 or
64"" 1>&2; exit 1; } ;;
3811 if test x
"$silent" != x
"yes" && test x
"$sim_bitsize" != x
""; then
3812 echo "Setting bitsize flags = $sim_bitsize" 6>&1
3816 if test x
"$wire_word_bitsize" != x
; then
3817 sim_bitsize
="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
3819 if test x
"$wire_word_msb" != x
; then
3820 sim_bitsize
="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
3822 if test x
"$wire_address_bitsize" != x
; then
3823 sim_bitsize
="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
3825 if test x
"$wire_cell_bitsize" != x
; then
3826 sim_bitsize
="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
3834 # Select the floating hardware support of the target
3836 mips_fpu
=HARDWARE_FLOATING_POINT
3839 # start-sanitize-tx19
3840 mips
*tx19
*) mips_fpu
=SOFT_FLOATING_POINT
;;
3842 mips
*tx39
*) mips_fpu
=HARD_FLOATING_POINT
3845 # start-sanitize-vr4xxx
3846 mips64vr4xxx
*-*-*) mips_fpu
=HARD_FLOATING_POINT
; mips_fpu_bitsize
=64 ;;
3847 # end-sanitize-vr4xxx
3848 # start-sanitize-r5900
3849 mips64r59
*-*-*) mips_fpu
=HARD_FLOATING_POINT
; mips_fpu_bitsize
=32 ;;
3850 # end-sanitize-r5900
3851 # start-sanitize-sky
3852 mips64
*-sky*-*) mips_fpu
=HARD_FLOATING_POINT
; mips_fpu_bitsize
=32 ;;
3854 mips64
*-*-*) mips_fpu
=HARD_FLOATING_POINT
;;
3855 mips16
*-*-*) mips_fpu
=HARD_FLOATING_POINT
;;
3856 mips
*-*-*) mips_fpu
=HARD_FLOATING_POINT
; mips_fpu_bitsize
=32 ;;
3857 *) mips_fpu
=HARD_FLOATING_POINT
;;
3860 default_sim_float
="$mips_fpu"
3861 default_sim_float_bitsize
="$mips_fpu_bitsize"
3862 # Check whether --enable-sim-float or --disable-sim-float was given.
3863 if test "${enable_sim_float+set}" = set; then
3864 enableval
="$enable_sim_float"
3865 case "${enableval}" in
3866 yes | hard
) sim_float
="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
3867 no | soft
) sim_float
="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
3868 32) sim_float
="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=32";;
3869 64) sim_float
="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=64";;
3870 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-float"" 1>&2; exit 1; }; sim_float
="";;
3872 if test x
"$silent" != x
"yes" && test x
"$sim_float" != x
""; then
3873 echo "Setting float flags = $sim_float" 6>&1
3878 if test x
"${default_sim_float}" != x
""; then
3879 sim_float
="-DWITH_FLOATING_POINT=${default_sim_float}"
3881 if test x
"${default_sim_float_bitsize}" != x
""; then
3882 sim_float
="$sim_float -DWITH_TARGET_FLOATING_POINT_BITSIZE=${default_sim_float_bitsize}"
3891 # Select the level of SMP support
3894 # start-sanitize-r5900
3895 mips64r59
*-*-*) mips_smp
=1 ;;
3896 # end-sanitize-r5900
3900 default_sim_smp
="$mips_smp"
3901 # Check whether --enable-sim-smp or --disable-sim-smp was given.
3902 if test "${enable_sim_smp+set}" = set; then
3903 enableval
="$enable_sim_smp"
3904 case "${enableval}" in
3905 yes) sim_smp
="-DWITH_SMP=5" ; sim_igen_smp
="-N 5";;
3906 no
) sim_smp
="-DWITH_SMP=0" ; sim_igen_smp
="-N 0";;
3907 *) sim_smp
="-DWITH_SMP=$enableval" ; sim_igen_smp
="-N $enableval";;
3909 if test x
"$silent" != x
"yes" && test x
"$sim_smp" != x
""; then
3910 echo "Setting smp flags = $sim_smp" 6>&1
3913 sim_smp
="-DWITH_SMP=${default_sim_smp}" ; sim_igen_smp
="-N ${default_sim_smp}"
3914 if test x
"$silent" != x
"yes"; then
3915 echo "Setting smp flags = $sim_smp" 6>&1
3923 # Select the IGEN architecture
3926 sim_igen_machine
="-M mipsIV"
3927 sim_m16_machine
="-M mips16"
3928 sim_igen_filter
="32,64,f"
3931 # start-sanitize-tx19
3932 mips
*tx19
*) sim_gen
=M16
3933 sim_igen_machine
="-M tx19"
3934 sim_m16_machine
="-M tx19"
3935 sim_igen_filter
="32"
3939 mips
*tx39
*) sim_gen
=IGEN
3940 sim_igen_filter
="32,f"
3941 sim_igen_machine
="-M r3900"
3943 # start-sanitize-r5900
3944 mips64r59
*-*-*) sim_gen
=IGEN
3945 sim_igen_machine
="-M r5900"
3947 # end-sanitize-r5900
3948 # start-sanitize-vr4320
3949 mips64vr4320-
*-*) sim_gen
=IGEN
3950 sim_igen_machine
="-M mipsIV,vr4320 -G gen-multi-sim=vr4320"
3952 # end-sanitize-vr4320
3953 mips64vr43
*-*-*) sim_gen
=IGEN
3954 sim_igen_machine
="-M mipsIV"
3955 # start-sanitize-vr4320
3956 sim_igen_machine
="-M mipsIV,vr4320 -G gen-multi-sim=mipsIV"
3957 # end-sanitize-vr4320
3959 # start-sanitize-cygnus
3960 mips64vr54
*-*-*) sim_gen
=IGEN
3961 sim_igen_machine
="-M vr5000,vr5400 -G gen-multi-sim=vr5400"
3963 # end-sanitize-cygnus
3964 mips64vr5
*-*-*) sim_gen
=IGEN
3965 sim_igen_machine
="-M vr5000"
3966 # start-sanitize-cygnus
3967 sim_igen_machine
="-M vr5000,vr5400 -G gen-multi-sim=vr5000"
3969 # end-sanitize-cygnus
3970 # start-sanitize-vr4xxx
3971 mips64vr4xxx
*-*-*) sim_gen
=IGEN
3972 sim_igen_machine
="-M mipsIV,vr4100,vr4121 -G gen-multi-sim=mipsIV"
3974 # end-sanitize-vr4xxx
3975 mips64vr41
*) sim_gen
=M16
3976 sim_igen_machine
="-M vr4100"
3977 sim_m16_machine
="-M vr4100"
3978 sim_igen_filter
="32,64,f"
3981 mips64
*-*-*) sim_igen_filter
="32,64,f"
3984 mips16
*-*-*) sim_gen
=M16
3985 sim_igen_filter
="32,64,f"
3988 mips
*lsi
*) sim_gen
=M16
3989 sim_igen_machine
="-M mipsIII,mips16"
3990 sim_m16_machine
="-M mips16,mipsIII"
3991 sim_igen_filter
="32,f"
3994 mips
*-*-*) sim_gen
=IGEN
3995 sim_igen_filter
="32,f"
3998 sim_igen_flags
="-F ${sim_igen_filter} ${sim_igen_machine} ${sim_igen_smp}"
3999 sim_m16_flags
=" -F ${sim_m16_filter} ${sim_m16_machine} ${sim_igen_smp}"
4006 # Add simulated hardware devices
4010 # start-sanitize-tx3904
4013 hw_extra_devices
="tx3904cpu tx3904irc tx3904tmr tx3904sio"
4014 mips_extra_objs
="dv-sockser.o"
4015 SIM_SUBTARGET
="$SIM_SUBTARGET -DTARGET_TX3904=1"
4017 # end-sanitize-tx3904
4018 # start-sanitize-sky
4020 mips_extra_objs
='$(SIM_SKY_OBJS)'
4021 SIM_SUBTARGET
="-DTARGET_SKY -DWITH_DEVICES=1 -DDEVICE_INIT=1"
4024 mips_extra_objs
='$(SIM_SKY_OBJS)'
4025 SIM_SUBTARGET
="-DTARGET_SKY -DTARGET_SKY_B -DWITH_DEVICES=1 -DDEVICE_INIT=1"
4033 if test x
"$hw_enabled" = x
"yes"; then
4038 if test "$hw_devices"; then
4039 hardware
="core pal glue"
4041 hardware
="core pal glue $hw_extra_devices"
4043 sim_hw_cflags
="-DWITH_HW=1"
4045 sim_hw_objs
="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
4046 # Check whether --enable-sim-hardware or --disable-sim-hardware was given.
4047 if test "${enable_sim_hardware+set}" = set; then
4048 enableval
="$enable_sim_hardware"
4050 case "${enableval}" in
4053 ,*) sim_hw_p
=yes; hardware
="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
4054 *,) sim_hw_p
=yes; hardware
="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
4055 *) sim_hw_p
=yes; hardware
="`echo ${enableval} | sed -e 's/,/ /'`"'';;
4057 if test "$sim_hw_p" != yes; then
4059 sim_hw_cflags
="-DWITH_HW=0"
4062 sim_hw_cflags
="-DWITH_HW=1"
4065 sim_hw_objs
="\$(SIM_COMMON_HW_OBJS)"
4066 for i
in x
$hardware ; do
4070 *) sim_hw
="$sim_hw $i" ; sim_hw_objs
="$sim_hw_objs dv-$i.o";;
4074 if test x
"$silent" != x
"yes" && test "$sim_hw_p" = "yes"; then
4075 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
4079 if test "$sim_hw_p" != yes; then
4081 sim_hw_cflags
="-DWITH_HW=0"
4084 if test x
"$silent" != x
"yes"; then
4085 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
4092 # Choose simulator engine
4094 # start-sanitize-sky
4102 *) mips_igen_engine
="engine.o"
4108 # If we find X, set shell vars x_includes and x_libraries to the
4109 # paths, otherwise set no_x=yes.
4110 # Uses ac_ vars as temps to allow command line to override cache and checks.
4111 # --without-x overrides everything else, but does not touch the cache.
4112 echo $ac_n "checking for X""... $ac_c" 1>&6
4113 echo "configure:4114: checking for X" >&5
4115 # Check whether --with-x or --without-x was given.
4116 if test "${with_x+set}" = set; then
4121 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4122 if test "x$with_x" = xno
; then
4123 # The user explicitly disabled X.
4126 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
4127 # Both variables are already set.
4130 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
4131 echo $ac_n "(cached) $ac_c" 1>&6
4133 # One or both of the vars are not set, and there is no cached value.
4134 ac_x_includes
=NO ac_x_libraries
=NO
4136 if mkdir conftestdir
; then
4138 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4139 cat > Imakefile
<<'EOF'
4141 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4143 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
4144 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4145 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4146 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4147 for ac_extension
in a so sl
; do
4148 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
4149 test -f $ac_im_libdir/libX11.
$ac_extension; then
4150 ac_im_usrlibdir
=$ac_im_libdir; break
4153 # Screen out bogus values from the imake configuration. They are
4154 # bogus both because they are the default anyway, and because
4155 # using them would break gcc on systems where it needs fixed includes.
4156 case "$ac_im_incroot" in
4158 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
4160 case "$ac_im_usrlibdir" in
4162 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
4169 if test "$ac_x_includes" = NO
; then
4170 # Guess where to find include files, by looking for this one X11 .h file.
4171 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
4173 # First, try using that file with no special directory specified.
4174 cat > conftest.
$ac_ext <<EOF
4175 #line 4176 "configure"
4176 #include "confdefs.h"
4177 #include <$x_direct_test_include>
4179 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4180 { (eval echo configure
:4181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4181 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4182 if test -z "$ac_err"; then
4184 # We can compile using X headers with no special include directory.
4188 echo "configure: failed program was:" >&5
4189 cat conftest.
$ac_ext >&5
4191 # Look for the header file in a standard set of common directories.
4192 # Check X11 before X11Rn because it is often a symlink to the current release.
4195 /usr
/X11R
6/include \
4196 /usr
/X11R
5/include \
4197 /usr
/X11R
4/include \
4200 /usr
/include
/X11R6 \
4201 /usr
/include
/X11R5 \
4202 /usr
/include
/X11R4 \
4204 /usr
/local
/X11
/include \
4205 /usr
/local
/X11R
6/include \
4206 /usr
/local
/X11R
5/include \
4207 /usr
/local
/X11R
4/include \
4209 /usr
/local
/include
/X11 \
4210 /usr
/local
/include
/X11R6 \
4211 /usr
/local
/include
/X11R5 \
4212 /usr
/local
/include
/X11R4 \
4216 /usr
/XFree86
/include
/X11 \
4219 /usr
/local
/include \
4220 /usr
/unsupported
/include \
4221 /usr
/athena
/include \
4222 /usr
/local
/x11r
5/include \
4223 /usr
/lpp
/Xamples
/include \
4225 /usr
/openwin
/include \
4226 /usr
/openwin
/share
/include \
4229 if test -r "$ac_dir/$x_direct_test_include"; then
4230 ac_x_includes
=$ac_dir
4236 fi # $ac_x_includes = NO
4238 if test "$ac_x_libraries" = NO
; then
4239 # Check for the libraries.
4241 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
4242 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
4244 # See if we find them without any special options.
4245 # Don't add to $LIBS permanently.
4246 ac_save_LIBS
="$LIBS"
4247 LIBS
="-l$x_direct_test_library $LIBS"
4248 cat > conftest.
$ac_ext <<EOF
4249 #line 4250 "configure"
4250 #include "confdefs.h"
4253 ${x_direct_test_function}()
4256 if { (eval echo configure
:4257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4258 LIBS
="$ac_save_LIBS"
4259 # We can link X programs with no special library path.
4262 echo "configure: failed program was:" >&5
4263 cat conftest.
$ac_ext >&5
4265 LIBS
="$ac_save_LIBS"
4266 # First see if replacing the include by lib works.
4267 # Check X11 before X11Rn because it is often a symlink to the current release.
4268 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
4279 /usr
/local
/X11
/lib \
4280 /usr
/local
/X11R
6/lib \
4281 /usr
/local
/X11R
5/lib \
4282 /usr
/local
/X11R
4/lib \
4284 /usr
/local
/lib
/X11 \
4285 /usr
/local
/lib
/X11R6 \
4286 /usr
/local
/lib
/X11R5 \
4287 /usr
/local
/lib
/X11R4 \
4291 /usr
/XFree86
/lib
/X11 \
4295 /usr
/unsupported
/lib \
4297 /usr
/local
/x11r
5/lib \
4298 /usr
/lpp
/Xamples
/lib \
4302 /usr
/openwin
/share
/lib \
4305 for ac_extension
in a so sl
; do
4306 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
4307 ac_x_libraries
=$ac_dir
4314 fi # $ac_x_libraries = NO
4316 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
4317 # Didn't find X anywhere. Cache the known absence of X.
4318 ac_cv_have_x
="have_x=no"
4320 # Record where we found X for the cache.
4321 ac_cv_have_x
="have_x=yes \
4322 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4326 eval "$ac_cv_have_x"
4329 if test "$have_x" != yes; then
4330 echo "$ac_t""$have_x" 1>&6
4333 # If each of the values was on the command line, it overrides each guess.
4334 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
4335 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
4336 # Update the cache value to reflect the command line values.
4337 ac_cv_have_x
="have_x=yes \
4338 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4339 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
4343 # start-sanitize-sky
4344 # Enable GPU2 library
4345 # Check whether --with-sim-gpu2 or --without-sim-gpu2 was given.
4346 if test "${with_sim_gpu2+set}" = set; then
4347 withval
="$with_sim_gpu2"
4348 if test -d "${withval}"
4350 SIM_SUBTARGET
="${SIM_SUBTARGET} -DSKY_GPU2 -I${withval}/include"
4351 mips_extra_libs
="-L${withval}/lib -lgpu2 -L${x_libraries} -lX11 -lXext"
4352 WITH_GPU2
="yes" ; export WITH_GPU2
4354 # complex X/etc. detection; stolen shamelessly from tcl/tk/gdb configury. --angela
4356 #--------------------------------------------------------------------
4357 # Locate the X11 header files and the X11 library archive. Try
4358 # the ac_path_x macro first, but if it doesn't find the X stuff
4359 # (e.g. because there's no xmkmf program) then check through
4360 # a list of possible directories. Under some conditions the
4361 # autoconf macro will return an include directory that contains
4362 # no include files, so double-check its result just to be safe.
4363 #--------------------------------------------------------------------
4365 # If we find X, set shell vars x_includes and x_libraries to the
4366 # paths, otherwise set no_x=yes.
4367 # Uses ac_ vars as temps to allow command line to override cache and checks.
4368 # --without-x overrides everything else, but does not touch the cache.
4369 echo $ac_n "checking for X""... $ac_c" 1>&6
4370 echo "configure:4371: checking for X" >&5
4372 # Check whether --with-x or --without-x was given.
4373 if test "${with_x+set}" = set; then
4378 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4379 if test "x$with_x" = xno
; then
4380 # The user explicitly disabled X.
4383 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
4384 # Both variables are already set.
4387 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
4388 echo $ac_n "(cached) $ac_c" 1>&6
4390 # One or both of the vars are not set, and there is no cached value.
4391 ac_x_includes
=NO ac_x_libraries
=NO
4393 if mkdir conftestdir
; then
4395 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4396 cat > Imakefile
<<'EOF'
4398 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4400 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
4401 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4402 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4403 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4404 for ac_extension
in a so sl
; do
4405 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
4406 test -f $ac_im_libdir/libX11.
$ac_extension; then
4407 ac_im_usrlibdir
=$ac_im_libdir; break
4410 # Screen out bogus values from the imake configuration. They are
4411 # bogus both because they are the default anyway, and because
4412 # using them would break gcc on systems where it needs fixed includes.
4413 case "$ac_im_incroot" in
4415 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
4417 case "$ac_im_usrlibdir" in
4419 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
4426 if test "$ac_x_includes" = NO
; then
4427 # Guess where to find include files, by looking for this one X11 .h file.
4428 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
4430 # First, try using that file with no special directory specified.
4431 cat > conftest.
$ac_ext <<EOF
4432 #line 4433 "configure"
4433 #include "confdefs.h"
4434 #include <$x_direct_test_include>
4436 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4437 { (eval echo configure
:4438: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4438 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4439 if test -z "$ac_err"; then
4441 # We can compile using X headers with no special include directory.
4445 echo "configure: failed program was:" >&5
4446 cat conftest.
$ac_ext >&5
4448 # Look for the header file in a standard set of common directories.
4449 # Check X11 before X11Rn because it is often a symlink to the current release.
4452 /usr
/X11R
6/include \
4453 /usr
/X11R
5/include \
4454 /usr
/X11R
4/include \
4457 /usr
/include
/X11R6 \
4458 /usr
/include
/X11R5 \
4459 /usr
/include
/X11R4 \
4461 /usr
/local
/X11
/include \
4462 /usr
/local
/X11R
6/include \
4463 /usr
/local
/X11R
5/include \
4464 /usr
/local
/X11R
4/include \
4466 /usr
/local
/include
/X11 \
4467 /usr
/local
/include
/X11R6 \
4468 /usr
/local
/include
/X11R5 \
4469 /usr
/local
/include
/X11R4 \
4473 /usr
/XFree86
/include
/X11 \
4476 /usr
/local
/include \
4477 /usr
/unsupported
/include \
4478 /usr
/athena
/include \
4479 /usr
/local
/x11r
5/include \
4480 /usr
/lpp
/Xamples
/include \
4482 /usr
/openwin
/include \
4483 /usr
/openwin
/share
/include \
4486 if test -r "$ac_dir/$x_direct_test_include"; then
4487 ac_x_includes
=$ac_dir
4493 fi # $ac_x_includes = NO
4495 if test "$ac_x_libraries" = NO
; then
4496 # Check for the libraries.
4498 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
4499 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
4501 # See if we find them without any special options.
4502 # Don't add to $LIBS permanently.
4503 ac_save_LIBS
="$LIBS"
4504 LIBS
="-l$x_direct_test_library $LIBS"
4505 cat > conftest.
$ac_ext <<EOF
4506 #line 4507 "configure"
4507 #include "confdefs.h"
4510 ${x_direct_test_function}()
4513 if { (eval echo configure
:4514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4515 LIBS
="$ac_save_LIBS"
4516 # We can link X programs with no special library path.
4519 echo "configure: failed program was:" >&5
4520 cat conftest.
$ac_ext >&5
4522 LIBS
="$ac_save_LIBS"
4523 # First see if replacing the include by lib works.
4524 # Check X11 before X11Rn because it is often a symlink to the current release.
4525 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
4536 /usr
/local
/X11
/lib \
4537 /usr
/local
/X11R
6/lib \
4538 /usr
/local
/X11R
5/lib \
4539 /usr
/local
/X11R
4/lib \
4541 /usr
/local
/lib
/X11 \
4542 /usr
/local
/lib
/X11R6 \
4543 /usr
/local
/lib
/X11R5 \
4544 /usr
/local
/lib
/X11R4 \
4548 /usr
/XFree86
/lib
/X11 \
4552 /usr
/unsupported
/lib \
4554 /usr
/local
/x11r
5/lib \
4555 /usr
/lpp
/Xamples
/lib \
4559 /usr
/openwin
/share
/lib \
4562 for ac_extension
in a so sl
; do
4563 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
4564 ac_x_libraries
=$ac_dir
4571 fi # $ac_x_libraries = NO
4573 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
4574 # Didn't find X anywhere. Cache the known absence of X.
4575 ac_cv_have_x
="have_x=no"
4577 # Record where we found X for the cache.
4578 ac_cv_have_x
="have_x=yes \
4579 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4583 eval "$ac_cv_have_x"
4586 if test "$have_x" != yes; then
4587 echo "$ac_t""$have_x" 1>&6
4590 # If each of the values was on the command line, it overrides each guess.
4591 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
4592 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
4593 # Update the cache value to reflect the command line values.
4594 ac_cv_have_x
="have_x=yes \
4595 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4596 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
4600 if test "$no_x" = ""; then
4601 if test "$x_includes" = ""; then
4602 cat > conftest.
$ac_ext <<EOF
4603 #line 4604 "configure"
4604 #include "confdefs.h"
4605 #include <X11/XIntrinsic.h>
4607 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4608 { (eval echo configure
:4609: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4609 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4610 if test -z "$ac_err"; then
4614 echo "configure: failed program was:" >&5
4615 cat conftest.
$ac_ext >&5
4617 not_really_there
="yes"
4621 if test ! -r $x_includes/X11
/Intrinsic.h
; then
4622 not_really_there
="yes"
4626 if test "$no_x" = "yes" -o "$not_really_there" = "yes"; then
4627 echo $ac_n "checking for X11 header files""... $ac_c" 1>&6
4628 echo "configure:4629: checking for X11 header files" >&5
4629 XINCLUDES
="# no special path needed"
4630 cat > conftest.
$ac_ext <<EOF
4631 #line 4632 "configure"
4632 #include "confdefs.h"
4633 #include <X11/Intrinsic.h>
4635 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4636 { (eval echo configure
:4637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4637 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4638 if test -z "$ac_err"; then
4642 echo "configure: failed program was:" >&5
4643 cat conftest.
$ac_ext >&5
4648 if test "$XINCLUDES" = nope
; then
4649 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"
4651 if test -r $i/X11
/Intrinsic.h
; then
4652 echo "$ac_t""$i" 1>&6
4659 if test "$x_includes" != ""; then
4660 XINCLUDES
=-I$x_includes
4662 XINCLUDES
="# no special path needed"
4665 if test "$XINCLUDES" = nope
; then
4666 echo "$ac_t""couldn't find any!" 1>&6
4667 XINCLUDES
="# no include files found"
4670 if test "$no_x" = yes; then
4671 echo $ac_n "checking for X11 libraries""... $ac_c" 1>&6
4672 echo "configure:4673: checking for X11 libraries" >&5
4674 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"
4676 if test -r $i/libX11.a
-o -r $i/libX11.so
-o -r $i/libX11.sl
; then
4677 echo "$ac_t""$i" 1>&6
4684 if test "$x_libraries" = ""; then
4687 XLIBSW
="-L$x_libraries -lX11"
4690 if test "$XLIBSW" = nope
; then
4691 echo $ac_n "checking for XCreateWindow in -lXwindow""... $ac_c" 1>&6
4692 echo "configure:4693: checking for XCreateWindow in -lXwindow" >&5
4693 ac_lib_var
=`echo Xwindow'_'XCreateWindow | sed 'y%./+-%__p_%'`
4694 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4695 echo $ac_n "(cached) $ac_c" 1>&6
4697 ac_save_LIBS
="$LIBS"
4698 LIBS
="-lXwindow $LIBS"
4699 cat > conftest.
$ac_ext <<EOF
4700 #line 4701 "configure"
4701 #include "confdefs.h"
4702 /* Override any gcc2 internal prototype to avoid an error. */
4703 /* We use char because int might match the return type of a gcc2
4704 builtin and then its argument prototype would still apply. */
4705 char XCreateWindow();
4711 if { (eval echo configure
:4712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4713 eval "ac_cv_lib_$ac_lib_var=yes"
4715 echo "configure: failed program was:" >&5
4716 cat conftest.
$ac_ext >&5
4718 eval "ac_cv_lib_$ac_lib_var=no"
4721 LIBS
="$ac_save_LIBS"
4724 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4725 echo "$ac_t""yes" 1>&6
4728 echo "$ac_t""no" 1>&6
4732 if test "$XLIBSW" = nope
; then
4733 echo "$ac_t""couldn't find any! Using -lX11." 1>&6
4737 #--------------------------------------------------------------------
4738 # Various manipulations on the search path used at runtime to
4739 # find shared libraries:
4740 # 1. If the X library binaries are in a non-standard directory,
4741 # add the X library location into that search path.
4742 # 2. On systems such as AIX and Ultrix that use "-L" as the
4743 # search path option, colons cannot be used to separate
4744 # directories from each other. Change colons to " -L".
4745 # 3. Create two sets of search flags, one for use in cc lines
4746 # and the other for when the linker is invoked directly. In
4747 # the second case, '-Wl,' must be stripped off and commas must
4748 # be replaced by spaces.
4749 #--------------------------------------------------------------------
4752 # CYGNUS LOCAL: statically link on Solaris, HPUX & SunOS so that
4753 # we don't have problems with people not having libraries
4754 # installed or not having LD_LIBRARY_PATH set.
4759 # gdb linked statically w/ Solaris iff GCC and GNU ld are used,
4762 sparc-sun-solaris2
*)
4764 if test "x$GCC" = "xyes" ; then
4765 # This is probably the simplest way to test for GNU ld.
4766 # It only works with relatively recent versions of GNU
4768 gld_text
=`$CC -Wl,--version 2>&1 | sed 1q`
4771 # Why do we link against libX11 twice? Because the
4772 # Openwin X11 and Xext libraries are seriously broken.
4773 sol_xlibsw
="-Wl,-Bstatic $XLIBSW -lXext -lX11 -Wl,-Bdynamic"
4777 if test -z "$sol_xlibsw"; then
4778 if test "x$x_libraries" != "x"; then
4779 XLIBSW
="$XLIBSW -R$x_libraries"
4783 suppress_enable_shared
=yes
4787 # gdb linked statically w/ SunOS or HPUX
4789 m68k-hp-hpux
*|hppa
*-hp-hpux*|sparc-sun-sunos
*)
4790 if test "x$x_libraries" != "x" ;
4792 XLIBSW
="$x_libraries/libX11.a"
4794 XLIBSW
="/usr/lib/libX11.a"
4796 suppress_enable_shared
=yes
4799 # default is to link dynamically
4808 #--------------------------------------------------------------------
4809 # Check for the existence of various libraries. The order here
4810 # is important, so that then end up in the right order in the
4811 # command line generated by make. The -lsocket and -lnsl libraries
4812 # require a couple of special tricks:
4813 # 1. Use "connect" and "accept" to check for -lsocket, and
4814 # "gethostbyname" to check for -lnsl.
4815 # 2. Use each function name only once: can't redo a check because
4816 # autoconf caches the results of the last check and won't redo it.
4817 # 3. Use -lnsl and -lsocket only if they supply procedures that
4818 # aren't already present in the normal libraries. This is because
4819 # IRIX 5.2 has libraries, but they aren't needed and they're
4820 # bogus: they goof up name resolution if used.
4821 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
4822 # To get around this problem, check for both libraries together
4823 # if -lsocket doesn't work by itself.
4824 #--------------------------------------------------------------------
4826 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
4827 echo "configure:4828: checking for main in -lXbsd" >&5
4828 ac_lib_var
=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
4829 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4830 echo $ac_n "(cached) $ac_c" 1>&6
4832 ac_save_LIBS
="$LIBS"
4834 cat > conftest.
$ac_ext <<EOF
4835 #line 4836 "configure"
4836 #include "confdefs.h"
4842 if { (eval echo configure
:4843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4844 eval "ac_cv_lib_$ac_lib_var=yes"
4846 echo "configure: failed program was:" >&5
4847 cat conftest.
$ac_ext >&5
4849 eval "ac_cv_lib_$ac_lib_var=no"
4852 LIBS
="$ac_save_LIBS"
4855 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4856 echo "$ac_t""yes" 1>&6
4857 SOCKLIBSW
="$SOCKLIBSW -lXbsd"
4859 echo "$ac_t""no" 1>&6
4863 # CYGNUS LOCAL: Store any socket library(ies) in the cache, and don't
4864 # mess up the cache values of the functions we check for.
4865 echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
4866 echo "configure:4867: checking for socket libraries" >&5
4867 if eval "test \"`echo '$''{'sim_cv_lib_sockets'+set}'`\" = set"; then
4868 echo $ac_n "(cached) $ac_c" 1>&6
4872 unset ac_cv_func_connect
4873 echo $ac_n "checking for connect""... $ac_c" 1>&6
4874 echo "configure:4875: checking for connect" >&5
4875 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
4876 echo $ac_n "(cached) $ac_c" 1>&6
4878 cat > conftest.
$ac_ext <<EOF
4879 #line 4880 "configure"
4880 #include "confdefs.h"
4881 /* System header to define __stub macros and hopefully few prototypes,
4882 which can conflict with char connect(); below. */
4884 /* Override any gcc2 internal prototype to avoid an error. */
4885 /* We use char because int might match the return type of a gcc2
4886 builtin and then its argument prototype would still apply. */
4891 /* The GNU C library defines this for functions which it implements
4892 to always fail with ENOSYS. Some functions are actually named
4893 something starting with __ and the normal name is an alias. */
4894 #if defined (__stub_connect) || defined (__stub___connect)
4902 if { (eval echo configure
:4903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4904 eval "ac_cv_func_connect=yes"
4906 echo "configure: failed program was:" >&5
4907 cat conftest.
$ac_ext >&5
4909 eval "ac_cv_func_connect=no"
4914 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4915 echo "$ac_t""yes" 1>&6
4918 echo "$ac_t""no" 1>&6
4922 if test "$sim_checkSocket" = 1; then
4923 unset ac_cv_func_connect
4924 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4925 echo "configure:4926: checking for main in -lsocket" >&5
4926 ac_lib_var
=`echo socket'_'main | sed 'y%./+-%__p_%'`
4927 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4928 echo $ac_n "(cached) $ac_c" 1>&6
4930 ac_save_LIBS
="$LIBS"
4931 LIBS
="-lsocket $LIBS"
4932 cat > conftest.
$ac_ext <<EOF
4933 #line 4934 "configure"
4934 #include "confdefs.h"
4940 if { (eval echo configure
:4941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4942 eval "ac_cv_lib_$ac_lib_var=yes"
4944 echo "configure: failed program was:" >&5
4945 cat conftest.
$ac_ext >&5
4947 eval "ac_cv_lib_$ac_lib_var=no"
4950 LIBS
="$ac_save_LIBS"
4953 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4954 echo "$ac_t""yes" 1>&6
4955 sim_cv_lib_sockets
="-lsocket"
4957 echo "$ac_t""no" 1>&6
4962 if test "$sim_checkBoth" = 1; then
4963 sim_oldLibs
=$SOCKLIBSW
4964 SOCKLIBSW
="$SOCKLIBSW -lsocket -lnsl"
4965 unset ac_cv_func_accept
4966 echo $ac_n "checking for accept""... $ac_c" 1>&6
4967 echo "configure:4968: checking for accept" >&5
4968 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
4969 echo $ac_n "(cached) $ac_c" 1>&6
4971 cat > conftest.
$ac_ext <<EOF
4972 #line 4973 "configure"
4973 #include "confdefs.h"
4974 /* System header to define __stub macros and hopefully few prototypes,
4975 which can conflict with char accept(); below. */
4977 /* Override any gcc2 internal prototype to avoid an error. */
4978 /* We use char because int might match the return type of a gcc2
4979 builtin and then its argument prototype would still apply. */
4984 /* The GNU C library defines this for functions which it implements
4985 to always fail with ENOSYS. Some functions are actually named
4986 something starting with __ and the normal name is an alias. */
4987 #if defined (__stub_accept) || defined (__stub___accept)
4995 if { (eval echo configure
:4996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4997 eval "ac_cv_func_accept=yes"
4999 echo "configure: failed program was:" >&5
5000 cat conftest.
$ac_ext >&5
5002 eval "ac_cv_func_accept=no"
5007 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
5008 echo "$ac_t""yes" 1>&6
5010 sim_cv_lib_sockets
="-lsocket -lnsl"
5012 echo "$ac_t""no" 1>&6
5015 unset ac_cv_func_accept
5016 SOCKLIBSW
=$sim_oldLibs
5018 unset ac_cv_func_gethostbyname
5019 sim_oldLibs
=$SOCKLIBSW
5020 SOCKLIBSW
="$SOCKLIBSW $sim_cv_lib_sockets"
5021 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5022 echo "configure:5023: checking for gethostbyname" >&5
5023 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
5024 echo $ac_n "(cached) $ac_c" 1>&6
5026 cat > conftest.
$ac_ext <<EOF
5027 #line 5028 "configure"
5028 #include "confdefs.h"
5029 /* System header to define __stub macros and hopefully few prototypes,
5030 which can conflict with char gethostbyname(); below. */
5032 /* Override any gcc2 internal prototype to avoid an error. */
5033 /* We use char because int might match the return type of a gcc2
5034 builtin and then its argument prototype would still apply. */
5035 char gethostbyname();
5039 /* The GNU C library defines this for functions which it implements
5040 to always fail with ENOSYS. Some functions are actually named
5041 something starting with __ and the normal name is an alias. */
5042 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5050 if { (eval echo configure
:5051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5052 eval "ac_cv_func_gethostbyname=yes"
5054 echo "configure: failed program was:" >&5
5055 cat conftest.
$ac_ext >&5
5057 eval "ac_cv_func_gethostbyname=no"
5062 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5063 echo "$ac_t""yes" 1>&6
5066 echo "$ac_t""no" 1>&6
5067 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
5068 echo "configure:5069: checking for main in -lnsl" >&5
5069 ac_lib_var
=`echo nsl'_'main | sed 'y%./+-%__p_%'`
5070 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5071 echo $ac_n "(cached) $ac_c" 1>&6
5073 ac_save_LIBS
="$LIBS"
5075 cat > conftest.
$ac_ext <<EOF
5076 #line 5077 "configure"
5077 #include "confdefs.h"
5083 if { (eval echo configure
:5084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5085 eval "ac_cv_lib_$ac_lib_var=yes"
5087 echo "configure: failed program was:" >&5
5088 cat conftest.
$ac_ext >&5
5090 eval "ac_cv_lib_$ac_lib_var=no"
5093 LIBS
="$ac_save_LIBS"
5096 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5097 echo "$ac_t""yes" 1>&6
5098 sim_cv_lib_sockets
="$sim_cv_lib_sockets -lnsl"
5100 echo "$ac_t""no" 1>&6
5105 unset ac_cv_func_gethostbyname
5106 SOCKLIBSW
=$sim_oldSOCKLIBSW
5110 echo "$ac_t""$sim_cv_lib_sockets" 1>&6
5111 test -z "$sim_cv_lib_sockets" || SOCKLIBSW
="$SOCKLIBSW $sim_cv_lib_sockets"
5113 mips_extra_libs
="-L${withval}/lib -lgpu2 -lm $XLIBSW $SOCKLIBSW"
5114 cat > simConfig.sh
<< --EOF--
5115 mips_extra_libs="$mips_extra_libs"
5119 { echo "configure: error: "Directory
${withval} does not exist.
"" 1>&2; exit 1; };
5124 # Enable target accurate FP library
5125 # Check whether --with-sim-funit or --without-sim-funit was given.
5126 if test "${with_sim_funit+set}" = set; then
5127 withval
="$with_sim_funit"
5128 if test -d "${withval}"
5130 SIM_SUBTARGET
="${SIM_SUBTARGET} -DSKY_FUNIT -I${withval}/include"
5131 mips_extra_libs
="${mips_extra_libs} -L${withval}/lib -lfunit"
5133 { echo "configure: error: "Directory
${withval} does not exist.
"" 1>&2; exit 1; };
5139 for ac_hdr
in string.h
strings.h stdlib.h stdlib.h
5141 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5142 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5143 echo "configure:5144: checking for $ac_hdr" >&5
5144 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5145 echo $ac_n "(cached) $ac_c" 1>&6
5147 cat > conftest.
$ac_ext <<EOF
5148 #line 5149 "configure"
5149 #include "confdefs.h"
5152 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5153 { (eval echo configure
:5154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5154 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5155 if test -z "$ac_err"; then
5157 eval "ac_cv_header_$ac_safe=yes"
5160 echo "configure: failed program was:" >&5
5161 cat conftest.
$ac_ext >&5
5163 eval "ac_cv_header_$ac_safe=no"
5167 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5168 echo "$ac_t""yes" 1>&6
5169 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5170 cat >> confdefs.h
<<EOF
5171 #define $ac_tr_hdr 1
5175 echo "$ac_t""no" 1>&6
5179 echo $ac_n "checking for fabs in -lm""... $ac_c" 1>&6
5180 echo "configure:5181: checking for fabs in -lm" >&5
5181 ac_lib_var
=`echo m'_'fabs | sed 'y%./+-%__p_%'`
5182 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5183 echo $ac_n "(cached) $ac_c" 1>&6
5185 ac_save_LIBS
="$LIBS"
5187 cat > conftest.
$ac_ext <<EOF
5188 #line 5189 "configure"
5189 #include "confdefs.h"
5190 /* Override any gcc2 internal prototype to avoid an error. */
5191 /* We use char because int might match the return type of a gcc2
5192 builtin and then its argument prototype would still apply. */
5199 if { (eval echo configure
:5200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5201 eval "ac_cv_lib_$ac_lib_var=yes"
5203 echo "configure: failed program was:" >&5
5204 cat conftest.
$ac_ext >&5
5206 eval "ac_cv_lib_$ac_lib_var=no"
5209 LIBS
="$ac_save_LIBS"
5212 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5213 echo "$ac_t""yes" 1>&6
5214 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5215 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5216 cat >> confdefs.h
<<EOF
5217 #define $ac_tr_lib 1
5223 echo "$ac_t""no" 1>&6
5226 for ac_func
in aint anint sqrt
5228 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5229 echo "configure:5230: checking for $ac_func" >&5
5230 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5231 echo $ac_n "(cached) $ac_c" 1>&6
5233 cat > conftest.
$ac_ext <<EOF
5234 #line 5235 "configure"
5235 #include "confdefs.h"
5236 /* System header to define __stub macros and hopefully few prototypes,
5237 which can conflict with char $ac_func(); below. */
5239 /* Override any gcc2 internal prototype to avoid an error. */
5240 /* We use char because int might match the return type of a gcc2
5241 builtin and then its argument prototype would still apply. */
5246 /* The GNU C library defines this for functions which it implements
5247 to always fail with ENOSYS. Some functions are actually named
5248 something starting with __ and the normal name is an alias. */
5249 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5257 if { (eval echo configure
:5258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5259 eval "ac_cv_func_$ac_func=yes"
5261 echo "configure: failed program was:" >&5
5262 cat conftest.
$ac_ext >&5
5264 eval "ac_cv_func_$ac_func=no"
5269 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5270 echo "$ac_t""yes" 1>&6
5271 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5272 cat >> confdefs.h
<<EOF
5273 #define $ac_tr_func 1
5277 echo "$ac_t""no" 1>&6
5285 cat > confcache
<<\EOF
5286 # This file is a shell script that caches the results of configure
5287 # tests run on this system so they can be shared between configure
5288 # scripts and configure runs. It is not useful on other systems.
5289 # If it contains results you don't want to keep, you may remove or edit it.
5291 # By default, configure uses ./config.cache as the cache file,
5292 # creating it if it does not exist already. You can give configure
5293 # the --cache-file=FILE option to use a different cache file; that is
5294 # what configure does when it calls configure scripts in
5295 # subdirectories, so they share the cache.
5296 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5297 # config.status only pays attention to the cache file if you give it the
5298 # --recheck option to rerun configure.
5301 # The following way of writing the cache mishandles newlines in values,
5302 # but we know of no workaround that is simple, portable, and efficient.
5303 # So, don't put newlines in cache variables' values.
5304 # Ultrix sh set writes to stderr and can't be redirected directly,
5305 # and sets the high bit in the cache file unless we assign to the vars.
5307 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
5309 # `set' does not quote correctly, so add quotes (double-quote substitution
5310 # turns \\\\ into \\, and sed turns \\ into \).
5312 -e "s/'/'\\\\''/g" \
5313 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5316 # `set' quotes correctly as required by POSIX, so do not add quotes.
5317 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5320 if cmp -s $cache_file confcache
; then
5323 if test -w $cache_file; then
5324 echo "updating cache $cache_file"
5325 cat confcache
> $cache_file
5327 echo "not updating unwritable cache $cache_file"
5332 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5334 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5335 # Let make expand exec_prefix.
5336 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5338 # Any assignment to VPATH causes Sun make to only execute
5339 # the first set of double-colon rules, so remove it if not needed.
5340 # If there is a colon in the path, we need to keep it.
5341 if test "x$srcdir" = x.
; then
5342 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5345 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5347 DEFS
=-DHAVE_CONFIG_H
5349 # Without the "./", some shells look in PATH for config.status.
5350 : ${CONFIG_STATUS=./config.status}
5352 echo creating
$CONFIG_STATUS
5353 rm -f $CONFIG_STATUS
5354 cat > $CONFIG_STATUS <<EOF
5356 # Generated automatically by configure.
5357 # Run this file to recreate the current configuration.
5358 # This directory was configured as follows,
5359 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5361 # $0 $ac_configure_args
5363 # Compiler output produced by configure, useful for debugging
5364 # configure, is in ./config.log if it exists.
5366 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5369 case "\$ac_option" in
5370 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5371 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5372 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5373 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5374 echo "$CONFIG_STATUS generated by autoconf version 2.12.2"
5376 -help | --help | --hel | --he | --h)
5377 echo "\$ac_cs_usage"; exit 0 ;;
5378 *) echo "\$ac_cs_usage"; exit 1 ;;
5382 ac_given_srcdir=$srcdir
5383 ac_given_INSTALL="$INSTALL"
5385 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
5387 cat >> $CONFIG_STATUS <<EOF
5389 # Protect against being on the right side of a sed subst in config.status.
5390 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5391 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5394 s%@sim_environment@%$sim_environment%g
5395 s%@sim_alignment@%$sim_alignment%g
5396 s%@sim_assert@%$sim_assert%g
5397 s%@sim_bitsize@%$sim_bitsize%g
5398 s%@sim_endian@%$sim_endian%g
5399 s%@sim_hostendian@%$sim_hostendian%g
5400 s%@sim_float@%$sim_float%g
5401 s%@sim_scache@%$sim_scache%g
5402 s%@sim_default_model@%$sim_default_model%g
5403 s%@sim_hw_cflags@%$sim_hw_cflags%g
5404 s%@sim_hw_objs@%$sim_hw_objs%g
5405 s%@sim_hw@%$sim_hw%g
5406 s%@sim_inline@%$sim_inline%g
5407 s%@sim_packages@%$sim_packages%g
5408 s%@sim_regparm@%$sim_regparm%g
5409 s%@sim_reserved_bits@%$sim_reserved_bits%g
5410 s%@sim_smp@%$sim_smp%g
5411 s%@sim_stdcall@%$sim_stdcall%g
5412 s%@sim_xor_endian@%$sim_xor_endian%g
5413 s%@build_warnings@%$build_warnings%g
5415 s%@CFLAGS@%$CFLAGS%g
5416 s%@CPPFLAGS@%$CPPFLAGS%g
5417 s%@CXXFLAGS@%$CXXFLAGS%g
5419 s%@LDFLAGS@%$LDFLAGS%g
5421 s%@exec_prefix@%$exec_prefix%g
5422 s%@prefix@%$prefix%g
5423 s%@program_transform_name@%$program_transform_name%g
5424 s%@bindir@%$bindir%g
5425 s%@sbindir@%$sbindir%g
5426 s%@libexecdir@%$libexecdir%g
5427 s%@datadir@%$datadir%g
5428 s%@sysconfdir@%$sysconfdir%g
5429 s%@sharedstatedir@%$sharedstatedir%g
5430 s%@localstatedir@%$localstatedir%g
5431 s%@libdir@%$libdir%g
5432 s%@includedir@%$includedir%g
5433 s%@oldincludedir@%$oldincludedir%g
5434 s%@infodir@%$infodir%g
5435 s%@mandir@%$mandir%g
5437 s%@host_alias@%$host_alias%g
5438 s%@host_cpu@%$host_cpu%g
5439 s%@host_vendor@%$host_vendor%g
5440 s%@host_os@%$host_os%g
5441 s%@target@%$target%g
5442 s%@target_alias@%$target_alias%g
5443 s%@target_cpu@%$target_cpu%g
5444 s%@target_vendor@%$target_vendor%g
5445 s%@target_os@%$target_os%g
5447 s%@build_alias@%$build_alias%g
5448 s%@build_cpu@%$build_cpu%g
5449 s%@build_vendor@%$build_vendor%g
5450 s%@build_os@%$build_os%g
5452 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5453 s%@INSTALL_DATA@%$INSTALL_DATA%g
5454 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
5455 s%@HDEFINES@%$HDEFINES%g
5457 s%@RANLIB@%$RANLIB%g
5458 s%@SET_MAKE@%$SET_MAKE%g
5460 s%@ALLOCA@%$ALLOCA%g
5461 s%@USE_NLS@%$USE_NLS%g
5462 s%@MSGFMT@%$MSGFMT%g
5463 s%@GMSGFMT@%$GMSGFMT%g
5464 s%@XGETTEXT@%$XGETTEXT%g
5465 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5466 s%@CATALOGS@%$CATALOGS%g
5467 s%@CATOBJEXT@%$CATOBJEXT%g
5468 s%@DATADIRNAME@%$DATADIRNAME%g
5469 s%@GMOFILES@%$GMOFILES%g
5470 s%@INSTOBJEXT@%$INSTOBJEXT%g
5471 s%@INTLDEPS@%$INTLDEPS%g
5472 s%@INTLLIBS@%$INTLLIBS%g
5473 s%@INTLOBJS@%$INTLOBJS%g
5474 s%@POFILES@%$POFILES%g
5476 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5478 s%@GT_YES@%$GT_YES%g
5479 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5482 s%@sim_bswap@%$sim_bswap%g
5483 s%@sim_cflags@%$sim_cflags%g
5484 s%@sim_debug@%$sim_debug%g
5485 s%@sim_stdio@%$sim_stdio%g
5486 s%@sim_trace@%$sim_trace%g
5487 s%@sim_profile@%$sim_profile%g
5488 s%@EXEEXT@%$EXEEXT%g
5489 s%@SIM_SUBTARGET@%$SIM_SUBTARGET%g
5490 s%@sim_igen_flags@%$sim_igen_flags%g
5491 s%@sim_m16_flags@%$sim_m16_flags%g
5492 s%@sim_gen@%$sim_gen%g
5493 s%@mips_extra_objs@%$mips_extra_objs%g
5494 s%@mips_igen_engine@%$mips_igen_engine%g
5495 s%@mips_extra_libs@%$mips_extra_libs%g
5500 cat >> $CONFIG_STATUS <<\EOF
5502 # Split the substitutions into bite-sized pieces for seds with
5503 # small command number limits, like on Digital OSF/1 and HP-UX.
5504 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5505 ac_file
=1 # Number of current file.
5506 ac_beg
=1 # First line for current file.
5507 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5510 while $ac_more_lines; do
5511 if test $ac_beg -gt 1; then
5512 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5514 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5516 if test ! -s conftest.s
$ac_file; then
5518 rm -f conftest.s
$ac_file
5520 if test -z "$ac_sed_cmds"; then
5521 ac_sed_cmds
="sed -f conftest.s$ac_file"
5523 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5525 ac_file
=`expr $ac_file + 1`
5527 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5530 if test -z "$ac_sed_cmds"; then
5535 cat >> $CONFIG_STATUS <<EOF
5537 CONFIG_FILES=\${CONFIG_FILES-"Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in"}
5539 cat >> $CONFIG_STATUS <<\EOF
5540 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5541 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5543 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5544 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5545 *) ac_file_in
="${ac_file}.in" ;;
5548 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5550 # Remove last slash and all that follows it. Not all systems have dirname.
5551 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5552 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5553 # The file is in a subdirectory.
5554 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5555 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5556 # A "../" for each directory in $ac_dir_suffix.
5557 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5559 ac_dir_suffix
= ac_dots
=
5562 case "$ac_given_srcdir" in
5564 if test -z "$ac_dots"; then top_srcdir
=.
5565 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5566 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5568 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5569 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5572 case "$ac_given_INSTALL" in
5573 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5574 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5577 echo creating
"$ac_file"
5579 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5581 *Makefile
*) ac_comsub
="1i\\
5582 # $configure_input" ;;
5586 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5588 s%@configure_input@%$configure_input%g
5589 s%@srcdir@%$srcdir%g
5590 s%@top_srcdir@%$top_srcdir%g
5591 s%@INSTALL@%$INSTALL%g
5592 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5596 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5597 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5599 # ac_d sets the value in "#define NAME VALUE" lines.
5600 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5601 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5604 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5605 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5606 ac_uB
='\([ ]\)%\1#\2define\3'
5609 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5610 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5611 ac_eB
='$%\1#\2define\3'
5615 if test "${CONFIG_HEADERS+set}" != set; then
5617 cat >> $CONFIG_STATUS <<EOF
5618 CONFIG_HEADERS="config.h:config.in"
5620 cat >> $CONFIG_STATUS <<\EOF
5622 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5623 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5625 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5626 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5627 *) ac_file_in
="${ac_file}.in" ;;
5630 echo creating
$ac_file
5632 rm -f conftest.frag conftest.
in conftest.out
5633 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5634 cat $ac_file_inputs > conftest.
in
5638 # Transform confdefs.h into a sed script conftest.vals that substitutes
5639 # the proper values into config.h.in to produce config.h. And first:
5640 # Protect against being on the right side of a sed subst in config.status.
5641 # Protect against being in an unquoted here document in config.status.
5643 cat > conftest.hdr
<<\EOF
5646 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5650 sed -n -f conftest.hdr confdefs.h > conftest.vals
5653 # This sed command replaces #undef with comments. This is necessary, for
5654 # example, in the case of _POSIX_SOURCE, which is predefined and required
5655 # on some systems where configure will not decide to define it.
5656 cat >> conftest.vals <<\EOF
5657 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5660 # Break up conftest.vals because some shells have a limit on
5661 # the size of here documents, and old seds have small limits too.
5666 ac_lines=`grep -c . conftest.vals
`
5667 # grep -c gives empty output for an empty file on some AIX systems.
5668 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5669 # Write a limited-size here document to conftest.frag.
5670 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5671 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5673 sed -f conftest.frag conftest.in > conftest.out
5675 mv conftest.out conftest.in
5677 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5679 mv conftest.tail conftest.vals
5683 cat >> $CONFIG_STATUS <<\EOF
5684 rm -f conftest.frag conftest.h
5685 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5686 cat conftest.in >> conftest.h
5688 if cmp -s $ac_file conftest.h 2>/dev/null; then
5689 echo "$ac_file is unchanged"
5692 # Remove last slash and all that follows it. Not all systems have dirname.
5693 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5694 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5695 # The file is in a subdirectory.
5696 test ! -d "$ac_dir" && mkdir "$ac_dir"
5699 mv conftest.h $ac_file
5705 cat >> $CONFIG_STATUS <<EOF
5706 ac_sources="$sim_link_files"
5707 ac_dests="$sim_link_links"
5710 cat >> $CONFIG_STATUS <<\EOF
5711 srcdir=$ac_given_srcdir
5712 while test -n "$ac_sources"; do
5713 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5714 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5716 echo "linking $srcdir/$ac_source to $ac_dest"
5718 if test ! -r $srcdir/$ac_source; then
5719 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
5723 # Make relative symlinks.
5724 # Remove last slash and all that follows it. Not all systems have dirname.
5725 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
5726 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
5727 # The dest file is in a subdirectory.
5728 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5729 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
5730 # A "../" for each directory in $ac_dest_dir_suffix.
5731 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
5733 ac_dest_dir_suffix= ac_dots=
5737 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5738 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5741 # Make a symlink if possible; otherwise try a hard link.
5742 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5743 ln $srcdir/$ac_source $ac_dest; then :
5745 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5749 cat >> $CONFIG_STATUS <<EOF
5752 cat >> $CONFIG_STATUS <<\EOF
5753 case "x$CONFIG_FILES" in
5755 echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
5756 rm -f Makesim1.tmp Makesim2.tmp Makefile
5757 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
5758 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
5759 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
5760 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
5761 <Makefile.sim >Makefile
5762 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
5765 case "x$CONFIG_HEADERS" in xconfig.h:config.in) echo > stamp-h ;; esac
5769 chmod +x $CONFIG_STATUS
5770 rm -fr confdefs* $ac_clean_files
5771 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1