303 # Do all the work for Automake. This macro actually does too much --
304 # some checks are only needed if your package does certain things.
305 # But this isn't really a big deal.
318 # Check to make sure that the build environment is sane.
326 # serial 25 AM_PROG_LIBTOOL
329 # AM_ENABLE_SHARED - implement the --enable-shared flag
330 # Usage: AM_ENABLE_SHARED[(DEFAULT)]
331 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
335 # AM_DISABLE_SHARED - set the default shared flag to --disable-shared
338 # AM_DISABLE_STATIC - set the default static flag to --disable-static
341 # AM_ENABLE_STATIC - implement the --enable-static flag
342 # Usage: AM_ENABLE_STATIC[(DEFAULT)]
343 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
348 # AM_PROG_LD - find the path to the GNU or non-GNU linker
353 # AM_PROG_NM - find the path to a BSD-compatible name lister
356 # AM_SYS_LIBTOOL_CYGWIN32 - find tools needed on cygwin32
359 # Like AC_CONFIG_HEADER, but automatically create stamp file.
366 # This file is derived from `gettext.m4'. The difference is that the
367 # included macros assume Cygnus-style source and build trees.
369 # Macro to add for using GNU gettext.
370 # Ulrich Drepper <drepper@cygnus.com>, 1995.
372 # This file file be copied and used freely without restrictions. It can
373 # be used in projects which are not available under the GNU Public License
374 # but which still want to provide support for the GNU gettext functionality.
375 # Please note that the actual code is *not* freely available.
383 # Search path for a program which passes the given test.
384 # Ulrich Drepper <drepper@cygnus.com>, 1996.
386 # This file file be copied and used freely without restrictions. It can
387 # be used in projects which are not available under the GNU Public License
388 # but which still want to provide support for the GNU gettext functionality.
389 # Please note that the actual code is *not* freely available.
395 # Check whether LC_MESSAGES is available in <locale.h>.
396 # Ulrich Drepper <drepper@cygnus.com>, 1995.
398 # This file file be copied and used freely without restrictions. It can
399 # be used in projects which are not available under the GNU Public License
400 # but which still want to provide support for the GNU gettext functionality.
401 # Please note that the actual code is *not* freely available.
407 # Add --enable-maintainer-mode option to configure.
415 # Guess values for system-dependent variables and create Makefiles.
416 # Generated automatically using autoconf version 2.12.2
417 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
419 # This configure script is free software; the Free Software Foundation
420 # gives unlimited permission to copy, distribute and modify it.
424 ac_default_prefix
=/usr
/local
425 # Any additions from configure.in:
427 --enable-shared[=PKGS] build shared libraries [default=yes]"
429 --enable-static[=PKGS] build static libraries [default=yes]"
431 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
433 --enable-targets alternative target configurations"
435 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
437 --disable-nls do not use Native Language Support"
439 --with-included-gettext use the GNU gettext library included here"
441 --enable-maintainer-mode enable make rules and dependencies not useful
442 (and sometimes confusing) to the casual installer"
444 # Initialize some variables set by options.
445 # The variables have the same names as the options, with
446 # dashes changed to underlines.
448 cache_file
=.
/config.cache
457 program_transform_name
=s
,x
,x
,
465 bindir
='${exec_prefix}/bin'
466 sbindir
='${exec_prefix}/sbin'
467 libexecdir
='${exec_prefix}/libexec'
468 datadir
='${prefix}/share'
469 sysconfdir
='${prefix}/etc'
470 sharedstatedir
='${prefix}/com'
471 localstatedir
='${prefix}/var'
472 libdir
='${exec_prefix}/lib'
473 includedir
='${prefix}/include'
474 oldincludedir
='/usr/include'
475 infodir
='${prefix}/info'
476 mandir
='${prefix}/man'
478 # Initialize some other variables.
481 SHELL
=${CONFIG_SHELL-/bin/sh}
482 # Maximum number of lines to put in a shell here document.
489 # If the previous option needs an argument, assign it.
490 if test -n "$ac_prev"; then
491 eval "$ac_prev=\$ac_option"
497 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
501 # Accept the important Cygnus configure options, so we can diagnose typos.
505 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
507 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
508 bindir
="$ac_optarg" ;;
510 -build |
--build |
--buil |
--bui |
--bu)
512 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
513 build
="$ac_optarg" ;;
515 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
516 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
517 ac_prev
=cache_file
;;
518 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
519 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
520 cache_file
="$ac_optarg" ;;
522 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
524 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
526 datadir
="$ac_optarg" ;;
528 -disable-* |
--disable-*)
529 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
530 # Reject names that are not valid shell variable names.
531 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
532 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
534 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
535 eval "enable_${ac_feature}=no" ;;
537 -enable-* |
--enable-*)
538 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
539 # Reject names that are not valid shell variable names.
540 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
541 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
543 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
548 eval "enable_${ac_feature}='$ac_optarg'" ;;
550 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
551 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
552 |
--exec |
--exe |
--ex)
553 ac_prev
=exec_prefix
;;
554 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
555 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
556 |
--exec=* |
--exe=* |
--ex=*)
557 exec_prefix
="$ac_optarg" ;;
559 -gas |
--gas |
--ga |
--g)
560 # Obsolete; use --with-gas.
563 -help |
--help |
--hel |
--he)
564 # Omit some internal or obsolete options to make the list less imposing.
565 # This message is too long to be a string in the A/UX 3.1 sh.
567 Usage: configure [options] [host]
568 Options: [defaults in brackets after descriptions]
570 --cache-file=FILE cache test results in FILE
571 --help print this message
572 --no-create do not create output files
573 --quiet, --silent do not print \`checking...' messages
574 --version print the version of autoconf that created configure
575 Directory and file names:
576 --prefix=PREFIX install architecture-independent files in PREFIX
578 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
580 --bindir=DIR user executables in DIR [EPREFIX/bin]
581 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
582 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
583 --datadir=DIR read-only architecture-independent data in DIR
585 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
586 --sharedstatedir=DIR modifiable architecture-independent data in DIR
588 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
589 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
590 --includedir=DIR C header files in DIR [PREFIX/include]
591 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
592 --infodir=DIR info documentation in DIR [PREFIX/info]
593 --mandir=DIR man documentation in DIR [PREFIX/man]
594 --srcdir=DIR find the sources in DIR [configure dir or ..]
595 --program-prefix=PREFIX prepend PREFIX to installed program names
596 --program-suffix=SUFFIX append SUFFIX to installed program names
597 --program-transform-name=PROGRAM
598 run sed PROGRAM on installed program names
602 --build=BUILD configure for building on BUILD [BUILD=HOST]
603 --host=HOST configure for HOST [guessed]
604 --target=TARGET configure for TARGET [TARGET=HOST]
605 Features and packages:
606 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
607 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
608 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
609 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
610 --x-includes=DIR X include files are in DIR
611 --x-libraries=DIR X library files are in DIR
613 if test -n "$ac_help"; then
614 echo "--enable and --with options recognized:$ac_help"
618 -host |
--host |
--hos |
--ho)
620 -host=* |
--host=* |
--hos=* |
--ho=*)
623 -includedir |
--includedir |
--includedi |
--included |
--include \
624 |
--includ |
--inclu |
--incl |
--inc)
625 ac_prev
=includedir
;;
626 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
627 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
628 includedir
="$ac_optarg" ;;
630 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
632 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
633 infodir
="$ac_optarg" ;;
635 -libdir |
--libdir |
--libdi |
--libd)
637 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
638 libdir
="$ac_optarg" ;;
640 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
641 |
--libexe |
--libex |
--libe)
642 ac_prev
=libexecdir
;;
643 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
644 |
--libexe=* |
--libex=* |
--libe=*)
645 libexecdir
="$ac_optarg" ;;
647 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
648 |
--localstate |
--localstat |
--localsta |
--localst \
649 |
--locals |
--local |
--loca |
--loc |
--lo)
650 ac_prev
=localstatedir
;;
651 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
652 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
653 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
654 localstatedir
="$ac_optarg" ;;
656 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
658 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
659 mandir
="$ac_optarg" ;;
662 # Obsolete; use --without-fp.
665 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
669 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
670 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
673 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
674 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
675 |
--oldin |
--oldi |
--old |
--ol |
--o)
676 ac_prev
=oldincludedir
;;
677 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
678 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
679 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
680 oldincludedir
="$ac_optarg" ;;
682 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
684 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
685 prefix
="$ac_optarg" ;;
687 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
688 |
--program-pre |
--program-pr |
--program-p)
689 ac_prev
=program_prefix
;;
690 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
691 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
692 program_prefix
="$ac_optarg" ;;
694 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
695 |
--program-suf |
--program-su |
--program-s)
696 ac_prev
=program_suffix
;;
697 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
698 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
699 program_suffix
="$ac_optarg" ;;
701 -program-transform-name |
--program-transform-name \
702 |
--program-transform-nam |
--program-transform-na \
703 |
--program-transform-n |
--program-transform- \
704 |
--program-transform |
--program-transfor \
705 |
--program-transfo |
--program-transf \
706 |
--program-trans |
--program-tran \
707 |
--progr-tra |
--program-tr |
--program-t)
708 ac_prev
=program_transform_name
;;
709 -program-transform-name=* |
--program-transform-name=* \
710 |
--program-transform-nam=* |
--program-transform-na=* \
711 |
--program-transform-n=* |
--program-transform-=* \
712 |
--program-transform=* |
--program-transfor=* \
713 |
--program-transfo=* |
--program-transf=* \
714 |
--program-trans=* |
--program-tran=* \
715 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
716 program_transform_name
="$ac_optarg" ;;
718 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
719 |
-silent |
--silent |
--silen |
--sile |
--sil)
722 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
724 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
726 sbindir
="$ac_optarg" ;;
728 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
729 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
730 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
732 ac_prev
=sharedstatedir
;;
733 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
734 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
735 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
737 sharedstatedir
="$ac_optarg" ;;
739 -site |
--site |
--sit)
741 -site=* |
--site=* |
--sit=*)
744 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
746 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
747 srcdir
="$ac_optarg" ;;
749 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
750 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
751 ac_prev
=sysconfdir
;;
752 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
753 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
754 sysconfdir
="$ac_optarg" ;;
756 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
758 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
759 target
="$ac_optarg" ;;
761 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
764 -version |
--version |
--versio |
--versi |
--vers)
765 echo "configure generated by autoconf version 2.12.2"
769 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
770 # Reject names that are not valid shell variable names.
771 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
772 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
774 ac_package
=`echo $ac_package| sed 's/-/_/g'`
779 eval "with_${ac_package}='$ac_optarg'" ;;
781 -without-* |
--without-*)
782 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
783 # Reject names that are not valid shell variable names.
784 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
785 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
787 ac_package
=`echo $ac_package| sed 's/-/_/g'`
788 eval "with_${ac_package}=no" ;;
791 # Obsolete; use --with-x.
794 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
795 |
--x-incl |
--x-inc |
--x-in |
--x-i)
796 ac_prev
=x_includes
;;
797 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
798 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
799 x_includes
="$ac_optarg" ;;
801 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
802 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
803 ac_prev
=x_libraries
;;
804 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
805 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
806 x_libraries
="$ac_optarg" ;;
808 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
812 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
813 echo "configure: warning: $ac_option: invalid host type" 1>&2
815 if test "x$nonopt" != xNONE
; then
816 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
824 if test -n "$ac_prev"; then
825 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
828 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
830 # File descriptor usage:
833 # 2 errors and warnings
834 # 3 some systems may open it to /dev/tty
835 # 4 used on the Kubota Titan
836 # 6 checking for... messages and results
837 # 5 compiler messages saved in config.log
838 if test "$silent" = yes; then
846 This file contains any messages produced by compilers while
847 running configure, to aid debugging if configure makes a mistake.
850 # Strip out --no-create and --no-recursion so they do not pile up.
851 # Also quote any args containing shell metacharacters.
856 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
857 |
--no-cr |
--no-c) ;;
858 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
859 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
860 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
861 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
862 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
867 # Only set these to C if already set. These must not be set unconditionally
868 # because not all systems understand e.g. LANG=C (notably SCO).
869 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
870 # Non-C LC_CTYPE values break the ctype check.
871 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
872 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
873 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
874 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
876 # confdefs.h avoids OS command line length limits that DEFS can exceed.
877 rm -rf conftest
* confdefs.h
878 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
881 # A filename unique to this package, relative to the directory that
882 # configure is in, which we can look for to find out if srcdir is correct.
885 # Find the source files, if location was not specified.
886 if test -z "$srcdir"; then
887 ac_srcdir_defaulted
=yes
888 # Try the directory containing this script, then its parent.
890 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
891 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
893 if test ! -r $srcdir/$ac_unique_file; then
897 ac_srcdir_defaulted
=no
899 if test ! -r $srcdir/$ac_unique_file; then
900 if test "$ac_srcdir_defaulted" = yes; then
901 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
903 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
906 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
908 # Prefer explicitly selected file to automatically selected ones.
909 if test -z "$CONFIG_SITE"; then
910 if test "x$prefix" != xNONE
; then
911 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
913 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
916 for ac_site_file
in $CONFIG_SITE; do
917 if test -r "$ac_site_file"; then
918 echo "loading site script $ac_site_file"
923 if test -r "$cache_file"; then
924 echo "loading cache $cache_file"
927 echo "creating cache $cache_file"
932 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
933 ac_cpp
='$CPP $CPPFLAGS'
934 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
935 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
936 cross_compiling
=$ac_cv_prog_cc_cross
940 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
941 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
942 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
949 ac_n
= ac_c
='\c' ac_t
=
955 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
956 if test -f $ac_dir/install-sh
; then
958 ac_install_sh
="$ac_aux_dir/install-sh -c"
960 elif test -f $ac_dir/install.sh
; then
962 ac_install_sh
="$ac_aux_dir/install.sh -c"
966 if test -z "$ac_aux_dir"; then
967 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
969 ac_config_guess
=$ac_aux_dir/config.guess
970 ac_config_sub
=$ac_aux_dir/config.sub
971 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
974 # Do some error checking and defaulting for the host and target type.
976 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
979 # 1. You are not allowed to specify --host, --target, and nonopt at the
981 # 2. Host defaults to nonopt.
982 # 3. If nonopt is not specified, then host defaults to the current host,
983 # as determined by config.guess.
984 # 4. Target and build default to nonopt.
985 # 5. If nonopt is not specified, then target and build default to host.
987 # The aliases save the names the user supplied, while $host etc.
988 # will get canonicalized.
989 case $host---$target---$nonopt in
990 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
991 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
995 # Make sure we can run config.sub.
996 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
997 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1000 echo $ac_n "checking host system type""... $ac_c" 1>&6
1001 echo "configure:1002: checking host system type" >&5
1004 case "$host_alias" in
1008 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1009 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1011 *) host_alias
=$nonopt ;;
1015 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1016 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1017 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1018 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1019 echo "$ac_t""$host" 1>&6
1021 echo $ac_n "checking target system type""... $ac_c" 1>&6
1022 echo "configure:1023: checking target system type" >&5
1024 target_alias
=$target
1025 case "$target_alias" in
1028 NONE
) target_alias
=$host_alias ;;
1029 *) target_alias
=$nonopt ;;
1033 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1034 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1035 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1036 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1037 echo "$ac_t""$target" 1>&6
1039 echo $ac_n "checking build system type""... $ac_c" 1>&6
1040 echo "configure:1041: checking build system type" >&5
1043 case "$build_alias" in
1046 NONE
) build_alias
=$host_alias ;;
1047 *) build_alias
=$nonopt ;;
1051 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1052 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1053 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1054 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1055 echo "$ac_t""$build" 1>&6
1057 test "$host_alias" != "$target_alias" &&
1058 test "$program_prefix$program_suffix$program_transform_name" = \
1060 program_prefix
=${target_alias}-
1063 # Find a good install program. We prefer a C program (faster),
1064 # so one script is as good as another. But avoid the broken or
1065 # incompatible versions:
1066 # SysV /etc/install, /usr/sbin/install
1067 # SunOS /usr/etc/install
1068 # IRIX /sbin/install
1070 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1071 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1072 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1073 # ./install, which can be erroneously created by make from ./install.sh.
1074 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1075 echo "configure:1076: checking for a BSD compatible install" >&5
1076 if test -z "$INSTALL"; then
1077 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1078 echo $ac_n "(cached) $ac_c" 1>&6
1080 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1081 for ac_dir
in $PATH; do
1082 # Account for people who put trailing slashes in PATH elements.
1084 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1086 # OSF1 and SCO ODT 3.0 have their own names for install.
1087 # Don't use installbsd from OSF since it installs stuff as root
1089 for ac_prog
in ginstall scoinst
install; do
1090 if test -f $ac_dir/$ac_prog; then
1091 if test $ac_prog = install &&
1092 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1093 # AIX install. It has an incompatible calling convention.
1096 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1107 if test "${ac_cv_path_install+set}" = set; then
1108 INSTALL
="$ac_cv_path_install"
1110 # As a last resort, use the slow shell script. We don't cache a
1111 # path for INSTALL within a source directory, because that will
1112 # break other packages using the cache if that directory is
1113 # removed, or if the path is relative.
1114 INSTALL
="$ac_install_sh"
1117 echo "$ac_t""$INSTALL" 1>&6
1119 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1120 # It thinks the first close brace ends the variable substitution.
1121 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1123 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1125 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1128 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1130 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1131 echo "configure:1132: checking whether build environment is sane" >&5
1134 echo timestamp
> conftestfile
1135 # Do `set' in a subshell so we don't clobber the current shell's
1136 # arguments. Must try -L first in case configure is actually a
1137 # symlink; some systems play weird games with the mod time of symlinks
1138 # (eg FreeBSD returns the mod time of the symlink's containing
1141 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1142 if test "$*" = "X"; then
1144 set X
`ls -t $srcdir/configure conftestfile`
1146 if test "$*" != "X $srcdir/configure conftestfile" \
1147 && test "$*" != "X conftestfile $srcdir/configure"; then
1149 # If neither matched, then we have a broken ls. This can happen
1150 # if, for instance, CONFIG_SHELL is bash and it inherits a
1151 # broken ls alias from the environment. This has actually
1152 # happened. Such a system could not be considered "sane".
1153 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1154 alias in your environment" 1>&2; exit 1; }
1157 test "$2" = conftestfile
1163 { echo "configure: error: newly created file is older than distributed files!
1164 Check your system clock" 1>&2; exit 1; }
1167 echo "$ac_t""yes" 1>&6
1168 if test "$program_transform_name" = s
,x
,x
,; then
1169 program_transform_name
=
1171 # Double any \ or $. echo might interpret backslashes.
1172 cat <<\EOF_SED
> conftestsed
1173 s
,\\,\\\\,g
; s
,\$
,$$
,g
1175 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1178 test "$program_prefix" != NONE
&&
1179 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1180 # Use a double $ so make ignores it.
1181 test "$program_suffix" != NONE
&&
1182 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1184 # sed with no file args requires a program.
1185 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1187 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1188 echo "configure:1189: checking whether ${MAKE-make} sets \${MAKE}" >&5
1189 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1190 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1191 echo $ac_n "(cached) $ac_c" 1>&6
1193 cat > conftestmake
<<\EOF
1195 @
echo 'ac_maketemp="${MAKE}"'
1197 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1198 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1199 if test -n "$ac_maketemp"; then
1200 eval ac_cv_prog_make_
${ac_make}_set
=yes
1202 eval ac_cv_prog_make_
${ac_make}_set
=no
1206 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1207 echo "$ac_t""yes" 1>&6
1210 echo "$ac_t""no" 1>&6
1211 SET_MAKE
="MAKE=${MAKE-make}"
1219 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
1220 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
1222 cat >> confdefs.h
<<EOF
1223 #define PACKAGE "$PACKAGE"
1226 cat >> confdefs.h
<<EOF
1227 #define VERSION "$VERSION"
1232 missing_dir
=`cd $ac_aux_dir && pwd`
1233 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1234 echo "configure:1235: checking for working aclocal" >&5
1235 # Run test in a subshell; some versions of sh will print an error if
1236 # an executable is not found, even if stderr is redirected.
1237 # Redirect stdin to placate older versions of autoconf. Sigh.
1238 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
1240 echo "$ac_t""found" 1>&6
1242 ACLOCAL
="$missing_dir/missing aclocal"
1243 echo "$ac_t""missing" 1>&6
1246 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1247 echo "configure:1248: checking for working autoconf" >&5
1248 # Run test in a subshell; some versions of sh will print an error if
1249 # an executable is not found, even if stderr is redirected.
1250 # Redirect stdin to placate older versions of autoconf. Sigh.
1251 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
1253 echo "$ac_t""found" 1>&6
1255 AUTOCONF
="$missing_dir/missing autoconf"
1256 echo "$ac_t""missing" 1>&6
1259 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1260 echo "configure:1261: checking for working automake" >&5
1261 # Run test in a subshell; some versions of sh will print an error if
1262 # an executable is not found, even if stderr is redirected.
1263 # Redirect stdin to placate older versions of autoconf. Sigh.
1264 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
1266 echo "$ac_t""found" 1>&6
1268 AUTOMAKE
="$missing_dir/missing automake"
1269 echo "$ac_t""missing" 1>&6
1272 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1273 echo "configure:1274: checking for working autoheader" >&5
1274 # Run test in a subshell; some versions of sh will print an error if
1275 # an executable is not found, even if stderr is redirected.
1276 # Redirect stdin to placate older versions of autoconf. Sigh.
1277 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
1278 AUTOHEADER
=autoheader
1279 echo "$ac_t""found" 1>&6
1281 AUTOHEADER
="$missing_dir/missing autoheader"
1282 echo "$ac_t""missing" 1>&6
1285 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1286 echo "configure:1287: checking for working makeinfo" >&5
1287 # Run test in a subshell; some versions of sh will print an error if
1288 # an executable is not found, even if stderr is redirected.
1289 # Redirect stdin to placate older versions of autoconf. Sigh.
1290 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
1292 echo "$ac_t""found" 1>&6
1294 MAKEINFO
="$missing_dir/missing makeinfo"
1295 echo "$ac_t""missing" 1>&6
1300 # Check whether --enable-shared or --disable-shared was given.
1301 if test "${enable_shared+set}" = set; then
1302 enableval
="$enable_shared"
1303 p
=${PACKAGE-default}
1304 case "$enableval" in
1305 yes) enable_shared
=yes ;;
1306 no
) enable_shared
=no
;;
1309 # Look at the argument we got. We use all the common list separators.
1310 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1311 for pkg
in $enableval; do
1312 if test "X$pkg" = "X$p"; then
1323 # Check whether --enable-static or --disable-static was given.
1324 if test "${enable_static+set}" = set; then
1325 enableval
="$enable_static"
1326 p
=${PACKAGE-default}
1327 case "$enableval" in
1328 yes) enable_static
=yes ;;
1329 no
) enable_static
=no
;;
1332 # Look at the argument we got. We use all the common list separators.
1333 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1334 for pkg
in $enableval; do
1335 if test "X$pkg" = "X$p"; then
1346 # Extract the first word of "ranlib", so it can be a program name with args.
1347 set dummy ranlib
; ac_word
=$2
1348 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1349 echo "configure:1350: checking for $ac_word" >&5
1350 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1351 echo $ac_n "(cached) $ac_c" 1>&6
1353 if test -n "$RANLIB"; then
1354 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1356 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1358 for ac_dir
in $ac_dummy; do
1359 test -z "$ac_dir" && ac_dir
=.
1360 if test -f $ac_dir/$ac_word; then
1361 ac_cv_prog_RANLIB
="ranlib"
1366 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1369 RANLIB
="$ac_cv_prog_RANLIB"
1370 if test -n "$RANLIB"; then
1371 echo "$ac_t""$RANLIB" 1>&6
1373 echo "$ac_t""no" 1>&6
1376 # Extract the first word of "gcc", so it can be a program name with args.
1377 set dummy gcc
; ac_word
=$2
1378 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1379 echo "configure:1380: checking for $ac_word" >&5
1380 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1381 echo $ac_n "(cached) $ac_c" 1>&6
1383 if test -n "$CC"; then
1384 ac_cv_prog_CC
="$CC" # Let the user override the test.
1386 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1388 for ac_dir
in $ac_dummy; do
1389 test -z "$ac_dir" && ac_dir
=.
1390 if test -f $ac_dir/$ac_word; then
1399 if test -n "$CC"; then
1400 echo "$ac_t""$CC" 1>&6
1402 echo "$ac_t""no" 1>&6
1405 if test -z "$CC"; then
1406 # Extract the first word of "cc", so it can be a program name with args.
1407 set dummy cc
; ac_word
=$2
1408 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1409 echo "configure:1410: checking for $ac_word" >&5
1410 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1411 echo $ac_n "(cached) $ac_c" 1>&6
1413 if test -n "$CC"; then
1414 ac_cv_prog_CC
="$CC" # Let the user override the test.
1416 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1419 for ac_dir
in $ac_dummy; do
1420 test -z "$ac_dir" && ac_dir
=.
1421 if test -f $ac_dir/$ac_word; then
1422 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1423 ac_prog_rejected
=yes
1431 if test $ac_prog_rejected = yes; then
1432 # We found a bogon in the path, so make sure we never use it.
1433 set dummy
$ac_cv_prog_CC
1435 if test $# -gt 0; then
1436 # We chose a different compiler from the bogus one.
1437 # However, it has the same basename, so the bogon will be chosen
1438 # first if we set CC to just the basename; use the full file name.
1440 set dummy
"$ac_dir/$ac_word" "$@"
1448 if test -n "$CC"; then
1449 echo "$ac_t""$CC" 1>&6
1451 echo "$ac_t""no" 1>&6
1454 if test -z "$CC"; then
1455 case "`uname -s`" in
1457 # Extract the first word of "cl", so it can be a program name with args.
1458 set dummy cl
; ac_word
=$2
1459 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1460 echo "configure:1461: checking for $ac_word" >&5
1461 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1462 echo $ac_n "(cached) $ac_c" 1>&6
1464 if test -n "$CC"; then
1465 ac_cv_prog_CC
="$CC" # Let the user override the test.
1467 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1469 for ac_dir
in $ac_dummy; do
1470 test -z "$ac_dir" && ac_dir
=.
1471 if test -f $ac_dir/$ac_word; then
1480 if test -n "$CC"; then
1481 echo "$ac_t""$CC" 1>&6
1483 echo "$ac_t""no" 1>&6
1488 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1491 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1492 echo "configure:1493: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1495 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1496 ac_cpp
='$CPP $CPPFLAGS'
1497 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1498 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1499 cross_compiling
=$ac_cv_prog_cc_cross
1501 cat > conftest.
$ac_ext << EOF
1503 #line 1504 "configure"
1504 #include "confdefs.h"
1508 if { (eval echo configure
:1509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1509 ac_cv_prog_cc_works
=yes
1510 # If we can't run a trivial program, we are probably using a cross compiler.
1511 if (.
/conftest
; exit) 2>/dev
/null
; then
1512 ac_cv_prog_cc_cross
=no
1514 ac_cv_prog_cc_cross
=yes
1517 echo "configure: failed program was:" >&5
1518 cat conftest.
$ac_ext >&5
1519 ac_cv_prog_cc_works
=no
1523 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1524 ac_cpp
='$CPP $CPPFLAGS'
1525 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1526 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1527 cross_compiling
=$ac_cv_prog_cc_cross
1529 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1530 if test $ac_cv_prog_cc_works = no
; then
1531 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1533 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1534 echo "configure:1535: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1535 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1536 cross_compiling
=$ac_cv_prog_cc_cross
1538 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1539 echo "configure:1540: checking whether we are using GNU C" >&5
1540 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1541 echo $ac_n "(cached) $ac_c" 1>&6
1543 cat > conftest.c
<<EOF
1548 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1555 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1557 if test $ac_cv_prog_gcc = yes; then
1563 ac_test_CFLAGS
="${CFLAGS+set}"
1564 ac_save_CFLAGS
="$CFLAGS"
1566 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1567 echo "configure:1568: checking whether ${CC-cc} accepts -g" >&5
1568 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1569 echo $ac_n "(cached) $ac_c" 1>&6
1571 echo 'void f(){}' > conftest.c
1572 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1581 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1582 if test "$ac_test_CFLAGS" = set; then
1583 CFLAGS
="$ac_save_CFLAGS"
1584 elif test $ac_cv_prog_cc_g = yes; then
1585 if test "$GCC" = yes; then
1591 if test "$GCC" = yes; then
1598 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1599 if test "${with_gnu_ld+set}" = set; then
1600 withval
="$with_gnu_ld"
1601 test "$withval" = no || with_gnu_ld
=yes
1608 if test "$ac_cv_prog_gcc" = yes; then
1609 # Check if gcc -print-prog-name=ld gives a path.
1610 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1611 echo "configure:1612: checking for ld used by GCC" >&5
1612 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1614 # Accept absolute paths.
1616 test -z "$LD" && LD
="$ac_prog"
1619 # If it fails, then pretend we aren't using GCC.
1623 # If it is relative, then search for the first ld in PATH.
1627 elif test "$with_gnu_ld" = yes; then
1628 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1629 echo "configure:1630: checking for GNU ld" >&5
1631 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1632 echo "configure:1633: checking for non-GNU ld" >&5
1634 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1635 echo $ac_n "(cached) $ac_c" 1>&6
1637 if test -z "$LD"; then
1638 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1639 for ac_dir
in $PATH; do
1640 test -z "$ac_dir" && ac_dir
=.
1641 if test -f "$ac_dir/$ac_prog"; then
1642 ac_cv_path_LD
="$ac_dir/$ac_prog"
1643 # Check to see if the program is GNU ld. I'd rather use --version,
1644 # but apparently some GNU ld's only accept -v.
1645 # Break only if it was the GNU/non-GNU ld that we prefer.
1646 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1647 test "$with_gnu_ld" != no
&& break
1649 test "$with_gnu_ld" != yes && break
1655 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1660 if test -n "$LD"; then
1661 echo "$ac_t""$LD" 1>&6
1663 echo "$ac_t""no" 1>&6
1665 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1667 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1668 echo "configure:1669: checking if the linker ($LD) is GNU ld" >&5
1669 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1670 echo $ac_n "(cached) $ac_c" 1>&6
1672 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1673 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1674 ac_cv_prog_gnu_ld
=yes
1676 ac_cv_prog_gnu_ld
=no
1680 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1683 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1684 echo "configure:1685: checking for BSD-compatible nm" >&5
1685 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1686 echo $ac_n "(cached) $ac_c" 1>&6
1688 if test -n "$NM"; then
1689 # Let the user override the test.
1692 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1693 for ac_dir
in /usr
/ucb
/usr
/ccs
/bin
$PATH /bin
; do
1694 test -z "$ac_dir" && ac_dir
=.
1695 if test -f $ac_dir/nm
; then
1696 # Check to see if the nm accepts a BSD-compat flag.
1697 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1698 # nm: unknown option "B" ignored
1699 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1700 ac_cv_path_NM
="$ac_dir/nm -B"
1701 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1702 ac_cv_path_NM
="$ac_dir/nm -p"
1704 ac_cv_path_NM
="$ac_dir/nm"
1710 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1715 echo "$ac_t""$NM" 1>&6
1718 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1719 echo "configure:1720: checking whether ln -s works" >&5
1720 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1721 echo $ac_n "(cached) $ac_c" 1>&6
1724 if ln -s X conftestdata
2>/dev
/null
1727 ac_cv_prog_LN_S
="ln -s"
1732 LN_S
="$ac_cv_prog_LN_S"
1733 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1734 echo "$ac_t""yes" 1>&6
1736 echo "$ac_t""no" 1>&6
1739 if test $host != $build; then
1740 ac_tool_prefix
=${host_alias}-
1745 # Always use our own libtool.
1746 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1748 # Check for any special flags to pass to ltconfig.
1750 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1751 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1752 test "$silent" = yes && libtool_flags
="$libtool_flags --silent"
1753 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1754 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1756 # Some flags need to be propagated to the compiler or linker for good
1760 # Find out which ABI we are using.
1761 echo '#line 1762 "configure"' > conftest.
$ac_ext
1762 if { (eval echo configure
:1763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1763 case "`/usr/bin/file conftest.o`" in
1779 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1780 CFLAGS
="$CFLAGS -belf"
1784 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
1785 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
1786 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1787 echo "configure:1788: checking for $ac_word" >&5
1788 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1789 echo $ac_n "(cached) $ac_c" 1>&6
1791 if test -n "$DLLTOOL"; then
1792 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
1794 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1796 for ac_dir
in $ac_dummy; do
1797 test -z "$ac_dir" && ac_dir
=.
1798 if test -f $ac_dir/$ac_word; then
1799 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
1806 DLLTOOL
="$ac_cv_prog_DLLTOOL"
1807 if test -n "$DLLTOOL"; then
1808 echo "$ac_t""$DLLTOOL" 1>&6
1810 echo "$ac_t""no" 1>&6
1814 if test -z "$ac_cv_prog_DLLTOOL"; then
1815 if test -n "$ac_tool_prefix"; then
1816 # Extract the first word of "dlltool", so it can be a program name with args.
1817 set dummy dlltool
; ac_word
=$2
1818 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1819 echo "configure:1820: checking for $ac_word" >&5
1820 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1821 echo $ac_n "(cached) $ac_c" 1>&6
1823 if test -n "$DLLTOOL"; then
1824 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
1826 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1828 for ac_dir
in $ac_dummy; do
1829 test -z "$ac_dir" && ac_dir
=.
1830 if test -f $ac_dir/$ac_word; then
1831 ac_cv_prog_DLLTOOL
="dlltool"
1836 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="false"
1839 DLLTOOL
="$ac_cv_prog_DLLTOOL"
1840 if test -n "$DLLTOOL"; then
1841 echo "$ac_t""$DLLTOOL" 1>&6
1843 echo "$ac_t""no" 1>&6
1851 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1852 set dummy
${ac_tool_prefix}as
; ac_word
=$2
1853 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1854 echo "configure:1855: checking for $ac_word" >&5
1855 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1856 echo $ac_n "(cached) $ac_c" 1>&6
1858 if test -n "$AS"; then
1859 ac_cv_prog_AS
="$AS" # Let the user override the test.
1861 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1863 for ac_dir
in $ac_dummy; do
1864 test -z "$ac_dir" && ac_dir
=.
1865 if test -f $ac_dir/$ac_word; then
1866 ac_cv_prog_AS
="${ac_tool_prefix}as"
1874 if test -n "$AS"; then
1875 echo "$ac_t""$AS" 1>&6
1877 echo "$ac_t""no" 1>&6
1881 if test -z "$ac_cv_prog_AS"; then
1882 if test -n "$ac_tool_prefix"; then
1883 # Extract the first word of "as", so it can be a program name with args.
1884 set dummy as
; ac_word
=$2
1885 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1886 echo "configure:1887: checking for $ac_word" >&5
1887 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1888 echo $ac_n "(cached) $ac_c" 1>&6
1890 if test -n "$AS"; then
1891 ac_cv_prog_AS
="$AS" # Let the user override the test.
1893 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1895 for ac_dir
in $ac_dummy; do
1896 test -z "$ac_dir" && ac_dir
=.
1897 if test -f $ac_dir/$ac_word; then
1903 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS
="false"
1907 if test -n "$AS"; then
1908 echo "$ac_t""$AS" 1>&6
1910 echo "$ac_t""no" 1>&6
1923 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1924 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1925 LD
="$LD" NM
="$NM" RANLIB
="$RANLIB" LN_S
="$LN_S" \
1926 DLLTOOL
="$DLLTOOL" AS
="$AS" \
1927 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1928 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
1929 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1931 # Redirect the config.log output again, so that the ltconfig log is not
1932 # clobbered by the next message.
1933 exec 5>>.
/config.log
1936 # Check whether --enable-targets or --disable-targets was given.
1937 if test "${enable_targets+set}" = set; then
1938 enableval
="$enable_targets"
1939 case "${enableval}" in
1940 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
1942 no
) enable_targets
= ;;
1943 *) enable_targets
=$enableval ;;
1946 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
1947 if test "${enable_commonbfdlib+set}" = set; then
1948 enableval
="$enable_commonbfdlib"
1949 case "${enableval}" in
1950 yes) commonbfdlib
=true
;;
1951 no
) commonbfdlib
=false
;;
1952 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
1960 if test -z "$target" ; then
1961 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
1963 if test -z "$host" ; then
1964 { echo "configure: error: Unrecognized host system type; please check config.sub." 1>&2; exit 1; }
1967 # Extract the first word of "gcc", so it can be a program name with args.
1968 set dummy gcc
; ac_word
=$2
1969 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1970 echo "configure:1971: checking for $ac_word" >&5
1971 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1972 echo $ac_n "(cached) $ac_c" 1>&6
1974 if test -n "$CC"; then
1975 ac_cv_prog_CC
="$CC" # Let the user override the test.
1977 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1979 for ac_dir
in $ac_dummy; do
1980 test -z "$ac_dir" && ac_dir
=.
1981 if test -f $ac_dir/$ac_word; then
1990 if test -n "$CC"; then
1991 echo "$ac_t""$CC" 1>&6
1993 echo "$ac_t""no" 1>&6
1996 if test -z "$CC"; then
1997 # Extract the first word of "cc", so it can be a program name with args.
1998 set dummy cc
; ac_word
=$2
1999 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2000 echo "configure:2001: checking for $ac_word" >&5
2001 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2002 echo $ac_n "(cached) $ac_c" 1>&6
2004 if test -n "$CC"; then
2005 ac_cv_prog_CC
="$CC" # Let the user override the test.
2007 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2010 for ac_dir
in $ac_dummy; do
2011 test -z "$ac_dir" && ac_dir
=.
2012 if test -f $ac_dir/$ac_word; then
2013 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2014 ac_prog_rejected
=yes
2022 if test $ac_prog_rejected = yes; then
2023 # We found a bogon in the path, so make sure we never use it.
2024 set dummy
$ac_cv_prog_CC
2026 if test $# -gt 0; then
2027 # We chose a different compiler from the bogus one.
2028 # However, it has the same basename, so the bogon will be chosen
2029 # first if we set CC to just the basename; use the full file name.
2031 set dummy
"$ac_dir/$ac_word" "$@"
2039 if test -n "$CC"; then
2040 echo "$ac_t""$CC" 1>&6
2042 echo "$ac_t""no" 1>&6
2045 if test -z "$CC"; then
2046 case "`uname -s`" in
2048 # Extract the first word of "cl", so it can be a program name with args.
2049 set dummy cl
; ac_word
=$2
2050 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2051 echo "configure:2052: checking for $ac_word" >&5
2052 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2053 echo $ac_n "(cached) $ac_c" 1>&6
2055 if test -n "$CC"; then
2056 ac_cv_prog_CC
="$CC" # Let the user override the test.
2058 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2060 for ac_dir
in $ac_dummy; do
2061 test -z "$ac_dir" && ac_dir
=.
2062 if test -f $ac_dir/$ac_word; then
2071 if test -n "$CC"; then
2072 echo "$ac_t""$CC" 1>&6
2074 echo "$ac_t""no" 1>&6
2079 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2082 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2083 echo "configure:2084: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2086 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2087 ac_cpp
='$CPP $CPPFLAGS'
2088 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2089 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2090 cross_compiling
=$ac_cv_prog_cc_cross
2092 cat > conftest.
$ac_ext << EOF
2094 #line 2095 "configure"
2095 #include "confdefs.h"
2099 if { (eval echo configure
:2100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2100 ac_cv_prog_cc_works
=yes
2101 # If we can't run a trivial program, we are probably using a cross compiler.
2102 if (.
/conftest
; exit) 2>/dev
/null
; then
2103 ac_cv_prog_cc_cross
=no
2105 ac_cv_prog_cc_cross
=yes
2108 echo "configure: failed program was:" >&5
2109 cat conftest.
$ac_ext >&5
2110 ac_cv_prog_cc_works
=no
2114 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2115 ac_cpp
='$CPP $CPPFLAGS'
2116 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2117 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2118 cross_compiling
=$ac_cv_prog_cc_cross
2120 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2121 if test $ac_cv_prog_cc_works = no
; then
2122 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2124 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2125 echo "configure:2126: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2126 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2127 cross_compiling
=$ac_cv_prog_cc_cross
2129 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2130 echo "configure:2131: checking whether we are using GNU C" >&5
2131 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2132 echo $ac_n "(cached) $ac_c" 1>&6
2134 cat > conftest.c
<<EOF
2139 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2146 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2148 if test $ac_cv_prog_gcc = yes; then
2154 ac_test_CFLAGS
="${CFLAGS+set}"
2155 ac_save_CFLAGS
="$CFLAGS"
2157 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2158 echo "configure:2159: checking whether ${CC-cc} accepts -g" >&5
2159 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2160 echo $ac_n "(cached) $ac_c" 1>&6
2162 echo 'void f(){}' > conftest.c
2163 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2172 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2173 if test "$ac_test_CFLAGS" = set; then
2174 CFLAGS
="$ac_save_CFLAGS"
2175 elif test $ac_cv_prog_cc_g = yes; then
2176 if test "$GCC" = yes; then
2182 if test "$GCC" = yes; then
2190 for ac_prog
in 'bison -y' byacc
2192 # Extract the first word of "$ac_prog", so it can be a program name with args.
2193 set dummy
$ac_prog; ac_word
=$2
2194 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2195 echo "configure:2196: checking for $ac_word" >&5
2196 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2197 echo $ac_n "(cached) $ac_c" 1>&6
2199 if test -n "$YACC"; then
2200 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
2202 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2204 for ac_dir
in $ac_dummy; do
2205 test -z "$ac_dir" && ac_dir
=.
2206 if test -f $ac_dir/$ac_word; then
2207 ac_cv_prog_YACC
="$ac_prog"
2214 YACC
="$ac_cv_prog_YACC"
2215 if test -n "$YACC"; then
2216 echo "$ac_t""$YACC" 1>&6
2218 echo "$ac_t""no" 1>&6
2221 test -n "$YACC" && break
2223 test -n "$YACC" || YACC
="yacc"
2225 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2226 echo "configure:2227: checking how to run the C preprocessor" >&5
2227 # On Suns, sometimes $CPP names a directory.
2228 if test -n "$CPP" && test -d "$CPP"; then
2231 if test -z "$CPP"; then
2232 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2233 echo $ac_n "(cached) $ac_c" 1>&6
2235 # This must be in double quotes, not single quotes, because CPP may get
2236 # substituted into the Makefile and "${CC-cc}" will confuse make.
2238 # On the NeXT, cc -E runs the code through the compiler's parser,
2239 # not just through cpp.
2240 cat > conftest.
$ac_ext <<EOF
2241 #line 2242 "configure"
2242 #include "confdefs.h"
2246 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2247 { (eval echo configure
:2248: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2248 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2249 if test -z "$ac_err"; then
2253 echo "configure: failed program was:" >&5
2254 cat conftest.
$ac_ext >&5
2256 CPP
="${CC-cc} -E -traditional-cpp"
2257 cat > conftest.
$ac_ext <<EOF
2258 #line 2259 "configure"
2259 #include "confdefs.h"
2263 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2264 { (eval echo configure
:2265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2265 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2266 if test -z "$ac_err"; then
2270 echo "configure: failed program was:" >&5
2271 cat conftest.
$ac_ext >&5
2273 CPP
="${CC-cc} -nologo -E"
2274 cat > conftest.
$ac_ext <<EOF
2275 #line 2276 "configure"
2276 #include "confdefs.h"
2280 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2281 { (eval echo configure
:2282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2282 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2283 if test -z "$ac_err"; then
2287 echo "configure: failed program was:" >&5
2288 cat conftest.
$ac_ext >&5
2297 ac_cv_prog_CPP
="$CPP"
2299 CPP
="$ac_cv_prog_CPP"
2301 ac_cv_prog_CPP
="$CPP"
2303 echo "$ac_t""$CPP" 1>&6
2305 missing_dir
=`cd $ac_aux_dir && pwd`
2306 for ac_prog
in flex
lex
2308 # Extract the first word of "$ac_prog", so it can be a program name with args.
2309 set dummy
$ac_prog; ac_word
=$2
2310 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2311 echo "configure:2312: checking for $ac_word" >&5
2312 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2313 echo $ac_n "(cached) $ac_c" 1>&6
2315 if test -n "$LEX"; then
2316 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
2318 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2320 for ac_dir
in $ac_dummy; do
2321 test -z "$ac_dir" && ac_dir
=.
2322 if test -f $ac_dir/$ac_word; then
2323 ac_cv_prog_LEX
="$ac_prog"
2330 LEX
="$ac_cv_prog_LEX"
2331 if test -n "$LEX"; then
2332 echo "$ac_t""$LEX" 1>&6
2334 echo "$ac_t""no" 1>&6
2337 test -n "$LEX" && break
2339 test -n "$LEX" || LEX
=""$missing_dir/missing flex
""
2341 # Extract the first word of "flex", so it can be a program name with args.
2342 set dummy flex
; ac_word
=$2
2343 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2344 echo "configure:2345: checking for $ac_word" >&5
2345 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2346 echo $ac_n "(cached) $ac_c" 1>&6
2348 if test -n "$LEX"; then
2349 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
2351 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2353 for ac_dir
in $ac_dummy; do
2354 test -z "$ac_dir" && ac_dir
=.
2355 if test -f $ac_dir/$ac_word; then
2356 ac_cv_prog_LEX
="flex"
2361 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
2364 LEX
="$ac_cv_prog_LEX"
2365 if test -n "$LEX"; then
2366 echo "$ac_t""$LEX" 1>&6
2368 echo "$ac_t""no" 1>&6
2371 if test -z "$LEXLIB"
2377 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
2378 echo "configure:2379: checking for yywrap in -l$ac_lib" >&5
2379 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
2380 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2381 echo $ac_n "(cached) $ac_c" 1>&6
2383 ac_save_LIBS
="$LIBS"
2384 LIBS
="-l$ac_lib $LIBS"
2385 cat > conftest.
$ac_ext <<EOF
2386 #line 2387 "configure"
2387 #include "confdefs.h"
2388 /* Override any gcc2 internal prototype to avoid an error. */
2389 /* We use char because int might match the return type of a gcc2
2390 builtin and then its argument prototype would still apply. */
2397 if { (eval echo configure
:2398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2399 eval "ac_cv_lib_$ac_lib_var=yes"
2401 echo "configure: failed program was:" >&5
2402 cat conftest.
$ac_ext >&5
2404 eval "ac_cv_lib_$ac_lib_var=no"
2407 LIBS
="$ac_save_LIBS"
2410 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2411 echo "$ac_t""yes" 1>&6
2414 echo "$ac_t""no" 1>&6
2419 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
2420 echo "configure:2421: checking lex output file root" >&5
2421 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
2422 echo $ac_n "(cached) $ac_c" 1>&6
2424 # The minimal lex program is just a single line: %%. But some broken lexes
2425 # (Solaris, I think it was) want two %% lines, so accommodate them.
2428 if test -f lex.yy.c
; then
2429 ac_cv_prog_lex_root
=lex.yy
2430 elif test -f lexyy.c
; then
2431 ac_cv_prog_lex_root
=lexyy
2433 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
2437 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
2438 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
2440 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
2441 echo "configure:2442: checking whether yytext is a pointer" >&5
2442 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
2443 echo $ac_n "(cached) $ac_c" 1>&6
2445 # POSIX says lex can declare yytext either as a pointer or an array; the
2446 # default is implementation-dependent. Figure out which it is, since
2447 # not all implementations provide the %pointer and %array declarations.
2448 ac_cv_prog_lex_yytext_pointer
=no
2449 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2450 ac_save_LIBS
="$LIBS"
2451 LIBS
="$LIBS $LEXLIB"
2452 cat > conftest.
$ac_ext <<EOF
2453 #line 2454 "configure"
2454 #include "confdefs.h"
2455 `cat $LEX_OUTPUT_ROOT.c`
2460 if { (eval echo configure
:2461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2462 ac_cv_prog_lex_yytext_pointer
=yes
2464 echo "configure: failed program was:" >&5
2465 cat conftest.
$ac_ext >&5
2468 LIBS
="$ac_save_LIBS"
2469 rm -f "${LEX_OUTPUT_ROOT}.c"
2473 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
2474 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2475 cat >> confdefs.h
<<\EOF
2476 #define YYTEXT_POINTER 1
2483 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2484 echo "configure:2485: checking for POSIXized ISC" >&5
2485 if test -d /etc
/conf
/kconfig.d
&&
2486 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
2488 echo "$ac_t""yes" 1>&6
2489 ISC
=yes # If later tests want to check for ISC.
2490 cat >> confdefs.h
<<\EOF
2491 #define _POSIX_SOURCE 1
2494 if test "$GCC" = yes; then
2500 echo "$ac_t""no" 1>&6
2504 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2505 echo "configure:2506: checking for ANSI C header files" >&5
2506 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2507 echo $ac_n "(cached) $ac_c" 1>&6
2509 cat > conftest.
$ac_ext <<EOF
2510 #line 2511 "configure"
2511 #include "confdefs.h"
2517 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2518 { (eval echo configure
:2519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2519 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2520 if test -z "$ac_err"; then
2522 ac_cv_header_stdc
=yes
2525 echo "configure: failed program was:" >&5
2526 cat conftest.
$ac_ext >&5
2528 ac_cv_header_stdc
=no
2532 if test $ac_cv_header_stdc = yes; then
2533 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2534 cat > conftest.
$ac_ext <<EOF
2535 #line 2536 "configure"
2536 #include "confdefs.h"
2539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2540 egrep "memchr" >/dev
/null
2>&1; then
2544 ac_cv_header_stdc
=no
2550 if test $ac_cv_header_stdc = yes; then
2551 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2552 cat > conftest.
$ac_ext <<EOF
2553 #line 2554 "configure"
2554 #include "confdefs.h"
2557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2558 egrep "free" >/dev
/null
2>&1; then
2562 ac_cv_header_stdc
=no
2568 if test $ac_cv_header_stdc = yes; then
2569 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2570 if test "$cross_compiling" = yes; then
2573 cat > conftest.
$ac_ext <<EOF
2574 #line 2575 "configure"
2575 #include "confdefs.h"
2577 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2578 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2579 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2580 int main () { int i; for (i = 0; i < 256; i++)
2581 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2585 if { (eval echo configure
:2586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2589 echo "configure: failed program was:" >&5
2590 cat conftest.
$ac_ext >&5
2592 ac_cv_header_stdc
=no
2600 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2601 if test $ac_cv_header_stdc = yes; then
2602 cat >> confdefs.h
<<\EOF
2603 #define STDC_HEADERS 1
2608 echo $ac_n "checking for working const""... $ac_c" 1>&6
2609 echo "configure:2610: checking for working const" >&5
2610 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2611 echo $ac_n "(cached) $ac_c" 1>&6
2613 cat > conftest.
$ac_ext <<EOF
2614 #line 2615 "configure"
2615 #include "confdefs.h"
2619 /* Ultrix mips cc rejects this. */
2620 typedef int charset[2]; const charset x;
2621 /* SunOS 4.1.1 cc rejects this. */
2622 char const *const *ccp;
2624 /* NEC SVR4.0.2 mips cc rejects this. */
2625 struct point {int x, y;};
2626 static struct point const zero = {0,0};
2627 /* AIX XL C 1.02.0.0 rejects this.
2628 It does not let you subtract one const X* pointer from another in an arm
2629 of an if-expression whose if-part is not a constant expression */
2630 const char *g = "string";
2631 ccp = &g + (g ? g-g : 0);
2632 /* HPUX 7.0 cc rejects these. */
2635 ccp = (char const *const *) p;
2636 { /* SCO 3.2v4 cc rejects this. */
2638 char const *s = 0 ? (char *) 0 : (char const *) 0;
2642 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2644 const int *foo = &x[0];
2647 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2648 typedef const int *iptr;
2652 { /* AIX XL C 1.02.0.0 rejects this saying
2653 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2654 struct s { int j; const int *ap[3]; };
2655 struct s *b; b->j = 5;
2657 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2663 if { (eval echo configure
:2664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2667 echo "configure: failed program was:" >&5
2668 cat conftest.
$ac_ext >&5
2675 echo "$ac_t""$ac_cv_c_const" 1>&6
2676 if test $ac_cv_c_const = no
; then
2677 cat >> confdefs.h
<<\EOF
2683 echo $ac_n "checking for inline""... $ac_c" 1>&6
2684 echo "configure:2685: checking for inline" >&5
2685 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2686 echo $ac_n "(cached) $ac_c" 1>&6
2689 for ac_kw
in inline __inline__ __inline
; do
2690 cat > conftest.
$ac_ext <<EOF
2691 #line 2692 "configure"
2692 #include "confdefs.h"
2698 if { (eval echo configure
:2699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2700 ac_cv_c_inline
=$ac_kw; break
2702 echo "configure: failed program was:" >&5
2703 cat conftest.
$ac_ext >&5
2710 echo "$ac_t""$ac_cv_c_inline" 1>&6
2711 case "$ac_cv_c_inline" in
2713 no
) cat >> confdefs.h
<<\EOF
2717 *) cat >> confdefs.h
<<EOF
2718 #define inline $ac_cv_c_inline
2723 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2724 echo "configure:2725: checking for off_t" >&5
2725 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2726 echo $ac_n "(cached) $ac_c" 1>&6
2728 cat > conftest.
$ac_ext <<EOF
2729 #line 2730 "configure"
2730 #include "confdefs.h"
2731 #include <sys/types.h>
2737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2738 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2740 ac_cv_type_off_t
=yes
2748 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2749 if test $ac_cv_type_off_t = no
; then
2750 cat >> confdefs.h
<<\EOF
2756 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2757 echo "configure:2758: checking for size_t" >&5
2758 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2759 echo $ac_n "(cached) $ac_c" 1>&6
2761 cat > conftest.
$ac_ext <<EOF
2762 #line 2763 "configure"
2763 #include "confdefs.h"
2764 #include <sys/types.h>
2770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2771 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2773 ac_cv_type_size_t
=yes
2776 ac_cv_type_size_t
=no
2781 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2782 if test $ac_cv_type_size_t = no
; then
2783 cat >> confdefs.h
<<\EOF
2784 #define size_t unsigned
2789 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2790 # for constant arguments. Useless!
2791 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2792 echo "configure:2793: checking for working alloca.h" >&5
2793 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2794 echo $ac_n "(cached) $ac_c" 1>&6
2796 cat > conftest.
$ac_ext <<EOF
2797 #line 2798 "configure"
2798 #include "confdefs.h"
2801 char *p = alloca(2 * sizeof(int));
2804 if { (eval echo configure
:2805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2806 ac_cv_header_alloca_h
=yes
2808 echo "configure: failed program was:" >&5
2809 cat conftest.
$ac_ext >&5
2811 ac_cv_header_alloca_h
=no
2816 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2817 if test $ac_cv_header_alloca_h = yes; then
2818 cat >> confdefs.h
<<\EOF
2819 #define HAVE_ALLOCA_H 1
2824 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2825 echo "configure:2826: checking for alloca" >&5
2826 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2827 echo $ac_n "(cached) $ac_c" 1>&6
2829 cat > conftest.
$ac_ext <<EOF
2830 #line 2831 "configure"
2831 #include "confdefs.h"
2834 # define alloca __builtin_alloca
2837 # include <malloc.h>
2838 # define alloca _alloca
2841 # include <alloca.h>
2846 # ifndef alloca /* predefined by HP cc +Olibcalls */
2855 char *p = (char *) alloca(1);
2858 if { (eval echo configure
:2859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2860 ac_cv_func_alloca_works
=yes
2862 echo "configure: failed program was:" >&5
2863 cat conftest.
$ac_ext >&5
2865 ac_cv_func_alloca_works
=no
2870 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2871 if test $ac_cv_func_alloca_works = yes; then
2872 cat >> confdefs.h
<<\EOF
2873 #define HAVE_ALLOCA 1
2878 if test $ac_cv_func_alloca_works = no
; then
2879 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2880 # that cause trouble. Some versions do not even contain alloca or
2881 # contain a buggy version. If you still want to use their alloca,
2882 # use ar to extract alloca.o from them instead of compiling alloca.c.
2883 ALLOCA
=alloca.
${ac_objext}
2884 cat >> confdefs.h
<<\EOF
2889 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2890 echo "configure:2891: checking whether alloca needs Cray hooks" >&5
2891 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2892 echo $ac_n "(cached) $ac_c" 1>&6
2894 cat > conftest.
$ac_ext <<EOF
2895 #line 2896 "configure"
2896 #include "confdefs.h"
2897 #if defined(CRAY) && ! defined(CRAY2)
2904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2905 egrep "webecray" >/dev
/null
2>&1; then
2916 echo "$ac_t""$ac_cv_os_cray" 1>&6
2917 if test $ac_cv_os_cray = yes; then
2918 for ac_func
in _getb67 GETB67 getb67
; do
2919 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2920 echo "configure:2921: checking for $ac_func" >&5
2921 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2922 echo $ac_n "(cached) $ac_c" 1>&6
2924 cat > conftest.
$ac_ext <<EOF
2925 #line 2926 "configure"
2926 #include "confdefs.h"
2927 /* System header to define __stub macros and hopefully few prototypes,
2928 which can conflict with char $ac_func(); below. */
2930 /* Override any gcc2 internal prototype to avoid an error. */
2931 /* We use char because int might match the return type of a gcc2
2932 builtin and then its argument prototype would still apply. */
2937 /* The GNU C library defines this for functions which it implements
2938 to always fail with ENOSYS. Some functions are actually named
2939 something starting with __ and the normal name is an alias. */
2940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2948 if { (eval echo configure
:2949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2950 eval "ac_cv_func_$ac_func=yes"
2952 echo "configure: failed program was:" >&5
2953 cat conftest.
$ac_ext >&5
2955 eval "ac_cv_func_$ac_func=no"
2960 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2961 echo "$ac_t""yes" 1>&6
2962 cat >> confdefs.h
<<EOF
2963 #define CRAY_STACKSEG_END $ac_func
2968 echo "$ac_t""no" 1>&6
2974 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2975 echo "configure:2976: checking stack direction for C alloca" >&5
2976 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2977 echo $ac_n "(cached) $ac_c" 1>&6
2979 if test "$cross_compiling" = yes; then
2980 ac_cv_c_stack_direction
=0
2982 cat > conftest.
$ac_ext <<EOF
2983 #line 2984 "configure"
2984 #include "confdefs.h"
2985 find_stack_direction ()
2987 static char *addr = 0;
2992 return find_stack_direction ();
2995 return (&dummy > addr) ? 1 : -1;
2999 exit (find_stack_direction() < 0);
3002 if { (eval echo configure
:3003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3004 ac_cv_c_stack_direction
=1
3006 echo "configure: failed program was:" >&5
3007 cat conftest.
$ac_ext >&5
3009 ac_cv_c_stack_direction
=-1
3016 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3017 cat >> confdefs.h
<<EOF
3018 #define STACK_DIRECTION $ac_cv_c_stack_direction
3023 for ac_hdr
in unistd.h
3025 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3026 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3027 echo "configure:3028: checking for $ac_hdr" >&5
3028 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3029 echo $ac_n "(cached) $ac_c" 1>&6
3031 cat > conftest.
$ac_ext <<EOF
3032 #line 3033 "configure"
3033 #include "confdefs.h"
3036 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3037 { (eval echo configure
:3038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3038 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3039 if test -z "$ac_err"; then
3041 eval "ac_cv_header_$ac_safe=yes"
3044 echo "configure: failed program was:" >&5
3045 cat conftest.
$ac_ext >&5
3047 eval "ac_cv_header_$ac_safe=no"
3051 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3052 echo "$ac_t""yes" 1>&6
3053 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3054 cat >> confdefs.h
<<EOF
3055 #define $ac_tr_hdr 1
3059 echo "$ac_t""no" 1>&6
3063 for ac_func
in getpagesize
3065 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3066 echo "configure:3067: checking for $ac_func" >&5
3067 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3068 echo $ac_n "(cached) $ac_c" 1>&6
3070 cat > conftest.
$ac_ext <<EOF
3071 #line 3072 "configure"
3072 #include "confdefs.h"
3073 /* System header to define __stub macros and hopefully few prototypes,
3074 which can conflict with char $ac_func(); below. */
3076 /* Override any gcc2 internal prototype to avoid an error. */
3077 /* We use char because int might match the return type of a gcc2
3078 builtin and then its argument prototype would still apply. */
3083 /* The GNU C library defines this for functions which it implements
3084 to always fail with ENOSYS. Some functions are actually named
3085 something starting with __ and the normal name is an alias. */
3086 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3094 if { (eval echo configure
:3095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3096 eval "ac_cv_func_$ac_func=yes"
3098 echo "configure: failed program was:" >&5
3099 cat conftest.
$ac_ext >&5
3101 eval "ac_cv_func_$ac_func=no"
3106 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3107 echo "$ac_t""yes" 1>&6
3108 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3109 cat >> confdefs.h
<<EOF
3110 #define $ac_tr_func 1
3114 echo "$ac_t""no" 1>&6
3118 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3119 echo "configure:3120: checking for working mmap" >&5
3120 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3121 echo $ac_n "(cached) $ac_c" 1>&6
3123 if test "$cross_compiling" = yes; then
3124 ac_cv_func_mmap_fixed_mapped
=no
3126 cat > conftest.
$ac_ext <<EOF
3127 #line 3128 "configure"
3128 #include "confdefs.h"
3130 /* Thanks to Mike Haertel and Jim Avera for this test.
3131 Here is a matrix of mmap possibilities:
3132 mmap private not fixed
3133 mmap private fixed at somewhere currently unmapped
3134 mmap private fixed at somewhere already mapped
3135 mmap shared not fixed
3136 mmap shared fixed at somewhere currently unmapped
3137 mmap shared fixed at somewhere already mapped
3138 For private mappings, we should verify that changes cannot be read()
3139 back from the file, nor mmap's back from the file at a different
3140 address. (There have been systems where private was not correctly
3141 implemented like the infamous i386 svr4.0, and systems where the
3142 VM page cache was not coherent with the filesystem buffer cache
3143 like early versions of FreeBSD and possibly contemporary NetBSD.)
3144 For shared mappings, we should conversely verify that changes get
3145 propogated back to all the places they're supposed to be.
3147 Grep wants private fixed already mapped.
3148 The main things grep needs to know about mmap are:
3149 * does it exist and is it safe to write into the mmap'd area
3150 * how to use it (BSD variants) */
3151 #include <sys/types.h>
3153 #include <sys/mman.h>
3155 /* This mess was copied from the GNU getpagesize.h. */
3156 #ifndef HAVE_GETPAGESIZE
3157 # ifdef HAVE_UNISTD_H
3158 # include <unistd.h>
3161 /* Assume that all systems that can run configure have sys/param.h. */
3162 # ifndef HAVE_SYS_PARAM_H
3163 # define HAVE_SYS_PARAM_H 1
3166 # ifdef _SC_PAGESIZE
3167 # define getpagesize() sysconf(_SC_PAGESIZE)
3168 # else /* no _SC_PAGESIZE */
3169 # ifdef HAVE_SYS_PARAM_H
3170 # include <sys/param.h>
3171 # ifdef EXEC_PAGESIZE
3172 # define getpagesize() EXEC_PAGESIZE
3173 # else /* no EXEC_PAGESIZE */
3175 # define getpagesize() NBPG * CLSIZE
3178 # endif /* no CLSIZE */
3179 # else /* no NBPG */
3181 # define getpagesize() NBPC
3182 # else /* no NBPC */
3184 # define getpagesize() PAGESIZE
3185 # endif /* PAGESIZE */
3186 # endif /* no NBPC */
3187 # endif /* no NBPG */
3188 # endif /* no EXEC_PAGESIZE */
3189 # else /* no HAVE_SYS_PARAM_H */
3190 # define getpagesize() 8192 /* punt totally */
3191 # endif /* no HAVE_SYS_PARAM_H */
3192 # endif /* no _SC_PAGESIZE */
3194 #endif /* no HAVE_GETPAGESIZE */
3197 extern "C" { void *malloc(unsigned); }
3205 char *data, *data2, *data3;
3209 pagesize = getpagesize();
3212 * First, make a file with some known garbage in it.
3214 data = malloc(pagesize);
3217 for (i = 0; i < pagesize; ++i)
3218 *(data + i) = rand();
3220 fd = creat("conftestmmap", 0600);
3223 if (write(fd, data, pagesize) != pagesize)
3228 * Next, try to mmap the file at a fixed address which
3229 * already has something else allocated at it. If we can,
3230 * also make sure that we see the same garbage.
3232 fd = open("conftestmmap", O_RDWR);
3235 data2 = malloc(2 * pagesize);
3238 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3239 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3240 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3242 for (i = 0; i < pagesize; ++i)
3243 if (*(data + i) != *(data2 + i))
3247 * Finally, make sure that changes to the mapped area
3248 * do not percolate back to the file as seen by read().
3249 * (This is a bug on some variants of i386 svr4.0.)
3251 for (i = 0; i < pagesize; ++i)
3252 *(data2 + i) = *(data2 + i) + 1;
3253 data3 = malloc(pagesize);
3256 if (read(fd, data3, pagesize) != pagesize)
3258 for (i = 0; i < pagesize; ++i)
3259 if (*(data + i) != *(data3 + i))
3262 unlink("conftestmmap");
3267 if { (eval echo configure
:3268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3269 ac_cv_func_mmap_fixed_mapped
=yes
3271 echo "configure: failed program was:" >&5
3272 cat conftest.
$ac_ext >&5
3274 ac_cv_func_mmap_fixed_mapped
=no
3281 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3282 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3283 cat >> confdefs.h
<<\EOF
3290 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3291 unistd.h values.h sys
/param.h
3293 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3294 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3295 echo "configure:3296: checking for $ac_hdr" >&5
3296 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3297 echo $ac_n "(cached) $ac_c" 1>&6
3299 cat > conftest.
$ac_ext <<EOF
3300 #line 3301 "configure"
3301 #include "confdefs.h"
3304 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3305 { (eval echo configure
:3306: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3306 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3307 if test -z "$ac_err"; then
3309 eval "ac_cv_header_$ac_safe=yes"
3312 echo "configure: failed program was:" >&5
3313 cat conftest.
$ac_ext >&5
3315 eval "ac_cv_header_$ac_safe=no"
3319 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3320 echo "$ac_t""yes" 1>&6
3321 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3322 cat >> confdefs.h
<<EOF
3323 #define $ac_tr_hdr 1
3327 echo "$ac_t""no" 1>&6
3331 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3332 __argz_count __argz_stringify __argz_next
3334 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3335 echo "configure:3336: checking for $ac_func" >&5
3336 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3337 echo $ac_n "(cached) $ac_c" 1>&6
3339 cat > conftest.
$ac_ext <<EOF
3340 #line 3341 "configure"
3341 #include "confdefs.h"
3342 /* System header to define __stub macros and hopefully few prototypes,
3343 which can conflict with char $ac_func(); below. */
3345 /* Override any gcc2 internal prototype to avoid an error. */
3346 /* We use char because int might match the return type of a gcc2
3347 builtin and then its argument prototype would still apply. */
3352 /* The GNU C library defines this for functions which it implements
3353 to always fail with ENOSYS. Some functions are actually named
3354 something starting with __ and the normal name is an alias. */
3355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3363 if { (eval echo configure
:3364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3365 eval "ac_cv_func_$ac_func=yes"
3367 echo "configure: failed program was:" >&5
3368 cat conftest.
$ac_ext >&5
3370 eval "ac_cv_func_$ac_func=no"
3375 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3376 echo "$ac_t""yes" 1>&6
3377 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3378 cat >> confdefs.h
<<EOF
3379 #define $ac_tr_func 1
3383 echo "$ac_t""no" 1>&6
3388 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3389 for ac_func
in stpcpy
3391 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3392 echo "configure:3393: checking for $ac_func" >&5
3393 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3394 echo $ac_n "(cached) $ac_c" 1>&6
3396 cat > conftest.
$ac_ext <<EOF
3397 #line 3398 "configure"
3398 #include "confdefs.h"
3399 /* System header to define __stub macros and hopefully few prototypes,
3400 which can conflict with char $ac_func(); below. */
3402 /* Override any gcc2 internal prototype to avoid an error. */
3403 /* We use char because int might match the return type of a gcc2
3404 builtin and then its argument prototype would still apply. */
3409 /* The GNU C library defines this for functions which it implements
3410 to always fail with ENOSYS. Some functions are actually named
3411 something starting with __ and the normal name is an alias. */
3412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3420 if { (eval echo configure
:3421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3422 eval "ac_cv_func_$ac_func=yes"
3424 echo "configure: failed program was:" >&5
3425 cat conftest.
$ac_ext >&5
3427 eval "ac_cv_func_$ac_func=no"
3432 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3433 echo "$ac_t""yes" 1>&6
3434 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3435 cat >> confdefs.h
<<EOF
3436 #define $ac_tr_func 1
3440 echo "$ac_t""no" 1>&6
3445 if test "${ac_cv_func_stpcpy}" = "yes"; then
3446 cat >> confdefs.h
<<\EOF
3447 #define HAVE_STPCPY 1
3452 if test $ac_cv_header_locale_h = yes; then
3453 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3454 echo "configure:3455: checking for LC_MESSAGES" >&5
3455 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3456 echo $ac_n "(cached) $ac_c" 1>&6
3458 cat > conftest.
$ac_ext <<EOF
3459 #line 3460 "configure"
3460 #include "confdefs.h"
3466 if { (eval echo configure
:3467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3468 am_cv_val_LC_MESSAGES
=yes
3470 echo "configure: failed program was:" >&5
3471 cat conftest.
$ac_ext >&5
3473 am_cv_val_LC_MESSAGES
=no
3478 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3479 if test $am_cv_val_LC_MESSAGES = yes; then
3480 cat >> confdefs.h
<<\EOF
3481 #define HAVE_LC_MESSAGES 1
3486 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3487 echo "configure:3488: checking whether NLS is requested" >&5
3488 # Check whether --enable-nls or --disable-nls was given.
3489 if test "${enable_nls+set}" = set; then
3490 enableval
="$enable_nls"
3496 echo "$ac_t""$USE_NLS" 1>&6
3499 USE_INCLUDED_LIBINTL
=no
3501 if test "$USE_NLS" = "yes"; then
3502 cat >> confdefs.h
<<\EOF
3503 #define ENABLE_NLS 1
3506 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3507 echo "configure:3508: checking whether included gettext is requested" >&5
3508 # Check whether --with-included-gettext or --without-included-gettext was given.
3509 if test "${with_included_gettext+set}" = set; then
3510 withval
="$with_included_gettext"
3511 nls_cv_force_use_gnu_gettext
=$withval
3513 nls_cv_force_use_gnu_gettext
=no
3516 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3518 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
3519 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3521 nls_cv_header_libgt
=
3524 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3525 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3526 echo "configure:3527: checking for libintl.h" >&5
3527 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3528 echo $ac_n "(cached) $ac_c" 1>&6
3530 cat > conftest.
$ac_ext <<EOF
3531 #line 3532 "configure"
3532 #include "confdefs.h"
3533 #include <libintl.h>
3535 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3536 { (eval echo configure
:3537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3537 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3538 if test -z "$ac_err"; then
3540 eval "ac_cv_header_$ac_safe=yes"
3543 echo "configure: failed program was:" >&5
3544 cat conftest.
$ac_ext >&5
3546 eval "ac_cv_header_$ac_safe=no"
3550 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3551 echo "$ac_t""yes" 1>&6
3552 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3553 echo "configure:3554: checking for gettext in libc" >&5
3554 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3555 echo $ac_n "(cached) $ac_c" 1>&6
3557 cat > conftest.
$ac_ext <<EOF
3558 #line 3559 "configure"
3559 #include "confdefs.h"
3560 #include <libintl.h>
3562 return (int) gettext ("")
3565 if { (eval echo configure
:3566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3567 gt_cv_func_gettext_libc
=yes
3569 echo "configure: failed program was:" >&5
3570 cat conftest.
$ac_ext >&5
3572 gt_cv_func_gettext_libc
=no
3577 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3579 if test "$gt_cv_func_gettext_libc" != "yes"; then
3580 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3581 echo "configure:3582: checking for bindtextdomain in -lintl" >&5
3582 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3583 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3584 echo $ac_n "(cached) $ac_c" 1>&6
3586 ac_save_LIBS
="$LIBS"
3588 cat > conftest.
$ac_ext <<EOF
3589 #line 3590 "configure"
3590 #include "confdefs.h"
3591 /* Override any gcc2 internal prototype to avoid an error. */
3592 /* We use char because int might match the return type of a gcc2
3593 builtin and then its argument prototype would still apply. */
3594 char bindtextdomain();
3600 if { (eval echo configure
:3601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3602 eval "ac_cv_lib_$ac_lib_var=yes"
3604 echo "configure: failed program was:" >&5
3605 cat conftest.
$ac_ext >&5
3607 eval "ac_cv_lib_$ac_lib_var=no"
3610 LIBS
="$ac_save_LIBS"
3613 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3614 echo "$ac_t""yes" 1>&6
3615 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3616 echo "configure:3617: checking for gettext in libintl" >&5
3617 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3618 echo $ac_n "(cached) $ac_c" 1>&6
3620 cat > conftest.
$ac_ext <<EOF
3621 #line 3622 "configure"
3622 #include "confdefs.h"
3625 return (int) gettext ("")
3628 if { (eval echo configure
:3629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3630 gt_cv_func_gettext_libintl
=yes
3632 echo "configure: failed program was:" >&5
3633 cat conftest.
$ac_ext >&5
3635 gt_cv_func_gettext_libintl
=no
3640 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3642 echo "$ac_t""no" 1>&6
3647 if test "$gt_cv_func_gettext_libc" = "yes" \
3648 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
3649 cat >> confdefs.h
<<\EOF
3650 #define HAVE_GETTEXT 1
3653 # Extract the first word of "msgfmt", so it can be a program name with args.
3654 set dummy msgfmt
; ac_word
=$2
3655 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3656 echo "configure:3657: checking for $ac_word" >&5
3657 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3658 echo $ac_n "(cached) $ac_c" 1>&6
3662 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3665 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3666 for ac_dir
in $PATH; do
3667 test -z "$ac_dir" && ac_dir
=.
3668 if test -f $ac_dir/$ac_word; then
3669 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3670 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3676 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
3680 MSGFMT
="$ac_cv_path_MSGFMT"
3681 if test -n "$MSGFMT"; then
3682 echo "$ac_t""$MSGFMT" 1>&6
3684 echo "$ac_t""no" 1>&6
3686 if test "$MSGFMT" != "no"; then
3687 for ac_func
in dcgettext
3689 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3690 echo "configure:3691: checking for $ac_func" >&5
3691 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3692 echo $ac_n "(cached) $ac_c" 1>&6
3694 cat > conftest.
$ac_ext <<EOF
3695 #line 3696 "configure"
3696 #include "confdefs.h"
3697 /* System header to define __stub macros and hopefully few prototypes,
3698 which can conflict with char $ac_func(); below. */
3700 /* Override any gcc2 internal prototype to avoid an error. */
3701 /* We use char because int might match the return type of a gcc2
3702 builtin and then its argument prototype would still apply. */
3707 /* The GNU C library defines this for functions which it implements
3708 to always fail with ENOSYS. Some functions are actually named
3709 something starting with __ and the normal name is an alias. */
3710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3718 if { (eval echo configure
:3719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3720 eval "ac_cv_func_$ac_func=yes"
3722 echo "configure: failed program was:" >&5
3723 cat conftest.
$ac_ext >&5
3725 eval "ac_cv_func_$ac_func=no"
3730 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3731 echo "$ac_t""yes" 1>&6
3732 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3733 cat >> confdefs.h
<<EOF
3734 #define $ac_tr_func 1
3738 echo "$ac_t""no" 1>&6
3742 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3743 set dummy gmsgfmt
; ac_word
=$2
3744 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3745 echo "configure:3746: checking for $ac_word" >&5
3746 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3747 echo $ac_n "(cached) $ac_c" 1>&6
3751 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3754 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3757 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3759 for ac_dir
in $ac_dummy; do
3760 test -z "$ac_dir" && ac_dir
=.
3761 if test -f $ac_dir/$ac_word; then
3762 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3767 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3771 GMSGFMT
="$ac_cv_path_GMSGFMT"
3772 if test -n "$GMSGFMT"; then
3773 echo "$ac_t""$GMSGFMT" 1>&6
3775 echo "$ac_t""no" 1>&6
3778 # Extract the first word of "xgettext", so it can be a program name with args.
3779 set dummy xgettext
; ac_word
=$2
3780 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3781 echo "configure:3782: checking for $ac_word" >&5
3782 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3783 echo $ac_n "(cached) $ac_c" 1>&6
3787 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3790 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3791 for ac_dir
in $PATH; do
3792 test -z "$ac_dir" && ac_dir
=.
3793 if test -f $ac_dir/$ac_word; then
3794 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3795 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3801 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3805 XGETTEXT
="$ac_cv_path_XGETTEXT"
3806 if test -n "$XGETTEXT"; then
3807 echo "$ac_t""$XGETTEXT" 1>&6
3809 echo "$ac_t""no" 1>&6
3812 cat > conftest.
$ac_ext <<EOF
3813 #line 3814 "configure"
3814 #include "confdefs.h"
3817 extern int _nl_msg_cat_cntr;
3818 return _nl_msg_cat_cntr
3821 if { (eval echo configure
:3822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3826 echo "configure: failed program was:" >&5
3827 cat conftest.
$ac_ext >&5
3838 echo "$ac_t""no" 1>&6
3843 if test "$CATOBJEXT" = "NONE"; then
3844 nls_cv_use_gnu_gettext
=yes
3848 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3849 INTLOBJS
="\$(GETTOBJS)"
3850 # Extract the first word of "msgfmt", so it can be a program name with args.
3851 set dummy msgfmt
; ac_word
=$2
3852 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3853 echo "configure:3854: checking for $ac_word" >&5
3854 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3855 echo $ac_n "(cached) $ac_c" 1>&6
3859 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3862 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3863 for ac_dir
in $PATH; do
3864 test -z "$ac_dir" && ac_dir
=.
3865 if test -f $ac_dir/$ac_word; then
3866 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3867 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3873 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
3877 MSGFMT
="$ac_cv_path_MSGFMT"
3878 if test -n "$MSGFMT"; then
3879 echo "$ac_t""$MSGFMT" 1>&6
3881 echo "$ac_t""no" 1>&6
3884 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3885 set dummy gmsgfmt
; ac_word
=$2
3886 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3887 echo "configure:3888: checking for $ac_word" >&5
3888 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3889 echo $ac_n "(cached) $ac_c" 1>&6
3893 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3896 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3899 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3901 for ac_dir
in $ac_dummy; do
3902 test -z "$ac_dir" && ac_dir
=.
3903 if test -f $ac_dir/$ac_word; then
3904 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3909 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3913 GMSGFMT
="$ac_cv_path_GMSGFMT"
3914 if test -n "$GMSGFMT"; then
3915 echo "$ac_t""$GMSGFMT" 1>&6
3917 echo "$ac_t""no" 1>&6
3920 # Extract the first word of "xgettext", so it can be a program name with args.
3921 set dummy xgettext
; ac_word
=$2
3922 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3923 echo "configure:3924: checking for $ac_word" >&5
3924 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3925 echo $ac_n "(cached) $ac_c" 1>&6
3929 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3932 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3933 for ac_dir
in $PATH; do
3934 test -z "$ac_dir" && ac_dir
=.
3935 if test -f $ac_dir/$ac_word; then
3936 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3937 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3943 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3947 XGETTEXT
="$ac_cv_path_XGETTEXT"
3948 if test -n "$XGETTEXT"; then
3949 echo "$ac_t""$XGETTEXT" 1>&6
3951 echo "$ac_t""no" 1>&6
3955 USE_INCLUDED_LIBINTL
=yes
3959 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
3961 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
3962 nls_cv_header_intl
=libintl.h
3963 nls_cv_header_libgt
=libgettext.h
3966 if test "$XGETTEXT" != ":"; then
3967 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
3970 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
3975 # We need to process the po/ directory.
3979 nls_cv_header_intl
=libintl.h
3980 nls_cv_header_libgt
=libgettext.h
3983 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3984 # because some of the sources are only built for this goal.
3985 if test "$PACKAGE" = gettext; then
3987 USE_INCLUDED_LIBINTL
=yes
3990 for lang
in $ALL_LINGUAS; do
3991 GMOFILES
="$GMOFILES $lang.gmo"
3992 POFILES
="$POFILES $lang.po"
4008 if test "x$CATOBJEXT" != "x"; then
4009 if test "x$ALL_LINGUAS" = "x"; then
4012 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4013 echo "configure:4014: checking for catalogs to be installed" >&5
4015 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
4016 case "$ALL_LINGUAS" in
4017 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
4020 LINGUAS
=$NEW_LINGUAS
4021 echo "$ac_t""$LINGUAS" 1>&6
4024 if test -n "$LINGUAS"; then
4025 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
4029 if test $ac_cv_header_locale_h = yes; then
4030 INCLUDE_LOCALE_H
="#include <locale.h>"
4033 /* The system does not provide the header <locale.h>. Take care yourself. */"
4037 if test -f $srcdir/po2tbl.
sed.
in; then
4038 if test "$CATOBJEXT" = ".cat"; then
4039 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4040 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4041 echo "configure:4042: checking for linux/version.h" >&5
4042 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4043 echo $ac_n "(cached) $ac_c" 1>&6
4045 cat > conftest.
$ac_ext <<EOF
4046 #line 4047 "configure"
4047 #include "confdefs.h"
4048 #include <linux/version.h>
4050 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4051 { (eval echo configure
:4052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4052 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4053 if test -z "$ac_err"; then
4055 eval "ac_cv_header_$ac_safe=yes"
4058 echo "configure: failed program was:" >&5
4059 cat conftest.
$ac_ext >&5
4061 eval "ac_cv_header_$ac_safe=no"
4065 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4066 echo "$ac_t""yes" 1>&6
4069 echo "$ac_t""no" 1>&6
4074 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
4076 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4077 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
4080 if test "$PACKAGE" = "gettext"; then
4090 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
4096 if test -d $srcdir/po
; then
4097 test -d po || mkdir po
4098 if test "x$srcdir" != "x."; then
4099 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4100 posrcprefix
="$srcdir/"
4102 posrcprefix
="../$srcdir/"
4108 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4109 < $srcdir/po
/POTFILES.
in > po
/POTFILES
4113 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4114 echo "configure:4115: checking whether to enable maintainer-specific portions of Makefiles" >&5
4115 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4116 if test "${enable_maintainer_mode+set}" = set; then
4117 enableval
="$enable_maintainer_mode"
4118 USE_MAINTAINER_MODE
=$enableval
4120 USE_MAINTAINER_MODE
=no
4123 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4124 if test $USE_MAINTAINER_MODE = yes; then
4131 echo $ac_n "checking for cygwin32 environment""... $ac_c" 1>&6
4132 echo "configure:4133: checking for cygwin32 environment" >&5
4133 if eval "test \"`echo '$''{'ac_cv_cygwin32'+set}'`\" = set"; then
4134 echo $ac_n "(cached) $ac_c" 1>&6
4136 cat > conftest.
$ac_ext <<EOF
4137 #line 4138 "configure"
4138 #include "confdefs.h"
4141 return __CYGWIN32__;
4144 if { (eval echo configure
:4145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4148 echo "configure: failed program was:" >&5
4149 cat conftest.
$ac_ext >&5
4157 echo "$ac_t""$ac_cv_cygwin32" 1>&6
4159 test "$ac_cv_cygwin32" = yes && CYGWIN32
=yes
4160 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
4161 echo "configure:4162: checking for mingw32 environment" >&5
4162 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
4163 echo $ac_n "(cached) $ac_c" 1>&6
4165 cat > conftest.
$ac_ext <<EOF
4166 #line 4167 "configure"
4167 #include "confdefs.h"
4173 if { (eval echo configure
:4174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4177 echo "configure: failed program was:" >&5
4178 cat conftest.
$ac_ext >&5
4186 echo "$ac_t""$ac_cv_mingw32" 1>&6
4188 test "$ac_cv_mingw32" = yes && MINGW32
=yes
4191 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4192 echo "configure:4193: checking for executable suffix" >&5
4193 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4194 echo $ac_n "(cached) $ac_c" 1>&6
4196 if test "$CYGWIN32" = yes ||
test "$MINGW32" = yes; then
4200 echo 'int main () { return 0; }' > conftest.
$ac_ext
4202 if { (eval echo configure
:4203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4203 for file in conftest.
*; do
4205 *.c |
*.o |
*.obj
) ;;
4206 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
4210 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4213 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
4218 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
4219 echo "$ac_t""${ac_cv_exeext}" 1>&6
4223 # host-specific stuff:
4227 .
${srcdir}/..
/bfd
/configure.
host
4232 # Extract the first word of "ranlib", so it can be a program name with args.
4233 set dummy ranlib
; ac_word
=$2
4234 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4235 echo "configure:4236: checking for $ac_word" >&5
4236 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4237 echo $ac_n "(cached) $ac_c" 1>&6
4239 if test -n "$RANLIB"; then
4240 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4242 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4244 for ac_dir
in $ac_dummy; do
4245 test -z "$ac_dir" && ac_dir
=.
4246 if test -f $ac_dir/$ac_word; then
4247 ac_cv_prog_RANLIB
="ranlib"
4252 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
4255 RANLIB
="$ac_cv_prog_RANLIB"
4256 if test -n "$RANLIB"; then
4257 echo "$ac_t""$RANLIB" 1>&6
4259 echo "$ac_t""no" 1>&6
4263 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
4266 # Put a plausible default for CC_FOR_BUILD in Makefile.
4267 if test -z "$CC_FOR_BUILD"; then
4268 if test "x$cross_compiling" = "xno"; then
4269 CC_FOR_BUILD
='$(CC)'
4275 # Also set EXEEXT_FOR_BUILD.
4276 if test "x$cross_compiling" = "xno"; then
4277 EXEEXT_FOR_BUILD
='$(EXEEXT)'
4279 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
4280 echo "configure:4281: checking for build system executable suffix" >&5
4281 if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
4282 echo $ac_n "(cached) $ac_c" 1>&6
4284 cat > ac_c_test.c
<< 'EOF'
4286 /* Nothing needed here
*/
4289 ${CC_FOR_BUILD} -o ac_c_test am_c_test.c
1>&5 2>&5
4290 bfd_cv_build_exeext
=`echo ac_c_test.* | grep -v ac_c_test.c | sed -e s/ac_c_test//`
4292 test x
"${bfd_cv_build_exeext}" = x
&& bfd_cv_build_exeext
=no
4295 echo "$ac_t""$bfd_cv_build_exeext" 1>&6
4297 test x
"${bfd_cv_build_exeext}" != xno
&& EXEEXT_FOR_BUILD
=${bfd_cv_build_exeext}
4301 for ac_hdr
in string.h
strings.h stdlib.h unistd.h fcntl.h sys
/file.h
4303 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4304 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4305 echo "configure:4306: checking for $ac_hdr" >&5
4306 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4307 echo $ac_n "(cached) $ac_c" 1>&6
4309 cat > conftest.
$ac_ext <<EOF
4310 #line 4311 "configure"
4311 #include "confdefs.h"
4314 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4315 { (eval echo configure
:4316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4316 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4317 if test -z "$ac_err"; then
4319 eval "ac_cv_header_$ac_safe=yes"
4322 echo "configure: failed program was:" >&5
4323 cat conftest.
$ac_ext >&5
4325 eval "ac_cv_header_$ac_safe=no"
4329 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4330 echo "$ac_t""yes" 1>&6
4331 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4332 cat >> confdefs.h
<<EOF
4333 #define $ac_tr_hdr 1
4337 echo "$ac_t""no" 1>&6
4341 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4342 echo "configure:4343: checking for sys/wait.h that is POSIX.1 compatible" >&5
4343 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
4344 echo $ac_n "(cached) $ac_c" 1>&6
4346 cat > conftest.
$ac_ext <<EOF
4347 #line 4348 "configure"
4348 #include "confdefs.h"
4349 #include <sys/types.h>
4350 #include <sys/wait.h>
4352 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4355 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4360 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4363 if { (eval echo configure
:4364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4365 ac_cv_header_sys_wait_h
=yes
4367 echo "configure: failed program was:" >&5
4368 cat conftest.
$ac_ext >&5
4370 ac_cv_header_sys_wait_h
=no
4375 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4376 if test $ac_cv_header_sys_wait_h = yes; then
4377 cat >> confdefs.h
<<\EOF
4378 #define HAVE_SYS_WAIT_H 1
4383 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4384 # for constant arguments. Useless!
4385 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4386 echo "configure:4387: checking for working alloca.h" >&5
4387 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4388 echo $ac_n "(cached) $ac_c" 1>&6
4390 cat > conftest.
$ac_ext <<EOF
4391 #line 4392 "configure"
4392 #include "confdefs.h"
4395 char *p = alloca(2 * sizeof(int));
4398 if { (eval echo configure
:4399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4400 ac_cv_header_alloca_h
=yes
4402 echo "configure: failed program was:" >&5
4403 cat conftest.
$ac_ext >&5
4405 ac_cv_header_alloca_h
=no
4410 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4411 if test $ac_cv_header_alloca_h = yes; then
4412 cat >> confdefs.h
<<\EOF
4413 #define HAVE_ALLOCA_H 1
4418 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4419 echo "configure:4420: checking for alloca" >&5
4420 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4421 echo $ac_n "(cached) $ac_c" 1>&6
4423 cat > conftest.
$ac_ext <<EOF
4424 #line 4425 "configure"
4425 #include "confdefs.h"
4428 # define alloca __builtin_alloca
4431 # include <malloc.h>
4432 # define alloca _alloca
4435 # include <alloca.h>
4440 # ifndef alloca /* predefined by HP cc +Olibcalls */
4449 char *p = (char *) alloca(1);
4452 if { (eval echo configure
:4453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4454 ac_cv_func_alloca_works
=yes
4456 echo "configure: failed program was:" >&5
4457 cat conftest.
$ac_ext >&5
4459 ac_cv_func_alloca_works
=no
4464 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4465 if test $ac_cv_func_alloca_works = yes; then
4466 cat >> confdefs.h
<<\EOF
4467 #define HAVE_ALLOCA 1
4472 if test $ac_cv_func_alloca_works = no
; then
4473 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4474 # that cause trouble. Some versions do not even contain alloca or
4475 # contain a buggy version. If you still want to use their alloca,
4476 # use ar to extract alloca.o from them instead of compiling alloca.c.
4477 ALLOCA
=alloca.
${ac_objext}
4478 cat >> confdefs.h
<<\EOF
4483 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4484 echo "configure:4485: checking whether alloca needs Cray hooks" >&5
4485 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4486 echo $ac_n "(cached) $ac_c" 1>&6
4488 cat > conftest.
$ac_ext <<EOF
4489 #line 4490 "configure"
4490 #include "confdefs.h"
4491 #if defined(CRAY) && ! defined(CRAY2)
4498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4499 egrep "webecray" >/dev
/null
2>&1; then
4510 echo "$ac_t""$ac_cv_os_cray" 1>&6
4511 if test $ac_cv_os_cray = yes; then
4512 for ac_func
in _getb67 GETB67 getb67
; do
4513 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4514 echo "configure:4515: checking for $ac_func" >&5
4515 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4516 echo $ac_n "(cached) $ac_c" 1>&6
4518 cat > conftest.
$ac_ext <<EOF
4519 #line 4520 "configure"
4520 #include "confdefs.h"
4521 /* System header to define __stub macros and hopefully few prototypes,
4522 which can conflict with char $ac_func(); below. */
4524 /* Override any gcc2 internal prototype to avoid an error. */
4525 /* We use char because int might match the return type of a gcc2
4526 builtin and then its argument prototype would still apply. */
4531 /* The GNU C library defines this for functions which it implements
4532 to always fail with ENOSYS. Some functions are actually named
4533 something starting with __ and the normal name is an alias. */
4534 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4542 if { (eval echo configure
:4543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4544 eval "ac_cv_func_$ac_func=yes"
4546 echo "configure: failed program was:" >&5
4547 cat conftest.
$ac_ext >&5
4549 eval "ac_cv_func_$ac_func=no"
4554 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4555 echo "$ac_t""yes" 1>&6
4556 cat >> confdefs.h
<<EOF
4557 #define CRAY_STACKSEG_END $ac_func
4562 echo "$ac_t""no" 1>&6
4568 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4569 echo "configure:4570: checking stack direction for C alloca" >&5
4570 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4571 echo $ac_n "(cached) $ac_c" 1>&6
4573 if test "$cross_compiling" = yes; then
4574 ac_cv_c_stack_direction
=0
4576 cat > conftest.
$ac_ext <<EOF
4577 #line 4578 "configure"
4578 #include "confdefs.h"
4579 find_stack_direction ()
4581 static char *addr = 0;
4586 return find_stack_direction ();
4589 return (&dummy > addr) ? 1 : -1;
4593 exit (find_stack_direction() < 0);
4596 if { (eval echo configure
:4597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4598 ac_cv_c_stack_direction
=1
4600 echo "configure: failed program was:" >&5
4601 cat conftest.
$ac_ext >&5
4603 ac_cv_c_stack_direction
=-1
4610 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4611 cat >> confdefs.h
<<EOF
4612 #define STACK_DIRECTION $ac_cv_c_stack_direction
4617 for ac_func
in sbrk utimes
4619 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4620 echo "configure:4621: checking for $ac_func" >&5
4621 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4622 echo $ac_n "(cached) $ac_c" 1>&6
4624 cat > conftest.
$ac_ext <<EOF
4625 #line 4626 "configure"
4626 #include "confdefs.h"
4627 /* System header to define __stub macros and hopefully few prototypes,
4628 which can conflict with char $ac_func(); below. */
4630 /* Override any gcc2 internal prototype to avoid an error. */
4631 /* We use char because int might match the return type of a gcc2
4632 builtin and then its argument prototype would still apply. */
4637 /* The GNU C library defines this for functions which it implements
4638 to always fail with ENOSYS. Some functions are actually named
4639 something starting with __ and the normal name is an alias. */
4640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4648 if { (eval echo configure
:4649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4650 eval "ac_cv_func_$ac_func=yes"
4652 echo "configure: failed program was:" >&5
4653 cat conftest.
$ac_ext >&5
4655 eval "ac_cv_func_$ac_func=no"
4660 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4661 echo "$ac_t""yes" 1>&6
4662 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4663 cat >> confdefs.h
<<EOF
4664 #define $ac_tr_func 1
4668 echo "$ac_t""no" 1>&6
4673 echo $ac_n "checking for time_t in time.h""... $ac_c" 1>&6
4674 echo "configure:4675: checking for time_t in time.h" >&5
4675 if eval "test \"`echo '$''{'bu_cv_decl_time_t_time_h'+set}'`\" = set"; then
4676 echo $ac_n "(cached) $ac_c" 1>&6
4678 cat > conftest.
$ac_ext <<EOF
4679 #line 4680 "configure"
4680 #include "confdefs.h"
4686 if { (eval echo configure
:4687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4688 bu_cv_decl_time_t_time_h
=yes
4690 echo "configure: failed program was:" >&5
4691 cat conftest.
$ac_ext >&5
4693 bu_cv_decl_time_t_time_h
=no
4698 echo "$ac_t""$bu_cv_decl_time_t_time_h" 1>&6
4699 if test $bu_cv_decl_time_t_time_h = yes; then
4700 cat >> confdefs.h
<<\EOF
4701 #define HAVE_TIME_T_IN_TIME_H 1
4706 echo $ac_n "checking for time_t in sys/types.h""... $ac_c" 1>&6
4707 echo "configure:4708: checking for time_t in sys/types.h" >&5
4708 if eval "test \"`echo '$''{'bu_cv_decl_time_t_types_h'+set}'`\" = set"; then
4709 echo $ac_n "(cached) $ac_c" 1>&6
4711 cat > conftest.
$ac_ext <<EOF
4712 #line 4713 "configure"
4713 #include "confdefs.h"
4714 #include <sys/types.h>
4719 if { (eval echo configure
:4720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4721 bu_cv_decl_time_t_types_h
=yes
4723 echo "configure: failed program was:" >&5
4724 cat conftest.
$ac_ext >&5
4726 bu_cv_decl_time_t_types_h
=no
4731 echo "$ac_t""$bu_cv_decl_time_t_types_h" 1>&6
4732 if test $bu_cv_decl_time_t_types_h = yes; then
4733 cat >> confdefs.h
<<\EOF
4734 #define HAVE_TIME_T_IN_TYPES_H 1
4739 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
4741 echo $ac_n "checking for utime.h""... $ac_c" 1>&6
4742 echo "configure:4743: checking for utime.h" >&5
4743 if eval "test \"`echo '$''{'bu_cv_header_utime_h'+set}'`\" = set"; then
4744 echo $ac_n "(cached) $ac_c" 1>&6
4746 cat > conftest.
$ac_ext <<EOF
4747 #line 4748 "configure"
4748 #include "confdefs.h"
4749 #include <sys/types.h>
4758 if { (eval echo configure
:4759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4760 bu_cv_header_utime_h
=yes
4762 echo "configure: failed program was:" >&5
4763 cat conftest.
$ac_ext >&5
4765 bu_cv_header_utime_h
=no
4770 echo "$ac_t""$bu_cv_header_utime_h" 1>&6
4771 if test $bu_cv_header_utime_h = yes; then
4772 cat >> confdefs.h
<<\EOF
4773 #define HAVE_GOOD_UTIME_H 1
4778 echo $ac_n "checking whether fprintf must be declared""... $ac_c" 1>&6
4779 echo "configure:4780: checking whether fprintf must be declared" >&5
4780 if eval "test \"`echo '$''{'bfd_cv_decl_needed_fprintf'+set}'`\" = set"; then
4781 echo $ac_n "(cached) $ac_c" 1>&6
4783 cat > conftest.
$ac_ext <<EOF
4784 #line 4785 "configure"
4785 #include "confdefs.h"
4788 #ifdef HAVE_STRING_H
4791 #ifdef HAVE_STRINGS_H
4792 #include <strings.h>
4795 #ifdef HAVE_STDLIB_H
4798 #ifdef HAVE_UNISTD_H
4802 char *(*pfn) = (char *(*)) fprintf
4805 if { (eval echo configure
:4806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4807 bfd_cv_decl_needed_fprintf
=no
4809 echo "configure: failed program was:" >&5
4810 cat conftest.
$ac_ext >&5
4812 bfd_cv_decl_needed_fprintf
=yes
4817 echo "$ac_t""$bfd_cv_decl_needed_fprintf" 1>&6
4818 if test $bfd_cv_decl_needed_fprintf = yes; then
4819 bfd_tr_decl
=NEED_DECLARATION_
`echo fprintf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4820 cat >> confdefs.h
<<EOF
4821 #define $bfd_tr_decl 1
4826 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4827 echo "configure:4828: checking whether strstr must be declared" >&5
4828 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4829 echo $ac_n "(cached) $ac_c" 1>&6
4831 cat > conftest.
$ac_ext <<EOF
4832 #line 4833 "configure"
4833 #include "confdefs.h"
4836 #ifdef HAVE_STRING_H
4839 #ifdef HAVE_STRINGS_H
4840 #include <strings.h>
4843 #ifdef HAVE_STDLIB_H
4846 #ifdef HAVE_UNISTD_H
4850 char *(*pfn) = (char *(*)) strstr
4853 if { (eval echo configure
:4854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4855 bfd_cv_decl_needed_strstr
=no
4857 echo "configure: failed program was:" >&5
4858 cat conftest.
$ac_ext >&5
4860 bfd_cv_decl_needed_strstr
=yes
4865 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4866 if test $bfd_cv_decl_needed_strstr = yes; then
4867 bfd_tr_decl
=NEED_DECLARATION_
`echo strstr | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4868 cat >> confdefs.h
<<EOF
4869 #define $bfd_tr_decl 1
4874 echo $ac_n "checking whether sbrk must be declared""... $ac_c" 1>&6
4875 echo "configure:4876: checking whether sbrk must be declared" >&5
4876 if eval "test \"`echo '$''{'bfd_cv_decl_needed_sbrk'+set}'`\" = set"; then
4877 echo $ac_n "(cached) $ac_c" 1>&6
4879 cat > conftest.
$ac_ext <<EOF
4880 #line 4881 "configure"
4881 #include "confdefs.h"
4884 #ifdef HAVE_STRING_H
4887 #ifdef HAVE_STRINGS_H
4888 #include <strings.h>
4891 #ifdef HAVE_STDLIB_H
4894 #ifdef HAVE_UNISTD_H
4898 char *(*pfn) = (char *(*)) sbrk
4901 if { (eval echo configure
:4902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4903 bfd_cv_decl_needed_sbrk
=no
4905 echo "configure: failed program was:" >&5
4906 cat conftest.
$ac_ext >&5
4908 bfd_cv_decl_needed_sbrk
=yes
4913 echo "$ac_t""$bfd_cv_decl_needed_sbrk" 1>&6
4914 if test $bfd_cv_decl_needed_sbrk = yes; then
4915 bfd_tr_decl
=NEED_DECLARATION_
`echo sbrk | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4916 cat >> confdefs.h
<<EOF
4917 #define $bfd_tr_decl 1
4922 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
4923 echo "configure:4924: checking whether getenv must be declared" >&5
4924 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
4925 echo $ac_n "(cached) $ac_c" 1>&6
4927 cat > conftest.
$ac_ext <<EOF
4928 #line 4929 "configure"
4929 #include "confdefs.h"
4932 #ifdef HAVE_STRING_H
4935 #ifdef HAVE_STRINGS_H
4936 #include <strings.h>
4939 #ifdef HAVE_STDLIB_H
4942 #ifdef HAVE_UNISTD_H
4946 char *(*pfn) = (char *(*)) getenv
4949 if { (eval echo configure
:4950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4951 bfd_cv_decl_needed_getenv
=no
4953 echo "configure: failed program was:" >&5
4954 cat conftest.
$ac_ext >&5
4956 bfd_cv_decl_needed_getenv
=yes
4961 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
4962 if test $bfd_cv_decl_needed_getenv = yes; then
4963 bfd_tr_decl
=NEED_DECLARATION_
`echo getenv | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4964 cat >> confdefs.h
<<EOF
4965 #define $bfd_tr_decl 1
4973 i
[345]86-*-msdos* | i
[345]86-*-go32* | i
[345]86-*-mingw32* |
*-*-cygwin32* |
*-*-windows)
4974 cat >> confdefs.h
<<\EOF
4975 #define USE_BINARY_FOPEN 1
4980 # target-specific stuff:
4982 # Canonicalize the secondary target names.
4983 if test -n "$enable_targets"; then
4984 for targ
in `echo $enable_targets | sed 's/,/ /g'`
4986 result
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $targ 2>/dev/null`
4987 if test -n "$result"; then
4988 canon_targets
="$canon_targets $result"
4990 # Allow targets that config.sub doesn't recognize, like "all".
4991 canon_targets
="$canon_targets $targ"
5005 for targ
in $target $canon_targets
5007 if test "x$targ" = "xall"; then
5009 BUILD_NLMCONV
='$(NLMCONV_PROG)$(EXEEXT)'
5010 BUILD_SRCONV
='$(SRCONV_PROG)'
5011 NLMCONV_DEFS
="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
5014 i
[3456]86*-*-netware*)
5015 BUILD_NLMCONV
='$(NLMCONV_PROG)$(EXEEXT)'
5016 NLMCONV_DEFS
="$NLMCONV_DEFS -DNLMCONV_I386"
5019 BUILD_NLMCONV
='$(NLMCONV_PROG)$(EXEEXT)'
5020 NLMCONV_DEFS
="$NLMCONV_DEFS -DNLMCONV_ALPHA"
5022 powerpc
*-*-netware*)
5023 BUILD_NLMCONV
='$(NLMCONV_PROG)$(EXEEXT)'
5024 NLMCONV_DEFS
="$NLMCONV_DEFS -DNLMCONV_POWERPC"
5027 BUILD_NLMCONV
='$(NLMCONV_PROG)$(EXEEXT)'
5028 NLMCONV_DEFS
="$NLMCONV_DEFS -DNLMCONV_SPARC"
5032 *-*-hms*) BUILD_SRCONV
='$(SRCONV_PROG)' ;;
5036 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
5037 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_ARM"
5038 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
5041 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
5042 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_ARM"
5043 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
5045 i
[3-6]86-*pe
* | i
[3-6]86-*-cygwin* | i
[3-6]86-*-mingw32*)
5046 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
5047 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_I386"
5048 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
5049 BUILD_DLLWRAP
='$(DLLWRAP_PROG)$(EXEEXT)'
5051 powerpc
*-*-*pe
* | powerpc
*-*-cygwin*)
5052 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
5053 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_PPC"
5054 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
5068 cat >> confdefs.h
<<EOF
5069 #define TARGET "${target}"
5074 .
$srcdir/..
/bfd
/config.bfd
5075 if test "x$targ_underscore" = "xyes"; then
5083 cat > confcache
<<\EOF
5084 # This file is a shell script that caches the results of configure
5085 # tests run on this system so they can be shared between configure
5086 # scripts and configure runs. It is not useful on other systems.
5087 # If it contains results you don't want to keep, you may remove or edit it.
5089 # By default, configure uses ./config.cache as the cache file,
5090 # creating it if it does not exist already. You can give configure
5091 # the --cache-file=FILE option to use a different cache file; that is
5092 # what configure does when it calls configure scripts in
5093 # subdirectories, so they share the cache.
5094 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5095 # config.status only pays attention to the cache file if you give it the
5096 # --recheck option to rerun configure.
5099 # The following way of writing the cache mishandles newlines in values,
5100 # but we know of no workaround that is simple, portable, and efficient.
5101 # So, don't put newlines in cache variables' values.
5102 # Ultrix sh set writes to stderr and can't be redirected directly,
5103 # and sets the high bit in the cache file unless we assign to the vars.
5105 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5107 # `set' does not quote correctly, so add quotes (double-quote substitution
5108 # turns \\\\ into \\, and sed turns \\ into \).
5110 -e "s/'/'\\\\''/g" \
5111 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5114 # `set' quotes correctly as required by POSIX, so do not add quotes.
5115 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5118 if cmp -s $cache_file confcache
; then
5121 if test -w $cache_file; then
5122 echo "updating cache $cache_file"
5123 cat confcache
> $cache_file
5125 echo "not updating unwritable cache $cache_file"
5130 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5132 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5133 # Let make expand exec_prefix.
5134 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5136 # Any assignment to VPATH causes Sun make to only execute
5137 # the first set of double-colon rules, so remove it if not needed.
5138 # If there is a colon in the path, we need to keep it.
5139 if test "x$srcdir" = x.
; then
5140 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5143 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5145 DEFS
=-DHAVE_CONFIG_H
5147 # Without the "./", some shells look in PATH for config.status.
5148 : ${CONFIG_STATUS=./config.status}
5150 echo creating
$CONFIG_STATUS
5151 rm -f $CONFIG_STATUS
5152 cat > $CONFIG_STATUS <<EOF
5154 # Generated automatically by configure.
5155 # Run this file to recreate the current configuration.
5156 # This directory was configured as follows,
5157 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5159 # $0 $ac_configure_args
5161 # Compiler output produced by configure, useful for debugging
5162 # configure, is in ./config.log if it exists.
5164 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5167 case "\$ac_option" in
5168 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5169 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5170 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5171 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5172 echo "$CONFIG_STATUS generated by autoconf version 2.12.2"
5174 -help | --help | --hel | --he | --h)
5175 echo "\$ac_cs_usage"; exit 0 ;;
5176 *) echo "\$ac_cs_usage"; exit 1 ;;
5180 ac_given_srcdir=$srcdir
5181 ac_given_INSTALL="$INSTALL"
5183 trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5185 cat >> $CONFIG_STATUS <<EOF
5187 # Protect against being on the right side of a sed subst in config.status.
5188 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5189 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5193 s%@CFLAGS@%$CFLAGS%g
5194 s%@CPPFLAGS@%$CPPFLAGS%g
5195 s%@CXXFLAGS@%$CXXFLAGS%g
5196 s%@FFLAGS@%$FFLAGS%g
5198 s%@LDFLAGS@%$LDFLAGS%g
5200 s%@exec_prefix@%$exec_prefix%g
5201 s%@prefix@%$prefix%g
5202 s%@program_transform_name@%$program_transform_name%g
5203 s%@bindir@%$bindir%g
5204 s%@sbindir@%$sbindir%g
5205 s%@libexecdir@%$libexecdir%g
5206 s%@datadir@%$datadir%g
5207 s%@sysconfdir@%$sysconfdir%g
5208 s%@sharedstatedir@%$sharedstatedir%g
5209 s%@localstatedir@%$localstatedir%g
5210 s%@libdir@%$libdir%g
5211 s%@includedir@%$includedir%g
5212 s%@oldincludedir@%$oldincludedir%g
5213 s%@infodir@%$infodir%g
5214 s%@mandir@%$mandir%g
5216 s%@host_alias@%$host_alias%g
5217 s%@host_cpu@%$host_cpu%g
5218 s%@host_vendor@%$host_vendor%g
5219 s%@host_os@%$host_os%g
5220 s%@target@%$target%g
5221 s%@target_alias@%$target_alias%g
5222 s%@target_cpu@%$target_cpu%g
5223 s%@target_vendor@%$target_vendor%g
5224 s%@target_os@%$target_os%g
5226 s%@build_alias@%$build_alias%g
5227 s%@build_cpu@%$build_cpu%g
5228 s%@build_vendor@%$build_vendor%g
5229 s%@build_os@%$build_os%g
5230 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5231 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5232 s%@INSTALL_DATA@%$INSTALL_DATA%g
5233 s%@PACKAGE@%$PACKAGE%g
5234 s%@VERSION@%$VERSION%g
5235 s%@ACLOCAL@%$ACLOCAL%g
5236 s%@AUTOCONF@%$AUTOCONF%g
5237 s%@AUTOMAKE@%$AUTOMAKE%g
5238 s%@AUTOHEADER@%$AUTOHEADER%g
5239 s%@MAKEINFO@%$MAKEINFO%g
5240 s%@SET_MAKE@%$SET_MAKE%g
5241 s%@RANLIB@%$RANLIB%g
5246 s%@LIBTOOL@%$LIBTOOL%g
5247 s%@DLLTOOL@%$DLLTOOL%g
5251 s%@LEXLIB@%$LEXLIB%g
5253 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
5254 s%@ALLOCA@%$ALLOCA%g
5255 s%@USE_NLS@%$USE_NLS%g
5256 s%@MSGFMT@%$MSGFMT%g
5257 s%@GMSGFMT@%$GMSGFMT%g
5258 s%@XGETTEXT@%$XGETTEXT%g
5259 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5260 s%@CATALOGS@%$CATALOGS%g
5261 s%@CATOBJEXT@%$CATOBJEXT%g
5262 s%@DATADIRNAME@%$DATADIRNAME%g
5263 s%@GMOFILES@%$GMOFILES%g
5264 s%@INSTOBJEXT@%$INSTOBJEXT%g
5265 s%@INTLDEPS@%$INTLDEPS%g
5266 s%@INTLLIBS@%$INTLLIBS%g
5267 s%@INTLOBJS@%$INTLOBJS%g
5268 s%@POFILES@%$POFILES%g
5270 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5272 s%@GT_YES@%$GT_YES%g
5273 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5276 s%@EXEEXT@%$EXEEXT%g
5277 s%@HDEFINES@%$HDEFINES%g
5279 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
5280 s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
5281 s%@NLMCONV_DEFS@%$NLMCONV_DEFS%g
5282 s%@BUILD_NLMCONV@%$BUILD_NLMCONV%g
5283 s%@BUILD_SRCONV@%$BUILD_SRCONV%g
5284 s%@BUILD_DLLTOOL@%$BUILD_DLLTOOL%g
5285 s%@DLLTOOL_DEFS@%$DLLTOOL_DEFS%g
5286 s%@BUILD_WINDRES@%$BUILD_WINDRES%g
5287 s%@BUILD_DLLWRAP@%$BUILD_DLLWRAP%g
5288 s%@UNDERSCORE@%$UNDERSCORE%g
5293 cat >> $CONFIG_STATUS <<\EOF
5295 # Split the substitutions into bite-sized pieces for seds with
5296 # small command number limits, like on Digital OSF/1 and HP-UX.
5297 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5298 ac_file
=1 # Number of current file.
5299 ac_beg
=1 # First line for current file.
5300 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5303 while $ac_more_lines; do
5304 if test $ac_beg -gt 1; then
5305 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5307 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5309 if test ! -s conftest.s
$ac_file; then
5311 rm -f conftest.s
$ac_file
5313 if test -z "$ac_sed_cmds"; then
5314 ac_sed_cmds
="sed -f conftest.s$ac_file"
5316 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5318 ac_file
=`expr $ac_file + 1`
5320 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5323 if test -z "$ac_sed_cmds"; then
5328 cat >> $CONFIG_STATUS <<EOF
5330 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
5332 cat >> $CONFIG_STATUS <<\EOF
5333 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5334 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5336 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5337 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5338 *) ac_file_in
="${ac_file}.in" ;;
5341 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5343 # Remove last slash and all that follows it. Not all systems have dirname.
5344 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5345 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5346 # The file is in a subdirectory.
5347 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5348 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5349 # A "../" for each directory in $ac_dir_suffix.
5350 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5352 ac_dir_suffix
= ac_dots
=
5355 case "$ac_given_srcdir" in
5357 if test -z "$ac_dots"; then top_srcdir
=.
5358 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5359 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5361 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5362 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5365 case "$ac_given_INSTALL" in
5366 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5367 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5370 echo creating
"$ac_file"
5372 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5374 *Makefile
*) ac_comsub
="1i\\
5375 # $configure_input" ;;
5379 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5381 s%@configure_input@%$configure_input%g
5382 s%@srcdir@%$srcdir%g
5383 s%@top_srcdir@%$top_srcdir%g
5384 s%@INSTALL@%$INSTALL%g
5385 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5389 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5390 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5392 # ac_d sets the value in "#define NAME VALUE" lines.
5393 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5394 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5397 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5398 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5399 ac_uB
='\([ ]\)%\1#\2define\3'
5402 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5403 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5404 ac_eB
='$%\1#\2define\3'
5408 if test "${CONFIG_HEADERS+set}" != set; then
5410 cat >> $CONFIG_STATUS <<EOF
5411 CONFIG_HEADERS="config.h:config.in"
5413 cat >> $CONFIG_STATUS <<\EOF
5415 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5416 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5418 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5419 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5420 *) ac_file_in
="${ac_file}.in" ;;
5423 echo creating
$ac_file
5425 rm -f conftest.frag conftest.
in conftest.out
5426 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5427 cat $ac_file_inputs > conftest.
in
5431 # Transform confdefs.h into a sed script conftest.vals that substitutes
5432 # the proper values into config.h.in to produce config.h. And first:
5433 # Protect against being on the right side of a sed subst in config.status.
5434 # Protect against being in an unquoted here document in config.status.
5436 cat > conftest.hdr
<<\EOF
5439 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5443 sed -n -f conftest.hdr confdefs.h > conftest.vals
5446 # This sed command replaces #undef with comments. This is necessary, for
5447 # example, in the case of _POSIX_SOURCE, which is predefined and required
5448 # on some systems where configure will not decide to define it.
5449 cat >> conftest.vals <<\EOF
5450 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5453 # Break up conftest.vals because some shells have a limit on
5454 # the size of here documents, and old seds have small limits too.
5459 ac_lines=`grep -c . conftest.vals
`
5460 # grep -c gives empty output for an empty file on some AIX systems.
5461 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5462 # Write a limited-size here document to conftest.frag.
5463 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5464 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5466 sed -f conftest.frag conftest.in > conftest.out
5468 mv conftest.out conftest.in
5470 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5472 mv conftest.tail conftest.vals
5476 cat >> $CONFIG_STATUS <<\EOF
5477 rm -f conftest.frag conftest.h
5478 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5479 cat conftest.in >> conftest.h
5481 if cmp -s $ac_file conftest.h 2>/dev/null; then
5482 echo "$ac_file is unchanged"
5485 # Remove last slash and all that follows it. Not all systems have dirname.
5486 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5487 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5488 # The file is in a subdirectory.
5489 test ! -d "$ac_dir" && mkdir "$ac_dir"
5492 mv conftest.h $ac_file
5497 cat >> $CONFIG_STATUS <<EOF
5501 cat >> $CONFIG_STATUS <<\EOF
5502 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5503 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
5506 chmod +x $CONFIG_STATUS
5507 rm -fr confdefs* $ac_clean_files
5508 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1