304 # Do all the work for Automake. This macro actually does too much --
305 # some checks are only needed if your package does certain things.
306 # But this isn't really a big deal.
319 # Check to make sure that the build environment is sane.
327 # serial 25 AM_PROG_LIBTOOL
330 # AM_ENABLE_SHARED - implement the --enable-shared flag
331 # Usage: AM_ENABLE_SHARED[(DEFAULT)]
332 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
336 # AM_DISABLE_SHARED - set the default shared flag to --disable-shared
339 # AM_DISABLE_STATIC - set the default static flag to --disable-static
342 # AM_ENABLE_STATIC - implement the --enable-static flag
343 # Usage: AM_ENABLE_STATIC[(DEFAULT)]
344 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
349 # AM_PROG_LD - find the path to the GNU or non-GNU linker
354 # AM_PROG_NM - find the path to a BSD-compatible name lister
357 # AM_SYS_LIBTOOL_CYGWIN32 - find tools needed on cygwin32
360 # Like AC_CONFIG_HEADER, but automatically create stamp file.
364 # Add --enable-maintainer-mode option to configure.
371 # Check to see if we're running under Cygwin32, without using
372 # AC_CANONICAL_*. If so, set output variable CYGWIN32 to "yes".
373 # Otherwise set it to "no".
377 # Check to see if we're running under Win32, without using
378 # AC_CANONICAL_*. If so, set output variable EXEEXT to ".exe".
379 # Otherwise set it to "".
383 # Check to see if we're running under Mingw, without using
384 # AC_CANONICAL_*. If so, set output variable MINGW32 to "yes".
385 # Otherwise set it to "no".
389 # This file is derived from `gettext.m4'. The difference is that the
390 # included macros assume Cygnus-style source and build trees.
392 # Macro to add for using GNU gettext.
393 # Ulrich Drepper <drepper@cygnus.com>, 1995.
395 # This file file be copied and used freely without restrictions. It can
396 # be used in projects which are not available under the GNU Public License
397 # but which still want to provide support for the GNU gettext functionality.
398 # Please note that the actual code is *not* freely available.
406 # Search path for a program which passes the given test.
407 # Ulrich Drepper <drepper@cygnus.com>, 1996.
409 # This file file be copied and used freely without restrictions. It can
410 # be used in projects which are not available under the GNU Public License
411 # but which still want to provide support for the GNU gettext functionality.
412 # Please note that the actual code is *not* freely available.
418 # Check whether LC_MESSAGES is available in <locale.h>.
419 # Ulrich Drepper <drepper@cygnus.com>, 1995.
421 # This file file be copied and used freely without restrictions. It can
422 # be used in projects which are not available under the GNU Public License
423 # but which still want to provide support for the GNU gettext functionality.
424 # Please note that the actual code is *not* freely available.
430 # Define a conditional.
434 # Guess values for system-dependent variables and create Makefiles.
435 # Generated automatically using autoconf version 2.12.2
436 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
438 # This configure script is free software; the Free Software Foundation
439 # gives unlimited permission to copy, distribute and modify it.
443 ac_default_prefix
=/usr
/local
444 # Any additions from configure.in:
446 --enable-shared[=PKGS] build shared libraries [default=no]"
448 --enable-static[=PKGS] build static libraries [default=yes]"
450 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
452 --enable-targets alternative target configurations"
454 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
456 --enable-maintainer-mode enable make rules and dependencies not useful
457 (and sometimes confusing) to the casual installer"
459 --disable-nls do not use Native Language Support"
461 --with-included-gettext use the GNU gettext library included here"
463 --enable-cgen-maint[=dir] build cgen generated files"
465 # Initialize some variables set by options.
466 # The variables have the same names as the options, with
467 # dashes changed to underlines.
469 cache_file
=.
/config.cache
478 program_transform_name
=s
,x
,x
,
486 bindir
='${exec_prefix}/bin'
487 sbindir
='${exec_prefix}/sbin'
488 libexecdir
='${exec_prefix}/libexec'
489 datadir
='${prefix}/share'
490 sysconfdir
='${prefix}/etc'
491 sharedstatedir
='${prefix}/com'
492 localstatedir
='${prefix}/var'
493 libdir
='${exec_prefix}/lib'
494 includedir
='${prefix}/include'
495 oldincludedir
='/usr/include'
496 infodir
='${prefix}/info'
497 mandir
='${prefix}/man'
499 # Initialize some other variables.
502 SHELL
=${CONFIG_SHELL-/bin/sh}
503 # Maximum number of lines to put in a shell here document.
510 # If the previous option needs an argument, assign it.
511 if test -n "$ac_prev"; then
512 eval "$ac_prev=\$ac_option"
518 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
522 # Accept the important Cygnus configure options, so we can diagnose typos.
526 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
528 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
529 bindir
="$ac_optarg" ;;
531 -build |
--build |
--buil |
--bui |
--bu)
533 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
534 build
="$ac_optarg" ;;
536 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
537 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
538 ac_prev
=cache_file
;;
539 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
540 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
541 cache_file
="$ac_optarg" ;;
543 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
545 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
547 datadir
="$ac_optarg" ;;
549 -disable-* |
--disable-*)
550 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
551 # Reject names that are not valid shell variable names.
552 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
553 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
555 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
556 eval "enable_${ac_feature}=no" ;;
558 -enable-* |
--enable-*)
559 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
560 # Reject names that are not valid shell variable names.
561 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
562 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
564 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
569 eval "enable_${ac_feature}='$ac_optarg'" ;;
571 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
572 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
573 |
--exec |
--exe |
--ex)
574 ac_prev
=exec_prefix
;;
575 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
576 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
577 |
--exec=* |
--exe=* |
--ex=*)
578 exec_prefix
="$ac_optarg" ;;
580 -gas |
--gas |
--ga |
--g)
581 # Obsolete; use --with-gas.
584 -help |
--help |
--hel |
--he)
585 # Omit some internal or obsolete options to make the list less imposing.
586 # This message is too long to be a string in the A/UX 3.1 sh.
588 Usage: configure [options] [host]
589 Options: [defaults in brackets after descriptions]
591 --cache-file=FILE cache test results in FILE
592 --help print this message
593 --no-create do not create output files
594 --quiet, --silent do not print \`checking...' messages
595 --version print the version of autoconf that created configure
596 Directory and file names:
597 --prefix=PREFIX install architecture-independent files in PREFIX
599 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
601 --bindir=DIR user executables in DIR [EPREFIX/bin]
602 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
603 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
604 --datadir=DIR read-only architecture-independent data in DIR
606 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
607 --sharedstatedir=DIR modifiable architecture-independent data in DIR
609 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
610 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
611 --includedir=DIR C header files in DIR [PREFIX/include]
612 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
613 --infodir=DIR info documentation in DIR [PREFIX/info]
614 --mandir=DIR man documentation in DIR [PREFIX/man]
615 --srcdir=DIR find the sources in DIR [configure dir or ..]
616 --program-prefix=PREFIX prepend PREFIX to installed program names
617 --program-suffix=SUFFIX append SUFFIX to installed program names
618 --program-transform-name=PROGRAM
619 run sed PROGRAM on installed program names
623 --build=BUILD configure for building on BUILD [BUILD=HOST]
624 --host=HOST configure for HOST [guessed]
625 --target=TARGET configure for TARGET [TARGET=HOST]
626 Features and packages:
627 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
628 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
629 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
630 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
631 --x-includes=DIR X include files are in DIR
632 --x-libraries=DIR X library files are in DIR
634 if test -n "$ac_help"; then
635 echo "--enable and --with options recognized:$ac_help"
639 -host |
--host |
--hos |
--ho)
641 -host=* |
--host=* |
--hos=* |
--ho=*)
644 -includedir |
--includedir |
--includedi |
--included |
--include \
645 |
--includ |
--inclu |
--incl |
--inc)
646 ac_prev
=includedir
;;
647 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
648 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
649 includedir
="$ac_optarg" ;;
651 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
653 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
654 infodir
="$ac_optarg" ;;
656 -libdir |
--libdir |
--libdi |
--libd)
658 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
659 libdir
="$ac_optarg" ;;
661 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
662 |
--libexe |
--libex |
--libe)
663 ac_prev
=libexecdir
;;
664 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
665 |
--libexe=* |
--libex=* |
--libe=*)
666 libexecdir
="$ac_optarg" ;;
668 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
669 |
--localstate |
--localstat |
--localsta |
--localst \
670 |
--locals |
--local |
--loca |
--loc |
--lo)
671 ac_prev
=localstatedir
;;
672 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
673 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
674 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
675 localstatedir
="$ac_optarg" ;;
677 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
679 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
680 mandir
="$ac_optarg" ;;
683 # Obsolete; use --without-fp.
686 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
690 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
691 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
694 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
695 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
696 |
--oldin |
--oldi |
--old |
--ol |
--o)
697 ac_prev
=oldincludedir
;;
698 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
699 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
700 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
701 oldincludedir
="$ac_optarg" ;;
703 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
705 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
706 prefix
="$ac_optarg" ;;
708 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
709 |
--program-pre |
--program-pr |
--program-p)
710 ac_prev
=program_prefix
;;
711 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
712 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
713 program_prefix
="$ac_optarg" ;;
715 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
716 |
--program-suf |
--program-su |
--program-s)
717 ac_prev
=program_suffix
;;
718 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
719 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
720 program_suffix
="$ac_optarg" ;;
722 -program-transform-name |
--program-transform-name \
723 |
--program-transform-nam |
--program-transform-na \
724 |
--program-transform-n |
--program-transform- \
725 |
--program-transform |
--program-transfor \
726 |
--program-transfo |
--program-transf \
727 |
--program-trans |
--program-tran \
728 |
--progr-tra |
--program-tr |
--program-t)
729 ac_prev
=program_transform_name
;;
730 -program-transform-name=* |
--program-transform-name=* \
731 |
--program-transform-nam=* |
--program-transform-na=* \
732 |
--program-transform-n=* |
--program-transform-=* \
733 |
--program-transform=* |
--program-transfor=* \
734 |
--program-transfo=* |
--program-transf=* \
735 |
--program-trans=* |
--program-tran=* \
736 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
737 program_transform_name
="$ac_optarg" ;;
739 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
740 |
-silent |
--silent |
--silen |
--sile |
--sil)
743 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
745 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
747 sbindir
="$ac_optarg" ;;
749 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
750 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
751 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
753 ac_prev
=sharedstatedir
;;
754 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
755 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
756 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
758 sharedstatedir
="$ac_optarg" ;;
760 -site |
--site |
--sit)
762 -site=* |
--site=* |
--sit=*)
765 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
767 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
768 srcdir
="$ac_optarg" ;;
770 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
771 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
772 ac_prev
=sysconfdir
;;
773 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
774 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
775 sysconfdir
="$ac_optarg" ;;
777 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
779 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
780 target
="$ac_optarg" ;;
782 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
785 -version |
--version |
--versio |
--versi |
--vers)
786 echo "configure generated by autoconf version 2.12.2"
790 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
791 # Reject names that are not valid shell variable names.
792 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
793 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
795 ac_package
=`echo $ac_package| sed 's/-/_/g'`
800 eval "with_${ac_package}='$ac_optarg'" ;;
802 -without-* |
--without-*)
803 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
804 # Reject names that are not valid shell variable names.
805 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
806 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
808 ac_package
=`echo $ac_package| sed 's/-/_/g'`
809 eval "with_${ac_package}=no" ;;
812 # Obsolete; use --with-x.
815 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
816 |
--x-incl |
--x-inc |
--x-in |
--x-i)
817 ac_prev
=x_includes
;;
818 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
819 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
820 x_includes
="$ac_optarg" ;;
822 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
823 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
824 ac_prev
=x_libraries
;;
825 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
826 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
827 x_libraries
="$ac_optarg" ;;
829 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
833 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
834 echo "configure: warning: $ac_option: invalid host type" 1>&2
836 if test "x$nonopt" != xNONE
; then
837 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
845 if test -n "$ac_prev"; then
846 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
849 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
851 # File descriptor usage:
854 # 2 errors and warnings
855 # 3 some systems may open it to /dev/tty
856 # 4 used on the Kubota Titan
857 # 6 checking for... messages and results
858 # 5 compiler messages saved in config.log
859 if test "$silent" = yes; then
867 This file contains any messages produced by compilers while
868 running configure, to aid debugging if configure makes a mistake.
871 # Strip out --no-create and --no-recursion so they do not pile up.
872 # Also quote any args containing shell metacharacters.
877 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
878 |
--no-cr |
--no-c) ;;
879 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
880 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
881 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
882 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
883 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
888 # Only set these to C if already set. These must not be set unconditionally
889 # because not all systems understand e.g. LANG=C (notably SCO).
890 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
891 # Non-C LC_CTYPE values break the ctype check.
892 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
893 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
894 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
895 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
897 # confdefs.h avoids OS command line length limits that DEFS can exceed.
898 rm -rf conftest
* confdefs.h
899 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
902 # A filename unique to this package, relative to the directory that
903 # configure is in, which we can look for to find out if srcdir is correct.
904 ac_unique_file
=z8k-dis.c
906 # Find the source files, if location was not specified.
907 if test -z "$srcdir"; then
908 ac_srcdir_defaulted
=yes
909 # Try the directory containing this script, then its parent.
911 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
912 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
914 if test ! -r $srcdir/$ac_unique_file; then
918 ac_srcdir_defaulted
=no
920 if test ! -r $srcdir/$ac_unique_file; then
921 if test "$ac_srcdir_defaulted" = yes; then
922 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
924 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
927 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
929 # Prefer explicitly selected file to automatically selected ones.
930 if test -z "$CONFIG_SITE"; then
931 if test "x$prefix" != xNONE
; then
932 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
934 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
937 for ac_site_file
in $CONFIG_SITE; do
938 if test -r "$ac_site_file"; then
939 echo "loading site script $ac_site_file"
944 if test -r "$cache_file"; then
945 echo "loading cache $cache_file"
948 echo "creating cache $cache_file"
953 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
954 ac_cpp
='$CPP $CPPFLAGS'
955 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
956 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
957 cross_compiling
=$ac_cv_prog_cc_cross
961 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
962 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
963 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
970 ac_n
= ac_c
='\c' ac_t
=
976 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
977 if test -f $ac_dir/install-sh
; then
979 ac_install_sh
="$ac_aux_dir/install-sh -c"
981 elif test -f $ac_dir/install.sh
; then
983 ac_install_sh
="$ac_aux_dir/install.sh -c"
987 if test -z "$ac_aux_dir"; then
988 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
990 ac_config_guess
=$ac_aux_dir/config.guess
991 ac_config_sub
=$ac_aux_dir/config.sub
992 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
995 # Do some error checking and defaulting for the host and target type.
997 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1000 # 1. You are not allowed to specify --host, --target, and nonopt at the
1002 # 2. Host defaults to nonopt.
1003 # 3. If nonopt is not specified, then host defaults to the current host,
1004 # as determined by config.guess.
1005 # 4. Target and build default to nonopt.
1006 # 5. If nonopt is not specified, then target and build default to host.
1008 # The aliases save the names the user supplied, while $host etc.
1009 # will get canonicalized.
1010 case $host---$target---$nonopt in
1011 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1012 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1016 # Make sure we can run config.sub.
1017 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1018 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1021 echo $ac_n "checking host system type""... $ac_c" 1>&6
1022 echo "configure:1023: checking host system type" >&5
1025 case "$host_alias" in
1029 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1030 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1032 *) host_alias
=$nonopt ;;
1036 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1037 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1038 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1039 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1040 echo "$ac_t""$host" 1>&6
1042 echo $ac_n "checking target system type""... $ac_c" 1>&6
1043 echo "configure:1044: checking target system type" >&5
1045 target_alias
=$target
1046 case "$target_alias" in
1049 NONE
) target_alias
=$host_alias ;;
1050 *) target_alias
=$nonopt ;;
1054 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1055 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1056 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1057 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1058 echo "$ac_t""$target" 1>&6
1060 echo $ac_n "checking build system type""... $ac_c" 1>&6
1061 echo "configure:1062: checking build system type" >&5
1064 case "$build_alias" in
1067 NONE
) build_alias
=$host_alias ;;
1068 *) build_alias
=$nonopt ;;
1072 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1073 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1074 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1075 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1076 echo "$ac_t""$build" 1>&6
1078 test "$host_alias" != "$target_alias" &&
1079 test "$program_prefix$program_suffix$program_transform_name" = \
1081 program_prefix
=${target_alias}-
1083 # Extract the first word of "gcc", so it can be a program name with args.
1084 set dummy gcc
; ac_word
=$2
1085 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1086 echo "configure:1087: checking for $ac_word" >&5
1087 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1088 echo $ac_n "(cached) $ac_c" 1>&6
1090 if test -n "$CC"; then
1091 ac_cv_prog_CC
="$CC" # Let the user override the test.
1093 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1095 for ac_dir
in $ac_dummy; do
1096 test -z "$ac_dir" && ac_dir
=.
1097 if test -f $ac_dir/$ac_word; then
1106 if test -n "$CC"; then
1107 echo "$ac_t""$CC" 1>&6
1109 echo "$ac_t""no" 1>&6
1112 if test -z "$CC"; then
1113 # Extract the first word of "cc", so it can be a program name with args.
1114 set dummy cc
; ac_word
=$2
1115 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1116 echo "configure:1117: checking for $ac_word" >&5
1117 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1118 echo $ac_n "(cached) $ac_c" 1>&6
1120 if test -n "$CC"; then
1121 ac_cv_prog_CC
="$CC" # Let the user override the test.
1123 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1126 for ac_dir
in $ac_dummy; do
1127 test -z "$ac_dir" && ac_dir
=.
1128 if test -f $ac_dir/$ac_word; then
1129 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1130 ac_prog_rejected
=yes
1138 if test $ac_prog_rejected = yes; then
1139 # We found a bogon in the path, so make sure we never use it.
1140 set dummy
$ac_cv_prog_CC
1142 if test $# -gt 0; then
1143 # We chose a different compiler from the bogus one.
1144 # However, it has the same basename, so the bogon will be chosen
1145 # first if we set CC to just the basename; use the full file name.
1147 set dummy
"$ac_dir/$ac_word" "$@"
1155 if test -n "$CC"; then
1156 echo "$ac_t""$CC" 1>&6
1158 echo "$ac_t""no" 1>&6
1161 if test -z "$CC"; then
1162 case "`uname -s`" in
1164 # Extract the first word of "cl", so it can be a program name with args.
1165 set dummy cl
; ac_word
=$2
1166 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1167 echo "configure:1168: checking for $ac_word" >&5
1168 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1169 echo $ac_n "(cached) $ac_c" 1>&6
1171 if test -n "$CC"; then
1172 ac_cv_prog_CC
="$CC" # Let the user override the test.
1174 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1176 for ac_dir
in $ac_dummy; do
1177 test -z "$ac_dir" && ac_dir
=.
1178 if test -f $ac_dir/$ac_word; then
1187 if test -n "$CC"; then
1188 echo "$ac_t""$CC" 1>&6
1190 echo "$ac_t""no" 1>&6
1195 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1198 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1199 echo "configure:1200: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1202 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1203 ac_cpp
='$CPP $CPPFLAGS'
1204 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1205 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1206 cross_compiling
=$ac_cv_prog_cc_cross
1208 cat > conftest.
$ac_ext << EOF
1210 #line 1211 "configure"
1211 #include "confdefs.h"
1215 if { (eval echo configure
:1216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1216 ac_cv_prog_cc_works
=yes
1217 # If we can't run a trivial program, we are probably using a cross compiler.
1218 if (.
/conftest
; exit) 2>/dev
/null
; then
1219 ac_cv_prog_cc_cross
=no
1221 ac_cv_prog_cc_cross
=yes
1224 echo "configure: failed program was:" >&5
1225 cat conftest.
$ac_ext >&5
1226 ac_cv_prog_cc_works
=no
1230 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1231 ac_cpp
='$CPP $CPPFLAGS'
1232 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1233 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1234 cross_compiling
=$ac_cv_prog_cc_cross
1236 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1237 if test $ac_cv_prog_cc_works = no
; then
1238 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1240 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1241 echo "configure:1242: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1242 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1243 cross_compiling
=$ac_cv_prog_cc_cross
1245 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1246 echo "configure:1247: checking whether we are using GNU C" >&5
1247 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1248 echo $ac_n "(cached) $ac_c" 1>&6
1250 cat > conftest.c
<<EOF
1255 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1262 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1264 if test $ac_cv_prog_gcc = yes; then
1270 ac_test_CFLAGS
="${CFLAGS+set}"
1271 ac_save_CFLAGS
="$CFLAGS"
1273 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1274 echo "configure:1275: checking whether ${CC-cc} accepts -g" >&5
1275 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1276 echo $ac_n "(cached) $ac_c" 1>&6
1278 echo 'void f(){}' > conftest.c
1279 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1288 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1289 if test "$ac_test_CFLAGS" = set; then
1290 CFLAGS
="$ac_save_CFLAGS"
1291 elif test $ac_cv_prog_cc_g = yes; then
1292 if test "$GCC" = yes; then
1298 if test "$GCC" = yes; then
1305 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1306 echo "configure:1307: checking for POSIXized ISC" >&5
1307 if test -d /etc
/conf
/kconfig.d
&&
1308 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
1310 echo "$ac_t""yes" 1>&6
1311 ISC
=yes # If later tests want to check for ISC.
1312 cat >> confdefs.h
<<\EOF
1313 #define _POSIX_SOURCE 1
1316 if test "$GCC" = yes; then
1322 echo "$ac_t""no" 1>&6
1327 # We currently only use the version number for the name of any shared
1328 # library. For user convenience, we always use the same version
1329 # number that BFD is using.
1330 BFD_VERSION
=`grep INIT_AUTOMAKE ${srcdir}/../bfd/configure.in | sed -n -e 's/[ ]//g' -e 's/^.*,\(.*\)).*$/\1/p'`
1332 # Find a good install program. We prefer a C program (faster),
1333 # so one script is as good as another. But avoid the broken or
1334 # incompatible versions:
1335 # SysV /etc/install, /usr/sbin/install
1336 # SunOS /usr/etc/install
1337 # IRIX /sbin/install
1339 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1340 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1341 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1342 # ./install, which can be erroneously created by make from ./install.sh.
1343 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1344 echo "configure:1345: checking for a BSD compatible install" >&5
1345 if test -z "$INSTALL"; then
1346 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1347 echo $ac_n "(cached) $ac_c" 1>&6
1349 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1350 for ac_dir
in $PATH; do
1351 # Account for people who put trailing slashes in PATH elements.
1353 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1355 # OSF1 and SCO ODT 3.0 have their own names for install.
1356 # Don't use installbsd from OSF since it installs stuff as root
1358 for ac_prog
in ginstall scoinst
install; do
1359 if test -f $ac_dir/$ac_prog; then
1360 if test $ac_prog = install &&
1361 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1362 # AIX install. It has an incompatible calling convention.
1365 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1376 if test "${ac_cv_path_install+set}" = set; then
1377 INSTALL
="$ac_cv_path_install"
1379 # As a last resort, use the slow shell script. We don't cache a
1380 # path for INSTALL within a source directory, because that will
1381 # break other packages using the cache if that directory is
1382 # removed, or if the path is relative.
1383 INSTALL
="$ac_install_sh"
1386 echo "$ac_t""$INSTALL" 1>&6
1388 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1389 # It thinks the first close brace ends the variable substitution.
1390 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1392 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1394 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1397 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1399 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1400 echo "configure:1401: checking whether build environment is sane" >&5
1403 echo timestamp
> conftestfile
1404 # Do `set' in a subshell so we don't clobber the current shell's
1405 # arguments. Must try -L first in case configure is actually a
1406 # symlink; some systems play weird games with the mod time of symlinks
1407 # (eg FreeBSD returns the mod time of the symlink's containing
1410 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1411 if test "$*" = "X"; then
1413 set X
`ls -t $srcdir/configure conftestfile`
1415 if test "$*" != "X $srcdir/configure conftestfile" \
1416 && test "$*" != "X conftestfile $srcdir/configure"; then
1418 # If neither matched, then we have a broken ls. This can happen
1419 # if, for instance, CONFIG_SHELL is bash and it inherits a
1420 # broken ls alias from the environment. This has actually
1421 # happened. Such a system could not be considered "sane".
1422 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1423 alias in your environment" 1>&2; exit 1; }
1426 test "$2" = conftestfile
1432 { echo "configure: error: newly created file is older than distributed files!
1433 Check your system clock" 1>&2; exit 1; }
1436 echo "$ac_t""yes" 1>&6
1437 if test "$program_transform_name" = s
,x
,x
,; then
1438 program_transform_name
=
1440 # Double any \ or $. echo might interpret backslashes.
1441 cat <<\EOF_SED
> conftestsed
1442 s
,\\,\\\\,g
; s
,\$
,$$
,g
1444 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1447 test "$program_prefix" != NONE
&&
1448 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1449 # Use a double $ so make ignores it.
1450 test "$program_suffix" != NONE
&&
1451 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1453 # sed with no file args requires a program.
1454 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1456 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1457 echo "configure:1458: checking whether ${MAKE-make} sets \${MAKE}" >&5
1458 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1459 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1460 echo $ac_n "(cached) $ac_c" 1>&6
1462 cat > conftestmake
<<\EOF
1464 @
echo 'ac_maketemp="${MAKE}"'
1466 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1467 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1468 if test -n "$ac_maketemp"; then
1469 eval ac_cv_prog_make_
${ac_make}_set
=yes
1471 eval ac_cv_prog_make_
${ac_make}_set
=no
1475 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1476 echo "$ac_t""yes" 1>&6
1479 echo "$ac_t""no" 1>&6
1480 SET_MAKE
="MAKE=${MAKE-make}"
1486 VERSION
=${BFD_VERSION}
1488 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
1489 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
1491 cat >> confdefs.h
<<EOF
1492 #define PACKAGE "$PACKAGE"
1495 cat >> confdefs.h
<<EOF
1496 #define VERSION "$VERSION"
1501 missing_dir
=`cd $ac_aux_dir && pwd`
1502 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1503 echo "configure:1504: checking for working aclocal" >&5
1504 # Run test in a subshell; some versions of sh will print an error if
1505 # an executable is not found, even if stderr is redirected.
1506 # Redirect stdin to placate older versions of autoconf. Sigh.
1507 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
1509 echo "$ac_t""found" 1>&6
1511 ACLOCAL
="$missing_dir/missing aclocal"
1512 echo "$ac_t""missing" 1>&6
1515 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1516 echo "configure:1517: checking for working autoconf" >&5
1517 # Run test in a subshell; some versions of sh will print an error if
1518 # an executable is not found, even if stderr is redirected.
1519 # Redirect stdin to placate older versions of autoconf. Sigh.
1520 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
1522 echo "$ac_t""found" 1>&6
1524 AUTOCONF
="$missing_dir/missing autoconf"
1525 echo "$ac_t""missing" 1>&6
1528 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1529 echo "configure:1530: checking for working automake" >&5
1530 # Run test in a subshell; some versions of sh will print an error if
1531 # an executable is not found, even if stderr is redirected.
1532 # Redirect stdin to placate older versions of autoconf. Sigh.
1533 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
1535 echo "$ac_t""found" 1>&6
1537 AUTOMAKE
="$missing_dir/missing automake"
1538 echo "$ac_t""missing" 1>&6
1541 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1542 echo "configure:1543: checking for working autoheader" >&5
1543 # Run test in a subshell; some versions of sh will print an error if
1544 # an executable is not found, even if stderr is redirected.
1545 # Redirect stdin to placate older versions of autoconf. Sigh.
1546 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
1547 AUTOHEADER
=autoheader
1548 echo "$ac_t""found" 1>&6
1550 AUTOHEADER
="$missing_dir/missing autoheader"
1551 echo "$ac_t""missing" 1>&6
1554 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1555 echo "configure:1556: checking for working makeinfo" >&5
1556 # Run test in a subshell; some versions of sh will print an error if
1557 # an executable is not found, even if stderr is redirected.
1558 # Redirect stdin to placate older versions of autoconf. Sigh.
1559 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
1561 echo "$ac_t""found" 1>&6
1563 MAKEINFO
="$missing_dir/missing makeinfo"
1564 echo "$ac_t""missing" 1>&6
1569 if test $host != $build; then
1570 ac_tool_prefix
=${host_alias}-
1575 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1576 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1577 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1578 echo "configure:1579: checking for $ac_word" >&5
1579 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1580 echo $ac_n "(cached) $ac_c" 1>&6
1582 if test -n "$AR"; then
1583 ac_cv_prog_AR
="$AR" # Let the user override the test.
1585 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1587 for ac_dir
in $ac_dummy; do
1588 test -z "$ac_dir" && ac_dir
=.
1589 if test -f $ac_dir/$ac_word; then
1590 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1595 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1599 if test -n "$AR"; then
1600 echo "$ac_t""$AR" 1>&6
1602 echo "$ac_t""no" 1>&6
1607 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1608 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1609 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1610 echo "configure:1611: checking for $ac_word" >&5
1611 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1612 echo $ac_n "(cached) $ac_c" 1>&6
1614 if test -n "$RANLIB"; then
1615 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1617 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1619 for ac_dir
in $ac_dummy; do
1620 test -z "$ac_dir" && ac_dir
=.
1621 if test -f $ac_dir/$ac_word; then
1622 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1629 RANLIB
="$ac_cv_prog_RANLIB"
1630 if test -n "$RANLIB"; then
1631 echo "$ac_t""$RANLIB" 1>&6
1633 echo "$ac_t""no" 1>&6
1637 if test -z "$ac_cv_prog_RANLIB"; then
1638 if test -n "$ac_tool_prefix"; then
1639 # Extract the first word of "ranlib", so it can be a program name with args.
1640 set dummy ranlib
; ac_word
=$2
1641 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1642 echo "configure:1643: checking for $ac_word" >&5
1643 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1644 echo $ac_n "(cached) $ac_c" 1>&6
1646 if test -n "$RANLIB"; then
1647 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1649 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1651 for ac_dir
in $ac_dummy; do
1652 test -z "$ac_dir" && ac_dir
=.
1653 if test -f $ac_dir/$ac_word; then
1654 ac_cv_prog_RANLIB
="ranlib"
1659 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1662 RANLIB
="$ac_cv_prog_RANLIB"
1663 if test -n "$RANLIB"; then
1664 echo "$ac_t""$RANLIB" 1>&6
1666 echo "$ac_t""no" 1>&6
1675 # Check whether --enable-shared or --disable-shared was given.
1676 if test "${enable_shared+set}" = set; then
1677 enableval
="$enable_shared"
1678 p
=${PACKAGE-default}
1679 case "$enableval" in
1680 yes) enable_shared
=yes ;;
1681 no
) enable_shared
=no
;;
1684 # Look at the argument we got. We use all the common list separators.
1685 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1686 for pkg
in $enableval; do
1687 if test "X$pkg" = "X$p"; then
1699 # Check whether --enable-static or --disable-static was given.
1700 if test "${enable_static+set}" = set; then
1701 enableval
="$enable_static"
1702 p
=${PACKAGE-default}
1703 case "$enableval" in
1704 yes) enable_static
=yes ;;
1705 no
) enable_static
=no
;;
1708 # Look at the argument we got. We use all the common list separators.
1709 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1710 for pkg
in $enableval; do
1711 if test "X$pkg" = "X$p"; then
1722 # Extract the first word of "ranlib", so it can be a program name with args.
1723 set dummy ranlib
; ac_word
=$2
1724 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1725 echo "configure:1726: checking for $ac_word" >&5
1726 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1727 echo $ac_n "(cached) $ac_c" 1>&6
1729 if test -n "$RANLIB"; then
1730 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1732 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1734 for ac_dir
in $ac_dummy; do
1735 test -z "$ac_dir" && ac_dir
=.
1736 if test -f $ac_dir/$ac_word; then
1737 ac_cv_prog_RANLIB
="ranlib"
1742 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1745 RANLIB
="$ac_cv_prog_RANLIB"
1746 if test -n "$RANLIB"; then
1747 echo "$ac_t""$RANLIB" 1>&6
1749 echo "$ac_t""no" 1>&6
1752 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1753 if test "${with_gnu_ld+set}" = set; then
1754 withval
="$with_gnu_ld"
1755 test "$withval" = no || with_gnu_ld
=yes
1762 if test "$ac_cv_prog_gcc" = yes; then
1763 # Check if gcc -print-prog-name=ld gives a path.
1764 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1765 echo "configure:1766: checking for ld used by GCC" >&5
1766 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1768 # Accept absolute paths.
1770 test -z "$LD" && LD
="$ac_prog"
1773 # If it fails, then pretend we aren't using GCC.
1777 # If it is relative, then search for the first ld in PATH.
1781 elif test "$with_gnu_ld" = yes; then
1782 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1783 echo "configure:1784: checking for GNU ld" >&5
1785 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1786 echo "configure:1787: checking for non-GNU ld" >&5
1788 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1789 echo $ac_n "(cached) $ac_c" 1>&6
1791 if test -z "$LD"; then
1792 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1793 for ac_dir
in $PATH; do
1794 test -z "$ac_dir" && ac_dir
=.
1795 if test -f "$ac_dir/$ac_prog"; then
1796 ac_cv_path_LD
="$ac_dir/$ac_prog"
1797 # Check to see if the program is GNU ld. I'd rather use --version,
1798 # but apparently some GNU ld's only accept -v.
1799 # Break only if it was the GNU/non-GNU ld that we prefer.
1800 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1801 test "$with_gnu_ld" != no
&& break
1803 test "$with_gnu_ld" != yes && break
1809 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1814 if test -n "$LD"; then
1815 echo "$ac_t""$LD" 1>&6
1817 echo "$ac_t""no" 1>&6
1819 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1821 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1822 echo "configure:1823: checking if the linker ($LD) is GNU ld" >&5
1823 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1824 echo $ac_n "(cached) $ac_c" 1>&6
1826 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1827 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1828 ac_cv_prog_gnu_ld
=yes
1830 ac_cv_prog_gnu_ld
=no
1834 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1837 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1838 echo "configure:1839: checking for BSD-compatible nm" >&5
1839 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1840 echo $ac_n "(cached) $ac_c" 1>&6
1842 if test -n "$NM"; then
1843 # Let the user override the test.
1846 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1847 for ac_dir
in /usr
/ucb
/usr
/ccs
/bin
$PATH /bin
; do
1848 test -z "$ac_dir" && ac_dir
=.
1849 if test -f $ac_dir/nm
; then
1850 # Check to see if the nm accepts a BSD-compat flag.
1851 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1852 # nm: unknown option "B" ignored
1853 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1854 ac_cv_path_NM
="$ac_dir/nm -B"
1855 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1856 ac_cv_path_NM
="$ac_dir/nm -p"
1858 ac_cv_path_NM
="$ac_dir/nm"
1864 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1869 echo "$ac_t""$NM" 1>&6
1872 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1873 echo "configure:1874: checking whether ln -s works" >&5
1874 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1875 echo $ac_n "(cached) $ac_c" 1>&6
1878 if ln -s X conftestdata
2>/dev
/null
1881 ac_cv_prog_LN_S
="ln -s"
1886 LN_S
="$ac_cv_prog_LN_S"
1887 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1888 echo "$ac_t""yes" 1>&6
1890 echo "$ac_t""no" 1>&6
1893 # Always use our own libtool.
1894 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1896 # Check for any special flags to pass to ltconfig.
1898 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1899 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1900 test "$silent" = yes && libtool_flags
="$libtool_flags --silent"
1901 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1902 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1904 # Some flags need to be propagated to the compiler or linker for good
1908 # Find out which ABI we are using.
1909 echo '#line 1910 "configure"' > conftest.
$ac_ext
1910 if { (eval echo configure
:1911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1911 case "`/usr/bin/file conftest.o`" in
1927 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1928 CFLAGS
="$CFLAGS -belf"
1932 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
1933 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
1934 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1935 echo "configure:1936: checking for $ac_word" >&5
1936 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1937 echo $ac_n "(cached) $ac_c" 1>&6
1939 if test -n "$DLLTOOL"; then
1940 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
1942 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1944 for ac_dir
in $ac_dummy; do
1945 test -z "$ac_dir" && ac_dir
=.
1946 if test -f $ac_dir/$ac_word; then
1947 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
1954 DLLTOOL
="$ac_cv_prog_DLLTOOL"
1955 if test -n "$DLLTOOL"; then
1956 echo "$ac_t""$DLLTOOL" 1>&6
1958 echo "$ac_t""no" 1>&6
1962 if test -z "$ac_cv_prog_DLLTOOL"; then
1963 if test -n "$ac_tool_prefix"; then
1964 # Extract the first word of "dlltool", so it can be a program name with args.
1965 set dummy dlltool
; ac_word
=$2
1966 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1967 echo "configure:1968: checking for $ac_word" >&5
1968 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1969 echo $ac_n "(cached) $ac_c" 1>&6
1971 if test -n "$DLLTOOL"; then
1972 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
1974 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1976 for ac_dir
in $ac_dummy; do
1977 test -z "$ac_dir" && ac_dir
=.
1978 if test -f $ac_dir/$ac_word; then
1979 ac_cv_prog_DLLTOOL
="dlltool"
1984 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="false"
1987 DLLTOOL
="$ac_cv_prog_DLLTOOL"
1988 if test -n "$DLLTOOL"; then
1989 echo "$ac_t""$DLLTOOL" 1>&6
1991 echo "$ac_t""no" 1>&6
1999 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2000 set dummy
${ac_tool_prefix}as
; ac_word
=$2
2001 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2002 echo "configure:2003: checking for $ac_word" >&5
2003 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2004 echo $ac_n "(cached) $ac_c" 1>&6
2006 if test -n "$AS"; then
2007 ac_cv_prog_AS
="$AS" # Let the user override the test.
2009 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2011 for ac_dir
in $ac_dummy; do
2012 test -z "$ac_dir" && ac_dir
=.
2013 if test -f $ac_dir/$ac_word; then
2014 ac_cv_prog_AS
="${ac_tool_prefix}as"
2022 if test -n "$AS"; then
2023 echo "$ac_t""$AS" 1>&6
2025 echo "$ac_t""no" 1>&6
2029 if test -z "$ac_cv_prog_AS"; then
2030 if test -n "$ac_tool_prefix"; then
2031 # Extract the first word of "as", so it can be a program name with args.
2032 set dummy as
; 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_AS'+set}'`\" = set"; then
2036 echo $ac_n "(cached) $ac_c" 1>&6
2038 if test -n "$AS"; then
2039 ac_cv_prog_AS
="$AS" # Let the user override the test.
2041 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2043 for ac_dir
in $ac_dummy; do
2044 test -z "$ac_dir" && ac_dir
=.
2045 if test -f $ac_dir/$ac_word; then
2051 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS
="false"
2055 if test -n "$AS"; then
2056 echo "$ac_t""$AS" 1>&6
2058 echo "$ac_t""no" 1>&6
2071 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2072 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
2073 LD
="$LD" NM
="$NM" RANLIB
="$RANLIB" LN_S
="$LN_S" \
2074 DLLTOOL
="$DLLTOOL" AS
="$AS" \
2075 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
2076 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
2077 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2079 # Redirect the config.log output again, so that the ltconfig log is not
2080 # clobbered by the next message.
2081 exec 5>>.
/config.log
2084 # Check whether --enable-targets or --disable-targets was given.
2085 if test "${enable_targets+set}" = set; then
2086 enableval
="$enable_targets"
2087 case "${enableval}" in
2088 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2090 no
) enable_targets
= ;;
2091 *) enable_targets
=$enableval ;;
2094 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
2095 if test "${enable_commonbfdlib+set}" = set; then
2096 enableval
="$enable_commonbfdlib"
2097 case "${enableval}" in
2098 yes) commonbfdlib
=true
;;
2099 no
) commonbfdlib
=false
;;
2100 *) { echo "configure: error: bad value ${enableval} for opcodes commonbfdlib option" 1>&2; exit 1; } ;;
2108 if test -z "$target" ; then
2109 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
2111 if test "$program_transform_name" = s
,x
,x
,; then
2112 program_transform_name
=
2114 # Double any \ or $. echo might interpret backslashes.
2115 cat <<\EOF_SED
> conftestsed
2116 s
,\\,\\\\,g
; s
,\$
,$$
,g
2118 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
2121 test "$program_prefix" != NONE
&&
2122 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
2123 # Use a double $ so make ignores it.
2124 test "$program_suffix" != NONE
&&
2125 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
2127 # sed with no file args requires a program.
2128 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
2131 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2132 echo "configure:2133: checking whether to enable maintainer-specific portions of Makefiles" >&5
2133 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2134 if test "${enable_maintainer_mode+set}" = set; then
2135 enableval
="$enable_maintainer_mode"
2136 USE_MAINTAINER_MODE
=$enableval
2138 USE_MAINTAINER_MODE
=no
2141 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2142 if test $USE_MAINTAINER_MODE = yes; then
2149 echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
2150 echo "configure:2151: checking for Cygwin32 environment" >&5
2151 if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
2152 echo $ac_n "(cached) $ac_c" 1>&6
2154 cat > conftest.
$ac_ext <<EOF
2155 #line 2156 "configure"
2156 #include "confdefs.h"
2159 return __CYGWIN32__;
2162 if { (eval echo configure
:2163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2166 echo "configure: failed program was:" >&5
2167 cat conftest.
$ac_ext >&5
2175 echo "$ac_t""$am_cv_cygwin32" 1>&6
2177 test "$am_cv_cygwin32" = yes && CYGWIN32
=yes
2178 echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6
2179 echo "configure:2180: checking for Mingw32 environment" >&5
2180 if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then
2181 echo $ac_n "(cached) $ac_c" 1>&6
2183 cat > conftest.
$ac_ext <<EOF
2184 #line 2185 "configure"
2185 #include "confdefs.h"
2191 if { (eval echo configure
:2192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2195 echo "configure: failed program was:" >&5
2196 cat conftest.
$ac_ext >&5
2204 echo "$ac_t""$am_cv_mingw32" 1>&6
2206 test "$am_cv_mingw32" = yes && MINGW32
=yes
2209 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2210 echo "configure:2211: checking for executable suffix" >&5
2211 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
2212 echo $ac_n "(cached) $ac_c" 1>&6
2214 if test "$CYGWIN32" = yes ||
test "$MINGW32" = yes; then
2217 cat > am_c_test.c
<< 'EOF'
2219 /* Nothing needed here
*/
2222 ${CC-cc} -o am_c_test
$CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c
$LIBS 1>&5
2224 for file in am_c_test.
*; do
2228 *) am_cv_exeext
=`echo $file | sed -e s/am_c_test//` ;;
2234 test x
"${am_cv_exeext}" = x
&& am_cv_exeext
=no
2237 test x
"${am_cv_exeext}" != xno
&& EXEEXT
=${am_cv_exeext}
2238 echo "$ac_t""${am_cv_exeext}" 1>&6
2241 # host-specific stuff:
2243 # Extract the first word of "gcc", so it can be a program name with args.
2244 set dummy gcc
; ac_word
=$2
2245 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2246 echo "configure:2247: checking for $ac_word" >&5
2247 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2248 echo $ac_n "(cached) $ac_c" 1>&6
2250 if test -n "$CC"; then
2251 ac_cv_prog_CC
="$CC" # Let the user override the test.
2253 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2255 for ac_dir
in $ac_dummy; do
2256 test -z "$ac_dir" && ac_dir
=.
2257 if test -f $ac_dir/$ac_word; then
2266 if test -n "$CC"; then
2267 echo "$ac_t""$CC" 1>&6
2269 echo "$ac_t""no" 1>&6
2272 if test -z "$CC"; then
2273 # Extract the first word of "cc", so it can be a program name with args.
2274 set dummy cc
; ac_word
=$2
2275 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2276 echo "configure:2277: checking for $ac_word" >&5
2277 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2278 echo $ac_n "(cached) $ac_c" 1>&6
2280 if test -n "$CC"; then
2281 ac_cv_prog_CC
="$CC" # Let the user override the test.
2283 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2286 for ac_dir
in $ac_dummy; do
2287 test -z "$ac_dir" && ac_dir
=.
2288 if test -f $ac_dir/$ac_word; then
2289 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2290 ac_prog_rejected
=yes
2298 if test $ac_prog_rejected = yes; then
2299 # We found a bogon in the path, so make sure we never use it.
2300 set dummy
$ac_cv_prog_CC
2302 if test $# -gt 0; then
2303 # We chose a different compiler from the bogus one.
2304 # However, it has the same basename, so the bogon will be chosen
2305 # first if we set CC to just the basename; use the full file name.
2307 set dummy
"$ac_dir/$ac_word" "$@"
2315 if test -n "$CC"; then
2316 echo "$ac_t""$CC" 1>&6
2318 echo "$ac_t""no" 1>&6
2321 if test -z "$CC"; then
2322 case "`uname -s`" in
2324 # Extract the first word of "cl", so it can be a program name with args.
2325 set dummy cl
; ac_word
=$2
2326 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2327 echo "configure:2328: checking for $ac_word" >&5
2328 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2329 echo $ac_n "(cached) $ac_c" 1>&6
2331 if test -n "$CC"; then
2332 ac_cv_prog_CC
="$CC" # Let the user override the test.
2334 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2336 for ac_dir
in $ac_dummy; do
2337 test -z "$ac_dir" && ac_dir
=.
2338 if test -f $ac_dir/$ac_word; then
2347 if test -n "$CC"; then
2348 echo "$ac_t""$CC" 1>&6
2350 echo "$ac_t""no" 1>&6
2355 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2358 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2359 echo "configure:2360: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2362 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2363 ac_cpp
='$CPP $CPPFLAGS'
2364 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2365 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2366 cross_compiling
=$ac_cv_prog_cc_cross
2368 cat > conftest.
$ac_ext << EOF
2370 #line 2371 "configure"
2371 #include "confdefs.h"
2375 if { (eval echo configure
:2376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2376 ac_cv_prog_cc_works
=yes
2377 # If we can't run a trivial program, we are probably using a cross compiler.
2378 if (.
/conftest
; exit) 2>/dev
/null
; then
2379 ac_cv_prog_cc_cross
=no
2381 ac_cv_prog_cc_cross
=yes
2384 echo "configure: failed program was:" >&5
2385 cat conftest.
$ac_ext >&5
2386 ac_cv_prog_cc_works
=no
2390 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2391 ac_cpp
='$CPP $CPPFLAGS'
2392 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2393 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2394 cross_compiling
=$ac_cv_prog_cc_cross
2396 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2397 if test $ac_cv_prog_cc_works = no
; then
2398 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2400 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2401 echo "configure:2402: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2402 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2403 cross_compiling
=$ac_cv_prog_cc_cross
2405 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2406 echo "configure:2407: checking whether we are using GNU C" >&5
2407 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2408 echo $ac_n "(cached) $ac_c" 1>&6
2410 cat > conftest.c
<<EOF
2415 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2422 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2424 if test $ac_cv_prog_gcc = yes; then
2430 ac_test_CFLAGS
="${CFLAGS+set}"
2431 ac_save_CFLAGS
="$CFLAGS"
2433 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2434 echo "configure:2435: checking whether ${CC-cc} accepts -g" >&5
2435 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2436 echo $ac_n "(cached) $ac_c" 1>&6
2438 echo 'void f(){}' > conftest.c
2439 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2448 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2449 if test "$ac_test_CFLAGS" = set; then
2450 CFLAGS
="$ac_save_CFLAGS"
2451 elif test $ac_cv_prog_cc_g = yes; then
2452 if test "$GCC" = yes; then
2458 if test "$GCC" = yes; then
2467 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2468 echo "configure:2469: checking how to run the C preprocessor" >&5
2469 # On Suns, sometimes $CPP names a directory.
2470 if test -n "$CPP" && test -d "$CPP"; then
2473 if test -z "$CPP"; then
2474 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2475 echo $ac_n "(cached) $ac_c" 1>&6
2477 # This must be in double quotes, not single quotes, because CPP may get
2478 # substituted into the Makefile and "${CC-cc}" will confuse make.
2480 # On the NeXT, cc -E runs the code through the compiler's parser,
2481 # not just through cpp.
2482 cat > conftest.
$ac_ext <<EOF
2483 #line 2484 "configure"
2484 #include "confdefs.h"
2488 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2489 { (eval echo configure
:2490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2490 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2491 if test -z "$ac_err"; then
2495 echo "configure: failed program was:" >&5
2496 cat conftest.
$ac_ext >&5
2498 CPP
="${CC-cc} -E -traditional-cpp"
2499 cat > conftest.
$ac_ext <<EOF
2500 #line 2501 "configure"
2501 #include "confdefs.h"
2505 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2506 { (eval echo configure
:2507: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2507 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2508 if test -z "$ac_err"; then
2512 echo "configure: failed program was:" >&5
2513 cat conftest.
$ac_ext >&5
2515 CPP
="${CC-cc} -nologo -E"
2516 cat > conftest.
$ac_ext <<EOF
2517 #line 2518 "configure"
2518 #include "confdefs.h"
2522 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2523 { (eval echo configure
:2524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2524 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2525 if test -z "$ac_err"; then
2529 echo "configure: failed program was:" >&5
2530 cat conftest.
$ac_ext >&5
2539 ac_cv_prog_CPP
="$CPP"
2541 CPP
="$ac_cv_prog_CPP"
2543 ac_cv_prog_CPP
="$CPP"
2545 echo "$ac_t""$CPP" 1>&6
2547 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2548 echo "configure:2549: checking for ANSI C header files" >&5
2549 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2550 echo $ac_n "(cached) $ac_c" 1>&6
2552 cat > conftest.
$ac_ext <<EOF
2553 #line 2554 "configure"
2554 #include "confdefs.h"
2560 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2561 { (eval echo configure
:2562: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2562 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2563 if test -z "$ac_err"; then
2565 ac_cv_header_stdc
=yes
2568 echo "configure: failed program was:" >&5
2569 cat conftest.
$ac_ext >&5
2571 ac_cv_header_stdc
=no
2575 if test $ac_cv_header_stdc = yes; then
2576 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2577 cat > conftest.
$ac_ext <<EOF
2578 #line 2579 "configure"
2579 #include "confdefs.h"
2582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2583 egrep "memchr" >/dev
/null
2>&1; then
2587 ac_cv_header_stdc
=no
2593 if test $ac_cv_header_stdc = yes; then
2594 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2595 cat > conftest.
$ac_ext <<EOF
2596 #line 2597 "configure"
2597 #include "confdefs.h"
2600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2601 egrep "free" >/dev
/null
2>&1; then
2605 ac_cv_header_stdc
=no
2611 if test $ac_cv_header_stdc = yes; then
2612 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2613 if test "$cross_compiling" = yes; then
2616 cat > conftest.
$ac_ext <<EOF
2617 #line 2618 "configure"
2618 #include "confdefs.h"
2620 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2621 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2622 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2623 int main () { int i; for (i = 0; i < 256; i++)
2624 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2628 if { (eval echo configure
:2629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2632 echo "configure: failed program was:" >&5
2633 cat conftest.
$ac_ext >&5
2635 ac_cv_header_stdc
=no
2643 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2644 if test $ac_cv_header_stdc = yes; then
2645 cat >> confdefs.h
<<\EOF
2646 #define STDC_HEADERS 1
2651 echo $ac_n "checking for working const""... $ac_c" 1>&6
2652 echo "configure:2653: checking for working const" >&5
2653 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2654 echo $ac_n "(cached) $ac_c" 1>&6
2656 cat > conftest.
$ac_ext <<EOF
2657 #line 2658 "configure"
2658 #include "confdefs.h"
2662 /* Ultrix mips cc rejects this. */
2663 typedef int charset[2]; const charset x;
2664 /* SunOS 4.1.1 cc rejects this. */
2665 char const *const *ccp;
2667 /* NEC SVR4.0.2 mips cc rejects this. */
2668 struct point {int x, y;};
2669 static struct point const zero = {0,0};
2670 /* AIX XL C 1.02.0.0 rejects this.
2671 It does not let you subtract one const X* pointer from another in an arm
2672 of an if-expression whose if-part is not a constant expression */
2673 const char *g = "string";
2674 ccp = &g + (g ? g-g : 0);
2675 /* HPUX 7.0 cc rejects these. */
2678 ccp = (char const *const *) p;
2679 { /* SCO 3.2v4 cc rejects this. */
2681 char const *s = 0 ? (char *) 0 : (char const *) 0;
2685 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2687 const int *foo = &x[0];
2690 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2691 typedef const int *iptr;
2695 { /* AIX XL C 1.02.0.0 rejects this saying
2696 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2697 struct s { int j; const int *ap[3]; };
2698 struct s *b; b->j = 5;
2700 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2706 if { (eval echo configure
:2707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2710 echo "configure: failed program was:" >&5
2711 cat conftest.
$ac_ext >&5
2718 echo "$ac_t""$ac_cv_c_const" 1>&6
2719 if test $ac_cv_c_const = no
; then
2720 cat >> confdefs.h
<<\EOF
2726 echo $ac_n "checking for inline""... $ac_c" 1>&6
2727 echo "configure:2728: checking for inline" >&5
2728 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2729 echo $ac_n "(cached) $ac_c" 1>&6
2732 for ac_kw
in inline __inline__ __inline
; do
2733 cat > conftest.
$ac_ext <<EOF
2734 #line 2735 "configure"
2735 #include "confdefs.h"
2741 if { (eval echo configure
:2742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2743 ac_cv_c_inline
=$ac_kw; break
2745 echo "configure: failed program was:" >&5
2746 cat conftest.
$ac_ext >&5
2753 echo "$ac_t""$ac_cv_c_inline" 1>&6
2754 case "$ac_cv_c_inline" in
2756 no
) cat >> confdefs.h
<<\EOF
2760 *) cat >> confdefs.h
<<EOF
2761 #define inline $ac_cv_c_inline
2766 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2767 echo "configure:2768: checking for off_t" >&5
2768 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2769 echo $ac_n "(cached) $ac_c" 1>&6
2771 cat > conftest.
$ac_ext <<EOF
2772 #line 2773 "configure"
2773 #include "confdefs.h"
2774 #include <sys/types.h>
2780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2781 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2783 ac_cv_type_off_t
=yes
2791 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2792 if test $ac_cv_type_off_t = no
; then
2793 cat >> confdefs.h
<<\EOF
2799 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2800 echo "configure:2801: checking for size_t" >&5
2801 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2802 echo $ac_n "(cached) $ac_c" 1>&6
2804 cat > conftest.
$ac_ext <<EOF
2805 #line 2806 "configure"
2806 #include "confdefs.h"
2807 #include <sys/types.h>
2813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2814 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2816 ac_cv_type_size_t
=yes
2819 ac_cv_type_size_t
=no
2824 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2825 if test $ac_cv_type_size_t = no
; then
2826 cat >> confdefs.h
<<\EOF
2827 #define size_t unsigned
2832 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2833 # for constant arguments. Useless!
2834 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2835 echo "configure:2836: checking for working alloca.h" >&5
2836 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2837 echo $ac_n "(cached) $ac_c" 1>&6
2839 cat > conftest.
$ac_ext <<EOF
2840 #line 2841 "configure"
2841 #include "confdefs.h"
2844 char *p = alloca(2 * sizeof(int));
2847 if { (eval echo configure
:2848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2849 ac_cv_header_alloca_h
=yes
2851 echo "configure: failed program was:" >&5
2852 cat conftest.
$ac_ext >&5
2854 ac_cv_header_alloca_h
=no
2859 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2860 if test $ac_cv_header_alloca_h = yes; then
2861 cat >> confdefs.h
<<\EOF
2862 #define HAVE_ALLOCA_H 1
2867 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2868 echo "configure:2869: checking for alloca" >&5
2869 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2870 echo $ac_n "(cached) $ac_c" 1>&6
2872 cat > conftest.
$ac_ext <<EOF
2873 #line 2874 "configure"
2874 #include "confdefs.h"
2877 # define alloca __builtin_alloca
2880 # include <malloc.h>
2881 # define alloca _alloca
2884 # include <alloca.h>
2889 # ifndef alloca /* predefined by HP cc +Olibcalls */
2898 char *p = (char *) alloca(1);
2901 if { (eval echo configure
:2902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2903 ac_cv_func_alloca_works
=yes
2905 echo "configure: failed program was:" >&5
2906 cat conftest.
$ac_ext >&5
2908 ac_cv_func_alloca_works
=no
2913 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2914 if test $ac_cv_func_alloca_works = yes; then
2915 cat >> confdefs.h
<<\EOF
2916 #define HAVE_ALLOCA 1
2921 if test $ac_cv_func_alloca_works = no
; then
2922 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2923 # that cause trouble. Some versions do not even contain alloca or
2924 # contain a buggy version. If you still want to use their alloca,
2925 # use ar to extract alloca.o from them instead of compiling alloca.c.
2926 ALLOCA
=alloca.
${ac_objext}
2927 cat >> confdefs.h
<<\EOF
2932 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2933 echo "configure:2934: checking whether alloca needs Cray hooks" >&5
2934 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2935 echo $ac_n "(cached) $ac_c" 1>&6
2937 cat > conftest.
$ac_ext <<EOF
2938 #line 2939 "configure"
2939 #include "confdefs.h"
2940 #if defined(CRAY) && ! defined(CRAY2)
2947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2948 egrep "webecray" >/dev
/null
2>&1; then
2959 echo "$ac_t""$ac_cv_os_cray" 1>&6
2960 if test $ac_cv_os_cray = yes; then
2961 for ac_func
in _getb67 GETB67 getb67
; do
2962 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2963 echo "configure:2964: checking for $ac_func" >&5
2964 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2965 echo $ac_n "(cached) $ac_c" 1>&6
2967 cat > conftest.
$ac_ext <<EOF
2968 #line 2969 "configure"
2969 #include "confdefs.h"
2970 /* System header to define __stub macros and hopefully few prototypes,
2971 which can conflict with char $ac_func(); below. */
2973 /* Override any gcc2 internal prototype to avoid an error. */
2974 /* We use char because int might match the return type of a gcc2
2975 builtin and then its argument prototype would still apply. */
2980 /* The GNU C library defines this for functions which it implements
2981 to always fail with ENOSYS. Some functions are actually named
2982 something starting with __ and the normal name is an alias. */
2983 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2991 if { (eval echo configure
:2992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2993 eval "ac_cv_func_$ac_func=yes"
2995 echo "configure: failed program was:" >&5
2996 cat conftest.
$ac_ext >&5
2998 eval "ac_cv_func_$ac_func=no"
3003 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3004 echo "$ac_t""yes" 1>&6
3005 cat >> confdefs.h
<<EOF
3006 #define CRAY_STACKSEG_END $ac_func
3011 echo "$ac_t""no" 1>&6
3017 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3018 echo "configure:3019: checking stack direction for C alloca" >&5
3019 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3020 echo $ac_n "(cached) $ac_c" 1>&6
3022 if test "$cross_compiling" = yes; then
3023 ac_cv_c_stack_direction
=0
3025 cat > conftest.
$ac_ext <<EOF
3026 #line 3027 "configure"
3027 #include "confdefs.h"
3028 find_stack_direction ()
3030 static char *addr = 0;
3035 return find_stack_direction ();
3038 return (&dummy > addr) ? 1 : -1;
3042 exit (find_stack_direction() < 0);
3045 if { (eval echo configure
:3046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3047 ac_cv_c_stack_direction
=1
3049 echo "configure: failed program was:" >&5
3050 cat conftest.
$ac_ext >&5
3052 ac_cv_c_stack_direction
=-1
3059 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3060 cat >> confdefs.h
<<EOF
3061 #define STACK_DIRECTION $ac_cv_c_stack_direction
3066 for ac_hdr
in unistd.h
3068 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3069 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3070 echo "configure:3071: checking for $ac_hdr" >&5
3071 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3072 echo $ac_n "(cached) $ac_c" 1>&6
3074 cat > conftest.
$ac_ext <<EOF
3075 #line 3076 "configure"
3076 #include "confdefs.h"
3079 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3080 { (eval echo configure
:3081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3081 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3082 if test -z "$ac_err"; then
3084 eval "ac_cv_header_$ac_safe=yes"
3087 echo "configure: failed program was:" >&5
3088 cat conftest.
$ac_ext >&5
3090 eval "ac_cv_header_$ac_safe=no"
3094 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3095 echo "$ac_t""yes" 1>&6
3096 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3097 cat >> confdefs.h
<<EOF
3098 #define $ac_tr_hdr 1
3102 echo "$ac_t""no" 1>&6
3106 for ac_func
in getpagesize
3108 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3109 echo "configure:3110: checking for $ac_func" >&5
3110 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3111 echo $ac_n "(cached) $ac_c" 1>&6
3113 cat > conftest.
$ac_ext <<EOF
3114 #line 3115 "configure"
3115 #include "confdefs.h"
3116 /* System header to define __stub macros and hopefully few prototypes,
3117 which can conflict with char $ac_func(); below. */
3119 /* Override any gcc2 internal prototype to avoid an error. */
3120 /* We use char because int might match the return type of a gcc2
3121 builtin and then its argument prototype would still apply. */
3126 /* The GNU C library defines this for functions which it implements
3127 to always fail with ENOSYS. Some functions are actually named
3128 something starting with __ and the normal name is an alias. */
3129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3137 if { (eval echo configure
:3138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3139 eval "ac_cv_func_$ac_func=yes"
3141 echo "configure: failed program was:" >&5
3142 cat conftest.
$ac_ext >&5
3144 eval "ac_cv_func_$ac_func=no"
3149 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3150 echo "$ac_t""yes" 1>&6
3151 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3152 cat >> confdefs.h
<<EOF
3153 #define $ac_tr_func 1
3157 echo "$ac_t""no" 1>&6
3161 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3162 echo "configure:3163: checking for working mmap" >&5
3163 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3164 echo $ac_n "(cached) $ac_c" 1>&6
3166 if test "$cross_compiling" = yes; then
3167 ac_cv_func_mmap_fixed_mapped
=no
3169 cat > conftest.
$ac_ext <<EOF
3170 #line 3171 "configure"
3171 #include "confdefs.h"
3173 /* Thanks to Mike Haertel and Jim Avera for this test.
3174 Here is a matrix of mmap possibilities:
3175 mmap private not fixed
3176 mmap private fixed at somewhere currently unmapped
3177 mmap private fixed at somewhere already mapped
3178 mmap shared not fixed
3179 mmap shared fixed at somewhere currently unmapped
3180 mmap shared fixed at somewhere already mapped
3181 For private mappings, we should verify that changes cannot be read()
3182 back from the file, nor mmap's back from the file at a different
3183 address. (There have been systems where private was not correctly
3184 implemented like the infamous i386 svr4.0, and systems where the
3185 VM page cache was not coherent with the filesystem buffer cache
3186 like early versions of FreeBSD and possibly contemporary NetBSD.)
3187 For shared mappings, we should conversely verify that changes get
3188 propogated back to all the places they're supposed to be.
3190 Grep wants private fixed already mapped.
3191 The main things grep needs to know about mmap are:
3192 * does it exist and is it safe to write into the mmap'd area
3193 * how to use it (BSD variants) */
3194 #include <sys/types.h>
3196 #include <sys/mman.h>
3198 /* This mess was copied from the GNU getpagesize.h. */
3199 #ifndef HAVE_GETPAGESIZE
3200 # ifdef HAVE_UNISTD_H
3201 # include <unistd.h>
3204 /* Assume that all systems that can run configure have sys/param.h. */
3205 # ifndef HAVE_SYS_PARAM_H
3206 # define HAVE_SYS_PARAM_H 1
3209 # ifdef _SC_PAGESIZE
3210 # define getpagesize() sysconf(_SC_PAGESIZE)
3211 # else /* no _SC_PAGESIZE */
3212 # ifdef HAVE_SYS_PARAM_H
3213 # include <sys/param.h>
3214 # ifdef EXEC_PAGESIZE
3215 # define getpagesize() EXEC_PAGESIZE
3216 # else /* no EXEC_PAGESIZE */
3218 # define getpagesize() NBPG * CLSIZE
3221 # endif /* no CLSIZE */
3222 # else /* no NBPG */
3224 # define getpagesize() NBPC
3225 # else /* no NBPC */
3227 # define getpagesize() PAGESIZE
3228 # endif /* PAGESIZE */
3229 # endif /* no NBPC */
3230 # endif /* no NBPG */
3231 # endif /* no EXEC_PAGESIZE */
3232 # else /* no HAVE_SYS_PARAM_H */
3233 # define getpagesize() 8192 /* punt totally */
3234 # endif /* no HAVE_SYS_PARAM_H */
3235 # endif /* no _SC_PAGESIZE */
3237 #endif /* no HAVE_GETPAGESIZE */
3240 extern "C" { void *malloc(unsigned); }
3248 char *data, *data2, *data3;
3252 pagesize = getpagesize();
3255 * First, make a file with some known garbage in it.
3257 data = malloc(pagesize);
3260 for (i = 0; i < pagesize; ++i)
3261 *(data + i) = rand();
3263 fd = creat("conftestmmap", 0600);
3266 if (write(fd, data, pagesize) != pagesize)
3271 * Next, try to mmap the file at a fixed address which
3272 * already has something else allocated at it. If we can,
3273 * also make sure that we see the same garbage.
3275 fd = open("conftestmmap", O_RDWR);
3278 data2 = malloc(2 * pagesize);
3281 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3282 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3283 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3285 for (i = 0; i < pagesize; ++i)
3286 if (*(data + i) != *(data2 + i))
3290 * Finally, make sure that changes to the mapped area
3291 * do not percolate back to the file as seen by read().
3292 * (This is a bug on some variants of i386 svr4.0.)
3294 for (i = 0; i < pagesize; ++i)
3295 *(data2 + i) = *(data2 + i) + 1;
3296 data3 = malloc(pagesize);
3299 if (read(fd, data3, pagesize) != pagesize)
3301 for (i = 0; i < pagesize; ++i)
3302 if (*(data + i) != *(data3 + i))
3305 unlink("conftestmmap");
3310 if { (eval echo configure
:3311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3312 ac_cv_func_mmap_fixed_mapped
=yes
3314 echo "configure: failed program was:" >&5
3315 cat conftest.
$ac_ext >&5
3317 ac_cv_func_mmap_fixed_mapped
=no
3324 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3325 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3326 cat >> confdefs.h
<<\EOF
3333 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3334 unistd.h values.h sys
/param.h
3336 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3337 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3338 echo "configure:3339: checking for $ac_hdr" >&5
3339 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3340 echo $ac_n "(cached) $ac_c" 1>&6
3342 cat > conftest.
$ac_ext <<EOF
3343 #line 3344 "configure"
3344 #include "confdefs.h"
3347 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3348 { (eval echo configure
:3349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3349 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3350 if test -z "$ac_err"; then
3352 eval "ac_cv_header_$ac_safe=yes"
3355 echo "configure: failed program was:" >&5
3356 cat conftest.
$ac_ext >&5
3358 eval "ac_cv_header_$ac_safe=no"
3362 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3363 echo "$ac_t""yes" 1>&6
3364 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3365 cat >> confdefs.h
<<EOF
3366 #define $ac_tr_hdr 1
3370 echo "$ac_t""no" 1>&6
3374 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3375 __argz_count __argz_stringify __argz_next
3377 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3378 echo "configure:3379: checking for $ac_func" >&5
3379 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3380 echo $ac_n "(cached) $ac_c" 1>&6
3382 cat > conftest.
$ac_ext <<EOF
3383 #line 3384 "configure"
3384 #include "confdefs.h"
3385 /* System header to define __stub macros and hopefully few prototypes,
3386 which can conflict with char $ac_func(); below. */
3388 /* Override any gcc2 internal prototype to avoid an error. */
3389 /* We use char because int might match the return type of a gcc2
3390 builtin and then its argument prototype would still apply. */
3395 /* The GNU C library defines this for functions which it implements
3396 to always fail with ENOSYS. Some functions are actually named
3397 something starting with __ and the normal name is an alias. */
3398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3406 if { (eval echo configure
:3407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3408 eval "ac_cv_func_$ac_func=yes"
3410 echo "configure: failed program was:" >&5
3411 cat conftest.
$ac_ext >&5
3413 eval "ac_cv_func_$ac_func=no"
3418 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3419 echo "$ac_t""yes" 1>&6
3420 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3421 cat >> confdefs.h
<<EOF
3422 #define $ac_tr_func 1
3426 echo "$ac_t""no" 1>&6
3431 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3432 for ac_func
in stpcpy
3434 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3435 echo "configure:3436: checking for $ac_func" >&5
3436 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3437 echo $ac_n "(cached) $ac_c" 1>&6
3439 cat > conftest.
$ac_ext <<EOF
3440 #line 3441 "configure"
3441 #include "confdefs.h"
3442 /* System header to define __stub macros and hopefully few prototypes,
3443 which can conflict with char $ac_func(); below. */
3445 /* Override any gcc2 internal prototype to avoid an error. */
3446 /* We use char because int might match the return type of a gcc2
3447 builtin and then its argument prototype would still apply. */
3452 /* The GNU C library defines this for functions which it implements
3453 to always fail with ENOSYS. Some functions are actually named
3454 something starting with __ and the normal name is an alias. */
3455 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3463 if { (eval echo configure
:3464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3465 eval "ac_cv_func_$ac_func=yes"
3467 echo "configure: failed program was:" >&5
3468 cat conftest.
$ac_ext >&5
3470 eval "ac_cv_func_$ac_func=no"
3475 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3476 echo "$ac_t""yes" 1>&6
3477 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3478 cat >> confdefs.h
<<EOF
3479 #define $ac_tr_func 1
3483 echo "$ac_t""no" 1>&6
3488 if test "${ac_cv_func_stpcpy}" = "yes"; then
3489 cat >> confdefs.h
<<\EOF
3490 #define HAVE_STPCPY 1
3495 if test $ac_cv_header_locale_h = yes; then
3496 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3497 echo "configure:3498: checking for LC_MESSAGES" >&5
3498 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3499 echo $ac_n "(cached) $ac_c" 1>&6
3501 cat > conftest.
$ac_ext <<EOF
3502 #line 3503 "configure"
3503 #include "confdefs.h"
3509 if { (eval echo configure
:3510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3511 am_cv_val_LC_MESSAGES
=yes
3513 echo "configure: failed program was:" >&5
3514 cat conftest.
$ac_ext >&5
3516 am_cv_val_LC_MESSAGES
=no
3521 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3522 if test $am_cv_val_LC_MESSAGES = yes; then
3523 cat >> confdefs.h
<<\EOF
3524 #define HAVE_LC_MESSAGES 1
3529 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3530 echo "configure:3531: checking whether NLS is requested" >&5
3531 # Check whether --enable-nls or --disable-nls was given.
3532 if test "${enable_nls+set}" = set; then
3533 enableval
="$enable_nls"
3539 echo "$ac_t""$USE_NLS" 1>&6
3542 USE_INCLUDED_LIBINTL
=no
3544 if test "$USE_NLS" = "yes"; then
3545 cat >> confdefs.h
<<\EOF
3546 #define ENABLE_NLS 1
3549 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3550 echo "configure:3551: checking whether included gettext is requested" >&5
3551 # Check whether --with-included-gettext or --without-included-gettext was given.
3552 if test "${with_included_gettext+set}" = set; then
3553 withval
="$with_included_gettext"
3554 nls_cv_force_use_gnu_gettext
=$withval
3556 nls_cv_force_use_gnu_gettext
=no
3559 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3561 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
3562 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3564 nls_cv_header_libgt
=
3567 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3568 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3569 echo "configure:3570: checking for libintl.h" >&5
3570 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3571 echo $ac_n "(cached) $ac_c" 1>&6
3573 cat > conftest.
$ac_ext <<EOF
3574 #line 3575 "configure"
3575 #include "confdefs.h"
3576 #include <libintl.h>
3578 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3579 { (eval echo configure
:3580: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3580 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3581 if test -z "$ac_err"; then
3583 eval "ac_cv_header_$ac_safe=yes"
3586 echo "configure: failed program was:" >&5
3587 cat conftest.
$ac_ext >&5
3589 eval "ac_cv_header_$ac_safe=no"
3593 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3594 echo "$ac_t""yes" 1>&6
3595 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3596 echo "configure:3597: checking for gettext in libc" >&5
3597 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3598 echo $ac_n "(cached) $ac_c" 1>&6
3600 cat > conftest.
$ac_ext <<EOF
3601 #line 3602 "configure"
3602 #include "confdefs.h"
3603 #include <libintl.h>
3605 return (int) gettext ("")
3608 if { (eval echo configure
:3609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3610 gt_cv_func_gettext_libc
=yes
3612 echo "configure: failed program was:" >&5
3613 cat conftest.
$ac_ext >&5
3615 gt_cv_func_gettext_libc
=no
3620 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3622 if test "$gt_cv_func_gettext_libc" != "yes"; then
3623 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3624 echo "configure:3625: checking for bindtextdomain in -lintl" >&5
3625 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3626 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3627 echo $ac_n "(cached) $ac_c" 1>&6
3629 ac_save_LIBS
="$LIBS"
3631 cat > conftest.
$ac_ext <<EOF
3632 #line 3633 "configure"
3633 #include "confdefs.h"
3634 /* Override any gcc2 internal prototype to avoid an error. */
3635 /* We use char because int might match the return type of a gcc2
3636 builtin and then its argument prototype would still apply. */
3637 char bindtextdomain();
3643 if { (eval echo configure
:3644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3645 eval "ac_cv_lib_$ac_lib_var=yes"
3647 echo "configure: failed program was:" >&5
3648 cat conftest.
$ac_ext >&5
3650 eval "ac_cv_lib_$ac_lib_var=no"
3653 LIBS
="$ac_save_LIBS"
3656 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3657 echo "$ac_t""yes" 1>&6
3658 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3659 echo "configure:3660: checking for gettext in libintl" >&5
3660 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3661 echo $ac_n "(cached) $ac_c" 1>&6
3663 cat > conftest.
$ac_ext <<EOF
3664 #line 3665 "configure"
3665 #include "confdefs.h"
3668 return (int) gettext ("")
3671 if { (eval echo configure
:3672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3673 gt_cv_func_gettext_libintl
=yes
3675 echo "configure: failed program was:" >&5
3676 cat conftest.
$ac_ext >&5
3678 gt_cv_func_gettext_libintl
=no
3683 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3685 echo "$ac_t""no" 1>&6
3690 if test "$gt_cv_func_gettext_libc" = "yes" \
3691 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
3692 cat >> confdefs.h
<<\EOF
3693 #define HAVE_GETTEXT 1
3696 # Extract the first word of "msgfmt", so it can be a program name with args.
3697 set dummy msgfmt
; ac_word
=$2
3698 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3699 echo "configure:3700: checking for $ac_word" >&5
3700 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3701 echo $ac_n "(cached) $ac_c" 1>&6
3705 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3708 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3709 for ac_dir
in $PATH; do
3710 test -z "$ac_dir" && ac_dir
=.
3711 if test -f $ac_dir/$ac_word; then
3712 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3713 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3719 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
3723 MSGFMT
="$ac_cv_path_MSGFMT"
3724 if test -n "$MSGFMT"; then
3725 echo "$ac_t""$MSGFMT" 1>&6
3727 echo "$ac_t""no" 1>&6
3729 if test "$MSGFMT" != "no"; then
3730 for ac_func
in dcgettext
3732 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3733 echo "configure:3734: checking for $ac_func" >&5
3734 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3735 echo $ac_n "(cached) $ac_c" 1>&6
3737 cat > conftest.
$ac_ext <<EOF
3738 #line 3739 "configure"
3739 #include "confdefs.h"
3740 /* System header to define __stub macros and hopefully few prototypes,
3741 which can conflict with char $ac_func(); below. */
3743 /* Override any gcc2 internal prototype to avoid an error. */
3744 /* We use char because int might match the return type of a gcc2
3745 builtin and then its argument prototype would still apply. */
3750 /* The GNU C library defines this for functions which it implements
3751 to always fail with ENOSYS. Some functions are actually named
3752 something starting with __ and the normal name is an alias. */
3753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3761 if { (eval echo configure
:3762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3763 eval "ac_cv_func_$ac_func=yes"
3765 echo "configure: failed program was:" >&5
3766 cat conftest.
$ac_ext >&5
3768 eval "ac_cv_func_$ac_func=no"
3773 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3774 echo "$ac_t""yes" 1>&6
3775 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3776 cat >> confdefs.h
<<EOF
3777 #define $ac_tr_func 1
3781 echo "$ac_t""no" 1>&6
3785 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3786 set dummy gmsgfmt
; ac_word
=$2
3787 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3788 echo "configure:3789: checking for $ac_word" >&5
3789 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3790 echo $ac_n "(cached) $ac_c" 1>&6
3794 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3797 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3800 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3802 for ac_dir
in $ac_dummy; do
3803 test -z "$ac_dir" && ac_dir
=.
3804 if test -f $ac_dir/$ac_word; then
3805 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3810 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3814 GMSGFMT
="$ac_cv_path_GMSGFMT"
3815 if test -n "$GMSGFMT"; then
3816 echo "$ac_t""$GMSGFMT" 1>&6
3818 echo "$ac_t""no" 1>&6
3821 # Extract the first word of "xgettext", so it can be a program name with args.
3822 set dummy xgettext
; ac_word
=$2
3823 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3824 echo "configure:3825: checking for $ac_word" >&5
3825 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3826 echo $ac_n "(cached) $ac_c" 1>&6
3830 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3833 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3834 for ac_dir
in $PATH; do
3835 test -z "$ac_dir" && ac_dir
=.
3836 if test -f $ac_dir/$ac_word; then
3837 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3838 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3844 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3848 XGETTEXT
="$ac_cv_path_XGETTEXT"
3849 if test -n "$XGETTEXT"; then
3850 echo "$ac_t""$XGETTEXT" 1>&6
3852 echo "$ac_t""no" 1>&6
3855 cat > conftest.
$ac_ext <<EOF
3856 #line 3857 "configure"
3857 #include "confdefs.h"
3860 extern int _nl_msg_cat_cntr;
3861 return _nl_msg_cat_cntr
3864 if { (eval echo configure
:3865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3869 echo "configure: failed program was:" >&5
3870 cat conftest.
$ac_ext >&5
3881 echo "$ac_t""no" 1>&6
3886 if test "$CATOBJEXT" = "NONE"; then
3887 nls_cv_use_gnu_gettext
=yes
3891 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3892 INTLOBJS
="\$(GETTOBJS)"
3893 # Extract the first word of "msgfmt", so it can be a program name with args.
3894 set dummy msgfmt
; ac_word
=$2
3895 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3896 echo "configure:3897: checking for $ac_word" >&5
3897 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3898 echo $ac_n "(cached) $ac_c" 1>&6
3902 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3905 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3906 for ac_dir
in $PATH; do
3907 test -z "$ac_dir" && ac_dir
=.
3908 if test -f $ac_dir/$ac_word; then
3909 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3910 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3916 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
3920 MSGFMT
="$ac_cv_path_MSGFMT"
3921 if test -n "$MSGFMT"; then
3922 echo "$ac_t""$MSGFMT" 1>&6
3924 echo "$ac_t""no" 1>&6
3927 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3928 set dummy gmsgfmt
; ac_word
=$2
3929 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3930 echo "configure:3931: checking for $ac_word" >&5
3931 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3932 echo $ac_n "(cached) $ac_c" 1>&6
3936 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3939 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3942 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3944 for ac_dir
in $ac_dummy; do
3945 test -z "$ac_dir" && ac_dir
=.
3946 if test -f $ac_dir/$ac_word; then
3947 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3952 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3956 GMSGFMT
="$ac_cv_path_GMSGFMT"
3957 if test -n "$GMSGFMT"; then
3958 echo "$ac_t""$GMSGFMT" 1>&6
3960 echo "$ac_t""no" 1>&6
3963 # Extract the first word of "xgettext", so it can be a program name with args.
3964 set dummy xgettext
; ac_word
=$2
3965 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3966 echo "configure:3967: checking for $ac_word" >&5
3967 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3968 echo $ac_n "(cached) $ac_c" 1>&6
3972 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3975 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3976 for ac_dir
in $PATH; do
3977 test -z "$ac_dir" && ac_dir
=.
3978 if test -f $ac_dir/$ac_word; then
3979 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3980 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3986 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3990 XGETTEXT
="$ac_cv_path_XGETTEXT"
3991 if test -n "$XGETTEXT"; then
3992 echo "$ac_t""$XGETTEXT" 1>&6
3994 echo "$ac_t""no" 1>&6
3998 USE_INCLUDED_LIBINTL
=yes
4002 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
4004 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
4005 nls_cv_header_intl
=libintl.h
4006 nls_cv_header_libgt
=libgettext.h
4009 if test "$XGETTEXT" != ":"; then
4010 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
4013 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4018 # We need to process the po/ directory.
4022 nls_cv_header_intl
=libintl.h
4023 nls_cv_header_libgt
=libgettext.h
4026 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4027 # because some of the sources are only built for this goal.
4028 if test "$PACKAGE" = gettext; then
4030 USE_INCLUDED_LIBINTL
=yes
4033 for lang
in $ALL_LINGUAS; do
4034 GMOFILES
="$GMOFILES $lang.gmo"
4035 POFILES
="$POFILES $lang.po"
4051 if test "x$CATOBJEXT" != "x"; then
4052 if test "x$ALL_LINGUAS" = "x"; then
4055 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4056 echo "configure:4057: checking for catalogs to be installed" >&5
4058 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
4059 case "$ALL_LINGUAS" in
4060 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
4063 LINGUAS
=$NEW_LINGUAS
4064 echo "$ac_t""$LINGUAS" 1>&6
4067 if test -n "$LINGUAS"; then
4068 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
4072 if test $ac_cv_header_locale_h = yes; then
4073 INCLUDE_LOCALE_H
="#include <locale.h>"
4076 /* The system does not provide the header <locale.h>. Take care yourself. */"
4080 if test -f $srcdir/po2tbl.
sed.
in; then
4081 if test "$CATOBJEXT" = ".cat"; then
4082 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4083 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4084 echo "configure:4085: checking for linux/version.h" >&5
4085 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4086 echo $ac_n "(cached) $ac_c" 1>&6
4088 cat > conftest.
$ac_ext <<EOF
4089 #line 4090 "configure"
4090 #include "confdefs.h"
4091 #include <linux/version.h>
4093 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4094 { (eval echo configure
:4095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4095 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4096 if test -z "$ac_err"; then
4098 eval "ac_cv_header_$ac_safe=yes"
4101 echo "configure: failed program was:" >&5
4102 cat conftest.
$ac_ext >&5
4104 eval "ac_cv_header_$ac_safe=no"
4108 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4109 echo "$ac_t""yes" 1>&6
4112 echo "$ac_t""no" 1>&6
4117 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
4119 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4120 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
4123 if test "$PACKAGE" = "gettext"; then
4133 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
4139 if test -d $srcdir/po
; then
4140 test -d po || mkdir po
4141 if test "x$srcdir" != "x."; then
4142 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4143 posrcprefix
="$srcdir/"
4145 posrcprefix
="../$srcdir/"
4151 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4152 < $srcdir/po
/POTFILES.
in > po
/POTFILES
4156 .
${srcdir}/..
/bfd
/configure.
host
4160 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
4163 for ac_hdr
in string.h
strings.h stdlib.h
4165 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4166 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4167 echo "configure:4168: checking for $ac_hdr" >&5
4168 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4169 echo $ac_n "(cached) $ac_c" 1>&6
4171 cat > conftest.
$ac_ext <<EOF
4172 #line 4173 "configure"
4173 #include "confdefs.h"
4176 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4177 { (eval echo configure
:4178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4178 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4179 if test -z "$ac_err"; then
4181 eval "ac_cv_header_$ac_safe=yes"
4184 echo "configure: failed program was:" >&5
4185 cat conftest.
$ac_ext >&5
4187 eval "ac_cv_header_$ac_safe=no"
4191 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4192 echo "$ac_t""yes" 1>&6
4193 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4194 cat >> confdefs.h
<<EOF
4195 #define $ac_tr_hdr 1
4199 echo "$ac_t""no" 1>&6
4204 # start-sanitize-cygnus
4206 # Default is to use one in build tree.
4208 cgendir
='$(srcdir)/../cgen'
4209 # Having --enable-maintainer-mode take arguments is another way to go.
4210 # ??? One can argue --with is more appropriate if one wants to specify
4211 # a directory name, but what we're doing here is an enable/disable kind
4212 # of thing and specifying both --enable and --with is klunky.
4213 # If you reeely want this to be --with, go ahead and change it.
4214 # Check whether --enable-cgen-maint or --disable-cgen-maint was given.
4215 if test "${enable_cgen_maint+set}" = set; then
4216 enableval
="$enable_cgen_maint"
4217 case "${enableval}" in
4218 yes) cgen_maint
=yes ;;
4219 no
) cgen_maint
=no
;;
4221 # argument is cgen install directory (not implemented yet).
4222 # Having a `share' directory might be more appropriate for the .scm,
4225 cgendir
=${cgen_maint}/lib
/cgen
4226 cgen
=${cgendir}/bin
/cgen
4232 if test x
${cgen_maint} = xyes
; then
4234 CGEN_MAINT_FALSE
='#'
4241 # end-sanitize-cygnus
4243 # Horrible hacks to build DLLs on Windows.
4248 if test "$enable_shared" = "yes"; then
4249 WIN32LDFLAGS
="-no-undefined"
4250 WIN32LIBADD
="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
4257 # target-specific stuff:
4259 # Canonicalize the secondary target names.
4260 if test -n "$enable_targets" ; then
4261 for targ
in `echo $enable_targets | sed 's/,/ /g'`
4263 result
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $targ 2>/dev/null`
4264 if test -n "$result" ; then
4265 canon_targets
="$canon_targets $result"
4267 # Allow targets that config.sub doesn't recognize, like "all".
4268 canon_targets
="$canon_targets $targ"
4275 for targ
in $target $canon_targets
4277 if test "x$targ" = "xall" ; then
4280 .
$srcdir/..
/bfd
/config.bfd
4281 selarchs
="$selarchs $targ_archs"
4285 # Utility var, documents generic cgen support files.
4287 cgen_files
="cgen-opc.lo cgen-asm.lo cgen-dis.lo"
4289 # We don't do any links based on the target system, just makefile config.
4291 if test x
${all_targets} = xfalse
; then
4293 # Target architecture .o files.
4296 for arch
in $selarchs
4298 ad
=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
4299 archdefs
="$archdefs -DARCH_$ad"
4301 bfd_a29k_arch
) ta
="$ta a29k-dis.lo" ;;
4302 bfd_alliant_arch
) ;;
4303 bfd_alpha_arch
) ta
="$ta alpha-dis.lo alpha-opc.lo" ;;
4304 bfd_arc_arch
) ta
="$ta arc-dis.lo arc-opc.lo" ;;
4305 bfd_arm_arch
) ta
="$ta arm-dis.lo" ;;
4307 bfd_d10v_arch
) ta
="$ta d10v-dis.lo d10v-opc.lo" ;;
4308 bfd_d30v_arch
) ta
="$ta d30v-dis.lo d30v-opc.lo" ;;
4309 bfd_h8300_arch
) ta
="$ta h8300-dis.lo" ;;
4310 bfd_h8500_arch
) ta
="$ta h8500-dis.lo" ;;
4311 bfd_hppa_arch
) ta
="$ta hppa-dis.lo" ;;
4312 bfd_i386_arch
) ta
="$ta i386-dis.lo" ;;
4314 bfd_i960_arch
) ta
="$ta i960-dis.lo" ;;
4315 bfd_m32r_arch
) ta
="$ta $cgen_files m32r-opc.lo m32r-asm.lo m32r-dis.lo" ;;
4316 bfd_m68k_arch
) ta
="$ta m68k-dis.lo m68k-opc.lo" ;;
4317 bfd_m88k_arch
) ta
="$ta m88k-dis.lo" ;;
4318 bfd_mips_arch
) ta
="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;;
4319 bfd_mn10200_arch
) ta
="$ta m10200-dis.lo m10200-opc.lo" ;;
4320 bfd_mn10300_arch
) ta
="$ta m10300-dis.lo m10300-opc.lo" ;;
4321 bfd_ns32k_arch
) ta
="$ta ns32k-dis.lo" ;;
4322 bfd_powerpc_arch
) ta
="$ta ppc-dis.lo ppc-opc.lo" ;;
4323 bfd_pyramid_arch
) ;;
4325 bfd_rs6000_arch
) ta
="$ta ppc-dis.lo ppc-opc.lo" ;;
4326 bfd_sh_arch
) ta
="$ta sh-dis.lo" ;;
4327 bfd_sparc_arch
) ta
="$ta sparc-dis.lo sparc-opc.lo" ;;
4329 bfd_tic30_arch
) ta
="$ta tic30-dis.lo" ;;
4330 # start-sanitize-tic80
4331 bfd_tic80_arch
) ta
="$ta tic80-dis.lo tic80-opc.lo" ;;
4332 # end-sanitize-tic80
4333 # start-sanitize-sky
4334 bfd_dvp_arch
) ta
="$ta mips-dis.lo mips-opc.lo mips16-opc.lo dvp-dis.lo dvp-opc.lo" ;;
4336 bfd_v850_arch
) ta
="$ta v850-opc.lo v850-dis.lo" ;;
4337 # start-sanitize-v850e
4338 bfd_v850e_arch
) ta
="$ta v850-opc.lo v850-dis.lo" ;;
4339 bfd_v850ea_arch
) ta
="$ta v850-opc.lo v850-dis.lo" ;;
4340 # end-sanitize-v850e
4341 bfd_vax_arch
) ta
="$ta vax-dis.lo" ;;
4342 bfd_w65_arch
) ta
="$ta w65-dis.lo" ;;
4344 bfd_z8k_arch
) ta
="$ta z8k-dis.lo" ;;
4347 *) { echo "configure: error: *** unknown target architecture $arch" 1>&2; exit 1; } ;;
4351 # Weed out duplicate .o files.
4361 # And duplicate -D flags.
4363 for i
in $archdefs ; do
4373 else # all_targets is true
4375 BFD_MACHINES
='$(ALL_MACHINES)'
4382 cat > confcache
<<\EOF
4383 # This file is a shell script that caches the results of configure
4384 # tests run on this system so they can be shared between configure
4385 # scripts and configure runs. It is not useful on other systems.
4386 # If it contains results you don't want to keep, you may remove or edit it.
4388 # By default, configure uses ./config.cache as the cache file,
4389 # creating it if it does not exist already. You can give configure
4390 # the --cache-file=FILE option to use a different cache file; that is
4391 # what configure does when it calls configure scripts in
4392 # subdirectories, so they share the cache.
4393 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4394 # config.status only pays attention to the cache file if you give it the
4395 # --recheck option to rerun configure.
4398 # The following way of writing the cache mishandles newlines in values,
4399 # but we know of no workaround that is simple, portable, and efficient.
4400 # So, don't put newlines in cache variables' values.
4401 # Ultrix sh set writes to stderr and can't be redirected directly,
4402 # and sets the high bit in the cache file unless we assign to the vars.
4404 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4406 # `set' does not quote correctly, so add quotes (double-quote substitution
4407 # turns \\\\ into \\, and sed turns \\ into \).
4409 -e "s/'/'\\\\''/g" \
4410 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4413 # `set' quotes correctly as required by POSIX, so do not add quotes.
4414 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4417 if cmp -s $cache_file confcache
; then
4420 if test -w $cache_file; then
4421 echo "updating cache $cache_file"
4422 cat confcache
> $cache_file
4424 echo "not updating unwritable cache $cache_file"
4429 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4431 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4432 # Let make expand exec_prefix.
4433 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4435 # Any assignment to VPATH causes Sun make to only execute
4436 # the first set of double-colon rules, so remove it if not needed.
4437 # If there is a colon in the path, we need to keep it.
4438 if test "x$srcdir" = x.
; then
4439 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4442 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4444 DEFS
=-DHAVE_CONFIG_H
4446 # Without the "./", some shells look in PATH for config.status.
4447 : ${CONFIG_STATUS=./config.status}
4449 echo creating
$CONFIG_STATUS
4450 rm -f $CONFIG_STATUS
4451 cat > $CONFIG_STATUS <<EOF
4453 # Generated automatically by configure.
4454 # Run this file to recreate the current configuration.
4455 # This directory was configured as follows,
4456 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4458 # $0 $ac_configure_args
4460 # Compiler output produced by configure, useful for debugging
4461 # configure, is in ./config.log if it exists.
4463 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4466 case "\$ac_option" in
4467 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4468 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4469 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4470 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4471 echo "$CONFIG_STATUS generated by autoconf version 2.12.2"
4473 -help | --help | --hel | --he | --h)
4474 echo "\$ac_cs_usage"; exit 0 ;;
4475 *) echo "\$ac_cs_usage"; exit 1 ;;
4479 ac_given_srcdir=$srcdir
4480 ac_given_INSTALL="$INSTALL"
4482 trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4484 cat >> $CONFIG_STATUS <<EOF
4486 # Protect against being on the right side of a sed subst in config.status.
4487 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4488 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4492 s%@CFLAGS@%$CFLAGS%g
4493 s%@CPPFLAGS@%$CPPFLAGS%g
4494 s%@CXXFLAGS@%$CXXFLAGS%g
4495 s%@FFLAGS@%$FFLAGS%g
4497 s%@LDFLAGS@%$LDFLAGS%g
4499 s%@exec_prefix@%$exec_prefix%g
4500 s%@prefix@%$prefix%g
4501 s%@program_transform_name@%$program_transform_name%g
4502 s%@bindir@%$bindir%g
4503 s%@sbindir@%$sbindir%g
4504 s%@libexecdir@%$libexecdir%g
4505 s%@datadir@%$datadir%g
4506 s%@sysconfdir@%$sysconfdir%g
4507 s%@sharedstatedir@%$sharedstatedir%g
4508 s%@localstatedir@%$localstatedir%g
4509 s%@libdir@%$libdir%g
4510 s%@includedir@%$includedir%g
4511 s%@oldincludedir@%$oldincludedir%g
4512 s%@infodir@%$infodir%g
4513 s%@mandir@%$mandir%g
4515 s%@host_alias@%$host_alias%g
4516 s%@host_cpu@%$host_cpu%g
4517 s%@host_vendor@%$host_vendor%g
4518 s%@host_os@%$host_os%g
4519 s%@target@%$target%g
4520 s%@target_alias@%$target_alias%g
4521 s%@target_cpu@%$target_cpu%g
4522 s%@target_vendor@%$target_vendor%g
4523 s%@target_os@%$target_os%g
4525 s%@build_alias@%$build_alias%g
4526 s%@build_cpu@%$build_cpu%g
4527 s%@build_vendor@%$build_vendor%g
4528 s%@build_os@%$build_os%g
4530 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4531 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4532 s%@INSTALL_DATA@%$INSTALL_DATA%g
4533 s%@PACKAGE@%$PACKAGE%g
4534 s%@VERSION@%$VERSION%g
4535 s%@ACLOCAL@%$ACLOCAL%g
4536 s%@AUTOCONF@%$AUTOCONF%g
4537 s%@AUTOMAKE@%$AUTOMAKE%g
4538 s%@AUTOHEADER@%$AUTOHEADER%g
4539 s%@MAKEINFO@%$MAKEINFO%g
4540 s%@SET_MAKE@%$SET_MAKE%g
4542 s%@RANLIB@%$RANLIB%g
4546 s%@LIBTOOL@%$LIBTOOL%g
4547 s%@DLLTOOL@%$DLLTOOL%g
4550 s%@EXEEXT@%$EXEEXT%g
4552 s%@ALLOCA@%$ALLOCA%g
4553 s%@USE_NLS@%$USE_NLS%g
4554 s%@MSGFMT@%$MSGFMT%g
4555 s%@GMSGFMT@%$GMSGFMT%g
4556 s%@XGETTEXT@%$XGETTEXT%g
4557 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4558 s%@CATALOGS@%$CATALOGS%g
4559 s%@CATOBJEXT@%$CATOBJEXT%g
4560 s%@DATADIRNAME@%$DATADIRNAME%g
4561 s%@GMOFILES@%$GMOFILES%g
4562 s%@INSTOBJEXT@%$INSTOBJEXT%g
4563 s%@INTLDEPS@%$INTLDEPS%g
4564 s%@INTLLIBS@%$INTLLIBS%g
4565 s%@INTLOBJS@%$INTLOBJS%g
4566 s%@POFILES@%$POFILES%g
4568 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4570 s%@GT_YES@%$GT_YES%g
4571 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4573 s%@HDEFINES@%$HDEFINES%g
4574 s%@CGEN_MAINT_TRUE@%$CGEN_MAINT_TRUE%g
4575 s%@CGEN_MAINT_FALSE@%$CGEN_MAINT_FALSE%g
4576 s%@cgendir@%$cgendir%g
4578 s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
4579 s%@WIN32LIBADD@%$WIN32LIBADD%g
4580 s%@archdefs@%$archdefs%g
4581 s%@BFD_MACHINES@%$BFD_MACHINES%g
4586 cat >> $CONFIG_STATUS <<\EOF
4588 # Split the substitutions into bite-sized pieces for seds with
4589 # small command number limits, like on Digital OSF/1 and HP-UX.
4590 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4591 ac_file
=1 # Number of current file.
4592 ac_beg
=1 # First line for current file.
4593 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4596 while $ac_more_lines; do
4597 if test $ac_beg -gt 1; then
4598 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4600 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4602 if test ! -s conftest.s
$ac_file; then
4604 rm -f conftest.s
$ac_file
4606 if test -z "$ac_sed_cmds"; then
4607 ac_sed_cmds
="sed -f conftest.s$ac_file"
4609 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4611 ac_file
=`expr $ac_file + 1`
4613 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4616 if test -z "$ac_sed_cmds"; then
4621 cat >> $CONFIG_STATUS <<EOF
4623 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
4625 cat >> $CONFIG_STATUS <<\EOF
4626 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4627 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4629 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4630 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4631 *) ac_file_in
="${ac_file}.in" ;;
4634 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4636 # Remove last slash and all that follows it. Not all systems have dirname.
4637 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4638 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
4639 # The file is in a subdirectory.
4640 test ! -d "$ac_dir" && mkdir
"$ac_dir"
4641 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
4642 # A "../" for each directory in $ac_dir_suffix.
4643 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4645 ac_dir_suffix
= ac_dots
=
4648 case "$ac_given_srcdir" in
4650 if test -z "$ac_dots"; then top_srcdir
=.
4651 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4652 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
4654 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4655 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
4658 case "$ac_given_INSTALL" in
4659 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
4660 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
4663 echo creating
"$ac_file"
4665 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4667 *Makefile
*) ac_comsub
="1i\\
4668 # $configure_input" ;;
4672 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4674 s%@configure_input@%$configure_input%g
4675 s%@srcdir@%$srcdir%g
4676 s%@top_srcdir@%$top_srcdir%g
4677 s%@INSTALL@%$INSTALL%g
4678 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
4682 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4683 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4685 # ac_d sets the value in "#define NAME VALUE" lines.
4686 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4687 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4690 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4691 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4692 ac_uB
='\([ ]\)%\1#\2define\3'
4695 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4696 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4697 ac_eB
='$%\1#\2define\3'
4701 if test "${CONFIG_HEADERS+set}" != set; then
4703 cat >> $CONFIG_STATUS <<EOF
4704 CONFIG_HEADERS="config.h:config.in"
4706 cat >> $CONFIG_STATUS <<\EOF
4708 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4709 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4711 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4712 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4713 *) ac_file_in
="${ac_file}.in" ;;
4716 echo creating
$ac_file
4718 rm -f conftest.frag conftest.
in conftest.out
4719 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4720 cat $ac_file_inputs > conftest.
in
4724 # Transform confdefs.h into a sed script conftest.vals that substitutes
4725 # the proper values into config.h.in to produce config.h. And first:
4726 # Protect against being on the right side of a sed subst in config.status.
4727 # Protect against being in an unquoted here document in config.status.
4729 cat > conftest.hdr
<<\EOF
4732 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4736 sed -n -f conftest.hdr confdefs.h > conftest.vals
4739 # This sed command replaces #undef with comments. This is necessary, for
4740 # example, in the case of _POSIX_SOURCE, which is predefined and required
4741 # on some systems where configure will not decide to define it.
4742 cat >> conftest.vals <<\EOF
4743 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4746 # Break up conftest.vals because some shells have a limit on
4747 # the size of here documents, and old seds have small limits too.
4752 ac_lines=`grep -c . conftest.vals
`
4753 # grep -c gives empty output for an empty file on some AIX systems.
4754 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4755 # Write a limited-size here document to conftest.frag.
4756 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4757 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4759 sed -f conftest.frag conftest.in > conftest.out
4761 mv conftest.out conftest.in
4763 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4765 mv conftest.tail conftest.vals
4769 cat >> $CONFIG_STATUS <<\EOF
4770 rm -f conftest.frag conftest.h
4771 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4772 cat conftest.in >> conftest.h
4774 if cmp -s $ac_file conftest.h 2>/dev/null; then
4775 echo "$ac_file is unchanged"
4778 # Remove last slash and all that follows it. Not all systems have dirname.
4779 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
4780 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4781 # The file is in a subdirectory.
4782 test ! -d "$ac_dir" && mkdir "$ac_dir"
4785 mv conftest.h $ac_file
4790 cat >> $CONFIG_STATUS <<EOF
4794 cat >> $CONFIG_STATUS <<\EOF
4795 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4796 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
4799 chmod +x $CONFIG_STATUS
4800 rm -fr confdefs* $ac_clean_files
4801 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1