OLD | NEW |
1 #! /bin/sh | 1 #! /bin/sh |
2 # Guess values for system-dependent variables and create Makefiles. | 2 # Guess values for system-dependent variables and create Makefiles. |
3 # Generated by GNU Autoconf 2.64. | 3 # Generated by GNU Autoconf 2.64. |
4 # | 4 # |
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | 5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software | 6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software |
7 # Foundation, Inc. | 7 # Foundation, Inc. |
8 # | 8 # |
9 # This configure script is free software; the Free Software Foundation | 9 # This configure script is free software; the Free Software Foundation |
10 # gives unlimited permission to copy, distribute and modify it. | 10 # gives unlimited permission to copy, distribute and modify it. |
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
544 MAKEFLAGS= | 544 MAKEFLAGS= |
545 | 545 |
546 # Identity of this package. | 546 # Identity of this package. |
547 PACKAGE_NAME= | 547 PACKAGE_NAME= |
548 PACKAGE_TARNAME= | 548 PACKAGE_TARNAME= |
549 PACKAGE_VERSION= | 549 PACKAGE_VERSION= |
550 PACKAGE_STRING= | 550 PACKAGE_STRING= |
551 PACKAGE_BUGREPORT= | 551 PACKAGE_BUGREPORT= |
552 PACKAGE_URL= | 552 PACKAGE_URL= |
553 | 553 |
554 ac_unique_file="main.c" | 554 ac_unique_file="import/memmem.c" |
555 # Factoring default headers for most tests. | 555 # Factoring default headers for most tests. |
556 ac_includes_default="\ | 556 ac_includes_default="\ |
557 #include <stdio.h> | 557 #include <stdio.h> |
558 #ifdef HAVE_SYS_TYPES_H | 558 #ifdef HAVE_SYS_TYPES_H |
559 # include <sys/types.h> | 559 # include <sys/types.h> |
560 #endif | 560 #endif |
561 #ifdef HAVE_SYS_STAT_H | 561 #ifdef HAVE_SYS_STAT_H |
562 # include <sys/stat.h> | 562 # include <sys/stat.h> |
563 #endif | 563 #endif |
564 #ifdef STDC_HEADERS | 564 #ifdef STDC_HEADERS |
(...skipping 16 matching lines...) Expand all Loading... |
581 #ifdef HAVE_INTTYPES_H | 581 #ifdef HAVE_INTTYPES_H |
582 # include <inttypes.h> | 582 # include <inttypes.h> |
583 #endif | 583 #endif |
584 #ifdef HAVE_STDINT_H | 584 #ifdef HAVE_STDINT_H |
585 # include <stdint.h> | 585 # include <stdint.h> |
586 #endif | 586 #endif |
587 #ifdef HAVE_UNISTD_H | 587 #ifdef HAVE_UNISTD_H |
588 # include <unistd.h> | 588 # include <unistd.h> |
589 #endif" | 589 #endif" |
590 | 590 |
| 591 gl_fnmatch_required=POSIX |
| 592 gl_func_list= |
591 gl_header_list= | 593 gl_header_list= |
592 gl_func_list= | |
593 enable_option_checking=no | |
594 ac_subst_vars='am__EXEEXT_FALSE | 594 ac_subst_vars='am__EXEEXT_FALSE |
595 am__EXEEXT_TRUE | 595 am__EXEEXT_TRUE |
596 gltests_LTLIBOBJS | 596 gltests_LTLIBOBJS |
597 gltests_LIBOBJS | 597 gltests_LIBOBJS |
598 gl_LTLIBOBJS | 598 gl_LTLIBOBJS |
599 gl_LIBOBJS | 599 gl_LIBOBJS |
600 LTLIBOBJS | 600 LTLIBOBJS |
601 LIBOBJS | 601 LIBOBJS |
602 GDB_NM_FILE | |
603 frags | |
604 target_subdir | |
605 CONFIG_UNINSTALL | |
606 CONFIG_INSTALL | |
607 CONFIG_CLEAN | |
608 CONFIG_ALL | |
609 CONFIG_SRCS | |
610 CONFIG_DEPS | |
611 CONFIG_OBS | |
612 PROFILE_CFLAGS | |
613 ENABLE_CFLAGS | |
614 SIM_OBS | |
615 SIM | |
616 XMKMF | |
617 GDBTK_SRC_DIR | |
618 GDBTK_CFLAGS | |
619 GDBTKLIBS | |
620 X_LIBS | |
621 X_LDFLAGS | |
622 X_CFLAGS | |
623 TK_XINCLUDES | |
624 TK_DEPS | |
625 TK_LIBRARY | |
626 TK_INCLUDE | |
627 TK_STUB_LIB_SPEC | |
628 TK_STUB_LIB_FLAG | |
629 TK_STUB_LIB_FILE | |
630 TK_LIB_SPEC | |
631 TK_LIB_FLAG | |
632 TK_LIB_FILE | |
633 TK_SRC_DIR | |
634 TK_BIN_DIR | |
635 TK_VERSION | |
636 TCL_DEPS | |
637 TCL_LIBRARY | |
638 TCL_INCLUDE | |
639 TCL_STUB_LIB_SPEC | |
640 TCL_STUB_LIB_FLAG | |
641 TCL_STUB_LIB_FILE | |
642 TCL_LIB_SPEC | |
643 TCL_LIB_FLAG | |
644 TCL_LIB_FILE | |
645 TCL_SRC_DIR | |
646 TCL_BIN_DIR | |
647 TCL_PATCH_LEVEL | |
648 TCL_VERSION | |
649 WIN32LDAPP | |
650 GUI_CFLAGS_X | |
651 LIBGUI | |
652 WIN32LIBS | |
653 SER_HARDWIRE | |
654 WERROR_CFLAGS | |
655 WARN_CFLAGS | |
656 SYSTEM_GDBINIT | |
657 TARGET_SYSTEM_ROOT_DEFINE | |
658 TARGET_SYSTEM_ROOT | |
659 CONFIG_LDFLAGS | |
660 RDYNAMIC | |
661 ALLOCA | |
662 PYTHON_LIBS | |
663 PYTHON_CPPFLAGS | |
664 PYTHON_CFLAGS | |
665 python_prog_path | |
666 LTLIBEXPAT | |
667 LIBEXPAT | |
668 HAVE_LIBEXPAT | |
669 JIT_READER_DIR | |
670 TARGET_PTR | |
671 READLINE_TEXI_INCFLAG | |
672 READLINE_CFLAGS | |
673 READLINE_DEPS | |
674 READLINE | |
675 MIG | |
676 WINDRES | |
677 DLLTOOL | |
678 AR | |
679 YFLAGS | |
680 YACC | |
681 LN_S | 602 LN_S |
682 REPORT_BUGS_TEXI | |
683 REPORT_BUGS_TO | |
684 PKGVERSION | |
685 TARGET_OBS | |
686 subdirs | |
687 GDB_DATADIR | |
688 DEBUGDIR | |
689 am__fastdepCC_FALSE | 603 am__fastdepCC_FALSE |
690 am__fastdepCC_TRUE | 604 am__fastdepCC_TRUE |
| 605 CCDEPMODE |
691 AMDEPBACKSLASH | 606 AMDEPBACKSLASH |
692 AMDEP_FALSE | 607 AMDEP_FALSE |
693 AMDEP_TRUE | 608 AMDEP_TRUE |
694 am__quote | 609 am__quote |
695 am__include | 610 am__include |
| 611 DEPDIR |
696 am__untar | 612 am__untar |
697 am__tar | 613 am__tar |
698 AMTAR | 614 AMTAR |
| 615 am__leading_dot |
| 616 SET_MAKE |
699 AWK | 617 AWK |
700 mkdir_p | 618 mkdir_p |
701 MKDIR_P | 619 MKDIR_P |
702 INSTALL_STRIP_PROGRAM | 620 INSTALL_STRIP_PROGRAM |
703 STRIP | 621 STRIP |
704 install_sh | 622 install_sh |
| 623 MAKEINFO |
705 AUTOHEADER | 624 AUTOHEADER |
706 AUTOMAKE | 625 AUTOMAKE |
707 AUTOCONF | 626 AUTOCONF |
708 ACLOCAL | 627 ACLOCAL |
709 VERSION | 628 VERSION |
| 629 PACKAGE |
710 CYGPATH_W | 630 CYGPATH_W |
711 am__isrc | 631 am__isrc |
712 INSTALL_DATA | 632 INSTALL_DATA |
713 INSTALL_SCRIPT | 633 INSTALL_SCRIPT |
714 INSTALL_PROGRAM | 634 INSTALL_PROGRAM |
715 MAKEINFO_EXTRA_FLAGS | |
716 MAKEINFOFLAGS | |
717 MAKEINFO | |
718 PACKAGE | |
719 GNULIB_STDINT_H | |
720 LIBGNU_LTLIBDEPS | 635 LIBGNU_LTLIBDEPS |
721 LIBGNU_LIBDEPS | 636 LIBGNU_LIBDEPS |
722 gltests_WITNESS | 637 gltests_WITNESS |
| 638 REPLACE_TOWLOWER |
| 639 REPLACE_ISWCNTRL |
| 640 HAVE_WCTYPE_H |
| 641 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H |
| 642 NEXT_WCTYPE_H |
| 643 HAVE_ISWCNTRL |
| 644 REPLACE_ISWBLANK |
| 645 HAVE_WCTRANS_T |
| 646 HAVE_WCTYPE_T |
| 647 HAVE_ISWBLANK |
| 648 GNULIB_TOWCTRANS |
| 649 GNULIB_WCTRANS |
| 650 GNULIB_ISWCTYPE |
| 651 GNULIB_WCTYPE |
| 652 GNULIB_ISWBLANK |
723 HAVE_WINT_T | 653 HAVE_WINT_T |
724 HAVE_WCHAR_H | 654 HAVE_FEATURES_H |
725 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H | 655 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H |
726 NEXT_WCHAR_H | 656 NEXT_WCHAR_H |
727 REPLACE_WCWIDTH | |
728 REPLACE_WCSNRTOMBS | |
729 REPLACE_WCSRTOMBS | |
730 REPLACE_WCRTOMB | |
731 REPLACE_MBSNRTOWCS | |
732 REPLACE_MBSRTOWCS | |
733 REPLACE_MBRLEN | |
734 REPLACE_MBRTOWC | |
735 REPLACE_MBSINIT | |
736 REPLACE_WCTOB | |
737 REPLACE_BTOWC | |
738 REPLACE_MBSTATE_T | |
739 HAVE_DECL_WCWIDTH | |
740 HAVE_DECL_WCTOB | |
741 HAVE_WCSNRTOMBS | |
742 HAVE_WCSRTOMBS | |
743 HAVE_WCRTOMB | |
744 HAVE_MBSNRTOWCS | |
745 HAVE_MBSRTOWCS | |
746 HAVE_MBRLEN | |
747 HAVE_MBRTOWC | |
748 HAVE_MBSINIT | |
749 HAVE_BTOWC | |
750 GNULIB_WCWIDTH | |
751 GNULIB_WCSNRTOMBS | |
752 GNULIB_WCSRTOMBS | |
753 GNULIB_WCRTOMB | |
754 GNULIB_MBSNRTOWCS | |
755 GNULIB_MBSRTOWCS | |
756 GNULIB_MBRLEN | |
757 GNULIB_MBRTOWC | |
758 GNULIB_MBSINIT | |
759 GNULIB_WCTOB | |
760 GNULIB_BTOWC | |
761 NEXT_AS_FIRST_DIRECTIVE_STRING_H | 657 NEXT_AS_FIRST_DIRECTIVE_STRING_H |
762 NEXT_STRING_H | 658 NEXT_STRING_H |
763 STDINT_H | |
764 WINT_T_SUFFIX | |
765 WCHAR_T_SUFFIX | |
766 SIG_ATOMIC_T_SUFFIX | |
767 SIZE_T_SUFFIX | |
768 PTRDIFF_T_SUFFIX | |
769 HAVE_SIGNED_WINT_T | |
770 HAVE_SIGNED_WCHAR_T | |
771 HAVE_SIGNED_SIG_ATOMIC_T | |
772 BITSIZEOF_WINT_T | |
773 BITSIZEOF_WCHAR_T | |
774 BITSIZEOF_SIG_ATOMIC_T | |
775 BITSIZEOF_SIZE_T | |
776 BITSIZEOF_PTRDIFF_T | |
777 HAVE_SYS_BITYPES_H | |
778 HAVE_SYS_INTTYPES_H | |
779 HAVE_STDINT_H | |
780 NEXT_AS_FIRST_DIRECTIVE_STDINT_H | |
781 NEXT_STDINT_H | |
782 HAVE_SYS_TYPES_H | |
783 HAVE_INTTYPES_H | |
784 HAVE_UNSIGNED_LONG_LONG_INT | |
785 HAVE_LONG_LONG_INT | |
786 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H | 659 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H |
787 NEXT_STDDEF_H | 660 NEXT_STDDEF_H |
788 PRAGMA_SYSTEM_HEADER | 661 GL_GENERATE_STDDEF_H_FALSE |
789 INCLUDE_NEXT_AS_FIRST_DIRECTIVE | 662 GL_GENERATE_STDDEF_H_TRUE |
790 INCLUDE_NEXT | |
791 STDDEF_H | 663 STDDEF_H |
792 HAVE_WCHAR_T | 664 HAVE_WCHAR_T |
793 REPLACE_NULL | 665 REPLACE_NULL |
794 APPLE_UNIVERSAL_BUILD | 666 HAVE__BOOL |
| 667 GL_GENERATE_STDBOOL_H_FALSE |
| 668 GL_GENERATE_STDBOOL_H_TRUE |
| 669 STDBOOL_H |
795 UNDEFINE_STRTOK_R | 670 UNDEFINE_STRTOK_R |
796 REPLACE_STRTOK_R | 671 REPLACE_STRTOK_R |
797 REPLACE_STRSIGNAL | 672 REPLACE_STRSIGNAL |
798 REPLACE_STRNLEN | 673 REPLACE_STRNLEN |
799 REPLACE_STRNDUP | 674 REPLACE_STRNDUP |
800 REPLACE_STRNCAT | 675 REPLACE_STRNCAT |
| 676 REPLACE_STRERROR_R |
801 REPLACE_STRERROR | 677 REPLACE_STRERROR |
| 678 REPLACE_STRCHRNUL |
802 REPLACE_STRCASESTR | 679 REPLACE_STRCASESTR |
803 REPLACE_STRSTR | 680 REPLACE_STRSTR |
804 REPLACE_STRDUP | 681 REPLACE_STRDUP |
805 REPLACE_STPNCPY | 682 REPLACE_STPNCPY |
806 REPLACE_MEMMEM | 683 REPLACE_MEMMEM |
807 REPLACE_MEMCHR | 684 REPLACE_MEMCHR |
808 HAVE_STRVERSCMP | 685 HAVE_STRVERSCMP |
809 HAVE_DECL_STRSIGNAL | 686 HAVE_DECL_STRSIGNAL |
| 687 HAVE_DECL_STRERROR_R |
810 HAVE_DECL_STRTOK_R | 688 HAVE_DECL_STRTOK_R |
811 HAVE_STRCASESTR | 689 HAVE_STRCASESTR |
812 HAVE_STRSEP | 690 HAVE_STRSEP |
813 HAVE_STRPBRK | 691 HAVE_STRPBRK |
814 HAVE_DECL_STRNLEN | 692 HAVE_DECL_STRNLEN |
815 HAVE_DECL_STRNDUP | 693 HAVE_DECL_STRNDUP |
816 HAVE_DECL_STRDUP | 694 HAVE_DECL_STRDUP |
817 HAVE_STRCHRNUL | 695 HAVE_STRCHRNUL |
818 HAVE_STPNCPY | 696 HAVE_STPNCPY |
819 HAVE_STPCPY | 697 HAVE_STPCPY |
820 HAVE_RAWMEMCHR | 698 HAVE_RAWMEMCHR |
821 HAVE_DECL_MEMRCHR | 699 HAVE_DECL_MEMRCHR |
822 HAVE_MEMPCPY | 700 HAVE_MEMPCPY |
823 HAVE_DECL_MEMMEM | 701 HAVE_DECL_MEMMEM |
824 HAVE_MEMCHR | 702 HAVE_MEMCHR |
| 703 HAVE_FFSLL |
| 704 HAVE_FFSL |
825 HAVE_MBSLEN | 705 HAVE_MBSLEN |
826 GNULIB_STRVERSCMP | 706 GNULIB_STRVERSCMP |
827 GNULIB_STRSIGNAL | 707 GNULIB_STRSIGNAL |
| 708 GNULIB_STRERROR_R |
828 GNULIB_STRERROR | 709 GNULIB_STRERROR |
829 GNULIB_MBSTOK_R | 710 GNULIB_MBSTOK_R |
830 GNULIB_MBSSEP | 711 GNULIB_MBSSEP |
831 GNULIB_MBSSPN | 712 GNULIB_MBSSPN |
832 GNULIB_MBSPBRK | 713 GNULIB_MBSPBRK |
833 GNULIB_MBSCSPN | 714 GNULIB_MBSCSPN |
834 GNULIB_MBSCASESTR | 715 GNULIB_MBSCASESTR |
835 GNULIB_MBSPCASECMP | 716 GNULIB_MBSPCASECMP |
836 GNULIB_MBSNCASECMP | 717 GNULIB_MBSNCASECMP |
837 GNULIB_MBSCASECMP | 718 GNULIB_MBSCASECMP |
(...skipping 12 matching lines...) Expand all Loading... |
850 GNULIB_STRNCAT | 731 GNULIB_STRNCAT |
851 GNULIB_STRDUP | 732 GNULIB_STRDUP |
852 GNULIB_STRCHRNUL | 733 GNULIB_STRCHRNUL |
853 GNULIB_STPNCPY | 734 GNULIB_STPNCPY |
854 GNULIB_STPCPY | 735 GNULIB_STPCPY |
855 GNULIB_RAWMEMCHR | 736 GNULIB_RAWMEMCHR |
856 GNULIB_MEMRCHR | 737 GNULIB_MEMRCHR |
857 GNULIB_MEMPCPY | 738 GNULIB_MEMPCPY |
858 GNULIB_MEMMEM | 739 GNULIB_MEMMEM |
859 GNULIB_MEMCHR | 740 GNULIB_MEMCHR |
| 741 GNULIB_FFSLL |
| 742 GNULIB_FFSL |
| 743 LOCALE_FR |
| 744 LOCALE_FR_UTF8 |
| 745 LOCALE_ZH_CN |
| 746 LOCALE_JA |
| 747 REPLACE_WCSWIDTH |
| 748 REPLACE_WCWIDTH |
| 749 REPLACE_WCSNRTOMBS |
| 750 REPLACE_WCSRTOMBS |
| 751 REPLACE_WCRTOMB |
| 752 REPLACE_MBSNRTOWCS |
| 753 REPLACE_MBSRTOWCS |
| 754 REPLACE_MBRLEN |
| 755 REPLACE_MBRTOWC |
| 756 REPLACE_MBSINIT |
| 757 REPLACE_WCTOB |
| 758 REPLACE_BTOWC |
| 759 REPLACE_MBSTATE_T |
| 760 HAVE_DECL_WCWIDTH |
| 761 HAVE_DECL_WCTOB |
| 762 HAVE_WCSWIDTH |
| 763 HAVE_WCSTOK |
| 764 HAVE_WCSSTR |
| 765 HAVE_WCSPBRK |
| 766 HAVE_WCSSPN |
| 767 HAVE_WCSCSPN |
| 768 HAVE_WCSRCHR |
| 769 HAVE_WCSCHR |
| 770 HAVE_WCSDUP |
| 771 HAVE_WCSXFRM |
| 772 HAVE_WCSCOLL |
| 773 HAVE_WCSNCASECMP |
| 774 HAVE_WCSCASECMP |
| 775 HAVE_WCSNCMP |
| 776 HAVE_WCSCMP |
| 777 HAVE_WCSNCAT |
| 778 HAVE_WCSCAT |
| 779 HAVE_WCPNCPY |
| 780 HAVE_WCSNCPY |
| 781 HAVE_WCPCPY |
| 782 HAVE_WCSCPY |
| 783 HAVE_WCSNLEN |
| 784 HAVE_WCSLEN |
| 785 HAVE_WMEMSET |
| 786 HAVE_WMEMMOVE |
| 787 HAVE_WMEMCPY |
| 788 HAVE_WMEMCMP |
| 789 HAVE_WMEMCHR |
| 790 HAVE_WCSNRTOMBS |
| 791 HAVE_WCSRTOMBS |
| 792 HAVE_WCRTOMB |
| 793 HAVE_MBSNRTOWCS |
| 794 HAVE_MBSRTOWCS |
| 795 HAVE_MBRLEN |
| 796 HAVE_MBRTOWC |
| 797 HAVE_MBSINIT |
| 798 HAVE_BTOWC |
| 799 GNULIB_WCSWIDTH |
| 800 GNULIB_WCSTOK |
| 801 GNULIB_WCSSTR |
| 802 GNULIB_WCSPBRK |
| 803 GNULIB_WCSSPN |
| 804 GNULIB_WCSCSPN |
| 805 GNULIB_WCSRCHR |
| 806 GNULIB_WCSCHR |
| 807 GNULIB_WCSDUP |
| 808 GNULIB_WCSXFRM |
| 809 GNULIB_WCSCOLL |
| 810 GNULIB_WCSNCASECMP |
| 811 GNULIB_WCSCASECMP |
| 812 GNULIB_WCSNCMP |
| 813 GNULIB_WCSCMP |
| 814 GNULIB_WCSNCAT |
| 815 GNULIB_WCSCAT |
| 816 GNULIB_WCPNCPY |
| 817 GNULIB_WCSNCPY |
| 818 GNULIB_WCPCPY |
| 819 GNULIB_WCSCPY |
| 820 GNULIB_WCSNLEN |
| 821 GNULIB_WCSLEN |
| 822 GNULIB_WMEMSET |
| 823 GNULIB_WMEMMOVE |
| 824 GNULIB_WMEMCPY |
| 825 GNULIB_WMEMCMP |
| 826 GNULIB_WMEMCHR |
| 827 GNULIB_WCWIDTH |
| 828 GNULIB_WCSNRTOMBS |
| 829 GNULIB_WCSRTOMBS |
| 830 GNULIB_WCRTOMB |
| 831 GNULIB_MBSNRTOWCS |
| 832 GNULIB_MBSRTOWCS |
| 833 GNULIB_MBRLEN |
| 834 GNULIB_MBRTOWC |
| 835 GNULIB_MBSINIT |
| 836 GNULIB_WCTOB |
| 837 GNULIB_BTOWC |
| 838 LOCALCHARSET_TESTS_ENVIRONMENT |
| 839 GLIBC21 |
| 840 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H |
| 841 NEXT_INTTYPES_H |
| 842 UINT64_MAX_EQ_ULONG_MAX |
| 843 UINT32_MAX_LT_UINTMAX_MAX |
| 844 PRIPTR_PREFIX |
| 845 PRI_MACROS_BROKEN |
| 846 INT64_MAX_EQ_LONG_MAX |
| 847 INT32_MAX_LT_INTMAX_MAX |
| 848 REPLACE_STRTOIMAX |
| 849 HAVE_DECL_STRTOUMAX |
| 850 HAVE_DECL_STRTOIMAX |
| 851 HAVE_DECL_IMAXDIV |
| 852 HAVE_DECL_IMAXABS |
| 853 GNULIB_STRTOUMAX |
| 854 GNULIB_STRTOIMAX |
| 855 GNULIB_IMAXDIV |
| 856 GNULIB_IMAXABS |
| 857 GL_GENERATE_STDINT_H_FALSE |
| 858 GL_GENERATE_STDINT_H_TRUE |
| 859 STDINT_H |
| 860 WINT_T_SUFFIX |
| 861 WCHAR_T_SUFFIX |
| 862 SIG_ATOMIC_T_SUFFIX |
| 863 SIZE_T_SUFFIX |
| 864 PTRDIFF_T_SUFFIX |
| 865 HAVE_SIGNED_WINT_T |
| 866 HAVE_SIGNED_WCHAR_T |
| 867 HAVE_SIGNED_SIG_ATOMIC_T |
| 868 BITSIZEOF_WINT_T |
| 869 BITSIZEOF_WCHAR_T |
| 870 BITSIZEOF_SIG_ATOMIC_T |
| 871 BITSIZEOF_SIZE_T |
| 872 BITSIZEOF_PTRDIFF_T |
| 873 APPLE_UNIVERSAL_BUILD |
| 874 HAVE_SYS_BITYPES_H |
| 875 HAVE_SYS_INTTYPES_H |
| 876 HAVE_STDINT_H |
| 877 NEXT_AS_FIRST_DIRECTIVE_STDINT_H |
| 878 NEXT_STDINT_H |
| 879 PRAGMA_COLUMNS |
| 880 PRAGMA_SYSTEM_HEADER |
| 881 INCLUDE_NEXT_AS_FIRST_DIRECTIVE |
| 882 INCLUDE_NEXT |
| 883 HAVE_SYS_TYPES_H |
| 884 HAVE_INTTYPES_H |
| 885 HAVE_WCHAR_H |
| 886 HAVE_UNSIGNED_LONG_LONG_INT |
| 887 HAVE_LONG_LONG_INT |
| 888 GL_GENERATE_FNMATCH_H_FALSE |
| 889 GL_GENERATE_FNMATCH_H_TRUE |
| 890 FNMATCH_H |
| 891 pkglibexecdir |
| 892 lispdir |
| 893 GL_GENERATE_ALLOCA_H_FALSE |
| 894 GL_GENERATE_ALLOCA_H_TRUE |
| 895 ALLOCA_H |
| 896 ALLOCA |
860 GL_COND_LIBTOOL_FALSE | 897 GL_COND_LIBTOOL_FALSE |
861 GL_COND_LIBTOOL_TRUE | 898 GL_COND_LIBTOOL_TRUE |
862 CATOBJEXT | |
863 GENCAT | |
864 INSTOBJEXT | |
865 DATADIRNAME | |
866 CATALOGS | |
867 POSUB | |
868 GMSGFMT | |
869 XGETTEXT | |
870 INCINTL | |
871 LIBINTL_DEP | |
872 LIBINTL | |
873 USE_NLS | |
874 SET_MAKE | |
875 GMAKE_FALSE | |
876 GMAKE_TRUE | |
877 MAKE | |
878 CCDEPMODE | |
879 DEPDIR | |
880 am__leading_dot | |
881 target_os | 899 target_os |
882 target_vendor | 900 target_vendor |
883 target_cpu | 901 target_cpu |
884 target | 902 target |
885 RANLIB | 903 RANLIB |
| 904 ARFLAGS |
| 905 AR |
886 EGREP | 906 EGREP |
887 GREP | 907 GREP |
888 CPP | 908 CPP |
889 host_os | 909 host_os |
890 host_vendor | 910 host_vendor |
891 host_cpu | 911 host_cpu |
892 host | 912 host |
893 build_os | 913 build_os |
894 build_vendor | 914 build_vendor |
895 build_cpu | 915 build_cpu |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
935 prefix | 955 prefix |
936 exec_prefix | 956 exec_prefix |
937 PACKAGE_URL | 957 PACKAGE_URL |
938 PACKAGE_BUGREPORT | 958 PACKAGE_BUGREPORT |
939 PACKAGE_STRING | 959 PACKAGE_STRING |
940 PACKAGE_VERSION | 960 PACKAGE_VERSION |
941 PACKAGE_TARNAME | 961 PACKAGE_TARNAME |
942 PACKAGE_NAME | 962 PACKAGE_NAME |
943 PATH_SEPARATOR | 963 PATH_SEPARATOR |
944 SHELL' | 964 SHELL' |
945 ac_subst_files='host_makefile_frag' | 965 ac_subst_files='' |
946 ac_user_opts=' | 966 ac_user_opts=' |
947 enable_option_checking | 967 enable_option_checking |
948 enable_maintainer_mode | 968 enable_maintainer_mode |
949 enable_plugins | |
950 enable_largefile | |
951 enable_dependency_tracking | 969 enable_dependency_tracking |
952 with_separate_debug_dir | |
953 with_gdb_datadir | |
954 with_relocated_sources | |
955 enable_targets | |
956 enable_64_bit_bfd | |
957 enable_gdbcli | |
958 enable_gdbmi | |
959 enable_tui | |
960 enable_gdbtk | |
961 with_libunwind | |
962 with_curses | |
963 enable_profiling | |
964 with_pkgversion | |
965 with_bugurl | |
966 with_zlib | |
967 with_libiconv_prefix | |
968 with_iconv_bin | |
969 with_system_readline | |
970 with_jit_reader_dir | |
971 with_expat | |
972 with_gnu_ld | |
973 enable_rpath | |
974 with_libexpat_prefix | |
975 with_python | |
976 with_included_regex | |
977 with_sysroot | |
978 with_system_gdbinit | |
979 enable_werror | |
980 enable_build_warnings | |
981 enable_gdb_build_warnings | |
982 with_tcl | |
983 with_tk | |
984 with_x | |
985 enable_sim | |
986 enable_multi_ice | |
987 enable_gdbserver | |
988 ' | 970 ' |
989 ac_precious_vars='build_alias | 971 ac_precious_vars='build_alias |
990 host_alias | 972 host_alias |
991 target_alias | 973 target_alias |
992 CC | 974 CC |
993 CFLAGS | 975 CFLAGS |
994 LDFLAGS | 976 LDFLAGS |
995 LIBS | 977 LIBS |
996 CPPFLAGS | 978 CPPFLAGS |
997 CPP | 979 CPP' |
998 MAKEINFO | 980 |
999 MAKEINFOFLAGS | |
1000 YACC | |
1001 YFLAGS | |
1002 XMKMF' | |
1003 ac_subdirs_all='testsuite | |
1004 gdbtk | |
1005 multi-ice | |
1006 gdbserver' | |
1007 | 981 |
1008 # Initialize some variables set by options. | 982 # Initialize some variables set by options. |
1009 ac_init_help= | 983 ac_init_help= |
1010 ac_init_version=false | 984 ac_init_version=false |
1011 ac_unrecognized_opts= | 985 ac_unrecognized_opts= |
1012 ac_unrecognized_sep= | 986 ac_unrecognized_sep= |
1013 # The variables have the same names as the options, with | 987 # The variables have the same names as the options, with |
1014 # dashes changed to underlines. | 988 # dashes changed to underlines. |
1015 cache_file=/dev/null | 989 cache_file=/dev/null |
1016 exec_prefix=NONE | 990 exec_prefix=NONE |
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1599 --psdir=DIR ps documentation [DOCDIR] | 1573 --psdir=DIR ps documentation [DOCDIR] |
1600 _ACEOF | 1574 _ACEOF |
1601 | 1575 |
1602 cat <<\_ACEOF | 1576 cat <<\_ACEOF |
1603 | 1577 |
1604 Program names: | 1578 Program names: |
1605 --program-prefix=PREFIX prepend PREFIX to installed program names | 1579 --program-prefix=PREFIX prepend PREFIX to installed program names |
1606 --program-suffix=SUFFIX append SUFFIX to installed program names | 1580 --program-suffix=SUFFIX append SUFFIX to installed program names |
1607 --program-transform-name=PROGRAM run sed PROGRAM on installed program names | 1581 --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
1608 | 1582 |
1609 X features: | |
1610 --x-includes=DIR X include files are in DIR | |
1611 --x-libraries=DIR X library files are in DIR | |
1612 | |
1613 System types: | 1583 System types: |
1614 --build=BUILD configure for building on BUILD [guessed] | 1584 --build=BUILD configure for building on BUILD [guessed] |
1615 --host=HOST cross-compile to build programs to run on HOST [BUILD] | 1585 --host=HOST cross-compile to build programs to run on HOST [BUILD] |
1616 --target=TARGET configure for building compilers for TARGET [HOST] | 1586 --target=TARGET configure for building compilers for TARGET [HOST] |
1617 _ACEOF | 1587 _ACEOF |
1618 fi | 1588 fi |
1619 | 1589 |
1620 if test -n "$ac_init_help"; then | 1590 if test -n "$ac_init_help"; then |
1621 | 1591 |
1622 cat <<\_ACEOF | 1592 cat <<\_ACEOF |
1623 | 1593 |
1624 Optional Features: | 1594 Optional Features: |
1625 --disable-option-checking ignore unrecognized --enable/--with options | 1595 --disable-option-checking ignore unrecognized --enable/--with options |
1626 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | 1596 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1627 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | 1597 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1628 --enable-maintainer-mode enable make rules and dependencies not useful | 1598 --enable-maintainer-mode enable make rules and dependencies not useful |
1629 (and sometimes confusing) to the casual installer | 1599 (and sometimes confusing) to the casual installer |
1630 --enable-plugins Enable support for plugins (defaults no) | |
1631 --disable-largefile omit support for large files | |
1632 --disable-dependency-tracking speeds up one-time build | 1600 --disable-dependency-tracking speeds up one-time build |
1633 --enable-dependency-tracking do not reject slow dependency extractors | 1601 --enable-dependency-tracking do not reject slow dependency extractors |
1634 --enable-targets=TARGETS | |
1635 alternative target configurations | |
1636 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes) | |
1637 --disable-gdbcli disable command-line interface (CLI) | |
1638 --disable-gdbmi disable machine-interface (MI) | |
1639 --enable-tui enable full-screen terminal user interface (TUI) | |
1640 --enable-gdbtk enable gdbtk graphical user interface (GUI) | |
1641 --enable-profiling enable profiling of GDB | |
1642 --disable-rpath do not hardcode runtime library paths | |
1643 --enable-werror treat compile warnings as errors | |
1644 --enable-build-warnings enable build-time compiler warnings if gcc is used | |
1645 --enable-gdb-build-warnings | |
1646 enable GDB specific build-time compiler warnings if | |
1647 gcc is used | |
1648 --enable-sim link gdb with simulator | |
1649 --enable-multi-ice build the multi-ice-gdb-server | |
1650 --enable-gdbserver automatically build gdbserver (yes/no/auto, default | |
1651 is auto) | |
1652 | |
1653 Optional Packages: | |
1654 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1655 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1656 --with-separate-debug-dir=PATH | |
1657 look for global separate debug info in this path | |
1658 [LIBDIR/debug] | |
1659 --with-gdb-datadir=PATH look for global separate data files in this path | |
1660 [DATADIR/gdb] | |
1661 --with-relocated-sources=PATH | |
1662 automatically relocate this path for source files | |
1663 --with-libunwind use libunwind frame unwinding support | |
1664 --with-curses use the curses library instead of the termcap | |
1665 library | |
1666 --with-pkgversion=PKG Use PKG in the version string in place of "GDB" | |
1667 --with-bugurl=URL Direct users to URL to report a bug | |
1668 --with-zlib include zlib support (auto/yes/no) default=auto | |
1669 --with-libiconv-prefix=DIR | |
1670 search for libiconv in DIR/include and DIR/lib | |
1671 --with-iconv-bin=PATH specify where to find the iconv program | |
1672 --with-system-readline use installed readline library | |
1673 --with-jit-reader-dir=PATH | |
1674 directory to load the JIT readers from | |
1675 --with-expat include expat support (auto/yes/no) | |
1676 --with-gnu-ld assume the C compiler uses GNU ld default=no | |
1677 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib | |
1678 --without-libexpat-prefix don't search for libexpat in includedir and libd
ir | |
1679 --with-python[=PYTHON] include python support | |
1680 (auto/yes/no/<python-program>) | |
1681 --without-included-regex | |
1682 don't use included regex; this is the default on | |
1683 systems with version 2 of the GNU C library (use | |
1684 with caution on other system) | |
1685 --with-sysroot[=DIR] search for usr/lib et al within DIR | |
1686 --with-system-gdbinit=PATH | |
1687 automatically load a system-wide gdbinit file | |
1688 --with-tcl directory containing tcl configuration (tclConfig.sh) | |
1689 --with-tk directory containing tk configuration (tkConfig.sh) | |
1690 --with-x use the X Window System | |
1691 | 1602 |
1692 Some influential environment variables: | 1603 Some influential environment variables: |
1693 CC C compiler command | 1604 CC C compiler command |
1694 CFLAGS C compiler flags | 1605 CFLAGS C compiler flags |
1695 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | 1606 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1696 nonstandard directory <lib dir> | 1607 nonstandard directory <lib dir> |
1697 LIBS libraries to pass to the linker, e.g. -l<library> | 1608 LIBS libraries to pass to the linker, e.g. -l<library> |
1698 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | 1609 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1699 you have headers in a nonstandard directory <include dir> | 1610 you have headers in a nonstandard directory <include dir> |
1700 CPP C preprocessor | 1611 CPP C preprocessor |
1701 MAKEINFO Parent configure detects if it is of sufficient version. | |
1702 MAKEINFOFLAGS | |
1703 Parameters for MAKEINFO. | |
1704 YACC The `Yet Another C Compiler' implementation to use. Defaults to | |
1705 the first program found out of: `bison -y', `byacc', `yacc'. | |
1706 YFLAGS The list of arguments that will be passed by default to $YACC. | |
1707 This script will default YFLAGS to the empty string to avoid a | |
1708 default value of `-d' given by some make applications. | |
1709 XMKMF Path to xmkmf, Makefile generator for X Window System | |
1710 | 1612 |
1711 Use these variables to override the choices made by `configure' or to help | 1613 Use these variables to override the choices made by `configure' or to help |
1712 it to find libraries and programs with nonstandard names/locations. | 1614 it to find libraries and programs with nonstandard names/locations. |
1713 | 1615 |
1714 Report bugs to the package provider. | 1616 Report bugs to the package provider. |
1715 _ACEOF | 1617 _ACEOF |
1716 ac_status=$? | 1618 ac_status=$? |
1717 fi | 1619 fi |
1718 | 1620 |
1719 if test "$ac_init_help" = "recursive"; then | 1621 if test "$ac_init_help" = "recursive"; then |
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2135 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_
lineno;} | 2037 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_
lineno;} |
2136 | 2038 |
2137 } # ac_fn_c_check_func | 2039 } # ac_fn_c_check_func |
2138 | 2040 |
2139 # ac_fn_c_check_decl LINENO SYMBOL VAR | 2041 # ac_fn_c_check_decl LINENO SYMBOL VAR |
2140 # ------------------------------------ | 2042 # ------------------------------------ |
2141 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. | 2043 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. |
2142 ac_fn_c_check_decl () | 2044 ac_fn_c_check_decl () |
2143 { | 2045 { |
2144 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
2145 as_decl_name=`echo $2|sed 's/ *(.*//'` | 2047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 |
2146 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | 2048 $as_echo_n "checking whether $2 is declared... " >&6; } |
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is dec
lared" >&5 | |
2148 $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
2149 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | 2049 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
2150 $as_echo_n "(cached) " >&6 | 2050 $as_echo_n "(cached) " >&6 |
2151 else | 2051 else |
2152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 2052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2153 /* end confdefs.h. */ | 2053 /* end confdefs.h. */ |
2154 $4 | 2054 $4 |
2155 int | 2055 int |
2156 main () | 2056 main () |
2157 { | 2057 { |
2158 #ifndef $as_decl_name | 2058 #ifndef $2 |
2159 #ifdef __cplusplus | 2059 (void) $2; |
2160 (void) $as_decl_use; | |
2161 #else | |
2162 (void) $as_decl_name; | |
2163 #endif | |
2164 #endif | 2060 #endif |
2165 | 2061 |
2166 ; | 2062 ; |
2167 return 0; | 2063 return 0; |
2168 } | 2064 } |
2169 _ACEOF | 2065 _ACEOF |
2170 if ac_fn_c_try_compile "$LINENO"; then : | 2066 if ac_fn_c_try_compile "$LINENO"; then : |
2171 eval "$3=yes" | 2067 eval "$3=yes" |
2172 else | 2068 else |
2173 eval "$3=no" | 2069 eval "$3=no" |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2352 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 2248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
2353 conftest.$ac_objext conftest.beam conftest.$ac_ext | 2249 conftest.$ac_objext conftest.beam conftest.$ac_ext |
2354 rm -f conftest.val | 2250 rm -f conftest.val |
2355 | 2251 |
2356 fi | 2252 fi |
2357 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_
lineno;} | 2253 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_
lineno;} |
2358 return $ac_retval | 2254 return $ac_retval |
2359 | 2255 |
2360 } # ac_fn_c_compute_int | 2256 } # ac_fn_c_compute_int |
2361 | 2257 |
2362 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | |
2363 # ---------------------------------------------------- | |
2364 # Tries to find if the field MEMBER exists in type AGGR, after including | |
2365 # INCLUDES, setting cache variable VAR accordingly. | |
2366 ac_fn_c_check_member () | |
2367 { | |
2368 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
2370 $as_echo_n "checking for $2.$3... " >&6; } | |
2371 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2372 $as_echo_n "(cached) " >&6 | |
2373 else | |
2374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2375 /* end confdefs.h. */ | |
2376 $5 | |
2377 int | |
2378 main () | |
2379 { | |
2380 static $2 ac_aggr; | |
2381 if (ac_aggr.$3) | |
2382 return 0; | |
2383 ; | |
2384 return 0; | |
2385 } | |
2386 _ACEOF | |
2387 if ac_fn_c_try_compile "$LINENO"; then : | |
2388 eval "$4=yes" | |
2389 else | |
2390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2391 /* end confdefs.h. */ | |
2392 $5 | |
2393 int | |
2394 main () | |
2395 { | |
2396 static $2 ac_aggr; | |
2397 if (sizeof ac_aggr.$3) | |
2398 return 0; | |
2399 ; | |
2400 return 0; | |
2401 } | |
2402 _ACEOF | |
2403 if ac_fn_c_try_compile "$LINENO"; then : | |
2404 eval "$4=yes" | |
2405 else | |
2406 eval "$4=no" | |
2407 fi | |
2408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2409 fi | |
2410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2411 fi | |
2412 eval ac_res=\$$4 | |
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2414 $as_echo "$ac_res" >&6; } | |
2415 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_
lineno;} | |
2416 | |
2417 } # ac_fn_c_check_member | |
2418 | |
2419 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | 2258 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
2420 # ------------------------------------------- | 2259 # ------------------------------------------- |
2421 # Tests whether TYPE exists after having included INCLUDES, setting cache | 2260 # Tests whether TYPE exists after having included INCLUDES, setting cache |
2422 # variable VAR accordingly. | 2261 # variable VAR accordingly. |
2423 ac_fn_c_check_type () | 2262 ac_fn_c_check_type () |
2424 { | 2263 { |
2425 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 2264 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 2265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
2427 $as_echo_n "checking for $2... " >&6; } | 2266 $as_echo_n "checking for $2... " >&6; } |
2428 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | 2267 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2745 [\\/]* | ?:[\\/]* ) . "$cache_file";; | 2584 [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2746 *) . "./$cache_file";; | 2585 *) . "./$cache_file";; |
2747 esac | 2586 esac |
2748 fi | 2587 fi |
2749 else | 2588 else |
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | 2589 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2751 $as_echo "$as_me: creating cache $cache_file" >&6;} | 2590 $as_echo "$as_me: creating cache $cache_file" >&6;} |
2752 >$cache_file | 2591 >$cache_file |
2753 fi | 2592 fi |
2754 | 2593 |
| 2594 gl_func_list="$gl_func_list btowc" |
| 2595 gl_func_list="$gl_func_list isblank" |
| 2596 gl_func_list="$gl_func_list iswctype" |
| 2597 gl_func_list="$gl_func_list mbsrtowcs" |
| 2598 gl_func_list="$gl_func_list mempcpy" |
| 2599 gl_func_list="$gl_func_list wmemchr" |
| 2600 gl_func_list="$gl_func_list wmemcpy" |
| 2601 gl_func_list="$gl_func_list wmempcpy" |
| 2602 gl_header_list="$gl_header_list wctype.h" |
| 2603 gl_fnmatch_required=GNU |
| 2604 gl_header_list="$gl_header_list wchar.h" |
| 2605 gl_header_list="$gl_header_list stdint.h" |
| 2606 gl_header_list="$gl_header_list inttypes.h" |
| 2607 gl_header_list="$gl_header_list unistd.h" |
| 2608 gl_func_list="$gl_func_list symlink" |
| 2609 gl_func_list="$gl_func_list mbsinit" |
| 2610 gl_func_list="$gl_func_list mbrtowc" |
2755 gl_header_list="$gl_header_list sys/mman.h" | 2611 gl_header_list="$gl_header_list sys/mman.h" |
2756 gl_func_list="$gl_func_list mprotect" | 2612 gl_func_list="$gl_func_list mprotect" |
2757 gl_func_list="$gl_func_list memchr" | 2613 gl_header_list="$gl_header_list features.h" |
2758 gl_header_list="$gl_header_list stddef.h" | 2614 gl_func_list="$gl_func_list iswcntrl" |
2759 gl_header_list="$gl_header_list stdint.h" | |
2760 gl_header_list="$gl_header_list wchar.h" | |
2761 gl_header_list="$gl_header_list string.h" | |
2762 # Check that the precious variables saved in the cache have kept the same | 2615 # Check that the precious variables saved in the cache have kept the same |
2763 # value. | 2616 # value. |
2764 ac_cache_corrupted=false | 2617 ac_cache_corrupted=false |
2765 for ac_var in $ac_precious_vars; do | 2618 for ac_var in $ac_precious_vars; do |
2766 eval ac_old_set=\$ac_cv_env_${ac_var}_set | 2619 eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2767 eval ac_new_set=\$ac_env_${ac_var}_set | 2620 eval ac_new_set=\$ac_env_${ac_var}_set |
2768 eval ac_old_val=\$ac_cv_env_${ac_var}_value | 2621 eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2769 eval ac_new_val=\$ac_env_${ac_var}_value | 2622 eval ac_new_val=\$ac_env_${ac_var}_value |
2770 case $ac_old_set,$ac_new_set in | 2623 case $ac_old_set,$ac_new_set in |
2771 set,) | 2624 set,) |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2820 ## Main body of script. ## | 2673 ## Main body of script. ## |
2821 ## -------------------- ## | 2674 ## -------------------- ## |
2822 | 2675 |
2823 ac_ext=c | 2676 ac_ext=c |
2824 ac_cpp='$CPP $CPPFLAGS' | 2677 ac_cpp='$CPP $CPPFLAGS' |
2825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 2678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
LIBS >&5' | 2679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
LIBS >&5' |
2827 ac_compiler_gnu=$ac_cv_c_compiler_gnu | 2680 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2828 | 2681 |
2829 | 2682 |
2830 | |
2831 | |
2832 | |
2833 ac_config_headers="$ac_config_headers config.h:config.in" | 2683 ac_config_headers="$ac_config_headers config.h:config.in" |
2834 | 2684 |
2835 | 2685 |
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-s
pecific portions of Makefiles" >&5 | 2686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-s
pecific portions of Makefiles" >&5 |
2837 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles
... " >&6; } | 2687 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles
... " >&6; } |
2838 # Check whether --enable-maintainer-mode was given. | 2688 # Check whether --enable-maintainer-mode was given. |
2839 if test "${enable_maintainer_mode+set}" = set; then : | 2689 if test "${enable_maintainer_mode+set}" = set; then : |
2840 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | 2690 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
2841 else | 2691 else |
2842 USE_MAINTAINER_MODE=no | 2692 USE_MAINTAINER_MODE=no |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3179 10q' conftest.err >conftest.er1 | 3029 10q' conftest.err >conftest.er1 |
3180 cat conftest.er1 >&5 | 3030 cat conftest.er1 >&5 |
3181 rm -f conftest.er1 conftest.err | 3031 rm -f conftest.er1 conftest.err |
3182 fi | 3032 fi |
3183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 3033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3184 test $ac_status = 0; } | 3034 test $ac_status = 0; } |
3185 done | 3035 done |
3186 | 3036 |
3187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 3037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3188 /* end confdefs.h. */ | 3038 /* end confdefs.h. */ |
3189 | 3039 #include <stdio.h> |
3190 int | 3040 int |
3191 main () | 3041 main () |
3192 { | 3042 { |
| 3043 FILE *f = fopen ("conftest.out", "w"); |
| 3044 return ferror (f) || fclose (f) != 0; |
3193 | 3045 |
3194 ; | 3046 ; |
3195 return 0; | 3047 return 0; |
3196 } | 3048 } |
3197 _ACEOF | 3049 _ACEOF |
3198 ac_clean_files_save=$ac_clean_files | 3050 ac_clean_files_save=$ac_clean_files |
3199 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" | 3051 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
3200 # Try to create an executable without -o first, disregard a.out. | 3052 # Try to create an executable without -o first, disregard a.out. |
3201 # It will help us diagnose broken compilers, and finding out an intuition | 3053 # It will help us diagnose broken compilers, and finding out an intuition |
3202 # of exeext. | 3054 # of exeext. |
(...skipping 968 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4171 fi | 4023 fi |
4172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 4024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4173 fi | 4025 fi |
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensi
ons__" >&5 | 4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensi
ons__" >&5 |
4175 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | 4027 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
4176 test $ac_cv_safe_to_define___extensions__ = yes && | 4028 test $ac_cv_safe_to_define___extensions__ = yes && |
4177 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | 4029 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
4178 | 4030 |
4179 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | 4031 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
4180 | 4032 |
| 4033 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h |
| 4034 |
4181 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | 4035 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
4182 | 4036 |
4183 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | 4037 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
4184 | 4038 |
4185 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | 4039 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
4186 | 4040 |
4187 | 4041 |
4188 if test -n "$ac_tool_prefix"; then | 4042 |
4189 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program
name with args. | 4043 |
4190 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler
" >&5 |
| 4045 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; } |
| 4046 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then : |
| 4047 $as_echo_n "(cached) " >&6 |
| 4048 else |
| 4049 |
| 4050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4051 /* end confdefs.h. */ |
| 4052 |
| 4053 #ifdef __ACK__ |
| 4054 Amsterdam |
| 4055 #endif |
| 4056 |
| 4057 _ACEOF |
| 4058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4059 $EGREP "Amsterdam" >/dev/null 2>&1; then : |
| 4060 gl_cv_c_amsterdam_compiler=yes |
| 4061 else |
| 4062 gl_cv_c_amsterdam_compiler=no |
| 4063 fi |
| 4064 rm -f conftest* |
| 4065 |
| 4066 |
| 4067 fi |
| 4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&
5 |
| 4069 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; } |
| 4070 if test -z "$AR"; then |
| 4071 if test $gl_cv_c_amsterdam_compiler = yes; then |
| 4072 AR='cc -c.a' |
| 4073 if test -z "$ARFLAGS"; then |
| 4074 ARFLAGS='-o' |
| 4075 fi |
| 4076 else |
| 4077 if test -n "$ac_tool_prefix"; then |
| 4078 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name
with args. |
| 4079 set dummy ${ac_tool_prefix}ar; ac_word=$2 |
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4192 $as_echo_n "checking for $ac_word... " >&6; } | 4081 $as_echo_n "checking for $ac_word... " >&6; } |
4193 if test "${ac_cv_prog_RANLIB+set}" = set; then : | 4082 if test "${ac_cv_prog_AR+set}" = set; then : |
4194 $as_echo_n "(cached) " >&6 | 4083 $as_echo_n "(cached) " >&6 |
4195 else | 4084 else |
4196 if test -n "$RANLIB"; then | 4085 if test -n "$AR"; then |
4197 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 4086 ac_cv_prog_AR="$AR" # Let the user override the test. |
4198 else | 4087 else |
4199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 4088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4200 for as_dir in $PATH | 4089 for as_dir in $PATH |
4201 do | 4090 do |
4202 IFS=$as_save_IFS | 4091 IFS=$as_save_IFS |
4203 test -z "$as_dir" && as_dir=. | 4092 test -z "$as_dir" && as_dir=. |
4204 for ac_exec_ext in '' $ac_executable_extensions; do | 4093 for ac_exec_ext in '' $ac_executable_extensions; do |
4205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then | 4094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then |
4206 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | 4095 ac_cv_prog_AR="${ac_tool_prefix}ar" |
4207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 | 4096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 |
4208 break 2 | 4097 break 2 |
4209 fi | 4098 fi |
4210 done | 4099 done |
4211 done | 4100 done |
4212 IFS=$as_save_IFS | 4101 IFS=$as_save_IFS |
4213 | 4102 |
4214 fi | 4103 fi |
4215 fi | 4104 fi |
4216 RANLIB=$ac_cv_prog_RANLIB | 4105 AR=$ac_cv_prog_AR |
4217 if test -n "$RANLIB"; then | 4106 if test -n "$AR"; then |
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | 4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
4219 $as_echo "$RANLIB" >&6; } | 4108 $as_echo "$AR" >&6; } |
4220 else | 4109 else |
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4222 $as_echo "no" >&6; } | 4111 $as_echo "no" >&6; } |
4223 fi | 4112 fi |
4224 | 4113 |
4225 | 4114 |
4226 fi | 4115 fi |
4227 if test -z "$ac_cv_prog_RANLIB"; then | 4116 if test -z "$ac_cv_prog_AR"; then |
4228 ac_ct_RANLIB=$RANLIB | 4117 ac_ct_AR=$AR |
4229 # Extract the first word of "ranlib", so it can be a program name with args. | 4118 # Extract the first word of "ar", so it can be a program name with args. |
4230 set dummy ranlib; ac_word=$2 | 4119 set dummy ar; ac_word=$2 |
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4232 $as_echo_n "checking for $ac_word... " >&6; } | 4121 $as_echo_n "checking for $ac_word... " >&6; } |
4233 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | 4122 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : |
4234 $as_echo_n "(cached) " >&6 | 4123 $as_echo_n "(cached) " >&6 |
4235 else | 4124 else |
4236 if test -n "$ac_ct_RANLIB"; then | 4125 if test -n "$ac_ct_AR"; then |
4237 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | 4126 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
4238 else | 4127 else |
4239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 4128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4240 for as_dir in $PATH | 4129 for as_dir in $PATH |
4241 do | 4130 do |
4242 IFS=$as_save_IFS | 4131 IFS=$as_save_IFS |
4243 test -z "$as_dir" && as_dir=. | 4132 test -z "$as_dir" && as_dir=. |
4244 for ac_exec_ext in '' $ac_executable_extensions; do | 4133 for ac_exec_ext in '' $ac_executable_extensions; do |
4245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then | 4134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then |
4246 ac_cv_prog_ac_ct_RANLIB="ranlib" | 4135 ac_cv_prog_ac_ct_AR="ar" |
4247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 | 4136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 |
4248 break 2 | 4137 break 2 |
4249 fi | 4138 fi |
4250 done | 4139 done |
4251 done | 4140 done |
4252 IFS=$as_save_IFS | 4141 IFS=$as_save_IFS |
4253 | 4142 |
4254 fi | 4143 fi |
4255 fi | 4144 fi |
| 4145 ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 4146 if test -n "$ac_ct_AR"; then |
| 4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 4148 $as_echo "$ac_ct_AR" >&6; } |
| 4149 else |
| 4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4151 $as_echo "no" >&6; } |
| 4152 fi |
| 4153 |
| 4154 if test "x$ac_ct_AR" = x; then |
| 4155 AR="ar" |
| 4156 else |
| 4157 case $cross_compiling:$ac_tool_warned in |
| 4158 yes:) |
| 4159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed
with host triplet" >&5 |
| 4160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2
;} |
| 4161 ac_tool_warned=yes ;; |
| 4162 esac |
| 4163 AR=$ac_ct_AR |
| 4164 fi |
| 4165 else |
| 4166 AR="$ac_cv_prog_AR" |
| 4167 fi |
| 4168 |
| 4169 if test -z "$ARFLAGS"; then |
| 4170 ARFLAGS='cru' |
| 4171 fi |
| 4172 fi |
| 4173 else |
| 4174 if test -z "$ARFLAGS"; then |
| 4175 ARFLAGS='cru' |
| 4176 fi |
| 4177 fi |
| 4178 |
| 4179 |
| 4180 if test -z "$RANLIB"; then |
| 4181 if test $gl_cv_c_amsterdam_compiler = yes; then |
| 4182 RANLIB=':' |
| 4183 else |
| 4184 if test -n "$ac_tool_prefix"; then |
| 4185 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program
name with args. |
| 4186 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 4187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4188 $as_echo_n "checking for $ac_word... " >&6; } |
| 4189 if test "${ac_cv_prog_RANLIB+set}" = set; then : |
| 4190 $as_echo_n "(cached) " >&6 |
| 4191 else |
| 4192 if test -n "$RANLIB"; then |
| 4193 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4194 else |
| 4195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4196 for as_dir in $PATH |
| 4197 do |
| 4198 IFS=$as_save_IFS |
| 4199 test -z "$as_dir" && as_dir=. |
| 4200 for ac_exec_ext in '' $ac_executable_extensions; do |
| 4201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then |
| 4202 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 4203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 |
| 4204 break 2 |
| 4205 fi |
| 4206 done |
| 4207 done |
| 4208 IFS=$as_save_IFS |
| 4209 |
| 4210 fi |
| 4211 fi |
| 4212 RANLIB=$ac_cv_prog_RANLIB |
| 4213 if test -n "$RANLIB"; then |
| 4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 4215 $as_echo "$RANLIB" >&6; } |
| 4216 else |
| 4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4218 $as_echo "no" >&6; } |
| 4219 fi |
| 4220 |
| 4221 |
| 4222 fi |
| 4223 if test -z "$ac_cv_prog_RANLIB"; then |
| 4224 ac_ct_RANLIB=$RANLIB |
| 4225 # Extract the first word of "ranlib", so it can be a program name with args. |
| 4226 set dummy ranlib; ac_word=$2 |
| 4227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4228 $as_echo_n "checking for $ac_word... " >&6; } |
| 4229 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : |
| 4230 $as_echo_n "(cached) " >&6 |
| 4231 else |
| 4232 if test -n "$ac_ct_RANLIB"; then |
| 4233 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4234 else |
| 4235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4236 for as_dir in $PATH |
| 4237 do |
| 4238 IFS=$as_save_IFS |
| 4239 test -z "$as_dir" && as_dir=. |
| 4240 for ac_exec_ext in '' $ac_executable_extensions; do |
| 4241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then |
| 4242 ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 4243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 |
| 4244 break 2 |
| 4245 fi |
| 4246 done |
| 4247 done |
| 4248 IFS=$as_save_IFS |
| 4249 |
| 4250 fi |
| 4251 fi |
4256 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | 4252 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
4257 if test -n "$ac_ct_RANLIB"; then | 4253 if test -n "$ac_ct_RANLIB"; then |
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | 4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
4259 $as_echo "$ac_ct_RANLIB" >&6; } | 4255 $as_echo "$ac_ct_RANLIB" >&6; } |
4260 else | 4256 else |
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4262 $as_echo "no" >&6; } | 4258 $as_echo "no" >&6; } |
4263 fi | 4259 fi |
4264 | 4260 |
4265 if test "x$ac_ct_RANLIB" = x; then | 4261 if test "x$ac_ct_RANLIB" = x; then |
4266 RANLIB=":" | 4262 RANLIB=":" |
4267 else | 4263 else |
4268 case $cross_compiling:$ac_tool_warned in | 4264 case $cross_compiling:$ac_tool_warned in |
4269 yes:) | 4265 yes:) |
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed
with host triplet" >&5 | 4266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed
with host triplet" >&5 |
4271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2
;} | 4267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2
;} |
4272 ac_tool_warned=yes ;; | 4268 ac_tool_warned=yes ;; |
4273 esac | 4269 esac |
4274 RANLIB=$ac_ct_RANLIB | 4270 RANLIB=$ac_ct_RANLIB |
4275 fi | 4271 fi |
4276 else | 4272 else |
4277 RANLIB="$ac_cv_prog_RANLIB" | 4273 RANLIB="$ac_cv_prog_RANLIB" |
4278 fi | 4274 fi |
4279 | 4275 |
| 4276 fi |
| 4277 fi |
| 4278 |
4280 | 4279 |
4281 | 4280 |
4282 | 4281 |
| 4282 |
4283 | 4283 |
4284 | 4284 |
4285 | 4285 |
4286 | 4286 |
4287 | 4287 |
4288 # Code from module arg-nonnull: | 4288 # Code from module alloca: |
4289 # Code from module c++defs: | 4289 # Code from module alloca-opt: |
| 4290 # Code from module configmake: |
4290 # Code from module extensions: | 4291 # Code from module extensions: |
4291 | 4292 |
| 4293 # Code from module fnmatch: |
| 4294 # Code from module fnmatch-gnu: |
4292 # Code from module include_next: | 4295 # Code from module include_next: |
| 4296 # Code from module inttypes: |
| 4297 # Code from module inttypes-incomplete: |
| 4298 # Code from module localcharset: |
| 4299 # Code from module mbrtowc: |
| 4300 # Code from module mbsinit: |
| 4301 # Code from module mbsrtowcs: |
4293 # Code from module memchr: | 4302 # Code from module memchr: |
4294 # Code from module memmem: | 4303 # Code from module memmem: |
4295 # Code from module memmem-simple: | 4304 # Code from module memmem-simple: |
4296 # Code from module multiarch: | 4305 # Code from module multiarch: |
| 4306 # Code from module snippet/arg-nonnull: |
| 4307 # Code from module snippet/c++defs: |
| 4308 # Code from module snippet/warn-on-use: |
| 4309 # Code from module stdbool: |
4297 # Code from module stddef: | 4310 # Code from module stddef: |
4298 # Code from module stdint: | 4311 # Code from module stdint: |
| 4312 # Code from module streq: |
4299 # Code from module string: | 4313 # Code from module string: |
4300 # Code from module warn-on-use: | 4314 # Code from module strnlen1: |
| 4315 # Code from module update-copyright: |
| 4316 # Code from module verify: |
4301 # Code from module wchar: | 4317 # Code from module wchar: |
4302 | 4318 # Code from module wctype-h: |
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 | 4319 |
4304 $as_echo_n "checking target system type... " >&6; } | 4320 ac_ext=c |
4305 if test "${ac_cv_target+set}" = set; then : | 4321 ac_cpp='$CPP $CPPFLAGS' |
4306 $as_echo_n "(cached) " >&6 | 4322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4307 else | 4323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
LIBS >&5' |
4308 if test "x$target_alias" = x; then | 4324 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4309 ac_cv_target=$ac_cv_host | 4325 if test -n "$ac_tool_prefix"; then |
4310 else | 4326 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program nam
e with args. |
4311 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | 4327 set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
4312 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | 4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4313 fi | 4329 $as_echo_n "checking for $ac_word... " >&6; } |
4314 | 4330 if test "${ac_cv_prog_CC+set}" = set; then : |
4315 fi | 4331 $as_echo_n "(cached) " >&6 |
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | 4332 else |
4317 $as_echo "$ac_cv_target" >&6; } | 4333 if test -n "$CC"; then |
4318 case $ac_cv_target in | 4334 ac_cv_prog_CC="$CC" # Let the user override the test. |
4319 *-*-*) ;; | 4335 else |
4320 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | 4336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4337 for as_dir in $PATH |
| 4338 do |
| 4339 IFS=$as_save_IFS |
| 4340 test -z "$as_dir" && as_dir=. |
| 4341 for ac_exec_ext in '' $ac_executable_extensions; do |
| 4342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then |
| 4343 ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 4344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 |
| 4345 break 2 |
| 4346 fi |
| 4347 done |
| 4348 done |
| 4349 IFS=$as_save_IFS |
| 4350 |
| 4351 fi |
| 4352 fi |
| 4353 CC=$ac_cv_prog_CC |
| 4354 if test -n "$CC"; then |
| 4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4356 $as_echo "$CC" >&6; } |
| 4357 else |
| 4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4359 $as_echo "no" >&6; } |
| 4360 fi |
| 4361 |
| 4362 |
| 4363 fi |
| 4364 if test -z "$ac_cv_prog_CC"; then |
| 4365 ac_ct_CC=$CC |
| 4366 # Extract the first word of "gcc", so it can be a program name with args. |
| 4367 set dummy gcc; ac_word=$2 |
| 4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4369 $as_echo_n "checking for $ac_word... " >&6; } |
| 4370 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 4371 $as_echo_n "(cached) " >&6 |
| 4372 else |
| 4373 if test -n "$ac_ct_CC"; then |
| 4374 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4375 else |
| 4376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4377 for as_dir in $PATH |
| 4378 do |
| 4379 IFS=$as_save_IFS |
| 4380 test -z "$as_dir" && as_dir=. |
| 4381 for ac_exec_ext in '' $ac_executable_extensions; do |
| 4382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then |
| 4383 ac_cv_prog_ac_ct_CC="gcc" |
| 4384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 |
| 4385 break 2 |
| 4386 fi |
| 4387 done |
| 4388 done |
| 4389 IFS=$as_save_IFS |
| 4390 |
| 4391 fi |
| 4392 fi |
| 4393 ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4394 if test -n "$ac_ct_CC"; then |
| 4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4396 $as_echo "$ac_ct_CC" >&6; } |
| 4397 else |
| 4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4399 $as_echo "no" >&6; } |
| 4400 fi |
| 4401 |
| 4402 if test "x$ac_ct_CC" = x; then |
| 4403 CC="" |
| 4404 else |
| 4405 case $cross_compiling:$ac_tool_warned in |
| 4406 yes:) |
| 4407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed
with host triplet" >&5 |
| 4408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2
;} |
| 4409 ac_tool_warned=yes ;; |
4321 esac | 4410 esac |
4322 target=$ac_cv_target | 4411 CC=$ac_ct_CC |
4323 ac_save_IFS=$IFS; IFS='-' | 4412 fi |
4324 set x $ac_cv_target | 4413 else |
4325 shift | 4414 CC="$ac_cv_prog_CC" |
4326 target_cpu=$1 | 4415 fi |
4327 target_vendor=$2 | 4416 |
4328 shift; shift | 4417 if test -z "$CC"; then |
4329 # Remember, the first character of IFS is used to create $*, | 4418 if test -n "$ac_tool_prefix"; then |
4330 # except with old shells: | 4419 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program na
me with args. |
4331 target_os=$* | 4420 set dummy ${ac_tool_prefix}cc; ac_word=$2 |
4332 IFS=$ac_save_IFS | 4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4333 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | 4422 $as_echo_n "checking for $ac_word... " >&6; } |
4334 | 4423 if test "${ac_cv_prog_CC+set}" = set; then : |
4335 | 4424 $as_echo_n "(cached) " >&6 |
4336 # The aliases save the names the user supplied, while $host etc. | 4425 else |
4337 # will get canonicalized. | 4426 if test -n "$CC"; then |
4338 test -n "$target_alias" && | 4427 ac_cv_prog_CC="$CC" # Let the user override the test. |
4339 test "$program_prefix$program_suffix$program_transform_name" = \ | 4428 else |
4340 NONENONEs,x,x, && | 4429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4341 program_prefix=${target_alias}- | 4430 for as_dir in $PATH |
4342 | 4431 do |
4343 # The tests for host and target for $enable_largefile require | 4432 IFS=$as_save_IFS |
4344 # canonical names. | 4433 test -z "$as_dir" && as_dir=. |
4345 | 4434 for ac_exec_ext in '' $ac_executable_extensions; do |
4346 | 4435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then |
4347 | 4436 ac_cv_prog_CC="${ac_tool_prefix}cc" |
4348 # As the $enable_largefile decision depends on --enable-plugins we must set it | 4437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 |
4349 # even in directories otherwise not depending on the $plugins option. | 4438 break 2 |
4350 | 4439 fi |
4351 | 4440 done |
4352 # Check whether --enable-plugins was given. | 4441 done |
4353 if test "${enable_plugins+set}" = set; then : | 4442 IFS=$as_save_IFS |
4354 enableval=$enable_plugins; case "${enableval}" in | 4443 |
4355 yes | "") plugins=yes ;; | 4444 fi |
4356 no) plugins=no ;; | 4445 fi |
4357 *) plugins=yes ;; | 4446 CC=$ac_cv_prog_CC |
4358 esac | 4447 if test -n "$CC"; then |
4359 else | 4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4360 plugins=no | 4449 $as_echo "$CC" >&6; } |
4361 fi | 4450 else |
4362 | 4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4363 | 4452 $as_echo "no" >&6; } |
4364 | 4453 fi |
4365 case "${host}" in | 4454 |
4366 sparc-*-solaris*|i[3-7]86-*-solaris*) | 4455 |
4367 # On native 32bit sparc and ia32 solaris, large-file and procfs support | 4456 fi |
4368 # are mutually exclusive; and without procfs support, the bfd/ elf module | 4457 fi |
4369 # cannot provide certain routines such as elfcore_write_prpsinfo | 4458 if test -z "$CC"; then |
4370 # or elfcore_write_prstatus. So unless the user explicitly requested | 4459 # Extract the first word of "cc", so it can be a program name with args. |
4371 # large-file support through the --enable-largefile switch, disable | 4460 set dummy cc; ac_word=$2 |
4372 # large-file support in favor of procfs support. | 4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4373 test "${target}" = "${host}" -a "x$plugins" = xno \ | 4462 $as_echo_n "checking for $ac_word... " >&6; } |
4374 && : ${enable_largefile="no"} | 4463 if test "${ac_cv_prog_CC+set}" = set; then : |
4375 ;; | 4464 $as_echo_n "(cached) " >&6 |
| 4465 else |
| 4466 if test -n "$CC"; then |
| 4467 ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4468 else |
| 4469 ac_prog_rejected=no |
| 4470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4471 for as_dir in $PATH |
| 4472 do |
| 4473 IFS=$as_save_IFS |
| 4474 test -z "$as_dir" && as_dir=. |
| 4475 for ac_exec_ext in '' $ac_executable_extensions; do |
| 4476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then |
| 4477 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4478 ac_prog_rejected=yes |
| 4479 continue |
| 4480 fi |
| 4481 ac_cv_prog_CC="cc" |
| 4482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 |
| 4483 break 2 |
| 4484 fi |
| 4485 done |
| 4486 done |
| 4487 IFS=$as_save_IFS |
| 4488 |
| 4489 if test $ac_prog_rejected = yes; then |
| 4490 # We found a bogon in the path, so make sure we never use it. |
| 4491 set dummy $ac_cv_prog_CC |
| 4492 shift |
| 4493 if test $# != 0; then |
| 4494 # We chose a different compiler from the bogus one. |
| 4495 # However, it has the same basename, so the bogon will be chosen |
| 4496 # first if we set CC to just the basename; use the full file name. |
| 4497 shift |
| 4498 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 4499 fi |
| 4500 fi |
| 4501 fi |
| 4502 fi |
| 4503 CC=$ac_cv_prog_CC |
| 4504 if test -n "$CC"; then |
| 4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4506 $as_echo "$CC" >&6; } |
| 4507 else |
| 4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4509 $as_echo "no" >&6; } |
| 4510 fi |
| 4511 |
| 4512 |
| 4513 fi |
| 4514 if test -z "$CC"; then |
| 4515 if test -n "$ac_tool_prefix"; then |
| 4516 for ac_prog in cl.exe |
| 4517 do |
| 4518 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a progra
m name with args. |
| 4519 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4521 $as_echo_n "checking for $ac_word... " >&6; } |
| 4522 if test "${ac_cv_prog_CC+set}" = set; then : |
| 4523 $as_echo_n "(cached) " >&6 |
| 4524 else |
| 4525 if test -n "$CC"; then |
| 4526 ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4527 else |
| 4528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4529 for as_dir in $PATH |
| 4530 do |
| 4531 IFS=$as_save_IFS |
| 4532 test -z "$as_dir" && as_dir=. |
| 4533 for ac_exec_ext in '' $ac_executable_extensions; do |
| 4534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then |
| 4535 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 4536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 |
| 4537 break 2 |
| 4538 fi |
| 4539 done |
| 4540 done |
| 4541 IFS=$as_save_IFS |
| 4542 |
| 4543 fi |
| 4544 fi |
| 4545 CC=$ac_cv_prog_CC |
| 4546 if test -n "$CC"; then |
| 4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4548 $as_echo "$CC" >&6; } |
| 4549 else |
| 4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4551 $as_echo "no" >&6; } |
| 4552 fi |
| 4553 |
| 4554 |
| 4555 test -n "$CC" && break |
| 4556 done |
| 4557 fi |
| 4558 if test -z "$CC"; then |
| 4559 ac_ct_CC=$CC |
| 4560 for ac_prog in cl.exe |
| 4561 do |
| 4562 # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4563 set dummy $ac_prog; ac_word=$2 |
| 4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4565 $as_echo_n "checking for $ac_word... " >&6; } |
| 4566 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 4567 $as_echo_n "(cached) " >&6 |
| 4568 else |
| 4569 if test -n "$ac_ct_CC"; then |
| 4570 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4571 else |
| 4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4573 for as_dir in $PATH |
| 4574 do |
| 4575 IFS=$as_save_IFS |
| 4576 test -z "$as_dir" && as_dir=. |
| 4577 for ac_exec_ext in '' $ac_executable_extensions; do |
| 4578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then |
| 4579 ac_cv_prog_ac_ct_CC="$ac_prog" |
| 4580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 |
| 4581 break 2 |
| 4582 fi |
| 4583 done |
| 4584 done |
| 4585 IFS=$as_save_IFS |
| 4586 |
| 4587 fi |
| 4588 fi |
| 4589 ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4590 if test -n "$ac_ct_CC"; then |
| 4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4592 $as_echo "$ac_ct_CC" >&6; } |
| 4593 else |
| 4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4595 $as_echo "no" >&6; } |
| 4596 fi |
| 4597 |
| 4598 |
| 4599 test -n "$ac_ct_CC" && break |
| 4600 done |
| 4601 |
| 4602 if test "x$ac_ct_CC" = x; then |
| 4603 CC="" |
| 4604 else |
| 4605 case $cross_compiling:$ac_tool_warned in |
| 4606 yes:) |
| 4607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed
with host triplet" >&5 |
| 4608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2
;} |
| 4609 ac_tool_warned=yes ;; |
4376 esac | 4610 esac |
4377 | 4611 CC=$ac_ct_CC |
4378 # Check whether --enable-largefile was given. | 4612 fi |
4379 if test "${enable_largefile+set}" = set; then : | 4613 fi |
4380 enableval=$enable_largefile; | 4614 |
4381 fi | 4615 fi |
4382 | 4616 |
4383 if test "$enable_largefile" != no; then | 4617 |
4384 | 4618 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd'
:" >&5 |
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler optio
ns needed for large files" >&5 | 4619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
4386 $as_echo_n "checking for special C compiler options needed for large files... "
>&6; } | 4620 as_fn_error "no acceptable C compiler found in \$PATH |
4387 if test "${ac_cv_sys_largefile_CC+set}" = set; then : | 4621 See \`config.log' for more details." "$LINENO" 5; } |
4388 $as_echo_n "(cached) " >&6 | 4622 |
4389 else | 4623 # Provide some information about the compiler. |
4390 ac_cv_sys_largefile_CC=no | 4624 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4391 if test "$GCC" != yes; then | 4625 set X $ac_compile |
4392 ac_save_CC=$CC | 4626 ac_compiler=$2 |
4393 while :; do | 4627 for ac_option in --version -v -V -qversion; do |
4394 » # IRIX 6.2 and later do not support large files by default, | 4628 { { ac_try="$ac_compiler $ac_option >&5" |
4395 » # so use the C compiler's -n32 option if that helps. | 4629 case "(($ac_try" in |
4396 » cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 4630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4631 *) ac_try_echo=$ac_try;; |
| 4632 esac |
| 4633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4634 $as_echo "$ac_try_echo"; } >&5 |
| 4635 (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 4636 ac_status=$? |
| 4637 if test -s conftest.err; then |
| 4638 sed '10a\ |
| 4639 ... rest of stderr output deleted ... |
| 4640 10q' conftest.err >conftest.er1 |
| 4641 cat conftest.er1 >&5 |
| 4642 rm -f conftest.er1 conftest.err |
| 4643 fi |
| 4644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4645 test $ac_status = 0; } |
| 4646 done |
| 4647 |
| 4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C
compiler" >&5 |
| 4649 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 4650 if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
| 4651 $as_echo_n "(cached) " >&6 |
| 4652 else |
| 4653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4397 /* end confdefs.h. */ | 4654 /* end confdefs.h. */ |
4398 #include <sys/types.h> | 4655 |
4399 /* Check that off_t can represent 2**63 - 1 correctly. | |
4400 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4401 since some C++ compilers masquerading as C compilers | |
4402 incorrectly reject 9223372036854775807. */ | |
4403 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4404 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4405 » » && LARGE_OFF_T % 2147483647 == 1) | |
4406 » » ? 1 : -1]; | |
4407 int | 4656 int |
4408 main () | 4657 main () |
4409 { | 4658 { |
4410 | 4659 #ifndef __GNUC__ |
4411 ; | 4660 choke me |
4412 return 0; | 4661 #endif |
4413 } | |
4414 _ACEOF | |
4415 » if ac_fn_c_try_compile "$LINENO"; then : | |
4416 break | |
4417 fi | |
4418 rm -f core conftest.err conftest.$ac_objext | |
4419 » CC="$CC -n32" | |
4420 » if ac_fn_c_try_compile "$LINENO"; then : | |
4421 ac_cv_sys_largefile_CC=' -n32'; break | |
4422 fi | |
4423 rm -f core conftest.err conftest.$ac_objext | |
4424 » break | |
4425 done | |
4426 CC=$ac_save_CC | |
4427 rm -f conftest.$ac_ext | |
4428 fi | |
4429 fi | |
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | |
4431 $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
4432 if test "$ac_cv_sys_largefile_CC" != no; then | |
4433 CC=$CC$ac_cv_sys_largefile_CC | |
4434 fi | |
4435 | |
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value
needed for large files" >&5 | |
4437 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6
; } | |
4438 if test "${ac_cv_sys_file_offset_bits+set}" = set; then : | |
4439 $as_echo_n "(cached) " >&6 | |
4440 else | |
4441 while :; do | |
4442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4443 /* end confdefs.h. */ | |
4444 #include <sys/types.h> | |
4445 /* Check that off_t can represent 2**63 - 1 correctly. | |
4446 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4447 since some C++ compilers masquerading as C compilers | |
4448 incorrectly reject 9223372036854775807. */ | |
4449 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4450 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4451 » » && LARGE_OFF_T % 2147483647 == 1) | |
4452 » » ? 1 : -1]; | |
4453 int | |
4454 main () | |
4455 { | |
4456 | 4662 |
4457 ; | 4663 ; |
4458 return 0; | 4664 return 0; |
4459 } | 4665 } |
4460 _ACEOF | 4666 _ACEOF |
4461 if ac_fn_c_try_compile "$LINENO"; then : | 4667 if ac_fn_c_try_compile "$LINENO"; then : |
4462 ac_cv_sys_file_offset_bits=no; break | 4668 ac_compiler_gnu=yes |
| 4669 else |
| 4670 ac_compiler_gnu=no |
4463 fi | 4671 fi |
4464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 4672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 4673 ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 4674 |
| 4675 fi |
| 4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 4677 $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 4678 if test $ac_compiler_gnu = yes; then |
| 4679 GCC=yes |
| 4680 else |
| 4681 GCC= |
| 4682 fi |
| 4683 ac_test_CFLAGS=${CFLAGS+set} |
| 4684 ac_save_CFLAGS=$CFLAGS |
| 4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 4686 $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 4687 if test "${ac_cv_prog_cc_g+set}" = set; then : |
| 4688 $as_echo_n "(cached) " >&6 |
| 4689 else |
| 4690 ac_save_c_werror_flag=$ac_c_werror_flag |
| 4691 ac_c_werror_flag=yes |
| 4692 ac_cv_prog_cc_g=no |
| 4693 CFLAGS="-g" |
| 4694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4466 /* end confdefs.h. */ | 4695 /* end confdefs.h. */ |
4467 #define _FILE_OFFSET_BITS 64 | 4696 |
4468 #include <sys/types.h> | |
4469 /* Check that off_t can represent 2**63 - 1 correctly. | |
4470 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4471 since some C++ compilers masquerading as C compilers | |
4472 incorrectly reject 9223372036854775807. */ | |
4473 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4474 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4475 » » && LARGE_OFF_T % 2147483647 == 1) | |
4476 » » ? 1 : -1]; | |
4477 int | 4697 int |
4478 main () | 4698 main () |
4479 { | 4699 { |
4480 | 4700 |
4481 ; | 4701 ; |
4482 return 0; | 4702 return 0; |
4483 } | 4703 } |
4484 _ACEOF | 4704 _ACEOF |
4485 if ac_fn_c_try_compile "$LINENO"; then : | 4705 if ac_fn_c_try_compile "$LINENO"; then : |
4486 ac_cv_sys_file_offset_bits=64; break | 4706 ac_cv_prog_cc_g=yes |
4487 fi | 4707 else |
4488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 4708 CFLAGS="" |
4489 ac_cv_sys_file_offset_bits=unknown | 4709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4490 break | |
4491 done | |
4492 fi | |
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&
5 | |
4494 $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
4495 case $ac_cv_sys_file_offset_bits in #( | |
4496 no | unknown) ;; | |
4497 *) | |
4498 cat >>confdefs.h <<_ACEOF | |
4499 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
4500 _ACEOF | |
4501 ;; | |
4502 esac | |
4503 rm -rf conftest* | |
4504 if test $ac_cv_sys_file_offset_bits = unknown; then | |
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value nee
ded for large files" >&5 | |
4506 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
4507 if test "${ac_cv_sys_large_files+set}" = set; then : | |
4508 $as_echo_n "(cached) " >&6 | |
4509 else | |
4510 while :; do | |
4511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4512 /* end confdefs.h. */ | 4710 /* end confdefs.h. */ |
4513 #include <sys/types.h> | 4711 |
4514 /* Check that off_t can represent 2**63 - 1 correctly. | |
4515 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4516 since some C++ compilers masquerading as C compilers | |
4517 incorrectly reject 9223372036854775807. */ | |
4518 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4519 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4520 » » && LARGE_OFF_T % 2147483647 == 1) | |
4521 » » ? 1 : -1]; | |
4522 int | 4712 int |
4523 main () | 4713 main () |
4524 { | 4714 { |
4525 | 4715 |
4526 ; | 4716 ; |
4527 return 0; | 4717 return 0; |
4528 } | 4718 } |
4529 _ACEOF | 4719 _ACEOF |
4530 if ac_fn_c_try_compile "$LINENO"; then : | 4720 if ac_fn_c_try_compile "$LINENO"; then : |
4531 ac_cv_sys_large_files=no; break | 4721 |
4532 fi | 4722 else |
4533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 4723 ac_c_werror_flag=$ac_save_c_werror_flag |
4534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 4724 » CFLAGS="-g" |
| 4725 » cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4535 /* end confdefs.h. */ | 4726 /* end confdefs.h. */ |
4536 #define _LARGE_FILES 1 | 4727 |
4537 #include <sys/types.h> | |
4538 /* Check that off_t can represent 2**63 - 1 correctly. | |
4539 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4540 since some C++ compilers masquerading as C compilers | |
4541 incorrectly reject 9223372036854775807. */ | |
4542 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4543 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4544 » » && LARGE_OFF_T % 2147483647 == 1) | |
4545 » » ? 1 : -1]; | |
4546 int | 4728 int |
4547 main () | 4729 main () |
4548 { | 4730 { |
4549 | 4731 |
4550 ; | 4732 ; |
4551 return 0; | 4733 return 0; |
4552 } | 4734 } |
4553 _ACEOF | 4735 _ACEOF |
4554 if ac_fn_c_try_compile "$LINENO"; then : | 4736 if ac_fn_c_try_compile "$LINENO"; then : |
4555 ac_cv_sys_large_files=1; break | 4737 ac_cv_prog_cc_g=yes |
4556 fi | 4738 fi |
4557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 4739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4558 ac_cv_sys_large_files=unknown | 4740 fi |
4559 break | 4741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4560 done | 4742 fi |
4561 fi | 4743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 | 4744 ac_c_werror_flag=$ac_save_c_werror_flag |
4563 $as_echo "$ac_cv_sys_large_files" >&6; } | 4745 fi |
4564 case $ac_cv_sys_large_files in #( | 4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
4565 no | unknown) ;; | 4747 $as_echo "$ac_cv_prog_cc_g" >&6; } |
4566 *) | 4748 if test "$ac_test_CFLAGS" = set; then |
4567 cat >>confdefs.h <<_ACEOF | 4749 CFLAGS=$ac_save_CFLAGS |
4568 #define _LARGE_FILES $ac_cv_sys_large_files | 4750 elif test $ac_cv_prog_cc_g = yes; then |
4569 _ACEOF | 4751 if test "$GCC" = yes; then |
4570 ;; | 4752 CFLAGS="-g -O2" |
4571 esac | 4753 else |
4572 rm -rf conftest* | 4754 CFLAGS="-g" |
4573 fi | 4755 fi |
4574 fi | 4756 else |
4575 | 4757 if test "$GCC" = yes; then |
4576 | 4758 CFLAGS="-O2" |
4577 | 4759 else |
4578 | 4760 CFLAGS= |
4579 | 4761 fi |
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept
ANSI C" >&5 | 4762 fi |
4581 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; } | 4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C
89" >&5 |
4582 if test "${am_cv_prog_cc_stdc+set}" = set; then : | 4764 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
4583 $as_echo_n "(cached) " >&6 | 4765 if test "${ac_cv_prog_cc_c89+set}" = set; then : |
4584 else | 4766 $as_echo_n "(cached) " >&6 |
4585 am_cv_prog_cc_stdc=no | 4767 else |
4586 ac_save_CC="$CC" | 4768 ac_cv_prog_cc_c89=no |
4587 # Don't try gcc -ansi; that turns off useful extensions and | 4769 ac_save_CC=$CC |
4588 # breaks some systems' header files. | 4770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4589 # AIX» » » -qlanglvl=ansi | |
4590 # Ultrix and OSF/1» -std1 | |
4591 # HP-UX 10.20 and later»-Ae | |
4592 # HP-UX older versions» -Aa -D_HPUX_SOURCE | |
4593 # SVR4» » » -Xc -D__EXTENSIONS__ | |
4594 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIO
NS__" | |
4595 do | |
4596 CC="$ac_save_CC $ac_arg" | |
4597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4598 /* end confdefs.h. */ | 4771 /* end confdefs.h. */ |
4599 #include <stdarg.h> | 4772 #include <stdarg.h> |
4600 #include <stdio.h> | 4773 #include <stdio.h> |
4601 #include <sys/types.h> | 4774 #include <sys/types.h> |
4602 #include <sys/stat.h> | 4775 #include <sys/stat.h> |
4603 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | 4776 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4604 struct buf { int x; }; | 4777 struct buf { int x; }; |
4605 FILE * (*rcsopen) (struct buf *, struct stat *, int); | 4778 FILE * (*rcsopen) (struct buf *, struct stat *, int); |
4606 static char *e (p, i) | 4779 static char *e (p, i) |
4607 char **p; | 4780 char **p; |
4608 int i; | 4781 int i; |
4609 { | 4782 { |
4610 return p[i]; | 4783 return p[i]; |
4611 } | 4784 } |
4612 static char *f (char * (*g) (char **, int), char **p, ...) | 4785 static char *f (char * (*g) (char **, int), char **p, ...) |
4613 { | 4786 { |
4614 char *s; | 4787 char *s; |
4615 va_list v; | 4788 va_list v; |
4616 va_start (v,p); | 4789 va_start (v,p); |
4617 s = g (p, va_arg (v,int)); | 4790 s = g (p, va_arg (v,int)); |
4618 va_end (v); | 4791 va_end (v); |
4619 return s; | 4792 return s; |
4620 } | 4793 } |
| 4794 |
| 4795 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 4796 function prototypes and stuff, but not '\xHH' hex character constants. |
| 4797 These don't provoke an error unfortunately, instead are silently treated |
| 4798 as 'x'. The following induces an error, until -std is added to get |
| 4799 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 4800 array size at least. It's necessary to write '\x00'==0 to get something |
| 4801 that's true only with -std. */ |
| 4802 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 4803 |
| 4804 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 4805 inside strings and character constants. */ |
| 4806 #define FOO(x) 'x' |
| 4807 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 4808 |
4621 int test (int i, double x); | 4809 int test (int i, double x); |
4622 struct s1 {int (*f) (int a);}; | 4810 struct s1 {int (*f) (int a);}; |
4623 struct s2 {int (*f) (double a);}; | 4811 struct s2 {int (*f) (double a);}; |
4624 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, i
nt); | 4812 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, i
nt); |
4625 int argc; | 4813 int argc; |
4626 char **argv; | 4814 char **argv; |
4627 | |
4628 int | 4815 int |
4629 main () | 4816 main () |
4630 { | 4817 { |
4631 | |
4632 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | 4818 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
4633 | |
4634 ; | 4819 ; |
4635 return 0; | 4820 return 0; |
4636 } | 4821 } |
4637 _ACEOF | 4822 _ACEOF |
4638 if ac_fn_c_try_compile "$LINENO"; then : | 4823 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4639 am_cv_prog_cc_stdc="$ac_arg"; break | 4824 » -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
4640 fi | 4825 do |
4641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 4826 CC="$ac_save_CC $ac_arg" |
4642 done | 4827 if ac_fn_c_try_compile "$LINENO"; then : |
4643 CC="$ac_save_CC" | 4828 ac_cv_prog_cc_c89=$ac_arg |
4644 | 4829 fi |
4645 fi | 4830 rm -f core conftest.err conftest.$ac_objext |
4646 | 4831 test "x$ac_cv_prog_cc_c89" != "xno" && break |
4647 if test -z "$am_cv_prog_cc_stdc"; then | 4832 done |
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | 4833 rm -f conftest.$ac_ext |
4649 $as_echo "none needed" >&6; } | 4834 CC=$ac_save_CC |
4650 else | 4835 |
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5 | 4836 fi |
4652 $as_echo "$am_cv_prog_cc_stdc" >&6; } | 4837 # AC_CACHE_VAL |
4653 fi | 4838 case "x$ac_cv_prog_cc_c89" in |
4654 case "x$am_cv_prog_cc_stdc" in | 4839 x) |
4655 x|xno) ;; | 4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
4656 *) CC="$CC $am_cv_prog_cc_stdc" ;; | 4841 $as_echo "none needed" >&6; } ;; |
| 4842 xno) |
| 4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4844 $as_echo "unsupported" >&6; } ;; |
| 4845 *) |
| 4846 CC="$CC $ac_cv_prog_cc_c89" |
| 4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 4848 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
4657 esac | 4849 esac |
| 4850 if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 4851 |
| 4852 fi |
| 4853 |
| 4854 ac_ext=c |
| 4855 ac_cpp='$CPP $CPPFLAGS' |
| 4856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
LIBS >&5' |
| 4858 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4859 |
| 4860 |
| 4861 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc |
4658 | 4862 |
4659 | 4863 |
4660 ac_aux_dir= | 4864 ac_aux_dir= |
4661 for ac_dir in .. "$srcdir"/..; do | 4865 for ac_dir in ../.. "$srcdir"/../..; do |
4662 for ac_t in install-sh install.sh shtool; do | 4866 for ac_t in install-sh install.sh shtool; do |
4663 if test -f "$ac_dir/$ac_t"; then | 4867 if test -f "$ac_dir/$ac_t"; then |
4664 ac_aux_dir=$ac_dir | 4868 ac_aux_dir=$ac_dir |
4665 ac_install_sh="$ac_aux_dir/$ac_t -c" | 4869 ac_install_sh="$ac_aux_dir/$ac_t -c" |
4666 break 2 | 4870 break 2 |
4667 fi | 4871 fi |
4668 done | 4872 done |
4669 done | 4873 done |
4670 if test -z "$ac_aux_dir"; then | 4874 if test -z "$ac_aux_dir"; then |
4671 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.
." "$LINENO" 5 | 4875 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\
"/../.." "$LINENO" 5 |
4672 fi | 4876 fi |
4673 | 4877 |
4674 # These three variables are undocumented and unsupported, | 4878 # These three variables are undocumented and unsupported, |
4675 # and are intended to be withdrawn in a future Autoconf release. | 4879 # and are intended to be withdrawn in a future Autoconf release. |
4676 # They can cause serious problems if a builder's source tree is in a directory | 4880 # They can cause serious problems if a builder's source tree is in a directory |
4677 # whose full name contains unusual characters. | 4881 # whose full name contains unusual characters. |
4678 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | 4882 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
4679 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | 4883 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
4680 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | 4884 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
4681 | 4885 |
4682 | 4886 |
4683 | 4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
4684 | 4888 $as_echo_n "checking target system type... " >&6; } |
4685 # Dependency checking. | 4889 if test "${ac_cv_target+set}" = set; then : |
4686 rm -rf .tst 2>/dev/null | 4890 $as_echo_n "(cached) " >&6 |
4687 mkdir .tst 2>/dev/null | 4891 else |
4688 if test -d .tst; then | 4892 if test "x$target_alias" = x; then |
4689 am__leading_dot=. | 4893 ac_cv_target=$ac_cv_host |
4690 else | 4894 else |
4691 am__leading_dot=_ | 4895 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
4692 fi | 4896 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
4693 rmdir .tst 2>/dev/null | 4897 fi |
4694 | 4898 |
4695 DEPDIR="${am__leading_dot}deps" | 4899 fi |
4696 | 4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
4697 ac_config_commands="$ac_config_commands depdir" | 4901 $as_echo "$ac_cv_target" >&6; } |
4698 | 4902 case $ac_cv_target in |
4699 | 4903 *-*-*) ;; |
4700 depcc="$CC" am_compiler_list= | 4904 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; |
4701 | |
4702 am_depcomp=$ac_aux_dir/depcomp | |
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&
5 | |
4704 $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4705 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | |
4706 $as_echo_n "(cached) " >&6 | |
4707 else | |
4708 if test -f "$am_depcomp"; then | |
4709 # We make a subdir and do the tests there. Otherwise we can end up | |
4710 # making bogus files that we don't know about and never remove. For | |
4711 # instance it was reported that on HP-UX the gcc test will end up | |
4712 # making a dummy file named `D' -- because `-MD' means `put the output | |
4713 # in D'. | |
4714 mkdir conftest.dir | |
4715 # Copy depcomp to subdir because otherwise we won't find it if we're | |
4716 # using a relative directory. | |
4717 cp "$am_depcomp" conftest.dir | |
4718 cd conftest.dir | |
4719 # We will build objects and dependencies in a subdirectory because | |
4720 # it helps to detect inapplicable dependency modes. For instance | |
4721 # both Tru64's cc and ICC support -MD to output dependencies as a | |
4722 # side effect of compilation, but ICC will put the dependencies in | |
4723 # the current directory while Tru64 will put them in the object | |
4724 # directory. | |
4725 mkdir sub | |
4726 | |
4727 am_cv_CC_dependencies_compiler_type=none | |
4728 if test "$am_compiler_list" = ""; then | |
4729 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4730 fi | |
4731 for depmode in $am_compiler_list; do | |
4732 if test $depmode = none; then break; fi | |
4733 | |
4734 $as_echo "$as_me:$LINENO: trying $depmode" >&5 | |
4735 # Setup a source with many dependencies, because some compilers | |
4736 # like to wrap large dependency lists on column 80 (with \), and | |
4737 # we should not choose a depcomp mode which is confused by this. | |
4738 # | |
4739 # We need to recreate these files for each test, as the compiler may | |
4740 # overwrite some of them when testing with obscure command lines. | |
4741 # This happens at least with the AIX C compiler. | |
4742 : > sub/conftest.c | |
4743 for i in 1 2 3 4 5 6; do | |
4744 echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4745 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
4746 # Solaris 8's {/usr,}/bin/sh. | |
4747 touch sub/conftst$i.h | |
4748 done | |
4749 echo "include sub/conftest.Po" > confmf | |
4750 | |
4751 # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
4752 # mode. It turns out that the SunPro C++ compiler does not properly | |
4753 # handle `-M -o', and we need to detect this. | |
4754 depcmd="depmode=$depmode \ | |
4755 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
4756 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4757 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c" | |
4758 echo "| $depcmd" | sed -e 's/ */ /g' >&5 | |
4759 if env $depcmd > conftest.err 2>&1 && | |
4760 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 && | |
4761 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 && | |
4762 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then | |
4763 # icc doesn't choke on unknown options, it will just issue warnings | |
4764 # or remarks (even with -Werror). So we grep stderr for any message | |
4765 # that says an option was ignored or not supported. | |
4766 # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4767 # icc: Command line warning: ignoring option '-M'; no argument required | |
4768 # The diagnosis changed in icc 8.0: | |
4769 # icc: Command line remark: option '-MP' not supported | |
4770 if (grep 'ignoring option' conftest.err || | |
4771 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4772 am_cv_CC_dependencies_compiler_type=$depmode | |
4773 » $as_echo "$as_me:$LINENO: success" >&5 | |
4774 break | |
4775 fi | |
4776 fi | |
4777 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5 | |
4778 sed -e 's/^/| /' < conftest.err >&5 | |
4779 done | |
4780 | |
4781 cd .. | |
4782 rm -rf conftest.dir | |
4783 else | |
4784 am_cv_CC_dependencies_compiler_type=none | |
4785 fi | |
4786 | |
4787 fi | |
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler
_type" >&5 | |
4789 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4790 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone | |
4791 then as_fn_error "no usable dependency style found" "$LINENO" 5 | |
4792 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
4793 | |
4794 fi | |
4795 | |
4796 | |
4797 # Check for the 'make' the user wants to use. | |
4798 for ac_prog in make | |
4799 do | |
4800 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4801 set dummy $ac_prog; ac_word=$2 | |
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4803 $as_echo_n "checking for $ac_word... " >&6; } | |
4804 if test "${ac_cv_prog_MAKE+set}" = set; then : | |
4805 $as_echo_n "(cached) " >&6 | |
4806 else | |
4807 if test -n "$MAKE"; then | |
4808 ac_cv_prog_MAKE="$MAKE" # Let the user override the test. | |
4809 else | |
4810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4811 for as_dir in $PATH | |
4812 do | |
4813 IFS=$as_save_IFS | |
4814 test -z "$as_dir" && as_dir=. | |
4815 for ac_exec_ext in '' $ac_executable_extensions; do | |
4816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then | |
4817 ac_cv_prog_MAKE="$ac_prog" | |
4818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 | |
4819 break 2 | |
4820 fi | |
4821 done | |
4822 done | |
4823 IFS=$as_save_IFS | |
4824 | |
4825 fi | |
4826 fi | |
4827 MAKE=$ac_cv_prog_MAKE | |
4828 if test -n "$MAKE"; then | |
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5 | |
4830 $as_echo "$MAKE" >&6; } | |
4831 else | |
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4833 $as_echo "no" >&6; } | |
4834 fi | |
4835 | |
4836 | |
4837 test -n "$MAKE" && break | |
4838 done | |
4839 | |
4840 MAKE_IS_GNU= | |
4841 case "`$MAKE --version 2>&1 | sed 1q`" in | |
4842 *GNU*) | |
4843 MAKE_IS_GNU=yes | |
4844 ;; | |
4845 esac | 4905 esac |
4846 if test "$MAKE_IS_GNU" = yes; then | 4906 target=$ac_cv_target |
4847 GMAKE_TRUE= | 4907 ac_save_IFS=$IFS; IFS='-' |
4848 GMAKE_FALSE='#' | 4908 set x $ac_cv_target |
4849 else | 4909 shift |
4850 GMAKE_TRUE='#' | 4910 target_cpu=$1 |
4851 GMAKE_FALSE= | 4911 target_vendor=$2 |
4852 fi | 4912 shift; shift |
4853 | 4913 # Remember, the first character of IFS is used to create $*, |
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(M
AKE)" >&5 | 4914 # except with old shells: |
4855 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | 4915 target_os=$* |
4856 set x ${MAKE-make} | 4916 IFS=$ac_save_IFS |
4857 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | 4917 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
4858 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set
"; }; then : | 4918 |
4859 $as_echo_n "(cached) " >&6 | 4919 |
4860 else | 4920 # The aliases save the names the user supplied, while $host etc. |
4861 cat >conftest.make <<\_ACEOF | 4921 # will get canonicalized. |
4862 SHELL = /bin/sh | 4922 test -n "$target_alias" && |
4863 all: | 4923 test "$program_prefix$program_suffix$program_transform_name" = \ |
4864 » @echo '@@@%%%=$(MAKE)=@@@%%%' | 4924 NONENONEs,x,x, && |
4865 _ACEOF | 4925 program_prefix=${target_alias}- |
4866 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | 4926 |
4867 case `${MAKE-make} -f conftest.make 2>/dev/null` in | 4927 |
4868 *@@@%%%=?*=@@@%%%*) | 4928 |
4869 eval ac_cv_prog_make_${ac_make}_set=yes;; | |
4870 *) | |
4871 eval ac_cv_prog_make_${ac_make}_set=no;; | |
4872 esac | |
4873 rm -f conftest.make | |
4874 fi | |
4875 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4877 $as_echo "yes" >&6; } | |
4878 SET_MAKE= | |
4879 else | |
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4881 $as_echo "no" >&6; } | |
4882 SET_MAKE="MAKE=${MAKE-make}" | |
4883 fi | |
4884 | |
4885 | |
4886 | |
4887 CONFIG_OBS= | |
4888 CONFIG_DEPS= | |
4889 CONFIG_SRCS= | |
4890 ENABLE_CFLAGS= | |
4891 | |
4892 CONFIG_ALL= | |
4893 CONFIG_CLEAN= | |
4894 CONFIG_INSTALL= | |
4895 CONFIG_UNINSTALL= | |
4896 | |
4897 # If we haven't got the data from the intl directory, | |
4898 # assume NLS is disabled. | |
4899 USE_NLS=no | |
4900 LIBINTL= | |
4901 LIBINTL_DEP= | |
4902 INCINTL= | |
4903 XGETTEXT= | |
4904 GMSGFMT= | |
4905 POSUB= | |
4906 | |
4907 if test -f ../intl/config.intl; then | |
4908 . ../intl/config.intl | |
4909 fi | |
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 | |
4911 $as_echo_n "checking whether NLS is requested... " >&6; } | |
4912 if test x"$USE_NLS" != xyes; then | |
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4914 $as_echo "no" >&6; } | |
4915 else | |
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4917 $as_echo "yes" >&6; } | |
4918 | |
4919 $as_echo "#define ENABLE_NLS 1" >>confdefs.h | |
4920 | |
4921 | |
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed
" >&5 | |
4923 $as_echo_n "checking for catalogs to be installed... " >&6; } | |
4924 # Look for .po and .gmo files in the source directory. | |
4925 CATALOGS= | |
4926 XLINGUAS= | |
4927 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
4928 # If there aren't any .gmo files the shell will give us the | |
4929 # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
4930 # weeded out. | |
4931 case "$cat" in *\**) | |
4932 continue;; | |
4933 esac | |
4934 # The quadruple backslash is collapsed to a double backslash | |
4935 # by the backticks, then collapsed again by the double quotes, | |
4936 # leaving us with one backslash in the sed expression (right | |
4937 # before the dot that mustn't act as a wildcard). | |
4938 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
4939 lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
4940 # The user is allowed to set LINGUAS to a list of languages to | |
4941 # install catalogs for. If it's empty that means "all of them." | |
4942 if test "x$LINGUAS" = x; then | |
4943 CATALOGS="$CATALOGS $cat" | |
4944 XLINGUAS="$XLINGUAS $lang" | |
4945 else | |
4946 case "$LINGUAS" in *$lang*) | |
4947 CATALOGS="$CATALOGS $cat" | |
4948 XLINGUAS="$XLINGUAS $lang" | |
4949 ;; | |
4950 esac | |
4951 fi | |
4952 done | |
4953 LINGUAS="$XLINGUAS" | |
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 | |
4955 $as_echo "$LINGUAS" >&6; } | |
4956 | |
4957 | |
4958 DATADIRNAME=share | |
4959 | |
4960 INSTOBJEXT=.mo | |
4961 | |
4962 GENCAT=gencat | |
4963 | |
4964 CATOBJEXT=.gmo | |
4965 | |
4966 fi | |
4967 | |
4968 localedir='${datadir}/locale' | |
4969 | |
4970 | |
4971 if test x"$USE_NLS" = xyes; then | |
4972 CONFIG_ALL="$CONFIG_ALL all-po" | |
4973 CONFIG_CLEAN="$CONFIG_CLEAN clean-po" | |
4974 CONFIG_INSTALL="$CONFIG_INSTALL install-po" | |
4975 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po" | |
4976 fi | |
4977 | |
4978 | |
4979 | |
4980 | |
4981 | |
4982 LIBC_FATAL_STDERR_=1 | |
4983 export LIBC_FATAL_STDERR_ | |
4984 | |
4985 | |
4986 | |
4987 | |
4988 | |
4989 for ac_header in $gl_header_list | |
4990 do : | |
4991 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4992 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_include
s_default" | |
4993 eval as_val=\$$as_ac_Header | |
4994 if test "x$as_val" = x""yes; then : | |
4995 cat >>confdefs.h <<_ACEOF | |
4996 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4997 _ACEOF | |
4998 | |
4999 fi | |
5000 | |
5001 done | |
5002 | |
5003 | |
5004 | |
5005 | |
5006 | 4929 |
5007 | 4930 |
5008 | 4931 |
5009 | 4932 |
| 4933 LIBC_FATAL_STDERR_=1 |
| 4934 export LIBC_FATAL_STDERR_ |
| 4935 |
| 4936 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 4937 # for constant arguments. Useless! |
| 4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
| 4939 $as_echo_n "checking for working alloca.h... " >&6; } |
| 4940 if test "${ac_cv_working_alloca_h+set}" = set; then : |
| 4941 $as_echo_n "(cached) " >&6 |
| 4942 else |
| 4943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4944 /* end confdefs.h. */ |
| 4945 #include <alloca.h> |
| 4946 int |
| 4947 main () |
| 4948 { |
| 4949 char *p = (char *) alloca (2 * sizeof (int)); |
| 4950 if (p) return 0; |
| 4951 ; |
| 4952 return 0; |
| 4953 } |
| 4954 _ACEOF |
| 4955 if ac_fn_c_try_link "$LINENO"; then : |
| 4956 ac_cv_working_alloca_h=yes |
| 4957 else |
| 4958 ac_cv_working_alloca_h=no |
| 4959 fi |
| 4960 rm -f core conftest.err conftest.$ac_objext \ |
| 4961 conftest$ac_exeext conftest.$ac_ext |
| 4962 fi |
| 4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
| 4964 $as_echo "$ac_cv_working_alloca_h" >&6; } |
| 4965 if test $ac_cv_working_alloca_h = yes; then |
| 4966 |
| 4967 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
| 4968 |
| 4969 fi |
| 4970 |
| 4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
| 4972 $as_echo_n "checking for alloca... " >&6; } |
| 4973 if test "${ac_cv_func_alloca_works+set}" = set; then : |
| 4974 $as_echo_n "(cached) " >&6 |
| 4975 else |
| 4976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4977 /* end confdefs.h. */ |
| 4978 #ifdef __GNUC__ |
| 4979 # define alloca __builtin_alloca |
| 4980 #else |
| 4981 # ifdef _MSC_VER |
| 4982 # include <malloc.h> |
| 4983 # define alloca _alloca |
| 4984 # else |
| 4985 # ifdef HAVE_ALLOCA_H |
| 4986 # include <alloca.h> |
| 4987 # else |
| 4988 # ifdef _AIX |
| 4989 #pragma alloca |
| 4990 # else |
| 4991 # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 4992 char *alloca (); |
| 4993 # endif |
| 4994 # endif |
| 4995 # endif |
| 4996 # endif |
| 4997 #endif |
| 4998 |
| 4999 int |
| 5000 main () |
| 5001 { |
| 5002 char *p = (char *) alloca (1); |
| 5003 if (p) return 0; |
| 5004 ; |
| 5005 return 0; |
| 5006 } |
| 5007 _ACEOF |
| 5008 if ac_fn_c_try_link "$LINENO"; then : |
| 5009 ac_cv_func_alloca_works=yes |
| 5010 else |
| 5011 ac_cv_func_alloca_works=no |
| 5012 fi |
| 5013 rm -f core conftest.err conftest.$ac_objext \ |
| 5014 conftest$ac_exeext conftest.$ac_ext |
| 5015 fi |
| 5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
| 5017 $as_echo "$ac_cv_func_alloca_works" >&6; } |
| 5018 |
| 5019 if test $ac_cv_func_alloca_works = yes; then |
| 5020 |
| 5021 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
| 5022 |
| 5023 else |
| 5024 # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 5025 # that cause trouble. Some versions do not even contain alloca or |
| 5026 # contain a buggy version. If you still want to use their alloca, |
| 5027 # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 5028 |
| 5029 |
| 5030 |
| 5031 |
| 5032 |
| 5033 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
| 5034 |
| 5035 $as_echo "#define C_ALLOCA 1" >>confdefs.h |
| 5036 |
| 5037 |
| 5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray
hooks" >&5 |
| 5039 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; } |
| 5040 if test "${ac_cv_os_cray+set}" = set; then : |
| 5041 $as_echo_n "(cached) " >&6 |
| 5042 else |
| 5043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5044 /* end confdefs.h. */ |
| 5045 #if defined CRAY && ! defined CRAY2 |
| 5046 webecray |
| 5047 #else |
| 5048 wenotbecray |
| 5049 #endif |
| 5050 |
| 5051 _ACEOF |
| 5052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5053 $EGREP "webecray" >/dev/null 2>&1; then : |
| 5054 ac_cv_os_cray=yes |
| 5055 else |
| 5056 ac_cv_os_cray=no |
| 5057 fi |
| 5058 rm -f conftest* |
| 5059 |
| 5060 fi |
| 5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
| 5062 $as_echo "$ac_cv_os_cray" >&6; } |
| 5063 if test $ac_cv_os_cray = yes; then |
| 5064 for ac_func in _getb67 GETB67 getb67; do |
| 5065 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 5066 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 5067 eval as_val=\$$as_ac_var |
| 5068 if test "x$as_val" = x""yes; then : |
| 5069 |
| 5070 cat >>confdefs.h <<_ACEOF |
| 5071 #define CRAY_STACKSEG_END $ac_func |
| 5072 _ACEOF |
| 5073 |
| 5074 break |
| 5075 fi |
| 5076 |
| 5077 done |
| 5078 fi |
| 5079 |
| 5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca"
>&5 |
| 5081 $as_echo_n "checking stack direction for C alloca... " >&6; } |
| 5082 if test "${ac_cv_c_stack_direction+set}" = set; then : |
| 5083 $as_echo_n "(cached) " >&6 |
| 5084 else |
| 5085 if test "$cross_compiling" = yes; then : |
| 5086 ac_cv_c_stack_direction=0 |
| 5087 else |
| 5088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5089 /* end confdefs.h. */ |
| 5090 $ac_includes_default |
| 5091 int |
| 5092 find_stack_direction (int *addr, int depth) |
| 5093 { |
| 5094 int dir, dummy = 0; |
| 5095 if (! addr) |
| 5096 addr = &dummy; |
| 5097 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; |
| 5098 dir = depth ? find_stack_direction (addr, depth - 1) : 0; |
| 5099 return dir + dummy; |
| 5100 } |
| 5101 |
| 5102 int |
| 5103 main (int argc, char **argv) |
| 5104 { |
| 5105 return find_stack_direction (0, argc + !argv + 20) < 0; |
| 5106 } |
| 5107 _ACEOF |
| 5108 if ac_fn_c_try_run "$LINENO"; then : |
| 5109 ac_cv_c_stack_direction=1 |
| 5110 else |
| 5111 ac_cv_c_stack_direction=-1 |
| 5112 fi |
| 5113 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5114 conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5115 fi |
| 5116 |
| 5117 fi |
| 5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
| 5119 $as_echo "$ac_cv_c_stack_direction" >&6; } |
| 5120 cat >>confdefs.h <<_ACEOF |
| 5121 #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 5122 _ACEOF |
| 5123 |
| 5124 |
| 5125 fi |
| 5126 |
| 5127 |
| 5128 |
| 5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 |
| 5130 $as_echo_n "checking for mbstate_t... " >&6; } |
| 5131 if test "${ac_cv_type_mbstate_t+set}" = set; then : |
| 5132 $as_echo_n "(cached) " >&6 |
| 5133 else |
| 5134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5135 /* end confdefs.h. */ |
| 5136 $ac_includes_default |
| 5137 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before |
| 5138 <wchar.h>. |
| 5139 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 5140 included before <wchar.h>. */ |
| 5141 #include <stddef.h> |
| 5142 #include <stdio.h> |
| 5143 #include <time.h> |
| 5144 #include <wchar.h> |
| 5145 int |
| 5146 main () |
| 5147 { |
| 5148 mbstate_t x; return sizeof x; |
| 5149 ; |
| 5150 return 0; |
| 5151 } |
| 5152 _ACEOF |
| 5153 if ac_fn_c_try_compile "$LINENO"; then : |
| 5154 ac_cv_type_mbstate_t=yes |
| 5155 else |
| 5156 ac_cv_type_mbstate_t=no |
| 5157 fi |
| 5158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5159 fi |
| 5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 |
| 5161 $as_echo "$ac_cv_type_mbstate_t" >&6; } |
| 5162 if test $ac_cv_type_mbstate_t = yes; then |
| 5163 |
| 5164 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h |
| 5165 |
| 5166 else |
| 5167 |
| 5168 $as_echo "#define mbstate_t int" >>confdefs.h |
| 5169 |
| 5170 fi |
| 5171 |
| 5172 |
| 5173 |
| 5174 |
5010 | 5175 |
5011 for ac_func in $gl_func_list | 5176 for ac_func in $gl_func_list |
5012 do : | 5177 do : |
5013 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 5178 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5014 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 5179 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
5015 eval as_val=\$$as_ac_var | 5180 eval as_val=\$$as_ac_var |
5016 if test "x$as_val" = x""yes; then : | 5181 if test "x$as_val" = x""yes; then : |
5017 cat >>confdefs.h <<_ACEOF | 5182 cat >>confdefs.h <<_ACEOF |
5018 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 5183 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
5019 _ACEOF | 5184 _ACEOF |
5020 | 5185 |
5021 fi | 5186 fi |
5022 done | 5187 done |
5023 | 5188 |
5024 | 5189 |
5025 | 5190 |
5026 | 5191 |
5027 | 5192 |
5028 | 5193 |
5029 GNULIB_MEMCHR=0; | 5194 |
5030 GNULIB_MEMMEM=0; | 5195 |
5031 GNULIB_MEMPCPY=0; | 5196 |
5032 GNULIB_MEMRCHR=0; | 5197 |
5033 GNULIB_RAWMEMCHR=0; | 5198 |
5034 GNULIB_STPCPY=0; | 5199 |
5035 GNULIB_STPNCPY=0; | 5200 |
5036 GNULIB_STRCHRNUL=0; | 5201 |
5037 GNULIB_STRDUP=0; | 5202 |
5038 GNULIB_STRNCAT=0; | 5203 |
5039 GNULIB_STRNDUP=0; | |
5040 GNULIB_STRNLEN=0; | |
5041 GNULIB_STRPBRK=0; | |
5042 GNULIB_STRSEP=0; | |
5043 GNULIB_STRSTR=0; | |
5044 GNULIB_STRCASESTR=0; | |
5045 GNULIB_STRTOK_R=0; | |
5046 GNULIB_MBSLEN=0; | |
5047 GNULIB_MBSNLEN=0; | |
5048 GNULIB_MBSCHR=0; | |
5049 GNULIB_MBSRCHR=0; | |
5050 GNULIB_MBSSTR=0; | |
5051 GNULIB_MBSCASECMP=0; | |
5052 GNULIB_MBSNCASECMP=0; | |
5053 GNULIB_MBSPCASECMP=0; | |
5054 GNULIB_MBSCASESTR=0; | |
5055 GNULIB_MBSCSPN=0; | |
5056 GNULIB_MBSPBRK=0; | |
5057 GNULIB_MBSSPN=0; | |
5058 GNULIB_MBSSEP=0; | |
5059 GNULIB_MBSTOK_R=0; | |
5060 GNULIB_STRERROR=0; | |
5061 GNULIB_STRSIGNAL=0; | |
5062 GNULIB_STRVERSCMP=0; | |
5063 HAVE_MBSLEN=0; | |
5064 HAVE_MEMCHR=1; | |
5065 HAVE_DECL_MEMMEM=1; | |
5066 HAVE_MEMPCPY=1; | |
5067 HAVE_DECL_MEMRCHR=1; | |
5068 HAVE_RAWMEMCHR=1; | |
5069 HAVE_STPCPY=1; | |
5070 HAVE_STPNCPY=1; | |
5071 HAVE_STRCHRNUL=1; | |
5072 HAVE_DECL_STRDUP=1; | |
5073 HAVE_DECL_STRNDUP=1; | |
5074 HAVE_DECL_STRNLEN=1; | |
5075 HAVE_STRPBRK=1; | |
5076 HAVE_STRSEP=1; | |
5077 HAVE_STRCASESTR=1; | |
5078 HAVE_DECL_STRTOK_R=1; | |
5079 HAVE_DECL_STRSIGNAL=1; | |
5080 HAVE_STRVERSCMP=1; | |
5081 REPLACE_MEMCHR=0; | |
5082 REPLACE_MEMMEM=0; | |
5083 REPLACE_STPNCPY=0; | |
5084 REPLACE_STRDUP=0; | |
5085 REPLACE_STRSTR=0; | |
5086 REPLACE_STRCASESTR=0; | |
5087 REPLACE_STRERROR=0; | |
5088 REPLACE_STRNCAT=0; | |
5089 REPLACE_STRNDUP=0; | |
5090 REPLACE_STRNLEN=0; | |
5091 REPLACE_STRSIGNAL=0; | |
5092 REPLACE_STRTOK_R=0; | |
5093 UNDEFINE_STRTOK_R=0; | |
5094 | |
5095 | |
5096 | |
5097 | |
5098 | |
5099 | |
5100 | |
5101 | |
5102 | |
5103 | |
5104 | |
5105 | |
5106 | |
5107 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it | |
5108 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is | |
5109 # irrelevant for anonymous mappings. | |
5110 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" | |
5111 if test "x$ac_cv_func_mmap" = x""yes; then : | |
5112 gl_have_mmap=yes | |
5113 else | |
5114 gl_have_mmap=no | |
5115 fi | |
5116 | |
5117 | |
5118 # Try to allow MAP_ANONYMOUS. | |
5119 gl_have_mmap_anonymous=no | |
5120 if test $gl_have_mmap = yes; then | |
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5 | |
5122 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; } | |
5123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5124 /* end confdefs.h. */ | |
5125 | |
5126 #include <sys/mman.h> | |
5127 #ifdef MAP_ANONYMOUS | |
5128 I cant identify this map. | |
5129 #endif | |
5130 | |
5131 _ACEOF | |
5132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5133 $EGREP "I cant identify this map." >/dev/null 2>&1; then : | |
5134 gl_have_mmap_anonymous=yes | |
5135 fi | |
5136 rm -f conftest* | |
5137 | |
5138 if test $gl_have_mmap_anonymous != yes; then | |
5139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5140 /* end confdefs.h. */ | |
5141 | |
5142 #include <sys/mman.h> | |
5143 #ifdef MAP_ANON | |
5144 I cant identify this map. | |
5145 #endif | |
5146 | |
5147 _ACEOF | |
5148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5149 $EGREP "I cant identify this map." >/dev/null 2>&1; then : | |
5150 | |
5151 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h | |
5152 | |
5153 gl_have_mmap_anonymous=yes | |
5154 fi | |
5155 rm -f conftest* | |
5156 | |
5157 fi | |
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&
5 | |
5159 $as_echo "$gl_have_mmap_anonymous" >&6; } | |
5160 if test $gl_have_mmap_anonymous = yes; then | |
5161 | |
5162 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h | |
5163 | |
5164 fi | |
5165 fi | |
5166 | |
5167 | |
5168 : | |
5169 | |
5170 | |
5171 | |
5172 | |
5173 | |
5174 | |
5175 : | |
5176 | |
5177 | |
5178 | |
5179 | |
5180 | |
5181 | |
5182 | |
5183 | |
5184 : | |
5185 | |
5186 | |
5187 | |
5188 | |
5189 | |
5190 if test $ac_cv_func_memchr = yes; then | |
5191 # Detect platform-specific bugs in some versions of glibc: | |
5192 # memchr should not dereference anything with length 0 | |
5193 # http://bugzilla.redhat.com/499689 | |
5194 # memchr should not dereference overestimated length after a match | |
5195 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737 | |
5196 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162 | |
5197 # Assume that memchr works on platforms that lack mprotect. | |
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5 | |
5199 $as_echo_n "checking whether memchr works... " >&6; } | |
5200 if test "${gl_cv_func_memchr_works+set}" = set; then : | |
5201 $as_echo_n "(cached) " >&6 | |
5202 else | |
5203 if test "$cross_compiling" = yes; then : | |
5204 gl_cv_func_memchr_works="guessing no" | |
5205 else | |
5206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5207 /* end confdefs.h. */ | |
5208 | |
5209 #include <string.h> | |
5210 #if HAVE_SYS_MMAN_H | |
5211 # include <fcntl.h> | |
5212 # include <unistd.h> | |
5213 # include <sys/types.h> | |
5214 # include <sys/mman.h> | |
5215 # ifndef MAP_FILE | |
5216 # define MAP_FILE 0 | |
5217 # endif | |
5218 #endif | |
5219 | |
5220 int | |
5221 main () | |
5222 { | |
5223 | |
5224 char *fence = NULL; | |
5225 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT | |
5226 # if HAVE_MAP_ANONYMOUS | |
5227 const int flags = MAP_ANONYMOUS | MAP_PRIVATE; | |
5228 const int fd = -1; | |
5229 # else /* !HAVE_MAP_ANONYMOUS */ | |
5230 const int flags = MAP_FILE | MAP_PRIVATE; | |
5231 int fd = open ("/dev/zero", O_RDONLY, 0666); | |
5232 if (fd >= 0) | |
5233 # endif | |
5234 { | |
5235 int pagesize = getpagesize (); | |
5236 char *two_pages = | |
5237 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE, | |
5238 flags, fd, 0); | |
5239 if (two_pages != (char *)(-1) | |
5240 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0) | |
5241 fence = two_pages + pagesize; | |
5242 } | |
5243 #endif | |
5244 if (fence) | |
5245 { | |
5246 if (memchr (fence, 0, 0)) | |
5247 return 1; | |
5248 strcpy (fence - 9, "12345678"); | |
5249 if (memchr (fence - 9, 0, 79) != fence - 1) | |
5250 return 2; | |
5251 } | |
5252 return 0; | |
5253 | |
5254 ; | |
5255 return 0; | |
5256 } | |
5257 _ACEOF | |
5258 if ac_fn_c_try_run "$LINENO"; then : | |
5259 gl_cv_func_memchr_works=yes | |
5260 else | |
5261 gl_cv_func_memchr_works=no | |
5262 fi | |
5263 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5264 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5265 fi | |
5266 | |
5267 fi | |
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5 | |
5269 $as_echo "$gl_cv_func_memchr_works" >&6; } | |
5270 if test "$gl_cv_func_memchr_works" != yes; then | |
5271 REPLACE_MEMCHR=1 | |
5272 fi | |
5273 else | |
5274 HAVE_MEMCHR=0 | |
5275 fi | |
5276 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then | |
5277 | |
5278 | |
5279 | |
5280 | 5204 |
5281 | 5205 |
5282 | 5206 |
5283 | 5207 |
5284 | 5208 |
5285 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext" | |
5286 | |
5287 | |
5288 for ac_header in bp-sym.h | |
5289 do : | |
5290 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac
_includes_default" | |
5291 if test "x$ac_cv_header_bp_sym_h" = x""yes; then : | |
5292 cat >>confdefs.h <<_ACEOF | |
5293 #define HAVE_BP_SYM_H 1 | |
5294 _ACEOF | |
5295 | |
5296 fi | |
5297 | |
5298 done | |
5299 | |
5300 | |
5301 fi | |
5302 | |
5303 | |
5304 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includ
es_default" | |
5305 if test "x$ac_cv_have_decl_memmem" = x""yes; then : | |
5306 ac_have_decl=1 | |
5307 else | |
5308 ac_have_decl=0 | |
5309 fi | |
5310 | |
5311 cat >>confdefs.h <<_ACEOF | |
5312 #define HAVE_DECL_MEMMEM $ac_have_decl | |
5313 _ACEOF | |
5314 | 5209 |
5315 | 5210 |
5316 | 5211 |
| 5212 |
| 5213 |
| 5214 |
| 5215 |
| 5216 |
| 5217 |
| 5218 |
| 5219 |
| 5220 |
5317 | 5221 |
5318 | 5222 |
5319 | 5223 |
5320 | 5224 |
5321 | 5225 |
5322 | 5226 |
5323 | 5227 |
5324 | 5228 |
5325 | 5229 |
5326 | 5230 |
5327 | 5231 |
5328 for ac_func in memmem | 5232 for ac_header in $gl_header_list |
5329 do : | 5233 do : |
5330 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem" | 5234 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5331 if test "x$ac_cv_func_memmem" = x""yes; then : | 5235 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_include
s_default" |
| 5236 eval as_val=\$$as_ac_Header |
| 5237 if test "x$as_val" = x""yes; then : |
5332 cat >>confdefs.h <<_ACEOF | 5238 cat >>confdefs.h <<_ACEOF |
5333 #define HAVE_MEMMEM 1 | 5239 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
5334 _ACEOF | 5240 _ACEOF |
5335 | 5241 |
5336 else | 5242 fi |
5337 | 5243 |
5338 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" | |
5339 | |
5340 fi | |
5341 done | 5244 done |
5342 | 5245 |
5343 | 5246 |
5344 | 5247 |
5345 : | |
5346 | |
5347 | |
5348 | |
5349 | 5248 |
5350 | 5249 |
5351 if test $ac_cv_have_decl_memmem = no; then | |
5352 HAVE_DECL_MEMMEM=0 | |
5353 fi | |
5354 : | |
5355 | 5250 |
| 5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int"
>&5 |
| 5252 $as_echo_n "checking for unsigned long long int... " >&6; } |
| 5253 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then : |
| 5254 $as_echo_n "(cached) " >&6 |
| 5255 else |
| 5256 ac_cv_type_unsigned_long_long_int=yes |
| 5257 if test "x${ac_cv_prog_cc_c99-no}" = xno; then |
| 5258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5259 /* end confdefs.h. */ |
5356 | 5260 |
5357 gl_cv_c_multiarch=no | 5261 /* For now, do not test the preprocessor; as of 2007 there are too many |
5358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 5262 implementations with broken preprocessors. Perhaps this can |
5359 /* end confdefs.h. */ | 5263 be revisited in 2012. In the meantime, code should not expect |
5360 #ifndef __APPLE_CC__ | 5264 #if to work with literals wider than 32 bits. */ |
5361 not a universal capable compiler | 5265 /* Test literals. */ |
5362 #endif | 5266 long long int ll = 9223372036854775807ll; |
5363 typedef int dummy; | 5267 long long int nll = -9223372036854775807LL; |
| 5268 unsigned long long int ull = 18446744073709551615ULL; |
| 5269 /* Test constant expressions. */ |
| 5270 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) |
| 5271 ? 1 : -1)]; |
| 5272 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 |
| 5273 ? 1 : -1)]; |
| 5274 int i = 63; |
| 5275 int |
| 5276 main () |
| 5277 { |
| 5278 /* Test availability of runtime routines for shift and division. */ |
| 5279 long long int llmax = 9223372036854775807ll; |
| 5280 unsigned long long int ullmax = 18446744073709551615ull; |
| 5281 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) |
| 5282 | (llmax / ll) | (llmax % ll) |
| 5283 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) |
| 5284 | (ullmax / ull) | (ullmax % ull)); |
| 5285 ; |
| 5286 return 0; |
| 5287 } |
5364 | 5288 |
5365 _ACEOF | 5289 _ACEOF |
5366 if ac_fn_c_try_compile "$LINENO"; then : | 5290 if ac_fn_c_try_link "$LINENO"; then : |
5367 | 5291 |
5368 arch= | 5292 else |
5369 prev= | 5293 ac_cv_type_unsigned_long_long_int=no |
5370 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do | 5294 fi |
5371 if test -n "$prev"; then | 5295 rm -f core conftest.err conftest.$ac_objext \ |
5372 case $word in | 5296 conftest$ac_exeext conftest.$ac_ext |
5373 i?86 | x86_64 | ppc | ppc64) | 5297 fi |
5374 if test -z "$arch" || test "$arch" = "$word"; then | 5298 fi |
5375 arch="$word" | 5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_
int" >&5 |
5376 else | 5300 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } |
5377 gl_cv_c_multiarch=yes | 5301 if test $ac_cv_type_unsigned_long_long_int = yes; then |
5378 fi | |
5379 ;; | |
5380 esac | |
5381 prev= | |
5382 else | |
5383 if test "x$word" = "x-arch"; then | |
5384 prev=arch | |
5385 fi | |
5386 fi | |
5387 done | |
5388 | 5302 |
5389 fi | 5303 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h |
5390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5391 if test $gl_cv_c_multiarch = yes; then | |
5392 | 5304 |
5393 $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |
5394 | |
5395 APPLE_UNIVERSAL_BUILD=1 | |
5396 else | |
5397 APPLE_UNIVERSAL_BUILD=0 | |
5398 fi | 5305 fi |
5399 | 5306 |
5400 | 5307 |
5401 | 5308 |
5402 REPLACE_NULL=0; | 5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 |
5403 HAVE_WCHAR_T=1; | 5310 $as_echo_n "checking for long long int... " >&6; } |
5404 STDDEF_H=''; | 5311 if test "${ac_cv_type_long_long_int+set}" = set; then : |
5405 | |
5406 | |
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 | |
5408 $as_echo_n "checking for wchar_t... " >&6; } | |
5409 if test "${gt_cv_c_wchar_t+set}" = set; then : | |
5410 $as_echo_n "(cached) " >&6 | 5312 $as_echo_n "(cached) " >&6 |
5411 else | 5313 else |
| 5314 ac_cv_type_long_long_int=yes |
| 5315 if test "x${ac_cv_prog_cc_c99-no}" = xno; then |
| 5316 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int |
| 5317 if test $ac_cv_type_long_long_int = yes; then |
| 5318 if test "$cross_compiling" = yes; then : |
| 5319 : |
| 5320 else |
5412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 5321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5413 /* end confdefs.h. */ | 5322 /* end confdefs.h. */ |
5414 #include <stddef.h> | 5323 #include <limits.h> |
5415 wchar_t foo = (wchar_t)'\0'; | 5324 #ifndef LLONG_MAX |
| 5325 # define HALF \ |
| 5326 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) |
| 5327 # define LLONG_MAX (HALF - 1 + HALF) |
| 5328 #endif |
5416 int | 5329 int |
5417 main () | 5330 main () |
5418 { | 5331 { |
5419 | 5332 long long int n = 1; |
| 5333 int i; |
| 5334 for (i = 0; ; i++) |
| 5335 { |
| 5336 long long int m = n << i; |
| 5337 if (m >> i != n) |
| 5338 return 1; |
| 5339 if (LLONG_MAX / 2 < m) |
| 5340 break; |
| 5341 } |
| 5342 return 0; |
5420 ; | 5343 ; |
5421 return 0; | 5344 return 0; |
5422 } | 5345 } |
5423 _ACEOF | 5346 _ACEOF |
5424 if ac_fn_c_try_compile "$LINENO"; then : | 5347 if ac_fn_c_try_run "$LINENO"; then : |
5425 gt_cv_c_wchar_t=yes | 5348 |
5426 else | 5349 else |
5427 gt_cv_c_wchar_t=no | 5350 ac_cv_type_long_long_int=no |
5428 fi | 5351 fi |
5429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 5352 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5353 conftest.$ac_objext conftest.beam conftest.$ac_ext |
5430 fi | 5354 fi |
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 | |
5432 $as_echo "$gt_cv_c_wchar_t" >&6; } | |
5433 if test $gt_cv_c_wchar_t = yes; then | |
5434 | 5355 |
5435 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h | 5356 fi |
| 5357 fi |
| 5358 fi |
| 5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 |
| 5360 $as_echo "$ac_cv_type_long_long_int" >&6; } |
| 5361 if test $ac_cv_type_long_long_int = yes; then |
| 5362 |
| 5363 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h |
5436 | 5364 |
5437 fi | 5365 fi |
5438 | 5366 |
5439 | 5367 |
5440 | 5368 |
| 5369 |
| 5370 |
| 5371 |
| 5372 |
| 5373 |
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor sup
ports include_next" >&5 | 5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor sup
ports include_next" >&5 |
5442 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; } | 5375 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; } |
5443 if test "${gl_cv_have_include_next+set}" = set; then : | 5376 if test "${gl_cv_have_include_next+set}" = set; then : |
5444 $as_echo_n "(cached) " >&6 | 5377 $as_echo_n "(cached) " >&6 |
5445 else | 5378 else |
5446 rm -rf conftestd1a conftestd1b conftestd2 | 5379 rm -rf conftestd1a conftestd1b conftestd2 |
5447 mkdir conftestd1a conftestd1b conftestd2 | 5380 mkdir conftestd1a conftestd1b conftestd2 |
5448 cat <<EOF > conftestd1a/confte
st.h | 5381 cat <<EOF > conftestd1a/confte
st.h |
5449 #define DEFINED_IN_CONFTESTD1 | 5382 #define DEFINED_IN_CONFTESTD1 |
5450 #include_next <conftest.h> | 5383 #include_next <conftest.h> |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5511 INCLUDE_NEXT=include | 5444 INCLUDE_NEXT=include |
5512 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next | 5445 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next |
5513 else | 5446 else |
5514 INCLUDE_NEXT=include | 5447 INCLUDE_NEXT=include |
5515 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include | 5448 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include |
5516 fi | 5449 fi |
5517 fi | 5450 fi |
5518 | 5451 |
5519 | 5452 |
5520 | 5453 |
| 5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files
limit the line length" >&5 |
| 5455 $as_echo_n "checking whether system header files limit the line length... " >&6;
} |
| 5456 if test "${gl_cv_pragma_columns+set}" = set; then : |
| 5457 $as_echo_n "(cached) " >&6 |
| 5458 else |
| 5459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5460 /* end confdefs.h. */ |
| 5461 |
| 5462 #ifdef __TANDEM |
| 5463 choke me |
| 5464 #endif |
| 5465 |
| 5466 _ACEOF |
| 5467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5468 $EGREP "choke me" >/dev/null 2>&1; then : |
| 5469 gl_cv_pragma_columns=yes |
| 5470 else |
| 5471 gl_cv_pragma_columns=no |
| 5472 fi |
| 5473 rm -f conftest* |
5521 | 5474 |
5522 | 5475 |
5523 | |
5524 | |
5525 | |
5526 | |
5527 | |
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 | |
5529 $as_echo_n "checking for long long int... " >&6; } | |
5530 if test "${ac_cv_type_long_long_int+set}" = set; then : | |
5531 $as_echo_n "(cached) " >&6 | |
5532 else | |
5533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5534 /* end confdefs.h. */ | |
5535 | |
5536 /* For now, do not test the preprocessor; as of 2007 there are too many | |
5537 implementations with broken preprocessors. Perhaps this can | |
5538 be revisited in 2012. In the meantime, code should not expect | |
5539 #if to work with literals wider than 32 bits. */ | |
5540 /* Test literals. */ | |
5541 long long int ll = 9223372036854775807ll; | |
5542 long long int nll = -9223372036854775807LL; | |
5543 unsigned long long int ull = 18446744073709551615ULL; | |
5544 /* Test constant expressions. */ | |
5545 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) | |
5546 ? 1 : -1)]; | |
5547 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 | |
5548 ? 1 : -1)]; | |
5549 int i = 63; | |
5550 int | |
5551 main () | |
5552 { | |
5553 /* Test availability of runtime routines for shift and division. */ | |
5554 long long int llmax = 9223372036854775807ll; | |
5555 unsigned long long int ullmax = 18446744073709551615ull; | |
5556 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) | |
5557 | (llmax / ll) | (llmax % ll) | |
5558 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) | |
5559 | (ullmax / ull) | (ullmax % ull)); | |
5560 ; | |
5561 return 0; | |
5562 } | |
5563 | |
5564 _ACEOF | |
5565 if ac_fn_c_try_link "$LINENO"; then : | |
5566 if test "$cross_compiling" = yes; then : | |
5567 ac_cv_type_long_long_int=yes | |
5568 else | |
5569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5570 /* end confdefs.h. */ | |
5571 #include <limits.h> | |
5572 #ifndef LLONG_MAX | |
5573 # define HALF \ | |
5574 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) | |
5575 # define LLONG_MAX (HALF - 1 + HALF) | |
5576 #endif | |
5577 int | |
5578 main () | |
5579 { | |
5580 long long int n = 1; | |
5581 int i; | |
5582 for (i = 0; ; i++) | |
5583 { | |
5584 long long int m = n << i; | |
5585 if (m >> i != n) | |
5586 return 1; | |
5587 if (LLONG_MAX / 2 < m) | |
5588 break; | |
5589 } | |
5590 return 0; | |
5591 ; | |
5592 return 0; | |
5593 } | |
5594 _ACEOF | |
5595 if ac_fn_c_try_run "$LINENO"; then : | |
5596 ac_cv_type_long_long_int=yes | |
5597 else | |
5598 ac_cv_type_long_long_int=no | |
5599 fi | 5476 fi |
5600 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5 |
5601 conftest.$ac_objext conftest.beam conftest.$ac_ext | 5478 $as_echo "$gl_cv_pragma_columns" >&6; } |
5602 fi | 5479 if test $gl_cv_pragma_columns = yes; then |
5603 | 5480 PRAGMA_COLUMNS="#pragma COLUMNS 10000" |
5604 else | 5481 else |
5605 ac_cv_type_long_long_int=no | 5482 PRAGMA_COLUMNS= |
5606 fi | |
5607 rm -f core conftest.err conftest.$ac_objext \ | |
5608 conftest$ac_exeext conftest.$ac_ext | |
5609 fi | |
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 | |
5611 $as_echo "$ac_cv_type_long_long_int" >&6; } | |
5612 if test $ac_cv_type_long_long_int = yes; then | |
5613 | |
5614 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h | |
5615 | |
5616 fi | |
5617 | |
5618 | |
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int"
>&5 | |
5620 $as_echo_n "checking for unsigned long long int... " >&6; } | |
5621 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then : | |
5622 $as_echo_n "(cached) " >&6 | |
5623 else | |
5624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5625 /* end confdefs.h. */ | |
5626 | |
5627 /* For now, do not test the preprocessor; as of 2007 there are too many | |
5628 implementations with broken preprocessors. Perhaps this can | |
5629 be revisited in 2012. In the meantime, code should not expect | |
5630 #if to work with literals wider than 32 bits. */ | |
5631 /* Test literals. */ | |
5632 long long int ll = 9223372036854775807ll; | |
5633 long long int nll = -9223372036854775807LL; | |
5634 unsigned long long int ull = 18446744073709551615ULL; | |
5635 /* Test constant expressions. */ | |
5636 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) | |
5637 ? 1 : -1)]; | |
5638 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 | |
5639 ? 1 : -1)]; | |
5640 int i = 63; | |
5641 int | |
5642 main () | |
5643 { | |
5644 /* Test availability of runtime routines for shift and division. */ | |
5645 long long int llmax = 9223372036854775807ll; | |
5646 unsigned long long int ullmax = 18446744073709551615ull; | |
5647 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) | |
5648 | (llmax / ll) | (llmax % ll) | |
5649 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) | |
5650 | (ullmax / ull) | (ullmax % ull)); | |
5651 ; | |
5652 return 0; | |
5653 } | |
5654 | |
5655 _ACEOF | |
5656 if ac_fn_c_try_link "$LINENO"; then : | |
5657 ac_cv_type_unsigned_long_long_int=yes | |
5658 else | |
5659 ac_cv_type_unsigned_long_long_int=no | |
5660 fi | |
5661 rm -f core conftest.err conftest.$ac_objext \ | |
5662 conftest$ac_exeext conftest.$ac_ext | |
5663 fi | |
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_
int" >&5 | |
5665 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } | |
5666 if test $ac_cv_type_unsigned_long_long_int = yes; then | |
5667 | |
5668 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h | |
5669 | |
5670 fi | 5483 fi |
5671 | 5484 |
5672 | 5485 |
5673 | 5486 |
5674 | 5487 |
5675 | 5488 |
5676 | 5489 |
5677 | 5490 |
5678 | 5491 |
| 5492 gl_cv_c_multiarch=no |
| 5493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5494 /* end confdefs.h. */ |
| 5495 #ifndef __APPLE_CC__ |
| 5496 not a universal capable compiler |
| 5497 #endif |
| 5498 typedef int dummy; |
5679 | 5499 |
5680 | |
5681 | |
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&
5 | |
5683 $as_echo_n "checking for C/C++ restrict keyword... " >&6; } | |
5684 if test "${ac_cv_c_restrict+set}" = set; then : | |
5685 $as_echo_n "(cached) " >&6 | |
5686 else | |
5687 ac_cv_c_restrict=no | |
5688 # The order here caters to the fact that C++ does not require restrict. | |
5689 for ac_kw in __restrict __restrict__ _Restrict restrict; do | |
5690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5691 /* end confdefs.h. */ | |
5692 typedef int * int_ptr; | |
5693 int foo (int_ptr $ac_kw ip) { | |
5694 return ip[0]; | |
5695 } | |
5696 int | |
5697 main () | |
5698 { | |
5699 int s[1]; | |
5700 int * $ac_kw t = s; | |
5701 t[0] = 0; | |
5702 return foo(t) | |
5703 ; | |
5704 return 0; | |
5705 } | |
5706 _ACEOF | 5500 _ACEOF |
5707 if ac_fn_c_try_compile "$LINENO"; then : | 5501 if ac_fn_c_try_compile "$LINENO"; then : |
5708 ac_cv_c_restrict=$ac_kw | 5502 |
| 5503 arch= |
| 5504 prev= |
| 5505 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do |
| 5506 if test -n "$prev"; then |
| 5507 case $word in |
| 5508 i?86 | x86_64 | ppc | ppc64) |
| 5509 if test -z "$arch" || test "$arch" = "$word"; then |
| 5510 arch="$word" |
| 5511 else |
| 5512 gl_cv_c_multiarch=yes |
| 5513 fi |
| 5514 ;; |
| 5515 esac |
| 5516 prev= |
| 5517 else |
| 5518 if test "x$word" = "x-arch"; then |
| 5519 prev=arch |
| 5520 fi |
| 5521 fi |
| 5522 done |
| 5523 |
5709 fi | 5524 fi |
5710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 5525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5711 test "$ac_cv_c_restrict" != no && break | 5526 if test $gl_cv_c_multiarch = yes; then |
5712 done | 5527 APPLE_UNIVERSAL_BUILD=1 |
5713 | 5528 else |
5714 fi | 5529 APPLE_UNIVERSAL_BUILD=0 |
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 | 5530 fi |
5716 $as_echo "$ac_cv_c_restrict" >&6; } | |
5717 | |
5718 case $ac_cv_c_restrict in | |
5719 restrict) ;; | |
5720 no) $as_echo "#define restrict /**/" >>confdefs.h | |
5721 ;; | |
5722 *) cat >>confdefs.h <<_ACEOF | |
5723 #define restrict $ac_cv_c_restrict | |
5724 _ACEOF | |
5725 ;; | |
5726 esac | |
5727 | 5531 |
5728 | 5532 |
5729 | 5533 |
5730 | 5534 |
5731 | 5535 |
| 5536 if test $ac_cv_type_long_long_int = yes; then |
| 5537 HAVE_LONG_LONG_INT=1 |
| 5538 else |
| 5539 HAVE_LONG_LONG_INT=0 |
| 5540 fi |
| 5541 |
| 5542 |
| 5543 if test $ac_cv_type_unsigned_long_long_int = yes; then |
| 5544 HAVE_UNSIGNED_LONG_LONG_INT=1 |
| 5545 else |
| 5546 HAVE_UNSIGNED_LONG_LONG_INT=0 |
| 5547 fi |
5732 | 5548 |
5733 | 5549 |
5734 | 5550 |
| 5551 : |
| 5552 |
| 5553 |
| 5554 |
| 5555 |
| 5556 |
| 5557 if test $ac_cv_header_wchar_h = yes; then |
| 5558 HAVE_WCHAR_H=1 |
| 5559 else |
| 5560 HAVE_WCHAR_H=0 |
| 5561 fi |
| 5562 |
| 5563 |
| 5564 if test $ac_cv_header_inttypes_h = yes; then |
| 5565 HAVE_INTTYPES_H=1 |
| 5566 else |
| 5567 HAVE_INTTYPES_H=0 |
| 5568 fi |
| 5569 |
| 5570 |
| 5571 if test $ac_cv_header_sys_types_h = yes; then |
| 5572 HAVE_SYS_TYPES_H=1 |
| 5573 else |
| 5574 HAVE_SYS_TYPES_H=0 |
| 5575 fi |
| 5576 |
| 5577 |
| 5578 |
5735 | 5579 |
5736 | 5580 |
5737 | 5581 |
5738 | 5582 |
5739 | 5583 |
5740 : | 5584 : |
5741 | 5585 |
5742 | 5586 |
5743 | 5587 |
5744 | 5588 |
5745 | 5589 |
5746 | 5590 |
5747 | 5591 |
5748 if test $gl_cv_have_include_next = yes; then | |
5749 gl_cv_next_string_h='<'string.h'>' | |
5750 else | |
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <strin
g.h>" >&5 | |
5752 $as_echo_n "checking absolute name of <string.h>... " >&6; } | |
5753 if test "${gl_cv_next_string_h+set}" = set; then : | |
5754 $as_echo_n "(cached) " >&6 | |
5755 else | |
5756 | |
5757 if test $ac_cv_header_string_h = yes; then | |
5758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5759 /* end confdefs.h. */ | |
5760 #include <string.h> | |
5761 | |
5762 _ACEOF | |
5763
case "$host_os" in | |
5764 aix*) gl_absname_cpp="$ac_cpp -C" ;; | |
5765 *) gl_absname_cpp="$ac_cpp" ;; | |
5766 esac | |
5767 gl_cv_next_string_h='"'`(eval "$
gl_absname_cpp conftest.$ac_ext") 2>&5 | | |
5768 sed -n '\#/string.h#{ | |
5769 s#.*"\(.*/string.h\)".*#\1# | |
5770 s#^/[^/]#//&# | |
5771 p | |
5772 q | |
5773 }'`'"' | |
5774 else | |
5775 gl_cv_next_string_h='<'string.h'>' | |
5776 fi | |
5777 | |
5778 fi | |
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5 | |
5780 $as_echo "$gl_cv_next_string_h" >&6; } | |
5781 fi | |
5782 NEXT_STRING_H=$gl_cv_next_string_h | |
5783 | |
5784 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = b
uggy; then | |
5785 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' | |
5786 gl_next_as_first_directive='<'string.h'>' | |
5787 else | |
5788 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' | |
5789 gl_next_as_first_directive=$gl_cv_next_string_h | |
5790 fi | |
5791 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive | |
5792 | |
5793 | |
5794 | |
5795 | |
5796 | |
5797 for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul str
dup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal
strverscmp; do | |
5798 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` | |
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declar
ed without a macro" >&5 | |
5800 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } | |
5801 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then : | |
5802 $as_echo_n "(cached) " >&6 | |
5803 else | |
5804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5805 /* end confdefs.h. */ | |
5806 #include <string.h> | |
5807 | |
5808 int | |
5809 main () | |
5810 { | |
5811 #undef $gl_func | |
5812 (void) $gl_func; | |
5813 ; | |
5814 return 0; | |
5815 } | |
5816 _ACEOF | |
5817 if ac_fn_c_try_compile "$LINENO"; then : | |
5818 eval "$as_gl_Symbol=yes" | |
5819 else | |
5820 eval "$as_gl_Symbol=no" | |
5821 fi | |
5822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5823 fi | |
5824 eval ac_res=\$$as_gl_Symbol | |
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
5826 $as_echo "$ac_res" >&6; } | |
5827 eval as_val=\$$as_gl_Symbol | |
5828 if test "x$as_val" = x""yes; then : | |
5829 cat >>confdefs.h <<_ACEOF | |
5830 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 | |
5831 _ACEOF | |
5832 | |
5833 eval ac_cv_have_decl_$gl_func=yes | |
5834 fi | |
5835 done | |
5836 | |
5837 | |
5838 | |
5839 GNULIB_BTOWC=0; | |
5840 GNULIB_WCTOB=0; | |
5841 GNULIB_MBSINIT=0; | |
5842 GNULIB_MBRTOWC=0; | |
5843 GNULIB_MBRLEN=0; | |
5844 GNULIB_MBSRTOWCS=0; | |
5845 GNULIB_MBSNRTOWCS=0; | |
5846 GNULIB_WCRTOMB=0; | |
5847 GNULIB_WCSRTOMBS=0; | |
5848 GNULIB_WCSNRTOMBS=0; | |
5849 GNULIB_WCWIDTH=0; | |
5850 HAVE_BTOWC=1; | |
5851 HAVE_MBSINIT=1; | |
5852 HAVE_MBRTOWC=1; | |
5853 HAVE_MBRLEN=1; | |
5854 HAVE_MBSRTOWCS=1; | |
5855 HAVE_MBSNRTOWCS=1; | |
5856 HAVE_WCRTOMB=1; | |
5857 HAVE_WCSRTOMBS=1; | |
5858 HAVE_WCSNRTOMBS=1; | |
5859 HAVE_DECL_WCTOB=1; | |
5860 HAVE_DECL_WCWIDTH=1; | |
5861 REPLACE_MBSTATE_T=0; | |
5862 REPLACE_BTOWC=0; | |
5863 REPLACE_WCTOB=0; | |
5864 REPLACE_MBSINIT=0; | |
5865 REPLACE_MBRTOWC=0; | |
5866 REPLACE_MBRLEN=0; | |
5867 REPLACE_MBSRTOWCS=0; | |
5868 REPLACE_MBSNRTOWCS=0; | |
5869 REPLACE_WCRTOMB=0; | |
5870 REPLACE_WCSRTOMBS=0; | |
5871 REPLACE_WCSNRTOMBS=0; | |
5872 REPLACE_WCWIDTH=0; | |
5873 | |
5874 | |
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h>
uses 'inline' correctly" >&5 | |
5876 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; } | |
5877 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then : | |
5878 $as_echo_n "(cached) " >&6 | |
5879 else | |
5880 gl_cv_header_wchar_h_correct_inline=yes | |
5881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5882 /* end confdefs.h. */ | |
5883 | |
5884 #define wcstod renamed_wcstod | |
5885 #include <wchar.h> | |
5886 extern int zero (void); | |
5887 int main () { return zero(); } | |
5888 | |
5889 _ACEOF | |
5890 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5891 (eval $ac_compile) 2>&5 | |
5892 ac_status=$? | |
5893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5894 test $ac_status = 0; }; then | |
5895 mv conftest.$ac_objext conftest1.$ac_objext | |
5896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5897 /* end confdefs.h. */ | |
5898 | |
5899 #define wcstod renamed_wcstod | |
5900 #include <wchar.h> | |
5901 int zero (void) { return 0; } | |
5902 | |
5903 _ACEOF | |
5904 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >
&5 | |
5905 (eval $ac_compile) 2>&5 | |
5906 ac_status=$? | |
5907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5908 test $ac_status = 0; }; then | |
5909 mv conftest.$ac_objext conftest2.$ac_objext | |
5910 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conf
test2.$ac_objext $LIBS >&5 2>&1; then | |
5911 : | |
5912 else | |
5913 gl_cv_header_wchar_h_correct_inline=no | |
5914 fi | |
5915 fi | |
5916 fi | |
5917 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext | |
5918 | |
5919 fi | |
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_i
nline" >&5 | |
5921 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; } | |
5922 if test $gl_cv_header_wchar_h_correct_inline = no; then | |
5923 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFL
AGS). | |
5924 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in | |
5925 C99 mode. You have four options: | |
5926 - Add the flag -fgnu89-inline to CC and reconfigure, or | |
5927 - Fix your include files, using parts of | |
5928 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d70
6c2e18c929d0e69a621>, or | |
5929 - Use a gcc version older than 4.3, or | |
5930 - Don't use the flags -std=c99 or -std=gnu99. | |
5931 Configuration aborted." "$LINENO" 5 | |
5932 fi | |
5933 | |
5934 | |
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 | |
5936 $as_echo_n "checking for wint_t... " >&6; } | |
5937 if test "${gt_cv_c_wint_t+set}" = set; then : | |
5938 $as_echo_n "(cached) " >&6 | |
5939 else | |
5940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5941 /* end confdefs.h. */ | |
5942 | |
5943 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before | |
5944 <wchar.h>. | |
5945 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included | |
5946 before <wchar.h>. */ | |
5947 #include <stddef.h> | |
5948 #include <stdio.h> | |
5949 #include <time.h> | |
5950 #include <wchar.h> | |
5951 wint_t foo = (wchar_t)'\0'; | |
5952 int | |
5953 main () | |
5954 { | |
5955 | |
5956 ; | |
5957 return 0; | |
5958 } | |
5959 _ACEOF | |
5960 if ac_fn_c_try_compile "$LINENO"; then : | |
5961 gt_cv_c_wint_t=yes | |
5962 else | |
5963 gt_cv_c_wint_t=no | |
5964 fi | |
5965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5966 fi | |
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 | |
5968 $as_echo "$gt_cv_c_wint_t" >&6; } | |
5969 if test $gt_cv_c_wint_t = yes; then | |
5970 | |
5971 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h | |
5972 | |
5973 fi | |
5974 | |
5975 | |
5976 if false; then | |
5977 GL_COND_LIBTOOL_TRUE= | |
5978 GL_COND_LIBTOOL_FALSE='#' | |
5979 else | |
5980 GL_COND_LIBTOOL_TRUE='#' | |
5981 GL_COND_LIBTOOL_FALSE= | |
5982 fi | |
5983 | |
5984 gl_cond_libtool=false | |
5985 gl_libdeps= | |
5986 gl_ltlibdeps= | |
5987 gl_m4_base='gnulib/m4' | |
5988 | |
5989 | |
5990 | |
5991 | |
5992 | |
5993 | |
5994 | |
5995 | |
5996 | |
5997 gl_source_base='gnulib' | |
5998 # Code from module arg-nonnull: | |
5999 # Code from module c++defs: | |
6000 # Code from module extensions: | |
6001 # Code from module include_next: | |
6002 # Code from module memchr: | |
6003 | |
6004 | |
6005 | |
6006 | |
6007 GNULIB_MEMCHR=1 | |
6008 | |
6009 | |
6010 | |
6011 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h | |
6012 | |
6013 | |
6014 | |
6015 # Code from module memmem: | |
6016 | |
6017 | |
6018 if test $ac_cv_have_decl_memmem = yes; then | |
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in li
near time" >&5 | |
6020 $as_echo_n "checking whether memmem works in linear time... " >&6; } | |
6021 if test "${gl_cv_func_memmem_works+set}" = set; then : | |
6022 $as_echo_n "(cached) " >&6 | |
6023 else | |
6024 if test "$cross_compiling" = yes; then : | |
6025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6026 /* end confdefs.h. */ | |
6027 | |
6028 #include <features.h> | |
6029 #ifdef __GNU_LIBRARY__ | |
6030 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2) | |
6031 Lucky user | |
6032 #endif | |
6033 #endif | |
6034 #ifdef __CYGWIN__ | |
6035 #include <cygwin/version.h> | |
6036 #if CYGWIN_VERSION_DLL_MAJOR >= 1007 | |
6037 Lucky user | |
6038 #endif | |
6039 #endif | |
6040 | |
6041 _ACEOF | |
6042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6043 $EGREP "Lucky user" >/dev/null 2>&1; then : | |
6044 gl_cv_func_memmem_works=yes | |
6045 else | |
6046 gl_cv_func_memmem_works="guessing no" | |
6047 fi | |
6048 rm -f conftest* | |
6049 | |
6050 | |
6051 else | |
6052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6053 /* end confdefs.h. */ | |
6054 | |
6055 #include <signal.h> /* for signal */ | |
6056 #include <string.h> /* for memmem */ | |
6057 #include <stdlib.h> /* for malloc */ | |
6058 #include <unistd.h> /* for alarm */ | |
6059 | |
6060 int | |
6061 main () | |
6062 { | |
6063 size_t m = 1000000; | |
6064 char *haystack = (char *) malloc (2 * m + 1); | |
6065 char *needle = (char *) malloc (m + 1); | |
6066 void *result = 0; | |
6067 /* Failure to compile this test due to missing alarm is okay, | |
6068 since all such platforms (mingw) also lack memmem. */ | |
6069 signal (SIGALRM, SIG_DFL); | |
6070 alarm (5); | |
6071 /* Check for quadratic performance. */ | |
6072 if (haystack && needle) | |
6073 { | |
6074 memset (haystack, 'A', 2 * m); | |
6075 haystack[2 * m] = 'B'; | |
6076 memset (needle, 'A', m); | |
6077 needle[m] = 'B'; | |
6078 result = memmem (haystack, 2 * m + 1, needle, m + 1); | |
6079 } | |
6080 /* Check for empty needle behavior. */ | |
6081 return !result || !memmem ("a", 1, 0, 0); | |
6082 ; | |
6083 return 0; | |
6084 } | |
6085 _ACEOF | |
6086 if ac_fn_c_try_run "$LINENO"; then : | |
6087 gl_cv_func_memmem_works=yes | |
6088 else | |
6089 gl_cv_func_memmem_works=no | |
6090 fi | |
6091 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6092 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6093 fi | |
6094 | |
6095 | |
6096 fi | |
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works" >&5 | |
6098 $as_echo "$gl_cv_func_memmem_works" >&6; } | |
6099 if test "$gl_cv_func_memmem_works" != yes; then | |
6100 REPLACE_MEMMEM=1 | |
6101 | |
6102 | |
6103 | |
6104 | |
6105 | |
6106 | |
6107 | |
6108 | |
6109 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext" | |
6110 | |
6111 fi | |
6112 fi | |
6113 | |
6114 # Code from module memmem-simple: | |
6115 | |
6116 | |
6117 | |
6118 | |
6119 | |
6120 | |
6121 | |
6122 | |
6123 | |
6124 | |
6125 | |
6126 | |
6127 for ac_func in memmem | |
6128 do : | |
6129 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem" | |
6130 if test "x$ac_cv_func_memmem" = x""yes; then : | |
6131 cat >>confdefs.h <<_ACEOF | |
6132 #define HAVE_MEMMEM 1 | |
6133 _ACEOF | |
6134 | |
6135 else | |
6136 | |
6137 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" | |
6138 | |
6139 fi | |
6140 done | |
6141 | |
6142 | |
6143 | |
6144 : | |
6145 | |
6146 | |
6147 | |
6148 | |
6149 | |
6150 if test $ac_cv_have_decl_memmem = no; then | |
6151 HAVE_DECL_MEMMEM=0 | |
6152 fi | |
6153 : | |
6154 | |
6155 | |
6156 | |
6157 | |
6158 GNULIB_MEMMEM=1 | |
6159 | |
6160 | |
6161 | |
6162 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h | |
6163 | |
6164 | |
6165 | |
6166 # Code from module multiarch: | |
6167 | |
6168 # Code from module stddef: | |
6169 | |
6170 | |
6171 | |
6172 if test $gt_cv_c_wchar_t = no; then | |
6173 HAVE_WCHAR_T=0 | |
6174 STDDEF_H=stddef.h | |
6175 fi | |
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in
arbitrary expressions" >&5 | |
6177 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6;
} | |
6178 if test "${gl_cv_decl_null_works+set}" = set; then : | |
6179 $as_echo_n "(cached) " >&6 | |
6180 else | |
6181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6182 /* end confdefs.h. */ | |
6183 #include <stddef.h> | |
6184 int test[2 * (sizeof NULL == sizeof (void *)) -1]; | |
6185 | |
6186 int | |
6187 main () | |
6188 { | |
6189 | |
6190 ; | |
6191 return 0; | |
6192 } | |
6193 _ACEOF | |
6194 if ac_fn_c_try_compile "$LINENO"; then : | |
6195 gl_cv_decl_null_works=yes | |
6196 else | |
6197 gl_cv_decl_null_works=no | |
6198 fi | |
6199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6200 fi | |
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5 | |
6202 $as_echo "$gl_cv_decl_null_works" >&6; } | |
6203 if test $gl_cv_decl_null_works = no; then | |
6204 REPLACE_NULL=1 | |
6205 STDDEF_H=stddef.h | |
6206 fi | |
6207 if test -n "$STDDEF_H"; then | |
6208 | |
6209 | |
6210 | |
6211 | |
6212 : | |
6213 | |
6214 | |
6215 | |
6216 | |
6217 | |
6218 | |
6219 | |
6220 if test $gl_cv_have_include_next = yes; then | |
6221 gl_cv_next_stddef_h='<'stddef.h'>' | |
6222 else | |
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdde
f.h>" >&5 | |
6224 $as_echo_n "checking absolute name of <stddef.h>... " >&6; } | |
6225 if test "${gl_cv_next_stddef_h+set}" = set; then : | |
6226 $as_echo_n "(cached) " >&6 | |
6227 else | |
6228 | |
6229 if test $ac_cv_header_stddef_h = yes; then | |
6230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6231 /* end confdefs.h. */ | |
6232 #include <stddef.h> | |
6233 | |
6234 _ACEOF | |
6235
case "$host_os" in | |
6236 aix*) gl_absname_cpp="$ac_cpp -C" ;; | |
6237 *) gl_absname_cpp="$ac_cpp" ;; | |
6238 esac | |
6239 gl_cv_next_stddef_h='"'`(eval "$
gl_absname_cpp conftest.$ac_ext") 2>&5 | | |
6240 sed -n '\#/stddef.h#{ | |
6241 s#.*"\(.*/stddef.h\)".*#\1# | |
6242 s#^/[^/]#//&# | |
6243 p | |
6244 q | |
6245 }'`'"' | |
6246 else | |
6247 gl_cv_next_stddef_h='<'stddef.h'>' | |
6248 fi | |
6249 | |
6250 fi | |
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5 | |
6252 $as_echo "$gl_cv_next_stddef_h" >&6; } | |
6253 fi | |
6254 NEXT_STDDEF_H=$gl_cv_next_stddef_h | |
6255 | |
6256 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = b
uggy; then | |
6257 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' | |
6258 gl_next_as_first_directive='<'stddef.h'>' | |
6259 else | |
6260 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' | |
6261 gl_next_as_first_directive=$gl_cv_next_stddef_h | |
6262 fi | |
6263 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive | |
6264 | |
6265 | |
6266 | |
6267 fi | |
6268 | |
6269 # Code from module stdint: | |
6270 | |
6271 | |
6272 | |
6273 if test $ac_cv_type_long_long_int = yes; then | |
6274 HAVE_LONG_LONG_INT=1 | |
6275 else | |
6276 HAVE_LONG_LONG_INT=0 | |
6277 fi | |
6278 | |
6279 | |
6280 if test $ac_cv_type_unsigned_long_long_int = yes; then | |
6281 HAVE_UNSIGNED_LONG_LONG_INT=1 | |
6282 else | |
6283 HAVE_UNSIGNED_LONG_LONG_INT=0 | |
6284 fi | |
6285 | |
6286 | |
6287 if test $ac_cv_header_inttypes_h = yes; then | |
6288 HAVE_INTTYPES_H=1 | |
6289 else | |
6290 HAVE_INTTYPES_H=0 | |
6291 fi | |
6292 | |
6293 | |
6294 if test $ac_cv_header_sys_types_h = yes; then | |
6295 HAVE_SYS_TYPES_H=1 | |
6296 else | |
6297 HAVE_SYS_TYPES_H=0 | |
6298 fi | |
6299 | |
6300 | |
6301 | |
6302 | |
6303 | |
6304 | |
6305 : | |
6306 | |
6307 | |
6308 | |
6309 | |
6310 | |
6311 | |
6312 | 5592 |
6313 if test $gl_cv_have_include_next = yes; then | 5593 if test $gl_cv_have_include_next = yes; then |
6314 gl_cv_next_stdint_h='<'stdint.h'>' | 5594 gl_cv_next_stdint_h='<'stdint.h'>' |
6315 else | 5595 else |
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdin
t.h>" >&5 | 5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdin
t.h>" >&5 |
6317 $as_echo_n "checking absolute name of <stdint.h>... " >&6; } | 5597 $as_echo_n "checking absolute name of <stdint.h>... " >&6; } |
6318 if test "${gl_cv_next_stdint_h+set}" = set; then : | 5598 if test "${gl_cv_next_stdint_h+set}" = set; then : |
6319 $as_echo_n "(cached) " >&6 | 5599 $as_echo_n "(cached) " >&6 |
6320 else | 5600 else |
6321 | 5601 |
6322 if test $ac_cv_header_stdint_h = yes; then | 5602 if test $ac_cv_header_stdint_h = yes; then |
6323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 5603 |
| 5604 |
| 5605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6324 /* end confdefs.h. */ | 5606 /* end confdefs.h. */ |
6325 #include <stdint.h> | 5607 #include <stdint.h> |
6326 | 5608 |
6327 _ACEOF | 5609 _ACEOF |
6328
case "$host_os" in | 5610
case "$host_os" in |
6329 aix*) gl_absname_cpp="$ac_cpp -C" ;; | 5611 aix*) gl_absname_cpp="$ac_cpp -C" ;; |
6330 *) gl_absname_cpp="$ac_cpp" ;; | 5612 *) gl_absname_cpp="$ac_cpp" ;; |
6331 esac | 5613 esac |
6332 gl_cv_next_stdint_h='"'`(eval "$
gl_absname_cpp conftest.$ac_ext") 2>&5 | | 5614 |
6333 sed -n '\#/stdint.h#{ | 5615 case "$host_os" in |
6334 s#.*"\(.*/stdint.h\)".*#\1# | 5616 mingw*) |
6335 s#^/[^/]#//&# | 5617
gl_dirsep_regex='[/\\]' |
6336 p | 5618 ;; |
6337 q | 5619 *) |
6338 }'`'"' | 5620 gl_dirsep_regex='\/' |
| 5621 ;; |
| 5622 esac |
| 5623 gl_make_literal_regex_sed='s,[]$^\\
.*/[],\\&,g' |
| 5624 |
| 5625 gl_header_literal_regex=`echo 'stdint.h' \ |
| 5626 | sed -e "$gl_make_literal_regex_sed"` |
| 5627 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_re
gex}/"'{ |
| 5628 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".
*/\1/ |
| 5629 s|^/[^/]|//&| |
| 5630 p |
| 5631 q |
| 5632 }' |
| 5633 gl_cv_next_stdint_h=
'"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 5634 sed -n "$gl_absolute_header_sed"`'"' |
6339 else | 5635 else |
6340 gl_cv_next_stdint_h='<'stdint.h'>' | 5636 gl_cv_next_stdint_h='<'stdint.h'>' |
6341 fi | 5637 fi |
| 5638 |
6342 | 5639 |
6343 fi | 5640 fi |
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5 | 5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5 |
6345 $as_echo "$gl_cv_next_stdint_h" >&6; } | 5642 $as_echo "$gl_cv_next_stdint_h" >&6; } |
6346 fi | 5643 fi |
6347 NEXT_STDINT_H=$gl_cv_next_stdint_h | 5644 NEXT_STDINT_H=$gl_cv_next_stdint_h |
6348 | 5645 |
6349 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = b
uggy; then | 5646 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = b
uggy; then |
6350 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' | 5647 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
6351 gl_next_as_first_directive='<'stdint.h'>' | 5648 gl_next_as_first_directive='<'stdint.h'>' |
6352 else | 5649 else |
6353 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' | 5650 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
6354 gl_next_as_first_directive=$gl_cv_next_stdint_h | 5651 gl_next_as_first_directive=$gl_cv_next_stdint_h |
6355 fi | 5652 fi |
6356 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive | 5653 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive |
6357 | 5654 |
6358 | 5655 |
6359 | 5656 |
| 5657 |
6360 if test $ac_cv_header_stdint_h = yes; then | 5658 if test $ac_cv_header_stdint_h = yes; then |
6361 HAVE_STDINT_H=1 | 5659 HAVE_STDINT_H=1 |
6362 else | 5660 else |
6363 HAVE_STDINT_H=0 | 5661 HAVE_STDINT_H=0 |
6364 fi | 5662 fi |
6365 | 5663 |
6366 | 5664 |
6367 if test $ac_cv_header_stdint_h = yes; then | 5665 if test $ac_cv_header_stdint_h = yes; then |
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms
to C99" >&5 | 5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms
to C99" >&5 |
6369 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; } | 5667 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; } |
6370 if test "${gl_cv_header_working_stdint_h+set}" = set; then : | 5668 if test "${gl_cv_header_working_stdint_h+set}" = set; then : |
6371 $as_echo_n "(cached) " >&6 | 5669 $as_echo_n "(cached) " >&6 |
6372 else | 5670 else |
6373 gl_cv_header_working_stdint_h=no | 5671 gl_cv_header_working_stdint_h=no |
6374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 5672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6375 /* end confdefs.h. */ | 5673 /* end confdefs.h. */ |
6376 | 5674 |
6377 | 5675 |
6378 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */ | |
6379 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */ | |
6380 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ | 5676 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ |
6381 #include <stdint.h> | 5677 #include <stdint.h> |
6382 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */ | 5678 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */ |
6383 #if !(defined WCHAR_MIN && defined WCHAR_MAX) | 5679 #if !(defined WCHAR_MIN && defined WCHAR_MAX) |
6384 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>" | 5680 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>" |
6385 #endif | 5681 #endif |
6386 | 5682 |
6387 | 5683 |
6388 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | 5684 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
6389 included before <wchar.h>. */ | 5685 included before <wchar.h>. */ |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6463 intptr_t gmin = INTPTR_MIN; | 5759 intptr_t gmin = INTPTR_MIN; |
6464 #endif | 5760 #endif |
6465 #ifdef UINTPTR_MAX | 5761 #ifdef UINTPTR_MAX |
6466 uintptr_t h = UINTPTR_MAX; | 5762 uintptr_t h = UINTPTR_MAX; |
6467 #endif | 5763 #endif |
6468 intmax_t i = INTMAX_MAX; | 5764 intmax_t i = INTMAX_MAX; |
6469 uintmax_t j = UINTMAX_MAX; | 5765 uintmax_t j = UINTMAX_MAX; |
6470 | 5766 |
6471 #include <limits.h> /* for CHAR_BIT */ | 5767 #include <limits.h> /* for CHAR_BIT */ |
6472 #define TYPE_MINIMUM(t) \ | 5768 #define TYPE_MINIMUM(t) \ |
6473 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))) | 5769 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t))) |
6474 #define TYPE_MAXIMUM(t) \ | 5770 #define TYPE_MAXIMUM(t) \ |
6475 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))) | 5771 ((t) ((t) 0 < (t) -1 \ |
| 5772 ? (t) -1 \ |
| 5773 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1))) |
6476 struct s { | 5774 struct s { |
6477 int check_PTRDIFF: | 5775 int check_PTRDIFF: |
6478 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t) | 5776 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t) |
6479 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t) | 5777 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t) |
6480 ? 1 : -1; | 5778 ? 1 : -1; |
6481 /* Detect bug in FreeBSD 6.0 / ia64. */ | 5779 /* Detect bug in FreeBSD 6.0 / ia64. */ |
6482 int check_SIG_ATOMIC: | 5780 int check_SIG_ATOMIC: |
6483 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t) | 5781 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t) |
6484 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t) | 5782 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t) |
6485 ? 1 : -1; | 5783 ? 1 : -1; |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6536 _ACEOF | 5834 _ACEOF |
6537 if ac_fn_c_try_compile "$LINENO"; then : | 5835 if ac_fn_c_try_compile "$LINENO"; then : |
6538 if test "$cross_compiling" =
yes; then : | 5836 if test "$cross_compiling" =
yes; then : |
6539 gl_cv_header_working_stdint_h=yes | 5837 gl_cv_header_working_stdint_h=yes |
6540 | 5838 |
6541 else | 5839 else |
6542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6543 /* end confdefs.h. */ | 5841 /* end confdefs.h. */ |
6544 | 5842 |
6545 | 5843 |
6546 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */ | |
6547 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */ | |
6548 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ | 5844 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ |
6549 #include <stdint.h> | 5845 #include <stdint.h> |
6550 | 5846 |
6551 | 5847 |
6552 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | 5848 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
6553 included before <wchar.h>. */ | 5849 included before <wchar.h>. */ |
6554 #include <stddef.h> | 5850 #include <stddef.h> |
6555 #include <signal.h> | 5851 #include <signal.h> |
6556 #if HAVE_WCHAR_H | 5852 #if HAVE_WCHAR_H |
6557 # include <stdio.h> | 5853 # include <stdio.h> |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6601 for (mv = macro_values; *mv != NULL; mv++) | 5897 for (mv = macro_values; *mv != NULL; mv++) |
6602 { | 5898 { |
6603 const char *value = *mv; | 5899 const char *value = *mv; |
6604 /* Test whether it looks like a cast expression. */ | 5900 /* Test whether it looks like a cast expression. */ |
6605 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0 | 5901 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0 |
6606 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0 | 5902 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0 |
6607 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0 | 5903 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0 |
6608 || strncmp (value, "((int)"/*)*/, 6) == 0 | 5904 || strncmp (value, "((int)"/*)*/, 6) == 0 |
6609 || strncmp (value, "((signed short)"/*)*/, 15) == 0 | 5905 || strncmp (value, "((signed short)"/*)*/, 15) == 0 |
6610 || strncmp (value, "((signed char)"/*)*/, 14) == 0) | 5906 || strncmp (value, "((signed char)"/*)*/, 14) == 0) |
6611 return 1; | 5907 return mv - macro_values + 1; |
6612 } | 5908 } |
6613 return 0; | 5909 return 0; |
6614 | 5910 |
6615 ; | 5911 ; |
6616 return 0; | 5912 return 0; |
6617 } | 5913 } |
6618 _ACEOF | 5914 _ACEOF |
6619 if ac_fn_c_try_run "$LINENO"; then : | 5915 if ac_fn_c_try_run "$LINENO"; then : |
6620 gl_cv_header_working_stdint_h=yes | 5916 gl_cv_header_working_stdint_h=yes |
6621 fi | 5917 fi |
6622 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 5918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6623 conftest.$ac_objext conftest.beam conftest.$ac_ext | 5919 conftest.$ac_objext conftest.beam conftest.$ac_ext |
6624 fi | 5920 fi |
6625 | 5921 |
6626 | 5922 |
6627 fi | 5923 fi |
6628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 5924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6629 | 5925 |
6630 fi | 5926 fi |
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h"
>&5 | 5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h"
>&5 |
6632 $as_echo "$gl_cv_header_working_stdint_h" >&6; } | 5928 $as_echo "$gl_cv_header_working_stdint_h" >&6; } |
6633 fi | 5929 fi |
6634 if test "$gl_cv_header_working_stdint_h" = yes; then | 5930 if test "$gl_cv_header_working_stdint_h" = yes; then |
6635 STDINT_H= | 5931 STDINT_H= |
6636 else | 5932 else |
6637 for ac_header in sys/inttypes.h sys/bitypes.h | 5933 for ac_header in sys/inttypes.h sys/bitypes.h |
6638 do : | 5934 do : |
6639 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 5935 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6640 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_include
s_default" | 5936 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_include
s_default" |
6641 eval as_val=\$$as_ac_Header | |
6642 if test "x$as_val" = x""yes; then : | |
6643 cat >>confdefs.h <<_ACEOF | |
6644 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6645 _ACEOF | |
6646 | |
6647 fi | |
6648 | |
6649 done | |
6650 | |
6651 if test $ac_cv_header_sys_inttypes_h = yes; then | |
6652 HAVE_SYS_INTTYPES_H=1 | |
6653 else | |
6654 HAVE_SYS_INTTYPES_H=0 | |
6655 fi | |
6656 | |
6657 if test $ac_cv_header_sys_bitypes_h = yes; then | |
6658 HAVE_SYS_BITYPES_H=1 | |
6659 else | |
6660 HAVE_SYS_BITYPES_H=0 | |
6661 fi | |
6662 | |
6663 | |
6664 | |
6665 : | |
6666 | |
6667 | |
6668 | |
6669 | |
6670 | |
6671 | |
6672 | |
6673 | |
6674 if test $APPLE_UNIVERSAL_BUILD = 0; then | |
6675 | |
6676 | |
6677 for gltype in ptrdiff_t size_t ; do | |
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >
&5 | |
6679 $as_echo_n "checking for bit size of $gltype... " >&6; } | |
6680 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; };
then : | |
6681 $as_echo_n "(cached) " >&6 | |
6682 else | |
6683 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"
" | |
6684 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
6685 included before <wchar.h>. */ | |
6686 #include <stddef.h> | |
6687 #include <signal.h> | |
6688 #if HAVE_WCHAR_H | |
6689 # include <stdio.h> | |
6690 # include <time.h> | |
6691 # include <wchar.h> | |
6692 #endif | |
6693 | |
6694 #include <limits.h>"; then : | |
6695 | |
6696 else | |
6697 result=unknown | |
6698 fi | |
6699 | |
6700 eval gl_cv_bitsizeof_${gltype}=\$result | |
6701 | |
6702 fi | |
6703 eval ac_res=\$gl_cv_bitsizeof_${gltype} | |
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
6705 $as_echo "$ac_res" >&6; } | |
6706 eval result=\$gl_cv_bitsizeof_${gltype} | |
6707 if test $result = unknown; then | |
6708 result=0 | |
6709 fi | |
6710 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQ
RSTUVWXYZ_'` | |
6711 cat >>confdefs.h <<_ACEOF | |
6712 #define BITSIZEOF_${GLTYPE} $result | |
6713 _ACEOF | |
6714 | |
6715 eval BITSIZEOF_${GLTYPE}=\$result | |
6716 done | |
6717 | |
6718 | |
6719 fi | |
6720 | |
6721 | |
6722 for gltype in sig_atomic_t wchar_t wint_t ; do | |
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >
&5 | |
6724 $as_echo_n "checking for bit size of $gltype... " >&6; } | |
6725 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; };
then : | |
6726 $as_echo_n "(cached) " >&6 | |
6727 else | |
6728 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"
" | |
6729 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
6730 included before <wchar.h>. */ | |
6731 #include <stddef.h> | |
6732 #include <signal.h> | |
6733 #if HAVE_WCHAR_H | |
6734 # include <stdio.h> | |
6735 # include <time.h> | |
6736 # include <wchar.h> | |
6737 #endif | |
6738 | |
6739 #include <limits.h>"; then : | |
6740 | |
6741 else | |
6742 result=unknown | |
6743 fi | |
6744 | |
6745 eval gl_cv_bitsizeof_${gltype}=\$result | |
6746 | |
6747 fi | |
6748 eval ac_res=\$gl_cv_bitsizeof_${gltype} | |
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
6750 $as_echo "$ac_res" >&6; } | |
6751 eval result=\$gl_cv_bitsizeof_${gltype} | |
6752 if test $result = unknown; then | |
6753 result=0 | |
6754 fi | |
6755 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQ
RSTUVWXYZ_'` | |
6756 cat >>confdefs.h <<_ACEOF | |
6757 #define BITSIZEOF_${GLTYPE} $result | |
6758 _ACEOF | |
6759 | |
6760 eval BITSIZEOF_${GLTYPE}=\$result | |
6761 done | |
6762 | |
6763 | |
6764 | |
6765 | |
6766 for gltype in sig_atomic_t wchar_t wint_t ; do | |
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed"
>&5 | |
6768 $as_echo_n "checking whether $gltype is signed... " >&6; } | |
6769 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set";
}; then : | |
6770 $as_echo_n "(cached) " >&6 | |
6771 else | |
6772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6773 /* end confdefs.h. */ | |
6774 | |
6775 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
6776 included before <wchar.h>. */ | |
6777 #include <stddef.h> | |
6778 #include <signal.h> | |
6779 #if HAVE_WCHAR_H | |
6780 # include <stdio.h> | |
6781 # include <time.h> | |
6782 # include <wchar.h> | |
6783 #endif | |
6784 | |
6785 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1]; | |
6786 int | |
6787 main () | |
6788 { | |
6789 | |
6790 ; | |
6791 return 0; | |
6792 } | |
6793 _ACEOF | |
6794 if ac_fn_c_try_compile "$LINENO"; then : | |
6795 result=yes | |
6796 else | |
6797 result=no | |
6798 fi | |
6799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6800 eval gl_cv_type_${gltype}_signed=\$result | |
6801 | |
6802 fi | |
6803 eval ac_res=\$gl_cv_type_${gltype}_signed | |
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
6805 $as_echo "$ac_res" >&6; } | |
6806 eval result=\$gl_cv_type_${gltype}_signed | |
6807 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRS
TUVWXYZ_'` | |
6808 if test "$result" = yes; then | |
6809 cat >>confdefs.h <<_ACEOF | |
6810 #define HAVE_SIGNED_${GLTYPE} 1 | |
6811 _ACEOF | |
6812 | |
6813 eval HAVE_SIGNED_${GLTYPE}=1 | |
6814 else | |
6815 eval HAVE_SIGNED_${GLTYPE}=0 | |
6816 fi | |
6817 done | |
6818 | |
6819 | |
6820 gl_cv_type_ptrdiff_t_signed=yes | |
6821 gl_cv_type_size_t_signed=no | |
6822 if test $APPLE_UNIVERSAL_BUILD = 0; then | |
6823 | |
6824 | |
6825 for gltype in ptrdiff_t size_t ; do | |
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer litera
l suffix" >&5 | |
6827 $as_echo_n "checking for $gltype integer literal suffix... " >&6; } | |
6828 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set";
}; then : | |
6829 $as_echo_n "(cached) " >&6 | |
6830 else | |
6831 eval gl_cv_type_${gltype}_suffix=no | |
6832 eval result=\$gl_cv_type_${gltype}_signed | |
6833 if test "$result" = yes; then | |
6834 glsufu= | |
6835 else | |
6836 glsufu=u | |
6837 fi | |
6838 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do | |
6839 case $glsuf in | |
6840 '') gltype1='int';; | |
6841 l) gltype1='long int';; | |
6842 ll) gltype1='long long int';; | |
6843 i64) gltype1='__int64';; | |
6844 u) gltype1='unsigned int';; | |
6845 ul) gltype1='unsigned long int';; | |
6846 ull) gltype1='unsigned long long int';; | |
6847 ui64)gltype1='unsigned __int64';; | |
6848 esac | |
6849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6850 /* end confdefs.h. */ | |
6851 | |
6852 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
6853 included before <wchar.h>. */ | |
6854 #include <stddef.h> | |
6855 #include <signal.h> | |
6856 #if HAVE_WCHAR_H | |
6857 # include <stdio.h> | |
6858 # include <time.h> | |
6859 # include <wchar.h> | |
6860 #endif | |
6861 | |
6862 extern $gltype foo; | |
6863 extern $gltype1 foo; | |
6864 int | |
6865 main () | |
6866 { | |
6867 | |
6868 ; | |
6869 return 0; | |
6870 } | |
6871 _ACEOF | |
6872 if ac_fn_c_try_compile "$LINENO"; then : | |
6873 eval gl_cv_type_${gltype}_suffix=\$glsuf | |
6874 fi | |
6875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6876 eval result=\$gl_cv_type_${gltype}_suffix | |
6877 test "$result" != no && break | |
6878 done | |
6879 fi | |
6880 eval ac_res=\$gl_cv_type_${gltype}_suffix | |
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
6882 $as_echo "$ac_res" >&6; } | |
6883 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRS
TUVWXYZ_'` | |
6884 eval result=\$gl_cv_type_${gltype}_suffix | |
6885 test "$result" = no && result= | |
6886 eval ${GLTYPE}_SUFFIX=\$result | |
6887 cat >>confdefs.h <<_ACEOF | |
6888 #define ${GLTYPE}_SUFFIX $result | |
6889 _ACEOF | |
6890 | |
6891 done | |
6892 | |
6893 | |
6894 fi | |
6895 | |
6896 | |
6897 for gltype in sig_atomic_t wchar_t wint_t ; do | |
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer litera
l suffix" >&5 | |
6899 $as_echo_n "checking for $gltype integer literal suffix... " >&6; } | |
6900 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set";
}; then : | |
6901 $as_echo_n "(cached) " >&6 | |
6902 else | |
6903 eval gl_cv_type_${gltype}_suffix=no | |
6904 eval result=\$gl_cv_type_${gltype}_signed | |
6905 if test "$result" = yes; then | |
6906 glsufu= | |
6907 else | |
6908 glsufu=u | |
6909 fi | |
6910 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do | |
6911 case $glsuf in | |
6912 '') gltype1='int';; | |
6913 l) gltype1='long int';; | |
6914 ll) gltype1='long long int';; | |
6915 i64) gltype1='__int64';; | |
6916 u) gltype1='unsigned int';; | |
6917 ul) gltype1='unsigned long int';; | |
6918 ull) gltype1='unsigned long long int';; | |
6919 ui64)gltype1='unsigned __int64';; | |
6920 esac | |
6921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6922 /* end confdefs.h. */ | |
6923 | |
6924 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
6925 included before <wchar.h>. */ | |
6926 #include <stddef.h> | |
6927 #include <signal.h> | |
6928 #if HAVE_WCHAR_H | |
6929 # include <stdio.h> | |
6930 # include <time.h> | |
6931 # include <wchar.h> | |
6932 #endif | |
6933 | |
6934 extern $gltype foo; | |
6935 extern $gltype1 foo; | |
6936 int | |
6937 main () | |
6938 { | |
6939 | |
6940 ; | |
6941 return 0; | |
6942 } | |
6943 _ACEOF | |
6944 if ac_fn_c_try_compile "$LINENO"; then : | |
6945 eval gl_cv_type_${gltype}_suffix=\$glsuf | |
6946 fi | |
6947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6948 eval result=\$gl_cv_type_${gltype}_suffix | |
6949 test "$result" != no && break | |
6950 done | |
6951 fi | |
6952 eval ac_res=\$gl_cv_type_${gltype}_suffix | |
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
6954 $as_echo "$ac_res" >&6; } | |
6955 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRS
TUVWXYZ_'` | |
6956 eval result=\$gl_cv_type_${gltype}_suffix | |
6957 test "$result" = no && result= | |
6958 eval ${GLTYPE}_SUFFIX=\$result | |
6959 cat >>confdefs.h <<_ACEOF | |
6960 #define ${GLTYPE}_SUFFIX $result | |
6961 _ACEOF | |
6962 | |
6963 done | |
6964 | |
6965 | |
6966 | |
6967 STDINT_H=stdint.h | |
6968 fi | |
6969 | |
6970 | |
6971 # Code from module string: | |
6972 | |
6973 | |
6974 | |
6975 # Code from module warn-on-use: | |
6976 # Code from module wchar: | |
6977 | |
6978 | |
6979 | |
6980 | |
6981 : | |
6982 | |
6983 | |
6984 | |
6985 | |
6986 | |
6987 | |
6988 | |
6989 | |
6990 | |
6991 : | |
6992 | |
6993 | |
6994 | |
6995 | |
6996 | |
6997 | |
6998 | |
6999 if test $gl_cv_have_include_next = yes; then | |
7000 gl_cv_next_wchar_h='<'wchar.h'>' | |
7001 else | |
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar
.h>" >&5 | |
7003 $as_echo_n "checking absolute name of <wchar.h>... " >&6; } | |
7004 if test "${gl_cv_next_wchar_h+set}" = set; then : | |
7005 $as_echo_n "(cached) " >&6 | |
7006 else | |
7007 | |
7008 if test $ac_cv_header_wchar_h = yes; then | |
7009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7010 /* end confdefs.h. */ | |
7011 #include <wchar.h> | |
7012 | |
7013 _ACEOF | |
7014
case "$host_os" in | |
7015 aix*) gl_absname_cpp="$ac_cpp -C" ;; | |
7016 *) gl_absname_cpp="$ac_cpp" ;; | |
7017 esac | |
7018 gl_cv_next_wchar_h='"'`(eval "$g
l_absname_cpp conftest.$ac_ext") 2>&5 | | |
7019 sed -n '\#/wchar.h#{ | |
7020 s#.*"\(.*/wchar.h\)".*#\1# | |
7021 s#^/[^/]#//&# | |
7022 p | |
7023 q | |
7024 }'`'"' | |
7025 else | |
7026 gl_cv_next_wchar_h='<'wchar.h'>' | |
7027 fi | |
7028 | |
7029 fi | |
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5 | |
7031 $as_echo "$gl_cv_next_wchar_h" >&6; } | |
7032 fi | |
7033 NEXT_WCHAR_H=$gl_cv_next_wchar_h | |
7034 | |
7035 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = b
uggy; then | |
7036 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' | |
7037 gl_next_as_first_directive='<'wchar.h'>' | |
7038 else | |
7039 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' | |
7040 gl_next_as_first_directive=$gl_cv_next_wchar_h | |
7041 fi | |
7042 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive | |
7043 | |
7044 | |
7045 | |
7046 if test $ac_cv_header_wchar_h = yes; then | |
7047 HAVE_WCHAR_H=1 | |
7048 else | |
7049 HAVE_WCHAR_H=0 | |
7050 fi | |
7051 | |
7052 | |
7053 | |
7054 if test $gt_cv_c_wint_t = yes; then | |
7055 HAVE_WINT_T=1 | |
7056 else | |
7057 HAVE_WINT_T=0 | |
7058 fi | |
7059 | |
7060 | |
7061 | |
7062 for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrto
mb wcsrtombs wcsnrtombs wcwidth; do | |
7063 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` | |
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declar
ed without a macro" >&5 | |
7065 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } | |
7066 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then : | |
7067 $as_echo_n "(cached) " >&6 | |
7068 else | |
7069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7070 /* end confdefs.h. */ | |
7071 | |
7072 /* Some systems require additional headers. */ | |
7073 #ifndef __GLIBC__ | |
7074 # include <stddef.h> | |
7075 # include <stdio.h> | |
7076 # include <time.h> | |
7077 #endif | |
7078 #include <wchar.h> | |
7079 | |
7080 int | |
7081 main () | |
7082 { | |
7083 #undef $gl_func | |
7084 (void) $gl_func; | |
7085 ; | |
7086 return 0; | |
7087 } | |
7088 _ACEOF | |
7089 if ac_fn_c_try_compile "$LINENO"; then : | |
7090 eval "$as_gl_Symbol=yes" | |
7091 else | |
7092 eval "$as_gl_Symbol=no" | |
7093 fi | |
7094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7095 fi | |
7096 eval ac_res=\$$as_gl_Symbol | |
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
7098 $as_echo "$ac_res" >&6; } | |
7099 eval as_val=\$$as_gl_Symbol | |
7100 if test "x$as_val" = x""yes; then : | |
7101 cat >>confdefs.h <<_ACEOF | |
7102 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 | |
7103 _ACEOF | |
7104 | |
7105 eval ac_cv_have_decl_$gl_func=yes | |
7106 fi | |
7107 done | |
7108 | |
7109 | |
7110 # Code from module dummy: | |
7111 # End of code from modules | |
7112 | |
7113 | |
7114 | |
7115 | |
7116 | |
7117 | |
7118 | |
7119 | |
7120 | |
7121 gltests_libdeps= | |
7122 gltests_ltlibdeps= | |
7123 | |
7124 | |
7125 | |
7126 | |
7127 | |
7128 | |
7129 | |
7130 | |
7131 | |
7132 gl_source_base='tests' | |
7133 gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghi
jklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g
'`_GNULIB_TESTS | |
7134 | |
7135 gl_module_indicator_condition=$gltests_WITNESS | |
7136 | |
7137 | |
7138 | |
7139 | |
7140 | |
7141 | |
7142 | |
7143 | |
7144 | |
7145 LIBGNU_LIBDEPS="$gl_libdeps" | |
7146 | |
7147 LIBGNU_LTLIBDEPS="$gl_ltlibdeps" | |
7148 | |
7149 | |
7150 | |
7151 # For Makefile dependencies. | |
7152 GNULIB_STDINT_H= | |
7153 if test x"$STDINT_H" != x; then | |
7154 GNULIB_STDINT_H=gnulib/$STDINT_H | |
7155 fi | |
7156 | |
7157 | |
7158 PACKAGE=gdb | |
7159 | |
7160 cat >>confdefs.h <<_ACEOF | |
7161 #define PACKAGE "$PACKAGE" | |
7162 _ACEOF | |
7163 | |
7164 | |
7165 | |
7166 # We never need to detect it in this sub-configure. | |
7167 # But preserve it for config.status --recheck. | |
7168 | |
7169 | |
7170 | |
7171 MAKEINFO_EXTRA_FLAGS="" | |
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @cl
ick" >&5 | |
7173 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; } | |
7174 if test "${gdb_cv_have_makeinfo_click+set}" = set; then : | |
7175 $as_echo_n "(cached) " >&6 | |
7176 else | |
7177 echo '@clicksequence{a @click{} b}' >conftest.texinfo | |
7178 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then | |
7179 gdb_cv_have_makeinfo_click=yes | |
7180 else | |
7181 gdb_cv_have_makeinfo_click=no | |
7182 fi | |
7183 fi | |
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&
5 | |
7185 $as_echo "$gdb_cv_have_makeinfo_click" >&6; } | |
7186 if test x"$gdb_cv_have_makeinfo_click" = xyes; then | |
7187 MAKEINFO_EXTRA_FLAGS="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK" | |
7188 fi | |
7189 | |
7190 | |
7191 # GDB does not use automake, but gnulib does. This line lets us | |
7192 # generate its Makefile.in. | |
7193 am__api_version='1.11' | |
7194 | |
7195 # Find a good install program. We prefer a C program (faster), | |
7196 # so one script is as good as another. But avoid the broken or | |
7197 # incompatible versions: | |
7198 # SysV /etc/install, /usr/sbin/install | |
7199 # SunOS /usr/etc/install | |
7200 # IRIX /sbin/install | |
7201 # AIX /bin/install | |
7202 # AmigaOS /C/install, which installs bootblocks on floppy discs | |
7203 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
7204 # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
7205 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
7206 # OS/2's system install, which has a completely different semantic | |
7207 # ./install, which can be erroneously created by make from ./install.sh. | |
7208 # Reject install programs that cannot install multiple files. | |
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install"
>&5 | |
7210 $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
7211 if test -z "$INSTALL"; then | |
7212 if test "${ac_cv_path_install+set}" = set; then : | |
7213 $as_echo_n "(cached) " >&6 | |
7214 else | |
7215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7216 for as_dir in $PATH | |
7217 do | |
7218 IFS=$as_save_IFS | |
7219 test -z "$as_dir" && as_dir=. | |
7220 # Account for people who put trailing slashes in PATH elements. | |
7221 case $as_dir/ in #(( | |
7222 ./ | .// | /[cC]/* | \ | |
7223 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
7224 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
7225 /usr/ucb/* ) ;; | |
7226 *) | |
7227 # OSF1 and SCO ODT 3.0 have their own names for install. | |
7228 # Don't use installbsd from OSF since it installs stuff as root | |
7229 # by default. | |
7230 for ac_prog in ginstall scoinst install; do | |
7231 for ac_exec_ext in '' $ac_executable_extensions; do | |
7232 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_p
rog$ac_exec_ext"; }; then | |
7233 if test $ac_prog = install && | |
7234 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
7235 # AIX install. It has an incompatible calling convention. | |
7236 : | |
7237 elif test $ac_prog = install && | |
7238 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
7239 # program-specific install script used by HP pwplus--don't use. | |
7240 : | |
7241 else | |
7242 rm -rf conftest.one conftest.two conftest.dir | |
7243 echo one > conftest.one | |
7244 echo two > conftest.two | |
7245 mkdir conftest.dir | |
7246 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd
`/conftest.dir" && | |
7247 test -s conftest.one && test -s conftest.two && | |
7248 test -s conftest.dir/conftest.one && | |
7249 test -s conftest.dir/conftest.two | |
7250 then | |
7251 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
7252 break 3 | |
7253 fi | |
7254 fi | |
7255 fi | |
7256 done | |
7257 done | |
7258 ;; | |
7259 esac | |
7260 | |
7261 done | |
7262 IFS=$as_save_IFS | |
7263 | |
7264 rm -rf conftest.one conftest.two conftest.dir | |
7265 | |
7266 fi | |
7267 if test "${ac_cv_path_install+set}" = set; then | |
7268 INSTALL=$ac_cv_path_install | |
7269 else | |
7270 # As a last resort, use the slow shell script. Don't cache a | |
7271 # value for INSTALL within a source directory, because that will | |
7272 # break other packages using the cache if that directory is | |
7273 # removed, or if the value is a relative name. | |
7274 INSTALL=$ac_install_sh | |
7275 fi | |
7276 fi | |
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
7278 $as_echo "$INSTALL" >&6; } | |
7279 | |
7280 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
7281 # It thinks the first close brace ends the variable substitution. | |
7282 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
7283 | |
7284 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
7285 | |
7286 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
7287 | |
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is s
ane" >&5 | |
7289 $as_echo_n "checking whether build environment is sane... " >&6; } | |
7290 # Just in case | |
7291 sleep 1 | |
7292 echo timestamp > conftest.file | |
7293 # Reject unsafe characters in $srcdir or the absolute working directory | |
7294 # name. Accept space and tab only in the latter. | |
7295 am_lf=' | |
7296 ' | |
7297 case `pwd` in | |
7298 *[\\\"\#\$\&\'\`$am_lf]*) | |
7299 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; | |
7300 esac | |
7301 case $srcdir in | |
7302 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
7303 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | |
7304 esac | |
7305 | |
7306 # Do `set' in a subshell so we don't clobber the current shell's | |
7307 # arguments. Must try -L first in case configure is actually a | |
7308 # symlink; some systems play weird games with the mod time of symlinks | |
7309 # (eg FreeBSD returns the mod time of the symlink's containing | |
7310 # directory). | |
7311 if ( | |
7312 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
7313 if test "$*" = "X"; then | |
7314 # -L didn't work. | |
7315 set X `ls -t "$srcdir/configure" conftest.file` | |
7316 fi | |
7317 rm -f conftest.file | |
7318 if test "$*" != "X $srcdir/configure conftest.file" \ | |
7319 && test "$*" != "X conftest.file $srcdir/configure"; then | |
7320 | |
7321 # If neither matched, then we have a broken ls. This can happen | |
7322 # if, for instance, CONFIG_SHELL is bash and it inherits a | |
7323 # broken ls alias from the environment. This has actually | |
7324 # happened. Such a system could not be considered "sane". | |
7325 as_fn_error "ls -t appears to fail. Make sure there is not a broken | |
7326 alias in your environment" "$LINENO" 5 | |
7327 fi | |
7328 | |
7329 test "$2" = conftest.file | |
7330 ) | |
7331 then | |
7332 # Ok. | |
7333 : | |
7334 else | |
7335 as_fn_error "newly created file is older than distributed files! | |
7336 Check your system clock" "$LINENO" 5 | |
7337 fi | |
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7339 $as_echo "yes" >&6; } | |
7340 test "$program_prefix" != NONE && | |
7341 program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
7342 # Use a double $ so make ignores it. | |
7343 test "$program_suffix" != NONE && | |
7344 program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
7345 # Double any \ or $. | |
7346 # By default was `s,x,x', remove it if useless. | |
7347 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
7348 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
7349 | |
7350 # expand $ac_aux_dir to an absolute path | |
7351 am_aux_dir=`cd $ac_aux_dir && pwd` | |
7352 | |
7353 if test x"${MISSING+set}" != xset; then | |
7354 case $am_aux_dir in | |
7355 *\ * | *\ *) | |
7356 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
7357 *) | |
7358 MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
7359 esac | |
7360 fi | |
7361 # Use eval to expand $SHELL | |
7362 if eval "$MISSING --run true"; then | |
7363 am_missing_run="$MISSING --run " | |
7364 else | |
7365 am_missing_run= | |
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old
or missing" >&5 | |
7367 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
7368 fi | |
7369 | |
7370 if test x"${install_sh}" != xset; then | |
7371 case $am_aux_dir in | |
7372 *\ * | *\ *) | |
7373 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
7374 *) | |
7375 install_sh="\${SHELL} $am_aux_dir/install-sh" | |
7376 esac | |
7377 fi | |
7378 | |
7379 # Installed binaries are usually stripped using `strip' when the user | |
7380 # run `make install-strip'. However `strip' might not be the right | |
7381 # tool to use in cross-compilation environments, therefore Automake | |
7382 # will honor the `STRIP' environment variable to overrule this program. | |
7383 if test "$cross_compiling" != no; then | |
7384 if test -n "$ac_tool_prefix"; then | |
7385 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program n
ame with args. | |
7386 set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7388 $as_echo_n "checking for $ac_word... " >&6; } | |
7389 if test "${ac_cv_prog_STRIP+set}" = set; then : | |
7390 $as_echo_n "(cached) " >&6 | |
7391 else | |
7392 if test -n "$STRIP"; then | |
7393 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
7394 else | |
7395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7396 for as_dir in $PATH | |
7397 do | |
7398 IFS=$as_save_IFS | |
7399 test -z "$as_dir" && as_dir=. | |
7400 for ac_exec_ext in '' $ac_executable_extensions; do | |
7401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then | |
7402 ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
7403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 | |
7404 break 2 | |
7405 fi | |
7406 done | |
7407 done | |
7408 IFS=$as_save_IFS | |
7409 | |
7410 fi | |
7411 fi | |
7412 STRIP=$ac_cv_prog_STRIP | |
7413 if test -n "$STRIP"; then | |
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
7415 $as_echo "$STRIP" >&6; } | |
7416 else | |
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7418 $as_echo "no" >&6; } | |
7419 fi | |
7420 | |
7421 | |
7422 fi | |
7423 if test -z "$ac_cv_prog_STRIP"; then | |
7424 ac_ct_STRIP=$STRIP | |
7425 # Extract the first word of "strip", so it can be a program name with args. | |
7426 set dummy strip; ac_word=$2 | |
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7428 $as_echo_n "checking for $ac_word... " >&6; } | |
7429 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
7430 $as_echo_n "(cached) " >&6 | |
7431 else | |
7432 if test -n "$ac_ct_STRIP"; then | |
7433 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
7434 else | |
7435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7436 for as_dir in $PATH | |
7437 do | |
7438 IFS=$as_save_IFS | |
7439 test -z "$as_dir" && as_dir=. | |
7440 for ac_exec_ext in '' $ac_executable_extensions; do | |
7441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then | |
7442 ac_cv_prog_ac_ct_STRIP="strip" | |
7443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 | |
7444 break 2 | |
7445 fi | |
7446 done | |
7447 done | |
7448 IFS=$as_save_IFS | |
7449 | |
7450 fi | |
7451 fi | |
7452 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
7453 if test -n "$ac_ct_STRIP"; then | |
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
7455 $as_echo "$ac_ct_STRIP" >&6; } | |
7456 else | |
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7458 $as_echo "no" >&6; } | |
7459 fi | |
7460 | |
7461 if test "x$ac_ct_STRIP" = x; then | |
7462 STRIP=":" | |
7463 else | |
7464 case $cross_compiling:$ac_tool_warned in | |
7465 yes:) | |
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed
with host triplet" >&5 | |
7467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2
;} | |
7468 ac_tool_warned=yes ;; | |
7469 esac | |
7470 STRIP=$ac_ct_STRIP | |
7471 fi | |
7472 else | |
7473 STRIP="$ac_cv_prog_STRIP" | |
7474 fi | |
7475 | |
7476 fi | |
7477 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
7478 | |
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&
5 | |
7480 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
7481 if test -z "$MKDIR_P"; then | |
7482 if test "${ac_cv_path_mkdir+set}" = set; then : | |
7483 $as_echo_n "(cached) " >&6 | |
7484 else | |
7485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7486 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
7487 do | |
7488 IFS=$as_save_IFS | |
7489 test -z "$as_dir" && as_dir=. | |
7490 for ac_prog in mkdir gmkdir; do | |
7491 for ac_exec_ext in '' $ac_executable_extensions; do | |
7492 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_p
rog$ac_exec_ext"; } || continue | |
7493 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
7494 'mkdir (GNU coreutils) '* | \ | |
7495 'mkdir (coreutils) '* | \ | |
7496 'mkdir (fileutils) '4.1*) | |
7497 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
7498 break 3;; | |
7499 esac | |
7500 done | |
7501 done | |
7502 done | |
7503 IFS=$as_save_IFS | |
7504 | |
7505 fi | |
7506 | |
7507 if test "${ac_cv_path_mkdir+set}" = set; then | |
7508 MKDIR_P="$ac_cv_path_mkdir -p" | |
7509 else | |
7510 # As a last resort, use the slow shell script. Don't cache a | |
7511 # value for MKDIR_P within a source directory, because that will | |
7512 # break other packages using the cache if that directory is | |
7513 # removed, or if the value is a relative name. | |
7514 test -d ./--version && rmdir ./--version | |
7515 MKDIR_P="$ac_install_sh -d" | |
7516 fi | |
7517 fi | |
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
7519 $as_echo "$MKDIR_P" >&6; } | |
7520 | |
7521 | |
7522 mkdir_p="$MKDIR_P" | |
7523 case $mkdir_p in | |
7524 [\\/$]* | ?:[\\/]*) ;; | |
7525 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
7526 esac | |
7527 | |
7528 for ac_prog in gawk mawk nawk awk | |
7529 do | |
7530 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7531 set dummy $ac_prog; ac_word=$2 | |
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7533 $as_echo_n "checking for $ac_word... " >&6; } | |
7534 if test "${ac_cv_prog_AWK+set}" = set; then : | |
7535 $as_echo_n "(cached) " >&6 | |
7536 else | |
7537 if test -n "$AWK"; then | |
7538 ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
7539 else | |
7540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7541 for as_dir in $PATH | |
7542 do | |
7543 IFS=$as_save_IFS | |
7544 test -z "$as_dir" && as_dir=. | |
7545 for ac_exec_ext in '' $ac_executable_extensions; do | |
7546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then | |
7547 ac_cv_prog_AWK="$ac_prog" | |
7548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 | |
7549 break 2 | |
7550 fi | |
7551 done | |
7552 done | |
7553 IFS=$as_save_IFS | |
7554 | |
7555 fi | |
7556 fi | |
7557 AWK=$ac_cv_prog_AWK | |
7558 if test -n "$AWK"; then | |
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
7560 $as_echo "$AWK" >&6; } | |
7561 else | |
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7563 $as_echo "no" >&6; } | |
7564 fi | |
7565 | |
7566 | |
7567 test -n "$AWK" && break | |
7568 done | |
7569 | |
7570 ac_config_commands="$ac_config_commands depfiles" | |
7571 | |
7572 | |
7573 am_make=${MAKE-make} | |
7574 cat > confinc << 'END' | |
7575 am__doit: | |
7576 @echo this is the am__doit target | |
7577 .PHONY: am__doit | |
7578 END | |
7579 # If we don't find an include directive, just comment out the code. | |
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $
am_make" >&5 | |
7581 $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
7582 am__include="#" | |
7583 am__quote= | |
7584 _am_result=none | |
7585 # First try GNU make style include. | |
7586 echo "include confinc" > confmf | |
7587 # Ignore all kinds of additional output from `make'. | |
7588 case `$am_make -s -f confmf 2> /dev/null` in #( | |
7589 *the\ am__doit\ target*) | |
7590 am__include=include | |
7591 am__quote= | |
7592 _am_result=GNU | |
7593 ;; | |
7594 esac | |
7595 # Now try BSD make style include. | |
7596 if test "$am__include" = "#"; then | |
7597 echo '.include "confinc"' > confmf | |
7598 case `$am_make -s -f confmf 2> /dev/null` in #( | |
7599 *the\ am__doit\ target*) | |
7600 am__include=.include | |
7601 am__quote="\"" | |
7602 _am_result=BSD | |
7603 ;; | |
7604 esac | |
7605 fi | |
7606 | |
7607 | |
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
7609 $as_echo "$_am_result" >&6; } | |
7610 rm -f confinc confmf | |
7611 | |
7612 # Check whether --enable-dependency-tracking was given. | |
7613 if test "${enable_dependency_tracking+set}" = set; then : | |
7614 enableval=$enable_dependency_tracking; | |
7615 fi | |
7616 | |
7617 if test "x$enable_dependency_tracking" != xno; then | |
7618 am_depcomp="$ac_aux_dir/depcomp" | |
7619 AMDEPBACKSLASH='\' | |
7620 fi | |
7621 if test "x$enable_dependency_tracking" != xno; then | |
7622 AMDEP_TRUE= | |
7623 AMDEP_FALSE='#' | |
7624 else | |
7625 AMDEP_TRUE='#' | |
7626 AMDEP_FALSE= | |
7627 fi | |
7628 | |
7629 | |
7630 if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
7631 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
7632 # is not polluted with repeated "-I." | |
7633 am__isrc=' -I$(srcdir)' | |
7634 # test to see if srcdir already configured | |
7635 if test -f $srcdir/config.status; then | |
7636 as_fn_error "source directory already configured; run \"make distclean\" the
re first" "$LINENO" 5 | |
7637 fi | |
7638 fi | |
7639 | |
7640 # test whether we have cygpath | |
7641 if test -z "$CYGPATH_W"; then | |
7642 if (cygpath --version) >/dev/null 2>/dev/null; then | |
7643 CYGPATH_W='cygpath -w' | |
7644 else | |
7645 CYGPATH_W=echo | |
7646 fi | |
7647 fi | |
7648 | |
7649 | |
7650 # Define the identity of the package. | |
7651 PACKAGE=gdb | |
7652 VERSION=UNUSED-VERSION | |
7653 | |
7654 | |
7655 # Some tools Automake needs. | |
7656 | |
7657 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
7658 | |
7659 | |
7660 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
7661 | |
7662 | |
7663 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
7664 | |
7665 | |
7666 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
7667 | |
7668 | |
7669 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
7670 | |
7671 # We need awk for the "check" target. The system "awk" is bad on | |
7672 # some platforms. | |
7673 # Always define AMTAR for backward compatibility. | |
7674 | |
7675 AMTAR=${AMTAR-"${am_missing_run}tar"} | |
7676 | |
7677 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
7678 | |
7679 | |
7680 | |
7681 | |
7682 depcc="$CC" am_compiler_list= | |
7683 | |
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&
5 | |
7685 $as_echo_n "checking dependency style of $depcc... " >&6; } | |
7686 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | |
7687 $as_echo_n "(cached) " >&6 | |
7688 else | |
7689 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
7690 # We make a subdir and do the tests there. Otherwise we can end up | |
7691 # making bogus files that we don't know about and never remove. For | |
7692 # instance it was reported that on HP-UX the gcc test will end up | |
7693 # making a dummy file named `D' -- because `-MD' means `put the output | |
7694 # in D'. | |
7695 mkdir conftest.dir | |
7696 # Copy depcomp to subdir because otherwise we won't find it if we're | |
7697 # using a relative directory. | |
7698 cp "$am_depcomp" conftest.dir | |
7699 cd conftest.dir | |
7700 # We will build objects and dependencies in a subdirectory because | |
7701 # it helps to detect inapplicable dependency modes. For instance | |
7702 # both Tru64's cc and ICC support -MD to output dependencies as a | |
7703 # side effect of compilation, but ICC will put the dependencies in | |
7704 # the current directory while Tru64 will put them in the object | |
7705 # directory. | |
7706 mkdir sub | |
7707 | |
7708 am_cv_CC_dependencies_compiler_type=none | |
7709 if test "$am_compiler_list" = ""; then | |
7710 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
7711 fi | |
7712 am__universal=false | |
7713 case " $depcc " in #( | |
7714 *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
7715 esac | |
7716 | |
7717 for depmode in $am_compiler_list; do | |
7718 # Setup a source with many dependencies, because some compilers | |
7719 # like to wrap large dependency lists on column 80 (with \), and | |
7720 # we should not choose a depcomp mode which is confused by this. | |
7721 # | |
7722 # We need to recreate these files for each test, as the compiler may | |
7723 # overwrite some of them when testing with obscure command lines. | |
7724 # This happens at least with the AIX C compiler. | |
7725 : > sub/conftest.c | |
7726 for i in 1 2 3 4 5 6; do | |
7727 echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
7728 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
7729 # Solaris 8's {/usr,}/bin/sh. | |
7730 touch sub/conftst$i.h | |
7731 done | |
7732 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
7733 | |
7734 # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
7735 # mode. It turns out that the SunPro C++ compiler does not properly | |
7736 # handle `-M -o', and we need to detect this. Also, some Intel | |
7737 # versions had trouble with output in subdirs | |
7738 am__obj=sub/conftest.${OBJEXT-o} | |
7739 am__minus_obj="-o $am__obj" | |
7740 case $depmode in | |
7741 gcc) | |
7742 # This depmode causes a compiler race in universal mode. | |
7743 test "$am__universal" = false || continue | |
7744 ;; | |
7745 nosideeffect) | |
7746 # after this tag, mechanisms are not by side-effect, so they'll | |
7747 # only be used when explicitly requested | |
7748 if test "x$enable_dependency_tracking" = xyes; then | |
7749 continue | |
7750 else | |
7751 break | |
7752 fi | |
7753 ;; | |
7754 msvisualcpp | msvcmsys) | |
7755 # This compiler won't grok `-c -o', but also, the minuso test has | |
7756 # not run yet. These depmodes are late enough in the game, and | |
7757 # so weak that their functioning should not be impacted. | |
7758 am__obj=conftest.${OBJEXT-o} | |
7759 am__minus_obj= | |
7760 ;; | |
7761 none) break ;; | |
7762 esac | |
7763 if depmode=$depmode \ | |
7764 source=sub/conftest.c object=$am__obj \ | |
7765 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
7766 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
7767 >/dev/null 2>conftest.err && | |
7768 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
7769 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
7770 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
7771 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
7772 # icc doesn't choke on unknown options, it will just issue warnings | |
7773 # or remarks (even with -Werror). So we grep stderr for any message | |
7774 # that says an option was ignored or not supported. | |
7775 # When given -MP, icc 7.0 and 7.1 complain thusly: | |
7776 # icc: Command line warning: ignoring option '-M'; no argument required | |
7777 # The diagnosis changed in icc 8.0: | |
7778 # icc: Command line remark: option '-MP' not supported | |
7779 if (grep 'ignoring option' conftest.err || | |
7780 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
7781 am_cv_CC_dependencies_compiler_type=$depmode | |
7782 break | |
7783 fi | |
7784 fi | |
7785 done | |
7786 | |
7787 cd .. | |
7788 rm -rf conftest.dir | |
7789 else | |
7790 am_cv_CC_dependencies_compiler_type=none | |
7791 fi | |
7792 | |
7793 fi | |
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler
_type" >&5 | |
7795 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
7796 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
7797 | |
7798 if | |
7799 test "x$enable_dependency_tracking" != xno \ | |
7800 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
7801 am__fastdepCC_TRUE= | |
7802 am__fastdepCC_FALSE='#' | |
7803 else | |
7804 am__fastdepCC_TRUE='#' | |
7805 am__fastdepCC_FALSE= | |
7806 fi | |
7807 | |
7808 | |
7809 | |
7810 | |
7811 | |
7812 | |
7813 # Check whether --with-separate-debug-dir was given. | |
7814 if test "${with_separate_debug_dir+set}" = set; then : | |
7815 withval=$with_separate_debug_dir; | |
7816 DEBUGDIR=$withval | |
7817 else | |
7818 DEBUGDIR=${libdir}/debug | |
7819 fi | |
7820 | |
7821 | |
7822 test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7823 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7824 ac_define_dir=`eval echo $DEBUGDIR` | |
7825 ac_define_dir=`eval echo $ac_define_dir` | |
7826 | |
7827 cat >>confdefs.h <<_ACEOF | |
7828 #define DEBUGDIR "$ac_define_dir" | |
7829 _ACEOF | |
7830 | |
7831 | |
7832 | |
7833 | |
7834 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then | |
7835 if test "x$prefix" = xNONE; then | |
7836 test_prefix=/usr/local | |
7837 else | |
7838 test_prefix=$prefix | |
7839 fi | |
7840 else | |
7841 test_prefix=$exec_prefix | |
7842 fi | |
7843 value=0 | |
7844 case ${ac_define_dir} in | |
7845 "${test_prefix}"|"${test_prefix}/"*|\ | |
7846 '${exec_prefix}'|'${exec_prefix}/'*) | |
7847 value=1 | |
7848 ;; | |
7849 esac | |
7850 | |
7851 cat >>confdefs.h <<_ACEOF | |
7852 #define DEBUGDIR_RELOCATABLE $value | |
7853 _ACEOF | |
7854 | |
7855 | |
7856 | |
7857 | |
7858 # GDB's datadir relocation | |
7859 | |
7860 | |
7861 | |
7862 # Check whether --with-gdb-datadir was given. | |
7863 if test "${with_gdb_datadir+set}" = set; then : | |
7864 withval=$with_gdb_datadir; | |
7865 GDB_DATADIR=$withval | |
7866 else | |
7867 GDB_DATADIR=${datadir}/gdb | |
7868 fi | |
7869 | |
7870 | |
7871 test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7872 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7873 ac_define_dir=`eval echo $GDB_DATADIR` | |
7874 ac_define_dir=`eval echo $ac_define_dir` | |
7875 | |
7876 cat >>confdefs.h <<_ACEOF | |
7877 #define GDB_DATADIR "$ac_define_dir" | |
7878 _ACEOF | |
7879 | |
7880 | |
7881 | |
7882 | |
7883 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then | |
7884 if test "x$prefix" = xNONE; then | |
7885 test_prefix=/usr/local | |
7886 else | |
7887 test_prefix=$prefix | |
7888 fi | |
7889 else | |
7890 test_prefix=$exec_prefix | |
7891 fi | |
7892 value=0 | |
7893 case ${ac_define_dir} in | |
7894 "${test_prefix}"|"${test_prefix}/"*|\ | |
7895 '${exec_prefix}'|'${exec_prefix}/'*) | |
7896 value=1 | |
7897 ;; | |
7898 esac | |
7899 | |
7900 cat >>confdefs.h <<_ACEOF | |
7901 #define GDB_DATADIR_RELOCATABLE $value | |
7902 _ACEOF | |
7903 | |
7904 | |
7905 | |
7906 | |
7907 | |
7908 # Check whether --with-relocated-sources was given. | |
7909 if test "${with_relocated_sources+set}" = set; then : | |
7910 withval=$with_relocated_sources; reloc_srcdir="${withval}" | |
7911 | |
7912 test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7913 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7914 ac_define_dir=`eval echo $reloc_srcdir` | |
7915 ac_define_dir=`eval echo $ac_define_dir` | |
7916 | |
7917 cat >>confdefs.h <<_ACEOF | |
7918 #define RELOC_SRCDIR "$ac_define_dir" | |
7919 _ACEOF | |
7920 | |
7921 | |
7922 | |
7923 fi | |
7924 | |
7925 | |
7926 | |
7927 | |
7928 subdirs="$subdirs testsuite" | |
7929 | |
7930 | |
7931 # Check whether to support alternative target configurations | |
7932 # Check whether --enable-targets was given. | |
7933 if test "${enable_targets+set}" = set; then : | |
7934 enableval=$enable_targets; case "${enableval}" in | |
7935 yes | "") as_fn_error "enable-targets option must specify target names or 'all
'" "$LINENO" 5 | |
7936 ;; | |
7937 no) enable_targets= ;; | |
7938 *) enable_targets=$enableval ;; | |
7939 esac | |
7940 fi | |
7941 | |
7942 | |
7943 # Check whether to enable 64-bit support on 32-bit hosts | |
7944 # Check whether --enable-64-bit-bfd was given. | |
7945 if test "${enable_64_bit_bfd+set}" = set; then : | |
7946 enableval=$enable_64_bit_bfd; case "${enableval}" in | |
7947 yes) want64=true ;; | |
7948 no) want64=false ;; | |
7949 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;
; | |
7950 esac | |
7951 else | |
7952 want64=false | |
7953 fi | |
7954 | |
7955 # Provide defaults for some variables set by the per-host and per-target | |
7956 # configuration. | |
7957 gdb_host_obs=posix-hdep.o | |
7958 | |
7959 if test "${target}" = "${host}"; then | |
7960 gdb_native=yes | |
7961 else | |
7962 gdb_native=no | |
7963 fi | |
7964 | |
7965 . $srcdir/configure.host | |
7966 | |
7967 # Accumulate some settings from configure.tgt over all enabled targets | |
7968 | |
7969 TARGET_OBS= | |
7970 all_targets= | |
7971 | |
7972 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'` | |
7973 do | |
7974 if test "$targ_alias" = "all"; then | |
7975 all_targets=true | |
7976 else | |
7977 # Canonicalize the secondary target names. | |
7978 result=`$ac_config_sub $targ_alias 2>/dev/null` | |
7979 if test -n "$result"; then | |
7980 targ=$result | |
7981 else | |
7982 targ=$targ_alias | |
7983 fi | |
7984 | |
7985 . ${srcdir}/configure.tgt | |
7986 | |
7987 if test -z "${gdb_target_obs}"; then : | |
7988 as_fn_error "configuration ${targ} is unsupported." "$LINENO" 5 | |
7989 fi | |
7990 | |
7991 # Target-specific object files | |
7992 for i in ${gdb_target_obs}; do | |
7993 case " $TARGET_OBS " in | |
7994 *" ${i} "*) ;; | |
7995 *) | |
7996 TARGET_OBS="$TARGET_OBS ${i}" | |
7997 ;; | |
7998 esac | |
7999 done | |
8000 | |
8001 # Check whether this target needs 64-bit CORE_ADDR | |
8002 if test x${want64} = xfalse; then | |
8003 . ${srcdir}/../bfd/config.bfd | |
8004 fi | |
8005 fi | |
8006 done | |
8007 | |
8008 if test x${all_targets} = xtrue; then | |
8009 | |
8010 # We want all 64-bit targets if we either: | |
8011 # - run on a 64-bit host or | |
8012 # - already require 64-bit support for some other target or | |
8013 # - the --enable-64-bit-bfd option was supplied | |
8014 # Otherwise we only support all 32-bit targets. | |
8015 # | |
8016 # NOTE: This test must be in sync with the corresponding | |
8017 # tests in BFD! | |
8018 | |
8019 if test x${want64} = xfalse; then | |
8020 # The cast to long int works around a bug in the HP C Compiler | |
8021 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
8022 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
8023 # This bug is HP SR number 8606223364. | |
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | |
8025 $as_echo_n "checking size of long... " >&6; } | |
8026 if test "${ac_cv_sizeof_long+set}" = set; then : | |
8027 $as_echo_n "(cached) " >&6 | |
8028 else | |
8029 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_lo
ng" "$ac_includes_default"; then : | |
8030 | |
8031 else | |
8032 if test "$ac_cv_type_long" = yes; then | |
8033 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8034 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
8035 { as_fn_set_status 77 | |
8036 as_fn_error "cannot compute sizeof (long) | |
8037 See \`config.log' for more details." "$LINENO" 5; }; } | |
8038 else | |
8039 ac_cv_sizeof_long=0 | |
8040 fi | |
8041 fi | |
8042 | |
8043 fi | |
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | |
8045 $as_echo "$ac_cv_sizeof_long" >&6; } | |
8046 | |
8047 | |
8048 | |
8049 cat >>confdefs.h <<_ACEOF | |
8050 #define SIZEOF_LONG $ac_cv_sizeof_long | |
8051 _ACEOF | |
8052 | |
8053 | |
8054 if test "x${ac_cv_sizeof_long}" = "x8"; then | |
8055 want64=true | |
8056 fi | |
8057 fi | |
8058 if test x${want64} = xtrue; then | |
8059 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)' | |
8060 else | |
8061 TARGET_OBS='$(ALL_TARGET_OBS)' | |
8062 fi | |
8063 fi | |
8064 | |
8065 | |
8066 | |
8067 # For other settings, only the main target counts. | |
8068 gdb_sim= | |
8069 gdb_osabi= | |
8070 build_gdbserver= | |
8071 targ=$target; . ${srcdir}/configure.tgt | |
8072 | |
8073 # Fetch the default architecture and default target vector from BFD. | |
8074 targ=$target; . $srcdir/../bfd/config.bfd | |
8075 | |
8076 # We only want the first architecture, so strip off the others if | |
8077 # there is more than one. | |
8078 targ_archs=`echo $targ_archs | sed 's/ .*//'` | |
8079 | |
8080 if test "x$targ_archs" != x; then | |
8081 | |
8082 cat >>confdefs.h <<_ACEOF | |
8083 #define DEFAULT_BFD_ARCH $targ_archs | |
8084 _ACEOF | |
8085 | |
8086 fi | |
8087 if test "x$targ_defvec" != x; then | |
8088 | |
8089 cat >>confdefs.h <<_ACEOF | |
8090 #define DEFAULT_BFD_VEC $targ_defvec | |
8091 _ACEOF | |
8092 | |
8093 fi | |
8094 | |
8095 # The CLI cannot be disabled yet, but may be in the future. | |
8096 | |
8097 # Enable CLI. | |
8098 # Check whether --enable-gdbcli was given. | |
8099 if test "${enable_gdbcli+set}" = set; then : | |
8100 enableval=$enable_gdbcli; case $enableval in | |
8101 yes) | |
8102 ;; | |
8103 no) | |
8104 as_fn_error "the command-line interface cannot be disabled yet" "$LINENO"
5 ;; | |
8105 *) | |
8106 as_fn_error "bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;; | |
8107 esac | |
8108 else | |
8109 enable_gdbcli=yes | |
8110 fi | |
8111 | |
8112 if test x"$enable_gdbcli" = xyes; then | |
8113 if test -d $srcdir/cli; then | |
8114 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)" | |
8115 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)" | |
8116 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)" | |
8117 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)" | |
8118 fi | |
8119 fi | |
8120 | |
8121 # Enable MI. | |
8122 # Check whether --enable-gdbmi was given. | |
8123 if test "${enable_gdbmi+set}" = set; then : | |
8124 enableval=$enable_gdbmi; case $enableval in | |
8125 yes | no) | |
8126 ;; | |
8127 *) | |
8128 as_fn_error "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;; | |
8129 esac | |
8130 else | |
8131 enable_gdbmi=yes | |
8132 fi | |
8133 | |
8134 if test x"$enable_gdbmi" = xyes; then | |
8135 if test -d $srcdir/mi; then | |
8136 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)" | |
8137 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)" | |
8138 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)" | |
8139 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)" | |
8140 fi | |
8141 fi | |
8142 | |
8143 # Enable TUI. | |
8144 # Check whether --enable-tui was given. | |
8145 if test "${enable_tui+set}" = set; then : | |
8146 enableval=$enable_tui; case $enableval in | |
8147 yes | no | auto) | |
8148 ;; | |
8149 *) | |
8150 as_fn_error "bad value $enableval for --enable-tui" "$LINENO" 5 ;; | |
8151 esac | |
8152 else | |
8153 enable_tui=auto | |
8154 fi | |
8155 | |
8156 | |
8157 # Enable gdbtk. | |
8158 # Check whether --enable-gdbtk was given. | |
8159 if test "${enable_gdbtk+set}" = set; then : | |
8160 enableval=$enable_gdbtk; case $enableval in | |
8161 yes | no) | |
8162 ;; | |
8163 *) | |
8164 as_fn_error "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;; | |
8165 esac | |
8166 else | |
8167 if test -d $srcdir/gdbtk; then | |
8168 enable_gdbtk=yes | |
8169 else | |
8170 enable_gdbtk=no | |
8171 fi | |
8172 fi | |
8173 | |
8174 # We unconditionally disable gdbtk tests on selected platforms. | |
8175 case $host_os in | |
8176 go32* | windows*) | |
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $
host; disabling" >&5 | |
8178 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;} | |
8179 enable_gdbtk=no ;; | |
8180 esac | |
8181 | |
8182 # Libunwind support. | |
8183 | |
8184 # Check whether --with-libunwind was given. | |
8185 if test "${with_libunwind+set}" = set; then : | |
8186 withval=$with_libunwind; case "${withval}" in | |
8187 yes) enable_libunwind=yes ;; | |
8188 no) enable_libunwind=no ;; | |
8189 *) as_fn_error "bad value ${withval} for GDB with-libunwind option" "$LINEN
O" 5 ;; | |
8190 esac | |
8191 else | |
8192 | |
8193 for ac_header in libunwind.h libunwind-ia64.h | |
8194 do : | |
8195 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8196 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_include
s_default" | |
8197 eval as_val=\$$as_ac_Header | 5937 eval as_val=\$$as_ac_Header |
8198 if test "x$as_val" = x""yes; then : | 5938 if test "x$as_val" = x""yes; then : |
8199 cat >>confdefs.h <<_ACEOF | 5939 cat >>confdefs.h <<_ACEOF |
8200 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 5940 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
8201 _ACEOF | 5941 _ACEOF |
8202 | 5942 |
8203 fi | 5943 fi |
8204 | 5944 |
8205 done | 5945 done |
8206 | 5946 |
8207 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_
h" = xyes; then | 5947 if test $ac_cv_header_sys_inttypes_h = yes; then |
8208 enable_libunwind=yes; | 5948 HAVE_SYS_INTTYPES_H=1 |
| 5949 else |
| 5950 HAVE_SYS_INTTYPES_H=0 |
| 5951 fi |
| 5952 |
| 5953 if test $ac_cv_header_sys_bitypes_h = yes; then |
| 5954 HAVE_SYS_BITYPES_H=1 |
| 5955 else |
| 5956 HAVE_SYS_BITYPES_H=0 |
| 5957 fi |
| 5958 |
| 5959 |
| 5960 |
| 5961 |
| 5962 if test $APPLE_UNIVERSAL_BUILD = 0; then |
| 5963 |
| 5964 |
| 5965 for gltype in ptrdiff_t size_t ; do |
| 5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >
&5 |
| 5967 $as_echo_n "checking for bit size of $gltype... " >&6; } |
| 5968 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; };
then : |
| 5969 $as_echo_n "(cached) " >&6 |
| 5970 else |
| 5971 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"
" |
| 5972 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 5973 included before <wchar.h>. */ |
| 5974 #include <stddef.h> |
| 5975 #include <signal.h> |
| 5976 #if HAVE_WCHAR_H |
| 5977 # include <stdio.h> |
| 5978 # include <time.h> |
| 5979 # include <wchar.h> |
| 5980 #endif |
| 5981 |
| 5982 #include <limits.h>"; then : |
| 5983 |
| 5984 else |
| 5985 result=unknown |
| 5986 fi |
| 5987 |
| 5988 eval gl_cv_bitsizeof_${gltype}=\$result |
| 5989 |
| 5990 fi |
| 5991 eval ac_res=\$gl_cv_bitsizeof_${gltype} |
| 5992 » { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 5993 $as_echo "$ac_res" >&6; } |
| 5994 eval result=\$gl_cv_bitsizeof_${gltype} |
| 5995 if test $result = unknown; then |
| 5996 result=0 |
| 5997 fi |
| 5998 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQ
RSTUVWXYZ_'` |
| 5999 cat >>confdefs.h <<_ACEOF |
| 6000 #define BITSIZEOF_${GLTYPE} $result |
| 6001 _ACEOF |
| 6002 |
| 6003 eval BITSIZEOF_${GLTYPE}=\$result |
| 6004 done |
| 6005 |
| 6006 |
8209 fi | 6007 fi |
8210 | 6008 |
8211 fi | 6009 |
8212 | 6010 for gltype in sig_atomic_t wchar_t wint_t ; do |
8213 | 6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >
&5 |
8214 if test x"$enable_libunwind" = xyes; then | 6012 $as_echo_n "checking for bit size of $gltype... " >&6; } |
8215 for ac_header in libunwind.h libunwind-ia64.h | 6013 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; };
then : |
8216 do : | |
8217 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8218 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_include
s_default" | |
8219 eval as_val=\$$as_ac_Header | |
8220 if test "x$as_val" = x""yes; then : | |
8221 cat >>confdefs.h <<_ACEOF | |
8222 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8223 _ACEOF | |
8224 | |
8225 fi | |
8226 | |
8227 done | |
8228 | |
8229 | |
8230 $as_echo "#define HAVE_LIBUNWIND 1" >>confdefs.h | |
8231 | |
8232 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o" | |
8233 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o" | |
8234 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c" | |
8235 fi | |
8236 | |
8237 opt_curses=no | |
8238 | |
8239 # Check whether --with-curses was given. | |
8240 if test "${with_curses+set}" = set; then : | |
8241 withval=$with_curses; opt_curses=$withval | |
8242 fi | |
8243 | |
8244 | |
8245 prefer_curses=no | |
8246 if test "$opt_curses" = "yes"; then | |
8247 prefer_curses=yes | |
8248 fi | |
8249 | |
8250 # Profiling support. | |
8251 # Check whether --enable-profiling was given. | |
8252 if test "${enable_profiling+set}" = set; then : | |
8253 enableval=$enable_profiling; case $enableval in | |
8254 yes | no) | |
8255 ;; | |
8256 *) | |
8257 as_fn_error "bad value $enableval for --enable-profile" "$LINENO" 5 ;; | |
8258 esac | |
8259 else | |
8260 enable_profiling=no | |
8261 fi | |
8262 | |
8263 | |
8264 for ac_func in monstartup _mcleanup | |
8265 do : | |
8266 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
8267 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
8268 eval as_val=\$$as_ac_var | |
8269 if test "x$as_val" = x""yes; then : | |
8270 cat >>confdefs.h <<_ACEOF | |
8271 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
8272 _ACEOF | |
8273 | |
8274 fi | |
8275 done | |
8276 | |
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5 | |
8278 $as_echo_n "checking for _etext... " >&6; } | |
8279 if test "${ac_cv_var__etext+set}" = set; then : | |
8280 $as_echo_n "(cached) " >&6 | 6014 $as_echo_n "(cached) " >&6 |
8281 else | 6015 else |
| 6016 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"
" |
| 6017 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 6018 included before <wchar.h>. */ |
| 6019 #include <stddef.h> |
| 6020 #include <signal.h> |
| 6021 #if HAVE_WCHAR_H |
| 6022 # include <stdio.h> |
| 6023 # include <time.h> |
| 6024 # include <wchar.h> |
| 6025 #endif |
| 6026 |
| 6027 #include <limits.h>"; then : |
| 6028 |
| 6029 else |
| 6030 result=unknown |
| 6031 fi |
| 6032 |
| 6033 eval gl_cv_bitsizeof_${gltype}=\$result |
| 6034 |
| 6035 fi |
| 6036 eval ac_res=\$gl_cv_bitsizeof_${gltype} |
| 6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 6038 $as_echo "$ac_res" >&6; } |
| 6039 eval result=\$gl_cv_bitsizeof_${gltype} |
| 6040 if test $result = unknown; then |
| 6041 result=0 |
| 6042 fi |
| 6043 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQ
RSTUVWXYZ_'` |
| 6044 cat >>confdefs.h <<_ACEOF |
| 6045 #define BITSIZEOF_${GLTYPE} $result |
| 6046 _ACEOF |
| 6047 |
| 6048 eval BITSIZEOF_${GLTYPE}=\$result |
| 6049 done |
| 6050 |
| 6051 |
| 6052 |
| 6053 |
| 6054 for gltype in sig_atomic_t wchar_t wint_t ; do |
| 6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed"
>&5 |
| 6056 $as_echo_n "checking whether $gltype is signed... " >&6; } |
| 6057 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set";
}; then : |
| 6058 $as_echo_n "(cached) " >&6 |
| 6059 else |
8282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 6060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8283 /* end confdefs.h. */ | 6061 /* end confdefs.h. */ |
8284 #include <stdlib.h> | 6062 |
8285 extern char _etext; | 6063 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
8286 | 6064 included before <wchar.h>. */ |
| 6065 #include <stddef.h> |
| 6066 #include <signal.h> |
| 6067 #if HAVE_WCHAR_H |
| 6068 # include <stdio.h> |
| 6069 # include <time.h> |
| 6070 # include <wchar.h> |
| 6071 #endif |
| 6072 |
| 6073 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1]; |
8287 int | 6074 int |
8288 main () | 6075 main () |
8289 { | 6076 { |
8290 free (&_etext); | 6077 |
8291 ; | 6078 ; |
8292 return 0; | 6079 return 0; |
8293 } | 6080 } |
8294 _ACEOF | 6081 _ACEOF |
8295 if ac_fn_c_try_link "$LINENO"; then : | 6082 if ac_fn_c_try_compile "$LINENO"; then : |
8296 ac_cv_var__etext=yes | 6083 result=yes |
8297 else | 6084 else |
8298 ac_cv_var__etext=no | 6085 result=no |
8299 fi | 6086 fi |
8300 rm -f core conftest.err conftest.$ac_objext \ | 6087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8301 conftest$ac_exeext conftest.$ac_ext | 6088 eval gl_cv_type_${gltype}_signed=\$result |
8302 fi | 6089 |
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5 | 6090 fi |
8304 $as_echo "$ac_cv_var__etext" >&6; } | 6091 eval ac_res=\$gl_cv_type_${gltype}_signed |
8305 if test $ac_cv_var__etext = yes; then | 6092 » { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
8306 | 6093 $as_echo "$ac_res" >&6; } |
8307 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h | 6094 eval result=\$gl_cv_type_${gltype}_signed |
8308 | 6095 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRS
TUVWXYZ_'` |
8309 fi | 6096 if test "$result" = yes; then |
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5 | 6097 cat >>confdefs.h <<_ACEOF |
8311 $as_echo_n "checking for etext... " >&6; } | 6098 #define HAVE_SIGNED_${GLTYPE} 1 |
8312 if test "${ac_cv_var_etext+set}" = set; then : | 6099 _ACEOF |
| 6100 |
| 6101 eval HAVE_SIGNED_${GLTYPE}=1 |
| 6102 else |
| 6103 eval HAVE_SIGNED_${GLTYPE}=0 |
| 6104 fi |
| 6105 done |
| 6106 |
| 6107 |
| 6108 gl_cv_type_ptrdiff_t_signed=yes |
| 6109 gl_cv_type_size_t_signed=no |
| 6110 if test $APPLE_UNIVERSAL_BUILD = 0; then |
| 6111 |
| 6112 |
| 6113 for gltype in ptrdiff_t size_t ; do |
| 6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer litera
l suffix" >&5 |
| 6115 $as_echo_n "checking for $gltype integer literal suffix... " >&6; } |
| 6116 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set";
}; then : |
8313 $as_echo_n "(cached) " >&6 | 6117 $as_echo_n "(cached) " >&6 |
8314 else | 6118 else |
8315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 6119 eval gl_cv_type_${gltype}_suffix=no |
8316 /* end confdefs.h. */ | 6120 eval result=\$gl_cv_type_${gltype}_signed |
8317 #include <stdlib.h> | 6121 if test "$result" = yes; then |
8318 extern char etext; | 6122 glsufu= |
8319 | 6123 else |
| 6124 glsufu=u |
| 6125 fi |
| 6126 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do |
| 6127 case $glsuf in |
| 6128 '') gltype1='int';; |
| 6129 l) gltype1='long int';; |
| 6130 ll) gltype1='long long int';; |
| 6131 i64) gltype1='__int64';; |
| 6132 u) gltype1='unsigned int';; |
| 6133 ul) gltype1='unsigned long int';; |
| 6134 ull) gltype1='unsigned long long int';; |
| 6135 ui64)gltype1='unsigned __int64';; |
| 6136 esac |
| 6137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6138 /* end confdefs.h. */ |
| 6139 |
| 6140 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 6141 included before <wchar.h>. */ |
| 6142 #include <stddef.h> |
| 6143 #include <signal.h> |
| 6144 #if HAVE_WCHAR_H |
| 6145 # include <stdio.h> |
| 6146 # include <time.h> |
| 6147 # include <wchar.h> |
| 6148 #endif |
| 6149 |
| 6150 extern $gltype foo; |
| 6151 extern $gltype1 foo; |
8320 int | 6152 int |
8321 main () | 6153 main () |
8322 { | 6154 { |
8323 free (&etext); | 6155 |
8324 ; | 6156 ; |
8325 return 0; | 6157 return 0; |
8326 } | 6158 } |
8327 _ACEOF | 6159 _ACEOF |
8328 if ac_fn_c_try_link "$LINENO"; then : | 6160 if ac_fn_c_try_compile "$LINENO"; then : |
8329 ac_cv_var_etext=yes | 6161 eval gl_cv_type_${gltype}_suffix=\$glsuf |
8330 else | 6162 fi |
8331 ac_cv_var_etext=no | 6163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8332 fi | 6164 eval result=\$gl_cv_type_${gltype}_suffix |
8333 rm -f core conftest.err conftest.$ac_objext \ | 6165 test "$result" != no && break |
8334 conftest$ac_exeext conftest.$ac_ext | 6166 done |
8335 fi | 6167 fi |
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5 | 6168 eval ac_res=\$gl_cv_type_${gltype}_suffix |
8337 $as_echo "$ac_cv_var_etext" >&6; } | 6169 » { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
8338 if test $ac_cv_var_etext = yes; then | 6170 $as_echo "$ac_res" >&6; } |
8339 | 6171 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRS
TUVWXYZ_'` |
8340 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h | 6172 eval result=\$gl_cv_type_${gltype}_suffix |
8341 | 6173 test "$result" = no && result= |
8342 fi | 6174 eval ${GLTYPE}_SUFFIX=\$result |
8343 if test "$enable_profiling" = yes ; then | 6175 cat >>confdefs.h <<_ACEOF |
8344 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then | 6176 #define ${GLTYPE}_SUFFIX $result |
8345 as_fn_error "--enable-profiling requires monstartup and _mcleanup" "$LINENO"
5 | 6177 _ACEOF |
| 6178 |
| 6179 done |
| 6180 |
| 6181 |
8346 fi | 6182 fi |
8347 PROFILE_CFLAGS=-pg | 6183 |
8348 OLD_CFLAGS="$CFLAGS" | 6184 |
8349 CFLAGS="$CFLAGS $PROFILE_CFLAGS" | 6185 for gltype in sig_atomic_t wchar_t wint_t ; do |
8350 | 6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer litera
l suffix" >&5 |
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&
5 | 6187 $as_echo_n "checking for $gltype integer literal suffix... " >&6; } |
8352 $as_echo_n "checking whether $CC supports -pg... " >&6; } | 6188 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set";
}; then : |
8353 if test "${ac_cv_cc_supports_pg+set}" = set; then : | |
8354 $as_echo_n "(cached) " >&6 | 6189 $as_echo_n "(cached) " >&6 |
8355 else | 6190 else |
8356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 6191 eval gl_cv_type_${gltype}_suffix=no |
8357 /* end confdefs.h. */ | 6192 eval result=\$gl_cv_type_${gltype}_signed |
8358 | 6193 if test "$result" = yes; then |
| 6194 glsufu= |
| 6195 else |
| 6196 glsufu=u |
| 6197 fi |
| 6198 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do |
| 6199 case $glsuf in |
| 6200 '') gltype1='int';; |
| 6201 l) gltype1='long int';; |
| 6202 ll) gltype1='long long int';; |
| 6203 i64) gltype1='__int64';; |
| 6204 u) gltype1='unsigned int';; |
| 6205 ul) gltype1='unsigned long int';; |
| 6206 ull) gltype1='unsigned long long int';; |
| 6207 ui64)gltype1='unsigned __int64';; |
| 6208 esac |
| 6209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6210 /* end confdefs.h. */ |
| 6211 |
| 6212 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 6213 included before <wchar.h>. */ |
| 6214 #include <stddef.h> |
| 6215 #include <signal.h> |
| 6216 #if HAVE_WCHAR_H |
| 6217 # include <stdio.h> |
| 6218 # include <time.h> |
| 6219 # include <wchar.h> |
| 6220 #endif |
| 6221 |
| 6222 extern $gltype foo; |
| 6223 extern $gltype1 foo; |
8359 int | 6224 int |
8360 main () | 6225 main () |
8361 { | 6226 { |
8362 int x; | 6227 |
8363 ; | 6228 ; |
8364 return 0; | 6229 return 0; |
8365 } | 6230 } |
8366 _ACEOF | 6231 _ACEOF |
8367 if ac_fn_c_try_compile "$LINENO"; then : | 6232 if ac_fn_c_try_compile "$LINENO"; then : |
8368 ac_cv_cc_supports_pg=yes | 6233 eval gl_cv_type_${gltype}_suffix=\$glsuf |
8369 else | |
8370 ac_cv_cc_supports_pg=no | |
8371 fi | 6234 fi |
8372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 6235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8373 fi | 6236 eval result=\$gl_cv_type_${gltype}_suffix |
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5 | 6237 test "$result" != no && break |
8375 $as_echo "$ac_cv_cc_supports_pg" >&6; } | 6238 done |
8376 | 6239 fi |
8377 if test $ac_cv_cc_supports_pg = no; then | 6240 eval ac_res=\$gl_cv_type_${gltype}_suffix |
8378 as_fn_error "--enable-profiling requires a compiler which supports -pg" "$LI
NENO" 5 | 6241 » { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 6242 $as_echo "$ac_res" >&6; } |
| 6243 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRS
TUVWXYZ_'` |
| 6244 eval result=\$gl_cv_type_${gltype}_suffix |
| 6245 test "$result" = no && result= |
| 6246 eval ${GLTYPE}_SUFFIX=\$result |
| 6247 cat >>confdefs.h <<_ACEOF |
| 6248 #define ${GLTYPE}_SUFFIX $result |
| 6249 _ACEOF |
| 6250 |
| 6251 done |
| 6252 |
| 6253 |
| 6254 |
| 6255 if test $BITSIZEOF_WINT_T -lt 32; then |
| 6256 BITSIZEOF_WINT_T=32 |
8379 fi | 6257 fi |
8380 | 6258 |
8381 CFLAGS="$OLD_CFLAGS" | 6259 STDINT_H=stdint.h |
8382 fi | 6260 fi |
8383 | 6261 |
8384 | 6262 if test -n "$STDINT_H"; then |
8385 | 6263 GL_GENERATE_STDINT_H_TRUE= |
8386 # Check whether --with-pkgversion was given. | 6264 GL_GENERATE_STDINT_H_FALSE='#' |
8387 if test "${with_pkgversion+set}" = set; then : | 6265 else |
8388 withval=$with_pkgversion; case "$withval" in | 6266 GL_GENERATE_STDINT_H_TRUE='#' |
8389 yes) as_fn_error "package version not specified" "$LINENO" 5 ;; | 6267 GL_GENERATE_STDINT_H_FALSE= |
8390 no) PKGVERSION= ;; | 6268 fi |
8391 *) PKGVERSION="($withval) " ;; | 6269 |
8392 esac | 6270 |
8393 else | 6271 |
8394 PKGVERSION="(GDB) " | 6272 |
8395 | 6273 |
8396 fi | 6274 |
8397 | 6275 |
8398 | 6276 |
8399 | 6277 GNULIB_IMAXABS=0; |
8400 | 6278 GNULIB_IMAXDIV=0; |
8401 | 6279 GNULIB_STRTOIMAX=0; |
8402 # Check whether --with-bugurl was given. | 6280 GNULIB_STRTOUMAX=0; |
8403 if test "${with_bugurl+set}" = set; then : | 6281 HAVE_DECL_IMAXABS=1; |
8404 withval=$with_bugurl; case "$withval" in | 6282 HAVE_DECL_IMAXDIV=1; |
8405 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;; | 6283 HAVE_DECL_STRTOIMAX=1; |
8406 no) BUGURL= | 6284 HAVE_DECL_STRTOUMAX=1; |
8407 » ;; | 6285 REPLACE_STRTOIMAX=0; |
8408 *) BUGURL="$withval" | 6286 INT32_MAX_LT_INTMAX_MAX=1; |
8409 » ;; | 6287 INT64_MAX_EQ_LONG_MAX='defined _LP64'; |
8410 esac | 6288 PRI_MACROS_BROKEN=0; |
8411 else | 6289 PRIPTR_PREFIX=__PRIPTR_PREFIX; |
8412 BUGURL="http://www.gnu.org/software/gdb/bugs/" | 6290 UINT32_MAX_LT_UINTMAX_MAX=1; |
8413 | 6291 UINT64_MAX_EQ_ULONG_MAX='defined _LP64'; |
8414 fi | 6292 |
8415 | 6293 |
8416 case ${BUGURL} in | 6294 |
8417 "") | 6295 |
8418 REPORT_BUGS_TO= | 6296 : |
8419 REPORT_BUGS_TEXI= | 6297 |
8420 ;; | 6298 |
8421 *) | 6299 |
8422 REPORT_BUGS_TO="<$BUGURL>" | 6300 |
8423 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`} | 6301 |
8424 ;; | 6302 |
8425 esac; | 6303 |
8426 | 6304 |
8427 | 6305 |
8428 | 6306 |
8429 | 6307 |
8430 cat >>confdefs.h <<_ACEOF | 6308 |
8431 #define PKGVERSION "$PKGVERSION" | 6309 |
8432 _ACEOF | 6310 : |
8433 | 6311 |
8434 | 6312 |
8435 cat >>confdefs.h <<_ACEOF | 6313 |
8436 #define REPORT_BUGS_TO "$REPORT_BUGS_TO" | 6314 |
8437 _ACEOF | 6315 |
8438 | 6316 |
8439 | 6317 |
8440 # --------------------- # | 6318 |
8441 # Checks for programs. # | 6319 if test $gl_cv_have_include_next = yes; then |
8442 # --------------------- # | 6320 gl_cv_next_inttypes_h='<'inttypes.h'>' |
8443 | 6321 else |
8444 for ac_prog in gawk mawk nawk awk | 6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <intty
pes.h>" >&5 |
8445 do | 6323 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; } |
8446 # Extract the first word of "$ac_prog", so it can be a program name with args. | 6324 if test "${gl_cv_next_inttypes_h+set}" = set; then : |
8447 set dummy $ac_prog; ac_word=$2 | |
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8449 $as_echo_n "checking for $ac_word... " >&6; } | |
8450 if test "${ac_cv_prog_AWK+set}" = set; then : | |
8451 $as_echo_n "(cached) " >&6 | 6325 $as_echo_n "(cached) " >&6 |
8452 else | 6326 else |
8453 if test -n "$AWK"; then | 6327 |
8454 ac_cv_prog_AWK="$AWK" # Let the user override the test. | 6328 if test $ac_cv_header_inttypes_h = yes; then |
8455 else | 6329 |
8456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 6330 |
8457 for as_dir in $PATH | 6331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8458 do | 6332 /* end confdefs.h. */ |
8459 IFS=$as_save_IFS | 6333 #include <inttypes.h> |
8460 test -z "$as_dir" && as_dir=. | 6334 |
8461 for ac_exec_ext in '' $ac_executable_extensions; do | 6335 _ACEOF |
8462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then | 6336
case "$host_os" in |
8463 ac_cv_prog_AWK="$ac_prog" | 6337 aix*) gl_absname_cpp="$ac_cpp -C" ;; |
8464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 | 6338 *) gl_absname_cpp="$ac_cpp" ;; |
8465 break 2 | 6339 esac |
8466 fi | 6340 |
8467 done | 6341 case "$host_os" in |
8468 done | 6342 mingw*) |
8469 IFS=$as_save_IFS | 6343
gl_dirsep_regex='[/\\]' |
8470 | 6344 ;; |
8471 fi | 6345 *) |
8472 fi | 6346 gl_dirsep_regex='\/' |
8473 AWK=$ac_cv_prog_AWK | 6347 ;; |
8474 if test -n "$AWK"; then | 6348 esac |
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | 6349 gl_make_literal_regex_sed='s,[]$^\\
.*/[],\\&,g' |
8476 $as_echo "$AWK" >&6; } | 6350 |
8477 else | 6351 gl_header_literal_regex=`echo 'inttypes.h' \ |
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 6352 | sed -e "$gl_make_literal_regex_sed"` |
8479 $as_echo "no" >&6; } | 6353 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_re
gex}/"'{ |
8480 fi | 6354 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".
*/\1/ |
8481 | 6355 s|^/[^/]|//&| |
8482 | 6356 p |
8483 test -n "$AWK" && break | 6357 q |
8484 done | 6358 }' |
8485 | 6359 gl_cv_next_inttypes_
h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
8486 | 6360 sed -n "$gl_absolute_header_sed"`'"' |
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | 6361 else |
8488 $as_echo_n "checking whether ln -s works... " >&6; } | 6362 gl_cv_next_inttypes_h='<'inttypes.h'>' |
8489 LN_S=$as_ln_s | 6363 fi |
8490 if test "$LN_S" = "ln -s"; then | 6364 |
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 6365 |
8492 $as_echo "yes" >&6; } | 6366 fi |
8493 else | 6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5 |
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | 6368 $as_echo "$gl_cv_next_inttypes_h" >&6; } |
8495 $as_echo "no, using $LN_S" >&6; } | 6369 fi |
8496 fi | 6370 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h |
8497 | 6371 |
8498 if test -n "$ac_tool_prefix"; then | 6372 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = b
uggy; then |
8499 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program
name with args. | 6373 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
8500 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 6374 gl_next_as_first_directive='<'inttypes.h'>' |
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 6375 else |
8502 $as_echo_n "checking for $ac_word... " >&6; } | 6376 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
8503 if test "${ac_cv_prog_RANLIB+set}" = set; then : | 6377 gl_next_as_first_directive=$gl_cv_next_inttypes_h |
| 6378 fi |
| 6379 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive |
| 6380 |
| 6381 |
| 6382 |
| 6383 |
| 6384 |
| 6385 |
| 6386 |
| 6387 |
| 6388 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do |
| 6389 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` |
| 6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declar
ed without a macro" >&5 |
| 6391 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } |
| 6392 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then : |
8504 $as_echo_n "(cached) " >&6 | 6393 $as_echo_n "(cached) " >&6 |
8505 else | 6394 else |
8506 if test -n "$RANLIB"; then | 6395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8507 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 6396 /* end confdefs.h. */ |
8508 else | 6397 #include <inttypes.h> |
8509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8510 for as_dir in $PATH | |
8511 do | |
8512 IFS=$as_save_IFS | |
8513 test -z "$as_dir" && as_dir=. | |
8514 for ac_exec_ext in '' $ac_executable_extensions; do | |
8515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then | |
8516 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
8517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 | |
8518 break 2 | |
8519 fi | |
8520 done | |
8521 done | |
8522 IFS=$as_save_IFS | |
8523 | |
8524 fi | |
8525 fi | |
8526 RANLIB=$ac_cv_prog_RANLIB | |
8527 if test -n "$RANLIB"; then | |
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
8529 $as_echo "$RANLIB" >&6; } | |
8530 else | |
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8532 $as_echo "no" >&6; } | |
8533 fi | |
8534 | |
8535 | |
8536 fi | |
8537 if test -z "$ac_cv_prog_RANLIB"; then | |
8538 ac_ct_RANLIB=$RANLIB | |
8539 # Extract the first word of "ranlib", so it can be a program name with args. | |
8540 set dummy ranlib; ac_word=$2 | |
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8542 $as_echo_n "checking for $ac_word... " >&6; } | |
8543 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
8544 $as_echo_n "(cached) " >&6 | |
8545 else | |
8546 if test -n "$ac_ct_RANLIB"; then | |
8547 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
8548 else | |
8549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8550 for as_dir in $PATH | |
8551 do | |
8552 IFS=$as_save_IFS | |
8553 test -z "$as_dir" && as_dir=. | |
8554 for ac_exec_ext in '' $ac_executable_extensions; do | |
8555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then | |
8556 ac_cv_prog_ac_ct_RANLIB="ranlib" | |
8557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 | |
8558 break 2 | |
8559 fi | |
8560 done | |
8561 done | |
8562 IFS=$as_save_IFS | |
8563 | |
8564 fi | |
8565 fi | |
8566 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
8567 if test -n "$ac_ct_RANLIB"; then | |
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
8569 $as_echo "$ac_ct_RANLIB" >&6; } | |
8570 else | |
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8572 $as_echo "no" >&6; } | |
8573 fi | |
8574 | |
8575 if test "x$ac_ct_RANLIB" = x; then | |
8576 RANLIB=":" | |
8577 else | |
8578 case $cross_compiling:$ac_tool_warned in | |
8579 yes:) | |
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed
with host triplet" >&5 | |
8581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2
;} | |
8582 ac_tool_warned=yes ;; | |
8583 esac | |
8584 RANLIB=$ac_ct_RANLIB | |
8585 fi | |
8586 else | |
8587 RANLIB="$ac_cv_prog_RANLIB" | |
8588 fi | |
8589 | |
8590 for ac_prog in 'bison -y' byacc | |
8591 do | |
8592 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8593 set dummy $ac_prog; ac_word=$2 | |
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8595 $as_echo_n "checking for $ac_word... " >&6; } | |
8596 if test "${ac_cv_prog_YACC+set}" = set; then : | |
8597 $as_echo_n "(cached) " >&6 | |
8598 else | |
8599 if test -n "$YACC"; then | |
8600 ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
8601 else | |
8602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8603 for as_dir in $PATH | |
8604 do | |
8605 IFS=$as_save_IFS | |
8606 test -z "$as_dir" && as_dir=. | |
8607 for ac_exec_ext in '' $ac_executable_extensions; do | |
8608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then | |
8609 ac_cv_prog_YACC="$ac_prog" | |
8610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 | |
8611 break 2 | |
8612 fi | |
8613 done | |
8614 done | |
8615 IFS=$as_save_IFS | |
8616 | |
8617 fi | |
8618 fi | |
8619 YACC=$ac_cv_prog_YACC | |
8620 if test -n "$YACC"; then | |
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 | |
8622 $as_echo "$YACC" >&6; } | |
8623 else | |
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8625 $as_echo "no" >&6; } | |
8626 fi | |
8627 | |
8628 | |
8629 test -n "$YACC" && break | |
8630 done | |
8631 test -n "$YACC" || YACC="yacc" | |
8632 | |
8633 | |
8634 if test -n "$ac_tool_prefix"; then | |
8635 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name
with args. | |
8636 set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8638 $as_echo_n "checking for $ac_word... " >&6; } | |
8639 if test "${ac_cv_prog_AR+set}" = set; then : | |
8640 $as_echo_n "(cached) " >&6 | |
8641 else | |
8642 if test -n "$AR"; then | |
8643 ac_cv_prog_AR="$AR" # Let the user override the test. | |
8644 else | |
8645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8646 for as_dir in $PATH | |
8647 do | |
8648 IFS=$as_save_IFS | |
8649 test -z "$as_dir" && as_dir=. | |
8650 for ac_exec_ext in '' $ac_executable_extensions; do | |
8651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then | |
8652 ac_cv_prog_AR="${ac_tool_prefix}ar" | |
8653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 | |
8654 break 2 | |
8655 fi | |
8656 done | |
8657 done | |
8658 IFS=$as_save_IFS | |
8659 | |
8660 fi | |
8661 fi | |
8662 AR=$ac_cv_prog_AR | |
8663 if test -n "$AR"; then | |
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
8665 $as_echo "$AR" >&6; } | |
8666 else | |
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8668 $as_echo "no" >&6; } | |
8669 fi | |
8670 | |
8671 | |
8672 fi | |
8673 if test -z "$ac_cv_prog_AR"; then | |
8674 ac_ct_AR=$AR | |
8675 # Extract the first word of "ar", so it can be a program name with args. | |
8676 set dummy ar; ac_word=$2 | |
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8678 $as_echo_n "checking for $ac_word... " >&6; } | |
8679 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | |
8680 $as_echo_n "(cached) " >&6 | |
8681 else | |
8682 if test -n "$ac_ct_AR"; then | |
8683 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
8684 else | |
8685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8686 for as_dir in $PATH | |
8687 do | |
8688 IFS=$as_save_IFS | |
8689 test -z "$as_dir" && as_dir=. | |
8690 for ac_exec_ext in '' $ac_executable_extensions; do | |
8691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then | |
8692 ac_cv_prog_ac_ct_AR="ar" | |
8693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 | |
8694 break 2 | |
8695 fi | |
8696 done | |
8697 done | |
8698 IFS=$as_save_IFS | |
8699 | |
8700 fi | |
8701 fi | |
8702 ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
8703 if test -n "$ac_ct_AR"; then | |
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
8705 $as_echo "$ac_ct_AR" >&6; } | |
8706 else | |
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8708 $as_echo "no" >&6; } | |
8709 fi | |
8710 | |
8711 if test "x$ac_ct_AR" = x; then | |
8712 AR="" | |
8713 else | |
8714 case $cross_compiling:$ac_tool_warned in | |
8715 yes:) | |
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed
with host triplet" >&5 | |
8717 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2
;} | |
8718 ac_tool_warned=yes ;; | |
8719 esac | |
8720 AR=$ac_ct_AR | |
8721 fi | |
8722 else | |
8723 AR="$ac_cv_prog_AR" | |
8724 fi | |
8725 | |
8726 if test -n "$ac_tool_prefix"; then | |
8727 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program
name with args. | |
8728 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8730 $as_echo_n "checking for $ac_word... " >&6; } | |
8731 if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8732 $as_echo_n "(cached) " >&6 | |
8733 else | |
8734 if test -n "$DLLTOOL"; then | |
8735 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8736 else | |
8737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8738 for as_dir in $PATH | |
8739 do | |
8740 IFS=$as_save_IFS | |
8741 test -z "$as_dir" && as_dir=. | |
8742 for ac_exec_ext in '' $ac_executable_extensions; do | |
8743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then | |
8744 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
8745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 | |
8746 break 2 | |
8747 fi | |
8748 done | |
8749 done | |
8750 IFS=$as_save_IFS | |
8751 | |
8752 fi | |
8753 fi | |
8754 DLLTOOL=$ac_cv_prog_DLLTOOL | |
8755 if test -n "$DLLTOOL"; then | |
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
8757 $as_echo "$DLLTOOL" >&6; } | |
8758 else | |
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8760 $as_echo "no" >&6; } | |
8761 fi | |
8762 | |
8763 | |
8764 fi | |
8765 if test -z "$ac_cv_prog_DLLTOOL"; then | |
8766 ac_ct_DLLTOOL=$DLLTOOL | |
8767 # Extract the first word of "dlltool", so it can be a program name with args. | |
8768 set dummy dlltool; ac_word=$2 | |
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8770 $as_echo_n "checking for $ac_word... " >&6; } | |
8771 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then : | |
8772 $as_echo_n "(cached) " >&6 | |
8773 else | |
8774 if test -n "$ac_ct_DLLTOOL"; then | |
8775 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
8776 else | |
8777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8778 for as_dir in $PATH | |
8779 do | |
8780 IFS=$as_save_IFS | |
8781 test -z "$as_dir" && as_dir=. | |
8782 for ac_exec_ext in '' $ac_executable_extensions; do | |
8783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then | |
8784 ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
8785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 | |
8786 break 2 | |
8787 fi | |
8788 done | |
8789 done | |
8790 IFS=$as_save_IFS | |
8791 | |
8792 fi | |
8793 fi | |
8794 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
8795 if test -n "$ac_ct_DLLTOOL"; then | |
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
8797 $as_echo "$ac_ct_DLLTOOL" >&6; } | |
8798 else | |
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8800 $as_echo "no" >&6; } | |
8801 fi | |
8802 | |
8803 if test "x$ac_ct_DLLTOOL" = x; then | |
8804 DLLTOOL="" | |
8805 else | |
8806 case $cross_compiling:$ac_tool_warned in | |
8807 yes:) | |
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed
with host triplet" >&5 | |
8809 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2
;} | |
8810 ac_tool_warned=yes ;; | |
8811 esac | |
8812 DLLTOOL=$ac_ct_DLLTOOL | |
8813 fi | |
8814 else | |
8815 DLLTOOL="$ac_cv_prog_DLLTOOL" | |
8816 fi | |
8817 | |
8818 if test -n "$ac_tool_prefix"; then | |
8819 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program
name with args. | |
8820 set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8822 $as_echo_n "checking for $ac_word... " >&6; } | |
8823 if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
8824 $as_echo_n "(cached) " >&6 | |
8825 else | |
8826 if test -n "$WINDRES"; then | |
8827 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
8828 else | |
8829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8830 for as_dir in $PATH | |
8831 do | |
8832 IFS=$as_save_IFS | |
8833 test -z "$as_dir" && as_dir=. | |
8834 for ac_exec_ext in '' $ac_executable_extensions; do | |
8835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then | |
8836 ac_cv_prog_WINDRES="${ac_tool_prefix}windres" | |
8837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 | |
8838 break 2 | |
8839 fi | |
8840 done | |
8841 done | |
8842 IFS=$as_save_IFS | |
8843 | |
8844 fi | |
8845 fi | |
8846 WINDRES=$ac_cv_prog_WINDRES | |
8847 if test -n "$WINDRES"; then | |
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 | |
8849 $as_echo "$WINDRES" >&6; } | |
8850 else | |
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8852 $as_echo "no" >&6; } | |
8853 fi | |
8854 | |
8855 | |
8856 fi | |
8857 if test -z "$ac_cv_prog_WINDRES"; then | |
8858 ac_ct_WINDRES=$WINDRES | |
8859 # Extract the first word of "windres", so it can be a program name with args. | |
8860 set dummy windres; ac_word=$2 | |
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8862 $as_echo_n "checking for $ac_word... " >&6; } | |
8863 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then : | |
8864 $as_echo_n "(cached) " >&6 | |
8865 else | |
8866 if test -n "$ac_ct_WINDRES"; then | |
8867 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
8868 else | |
8869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8870 for as_dir in $PATH | |
8871 do | |
8872 IFS=$as_save_IFS | |
8873 test -z "$as_dir" && as_dir=. | |
8874 for ac_exec_ext in '' $ac_executable_extensions; do | |
8875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then | |
8876 ac_cv_prog_ac_ct_WINDRES="windres" | |
8877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 | |
8878 break 2 | |
8879 fi | |
8880 done | |
8881 done | |
8882 IFS=$as_save_IFS | |
8883 | |
8884 fi | |
8885 fi | |
8886 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES | |
8887 if test -n "$ac_ct_WINDRES"; then | |
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 | |
8889 $as_echo "$ac_ct_WINDRES" >&6; } | |
8890 else | |
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8892 $as_echo "no" >&6; } | |
8893 fi | |
8894 | |
8895 if test "x$ac_ct_WINDRES" = x; then | |
8896 WINDRES="" | |
8897 else | |
8898 case $cross_compiling:$ac_tool_warned in | |
8899 yes:) | |
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed
with host triplet" >&5 | |
8901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2
;} | |
8902 ac_tool_warned=yes ;; | |
8903 esac | |
8904 WINDRES=$ac_ct_WINDRES | |
8905 fi | |
8906 else | |
8907 WINDRES="$ac_cv_prog_WINDRES" | |
8908 fi | |
8909 | |
8910 | |
8911 # Needed for GNU/Hurd. | |
8912 if test -n "$ac_tool_prefix"; then | |
8913 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program nam
e with args. | |
8914 set dummy ${ac_tool_prefix}mig; ac_word=$2 | |
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8916 $as_echo_n "checking for $ac_word... " >&6; } | |
8917 if test "${ac_cv_prog_MIG+set}" = set; then : | |
8918 $as_echo_n "(cached) " >&6 | |
8919 else | |
8920 if test -n "$MIG"; then | |
8921 ac_cv_prog_MIG="$MIG" # Let the user override the test. | |
8922 else | |
8923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8924 for as_dir in $PATH | |
8925 do | |
8926 IFS=$as_save_IFS | |
8927 test -z "$as_dir" && as_dir=. | |
8928 for ac_exec_ext in '' $ac_executable_extensions; do | |
8929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then | |
8930 ac_cv_prog_MIG="${ac_tool_prefix}mig" | |
8931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 | |
8932 break 2 | |
8933 fi | |
8934 done | |
8935 done | |
8936 IFS=$as_save_IFS | |
8937 | |
8938 fi | |
8939 fi | |
8940 MIG=$ac_cv_prog_MIG | |
8941 if test -n "$MIG"; then | |
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5 | |
8943 $as_echo "$MIG" >&6; } | |
8944 else | |
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8946 $as_echo "no" >&6; } | |
8947 fi | |
8948 | |
8949 | |
8950 fi | |
8951 if test -z "$ac_cv_prog_MIG"; then | |
8952 ac_ct_MIG=$MIG | |
8953 # Extract the first word of "mig", so it can be a program name with args. | |
8954 set dummy mig; ac_word=$2 | |
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8956 $as_echo_n "checking for $ac_word... " >&6; } | |
8957 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then : | |
8958 $as_echo_n "(cached) " >&6 | |
8959 else | |
8960 if test -n "$ac_ct_MIG"; then | |
8961 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test. | |
8962 else | |
8963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8964 for as_dir in $PATH | |
8965 do | |
8966 IFS=$as_save_IFS | |
8967 test -z "$as_dir" && as_dir=. | |
8968 for ac_exec_ext in '' $ac_executable_extensions; do | |
8969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then | |
8970 ac_cv_prog_ac_ct_MIG="mig" | |
8971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 | |
8972 break 2 | |
8973 fi | |
8974 done | |
8975 done | |
8976 IFS=$as_save_IFS | |
8977 | |
8978 fi | |
8979 fi | |
8980 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG | |
8981 if test -n "$ac_ct_MIG"; then | |
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5 | |
8983 $as_echo "$ac_ct_MIG" >&6; } | |
8984 else | |
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8986 $as_echo "no" >&6; } | |
8987 fi | |
8988 | |
8989 if test "x$ac_ct_MIG" = x; then | |
8990 MIG="" | |
8991 else | |
8992 case $cross_compiling:$ac_tool_warned in | |
8993 yes:) | |
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed
with host triplet" >&5 | |
8995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2
;} | |
8996 ac_tool_warned=yes ;; | |
8997 esac | |
8998 MIG=$ac_ct_MIG | |
8999 fi | |
9000 else | |
9001 MIG="$ac_cv_prog_MIG" | |
9002 fi | |
9003 | |
9004 | |
9005 # ---------------------- # | |
9006 # Checks for libraries. # | |
9007 # ---------------------- # | |
9008 | |
9009 # We might need to link with -lm; most simulators need it. | |
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5 | |
9011 $as_echo_n "checking for main in -lm... " >&6; } | |
9012 if test "${ac_cv_lib_m_main+set}" = set; then : | |
9013 $as_echo_n "(cached) " >&6 | |
9014 else | |
9015 ac_check_lib_save_LIBS=$LIBS | |
9016 LIBS="-lm $LIBS" | |
9017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9018 /* end confdefs.h. */ | |
9019 | |
9020 | 6398 |
9021 int | 6399 int |
9022 main () | 6400 main () |
9023 { | 6401 { |
9024 return main (); | 6402 #undef $gl_func |
| 6403 (void) $gl_func; |
9025 ; | 6404 ; |
9026 return 0; | 6405 return 0; |
9027 } | 6406 } |
9028 _ACEOF | 6407 _ACEOF |
9029 if ac_fn_c_try_link "$LINENO"; then : | 6408 if ac_fn_c_try_compile "$LINENO"; then : |
9030 ac_cv_lib_m_main=yes | 6409 eval "$as_gl_Symbol=yes" |
9031 else | 6410 else |
9032 ac_cv_lib_m_main=no | 6411 eval "$as_gl_Symbol=no" |
9033 fi | 6412 fi |
9034 rm -f core conftest.err conftest.$ac_objext \ | 6413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9035 conftest$ac_exeext conftest.$ac_ext | 6414 fi |
9036 LIBS=$ac_check_lib_save_LIBS | 6415 eval ac_res=\$$as_gl_Symbol |
9037 fi | 6416 » { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5 | 6417 $as_echo "$ac_res" >&6; } |
9039 $as_echo "$ac_cv_lib_m_main" >&6; } | 6418 eval as_val=\$$as_gl_Symbol |
9040 if test "x$ac_cv_lib_m_main" = x""yes; then : | 6419 if test "x$as_val" = x""yes; then : |
9041 cat >>confdefs.h <<_ACEOF | 6420 cat >>confdefs.h <<_ACEOF |
9042 #define HAVE_LIBM 1 | 6421 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 |
9043 _ACEOF | 6422 _ACEOF |
9044 | 6423 |
9045 LIBS="-lm $LIBS" | 6424 eval ac_cv_have_decl_$gl_func=yes |
9046 | 6425 fi |
9047 fi | 6426 done |
9048 | 6427 |
9049 | 6428 |
9050 # We need to link with -lw to get `wctype' on Solaris before Solaris | 6429 |
9051 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a | 6430 for ac_header in inttypes.h |
9052 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1 | 6431 do : |
9053 # is known to have this problem). Therefore we avoid libw if we can. | 6432 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h"
"$ac_includes_default" |
9054 ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype" | 6433 if test "x$ac_cv_header_inttypes_h" = x""yes; then : |
9055 if test "x$ac_cv_func_wctype" = x""yes; then : | 6434 cat >>confdefs.h <<_ACEOF |
9056 | 6435 #define HAVE_INTTYPES_H 1 |
9057 else | 6436 _ACEOF |
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5 | 6437 |
9059 $as_echo_n "checking for wctype in -lw... " >&6; } | 6438 fi |
9060 if test "${ac_cv_lib_w_wctype+set}" = set; then : | 6439 |
| 6440 done |
| 6441 |
| 6442 if test $ac_cv_header_inttypes_h = yes; then |
| 6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRI
xNN macros are broken" >&5 |
| 6444 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; } |
| 6445 if test "${gt_cv_inttypes_pri_broken+set}" = set; then : |
9061 $as_echo_n "(cached) " >&6 | 6446 $as_echo_n "(cached) " >&6 |
9062 else | 6447 else |
9063 ac_check_lib_save_LIBS=$LIBS | 6448 |
9064 LIBS="-lw $LIBS" | 6449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 6450 /* end confdefs.h. */ |
9066 /* end confdefs.h. */ | 6451 |
9067 | 6452 #include <inttypes.h> |
9068 /* Override any GCC internal prototype to avoid an error. | 6453 #ifdef PRId32 |
9069 Use char because int might match the return type of a GCC | 6454 char *p = PRId32; |
9070 builtin and then its argument prototype would still apply. */ | 6455 #endif |
9071 #ifdef __cplusplus | 6456 |
9072 extern "C" | |
9073 #endif | |
9074 char wctype (); | |
9075 int | 6457 int |
9076 main () | 6458 main () |
9077 { | 6459 { |
9078 return wctype (); | 6460 |
9079 ; | 6461 ; |
9080 return 0; | 6462 return 0; |
9081 } | 6463 } |
9082 _ACEOF | 6464 _ACEOF |
9083 if ac_fn_c_try_link "$LINENO"; then : | 6465 if ac_fn_c_try_compile "$LINENO"; then : |
9084 ac_cv_lib_w_wctype=yes | 6466 gt_cv_inttypes_pri_broken=no |
9085 else | 6467 else |
9086 ac_cv_lib_w_wctype=no | 6468 gt_cv_inttypes_pri_broken=yes |
9087 fi | 6469 fi |
9088 rm -f core conftest.err conftest.$ac_objext \ | 6470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9089 conftest$ac_exeext conftest.$ac_ext | 6471 |
9090 LIBS=$ac_check_lib_save_LIBS | 6472 fi |
9091 fi | 6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5 |
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5 | 6474 $as_echo "$gt_cv_inttypes_pri_broken" >&6; } |
9093 $as_echo "$ac_cv_lib_w_wctype" >&6; } | 6475 fi |
9094 if test "x$ac_cv_lib_w_wctype" = x""yes; then : | 6476 if test "$gt_cv_inttypes_pri_broken" = yes; then |
9095 cat >>confdefs.h <<_ACEOF | 6477 |
9096 #define HAVE_LIBW 1 | 6478 cat >>confdefs.h <<_ACEOF |
9097 _ACEOF | 6479 #define PRI_MACROS_BROKEN 1 |
9098 | 6480 _ACEOF |
9099 LIBS="-lw $LIBS" | 6481 |
9100 | 6482 PRI_MACROS_BROKEN=1 |
9101 fi | 6483 else |
9102 | 6484 PRI_MACROS_BROKEN=0 |
9103 fi | 6485 fi |
9104 | 6486 |
9105 | 6487 |
9106 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl. | 6488 |
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethost
byname" >&5 | 6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET"
>&5 |
9108 $as_echo_n "checking for library containing gethostbyname... " >&6; } | 6490 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } |
9109 if test "${ac_cv_search_gethostbyname+set}" = set; then : | 6491 if test "${am_cv_langinfo_codeset+set}" = set; then : |
9110 $as_echo_n "(cached) " >&6 | 6492 $as_echo_n "(cached) " >&6 |
9111 else | 6493 else |
9112 ac_func_search_save_LIBS=$LIBS | 6494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 6495 /* end confdefs.h. */ |
9114 /* end confdefs.h. */ | 6496 #include <langinfo.h> |
9115 | |
9116 /* Override any GCC internal prototype to avoid an error. | |
9117 Use char because int might match the return type of a GCC | |
9118 builtin and then its argument prototype would still apply. */ | |
9119 #ifdef __cplusplus | |
9120 extern "C" | |
9121 #endif | |
9122 char gethostbyname (); | |
9123 int | 6497 int |
9124 main () | 6498 main () |
9125 { | 6499 { |
9126 return gethostbyname (); | 6500 char* cs = nl_langinfo(CODESET); return !cs; |
9127 ; | 6501 ; |
9128 return 0; | 6502 return 0; |
9129 } | 6503 } |
9130 _ACEOF | 6504 _ACEOF |
9131 for ac_lib in '' nsl; do | 6505 if ac_fn_c_try_link "$LINENO"; then : |
9132 if test -z "$ac_lib"; then | 6506 am_cv_langinfo_codeset=yes |
9133 ac_res="none required" | 6507 else |
9134 else | 6508 am_cv_langinfo_codeset=no |
9135 ac_res=-l$ac_lib | 6509 fi |
9136 LIBS="-l$ac_lib $ac_func_search_save_LIBS" | 6510 rm -f core conftest.err conftest.$ac_objext \ |
| 6511 conftest$ac_exeext conftest.$ac_ext |
| 6512 |
| 6513 fi |
| 6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 |
| 6515 $as_echo "$am_cv_langinfo_codeset" >&6; } |
| 6516 if test $am_cv_langinfo_codeset = yes; then |
| 6517 |
| 6518 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h |
| 6519 |
9137 fi | 6520 fi |
9138 if ac_fn_c_try_link "$LINENO"; then : | 6521 |
9139 ac_cv_search_gethostbyname=$ac_res | 6522 |
9140 fi | 6523 |
9141 rm -f core conftest.err conftest.$ac_objext \ | 6524 |
9142 conftest$ac_exeext | 6525 |
9143 if test "${ac_cv_search_gethostbyname+set}" = set; then : | 6526 |
9144 break | 6527 |
9145 fi | 6528 |
9146 done | 6529 |
9147 if test "${ac_cv_search_gethostbyname+set}" = set; then : | 6530 |
9148 | 6531 |
9149 else | 6532 |
9150 ac_cv_search_gethostbyname=no | 6533 |
9151 fi | 6534 |
9152 rm conftest.$ac_ext | 6535 |
9153 LIBS=$ac_func_search_save_LIBS | 6536 : |
9154 fi | 6537 |
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&
5 | 6538 |
9156 $as_echo "$ac_cv_search_gethostbyname" >&6; } | 6539 |
9157 ac_res=$ac_cv_search_gethostbyname | 6540 |
9158 if test "$ac_res" != no; then : | 6541 |
9159 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 6542 |
9160 | 6543 : |
9161 fi | 6544 |
9162 | 6545 |
9163 | 6546 |
9164 # Some systems (e.g. Solaris) have `socketpair' in libsocket. | 6547 |
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketp
air" >&5 | 6548 |
9166 $as_echo_n "checking for library containing socketpair... " >&6; } | 6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5 |
9167 if test "${ac_cv_search_socketpair+set}" = set; then : | 6550 $as_echo_n "checking for working fcntl.h... " >&6; } |
| 6551 if test "${gl_cv_header_working_fcntl_h+set}" = set; then : |
9168 $as_echo_n "(cached) " >&6 | 6552 $as_echo_n "(cached) " >&6 |
9169 else | 6553 else |
9170 ac_func_search_save_LIBS=$LIBS | 6554 if test "$cross_compiling" = yes; then : |
9171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 6555 gl_cv_header_working_fcntl_h=cross-compiling |
9172 /* end confdefs.h. */ | 6556 else |
9173 | 6557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9174 /* Override any GCC internal prototype to avoid an error. | 6558 /* end confdefs.h. */ |
9175 Use char because int might match the return type of a GCC | 6559 #include <sys/types.h> |
9176 builtin and then its argument prototype would still apply. */ | 6560 #include <sys/stat.h> |
9177 #ifdef __cplusplus | 6561 #if HAVE_UNISTD_H |
9178 extern "C" | 6562 # include <unistd.h> |
9179 #endif | 6563 #else /* on Windows with MSVC */ |
9180 char socketpair (); | 6564 # include <io.h> |
| 6565 # include <stdlib.h> |
| 6566 # defined sleep(n) _sleep ((n) * 1000) |
| 6567 #endif |
| 6568 #include <fcntl.h> |
| 6569 #ifndef O_NOATIME |
| 6570 #define O_NOATIME 0 |
| 6571 #endif |
| 6572 #ifndef O_NOFOLLOW |
| 6573 #define O_NOFOLLOW 0 |
| 6574 #endif |
| 6575 static int const constants[] = |
| 6576 { |
| 6577 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND, |
| 6578 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY |
| 6579 }; |
| 6580 |
9181 int | 6581 int |
9182 main () | 6582 main () |
9183 { | 6583 { |
9184 return socketpair (); | 6584 |
| 6585 int result = !constants; |
| 6586 #if HAVE_SYMLINK |
| 6587 { |
| 6588 static char const sym[] = "conftest.sym"; |
| 6589 if (symlink (".", sym) != 0) |
| 6590 result |= 2; |
| 6591 else |
| 6592 { |
| 6593 int fd = open (sym, O_RDONLY | O_NOFOLLOW); |
| 6594 if (fd >= 0) |
| 6595 { |
| 6596 close (fd); |
| 6597 result |= 4; |
| 6598 } |
| 6599 } |
| 6600 unlink (sym); |
| 6601 } |
| 6602 #endif |
| 6603 { |
| 6604 static char const file[] = "confdefs.h"; |
| 6605 int fd = open (file, O_RDONLY | O_NOATIME); |
| 6606 if (fd < 0) |
| 6607 result |= 8; |
| 6608 else |
| 6609 { |
| 6610 struct stat st0; |
| 6611 if (fstat (fd, &st0) != 0) |
| 6612 result |= 16; |
| 6613 else |
| 6614 { |
| 6615 char c; |
| 6616 sleep (1); |
| 6617 if (read (fd, &c, 1) != 1) |
| 6618 result |= 24; |
| 6619 else |
| 6620 { |
| 6621 if (close (fd) != 0) |
| 6622 result |= 32; |
| 6623 else |
| 6624 { |
| 6625 struct stat st1; |
| 6626 if (stat (file, &st1) != 0) |
| 6627 result |= 40; |
| 6628 else |
| 6629 if (st0.st_atime != st1.st_atime) |
| 6630 result |= 64; |
| 6631 } |
| 6632 } |
| 6633 } |
| 6634 } |
| 6635 } |
| 6636 return result; |
9185 ; | 6637 ; |
9186 return 0; | 6638 return 0; |
9187 } | 6639 } |
9188 _ACEOF | 6640 _ACEOF |
9189 for ac_lib in '' socket; do | 6641 if ac_fn_c_try_run "$LINENO"; then : |
9190 if test -z "$ac_lib"; then | 6642 gl_cv_header_working_fcntl_h=yes |
9191 ac_res="none required" | 6643 else |
9192 else | 6644 case $? in #( |
9193 ac_res=-l$ac_lib | 6645 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #( |
9194 LIBS="-l$ac_lib $ac_func_search_save_LIBS" | 6646 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #( |
| 6647 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #( |
| 6648 *) gl_cv_header_working_fcntl_h='no';; |
| 6649 esac |
| 6650 fi |
| 6651 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6652 conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6653 fi |
| 6654 |
| 6655 fi |
| 6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h"
>&5 |
| 6657 $as_echo "$gl_cv_header_working_fcntl_h" >&6; } |
| 6658 |
| 6659 case $gl_cv_header_working_fcntl_h in #( |
| 6660 *O_NOATIME* | no | cross-compiling) ac_val=0;; #( |
| 6661 *) ac_val=1;; |
| 6662 esac |
| 6663 |
| 6664 cat >>confdefs.h <<_ACEOF |
| 6665 #define HAVE_WORKING_O_NOATIME $ac_val |
| 6666 _ACEOF |
| 6667 |
| 6668 |
| 6669 case $gl_cv_header_working_fcntl_h in #( |
| 6670 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #( |
| 6671 *) ac_val=1;; |
| 6672 esac |
| 6673 |
| 6674 cat >>confdefs.h <<_ACEOF |
| 6675 #define HAVE_WORKING_O_NOFOLLOW $ac_val |
| 6676 _ACEOF |
| 6677 |
| 6678 |
| 6679 |
| 6680 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocke
d" "$ac_includes_default" |
| 6681 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then : |
| 6682 ac_have_decl=1 |
| 6683 else |
| 6684 ac_have_decl=0 |
| 6685 fi |
| 6686 |
| 6687 cat >>confdefs.h <<_ACEOF |
| 6688 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl |
| 6689 _ACEOF |
| 6690 |
| 6691 |
| 6692 |
| 6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the G
NU C Library >= 2.1 or uClibc" >&5 |
| 6694 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc...
" >&6; } |
| 6695 if test "${ac_cv_gnu_library_2_1+set}" = set; then : |
| 6696 $as_echo_n "(cached) " >&6 |
| 6697 else |
| 6698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6699 /* end confdefs.h. */ |
| 6700 |
| 6701 #include <features.h> |
| 6702 #ifdef __GNU_LIBRARY__ |
| 6703 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) |
| 6704 Lucky GNU user |
| 6705 #endif |
| 6706 #endif |
| 6707 #ifdef __UCLIBC__ |
| 6708 Lucky user |
| 6709 #endif |
| 6710 |
| 6711 _ACEOF |
| 6712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6713 $EGREP "Lucky" >/dev/null 2>&1; then : |
| 6714 ac_cv_gnu_library_2_1=yes |
| 6715 else |
| 6716 ac_cv_gnu_library_2_1=no |
| 6717 fi |
| 6718 rm -f conftest* |
| 6719 |
| 6720 |
| 6721 |
| 6722 fi |
| 6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5 |
| 6724 $as_echo "$ac_cv_gnu_library_2_1" >&6; } |
| 6725 |
| 6726 GLIBC21="$ac_cv_gnu_library_2_1" |
| 6727 |
| 6728 |
| 6729 |
| 6730 GNULIB_BTOWC=0; |
| 6731 GNULIB_WCTOB=0; |
| 6732 GNULIB_MBSINIT=0; |
| 6733 GNULIB_MBRTOWC=0; |
| 6734 GNULIB_MBRLEN=0; |
| 6735 GNULIB_MBSRTOWCS=0; |
| 6736 GNULIB_MBSNRTOWCS=0; |
| 6737 GNULIB_WCRTOMB=0; |
| 6738 GNULIB_WCSRTOMBS=0; |
| 6739 GNULIB_WCSNRTOMBS=0; |
| 6740 GNULIB_WCWIDTH=0; |
| 6741 GNULIB_WMEMCHR=0; |
| 6742 GNULIB_WMEMCMP=0; |
| 6743 GNULIB_WMEMCPY=0; |
| 6744 GNULIB_WMEMMOVE=0; |
| 6745 GNULIB_WMEMSET=0; |
| 6746 GNULIB_WCSLEN=0; |
| 6747 GNULIB_WCSNLEN=0; |
| 6748 GNULIB_WCSCPY=0; |
| 6749 GNULIB_WCPCPY=0; |
| 6750 GNULIB_WCSNCPY=0; |
| 6751 GNULIB_WCPNCPY=0; |
| 6752 GNULIB_WCSCAT=0; |
| 6753 GNULIB_WCSNCAT=0; |
| 6754 GNULIB_WCSCMP=0; |
| 6755 GNULIB_WCSNCMP=0; |
| 6756 GNULIB_WCSCASECMP=0; |
| 6757 GNULIB_WCSNCASECMP=0; |
| 6758 GNULIB_WCSCOLL=0; |
| 6759 GNULIB_WCSXFRM=0; |
| 6760 GNULIB_WCSDUP=0; |
| 6761 GNULIB_WCSCHR=0; |
| 6762 GNULIB_WCSRCHR=0; |
| 6763 GNULIB_WCSCSPN=0; |
| 6764 GNULIB_WCSSPN=0; |
| 6765 GNULIB_WCSPBRK=0; |
| 6766 GNULIB_WCSSTR=0; |
| 6767 GNULIB_WCSTOK=0; |
| 6768 GNULIB_WCSWIDTH=0; |
| 6769 HAVE_BTOWC=1; |
| 6770 HAVE_MBSINIT=1; |
| 6771 HAVE_MBRTOWC=1; |
| 6772 HAVE_MBRLEN=1; |
| 6773 HAVE_MBSRTOWCS=1; |
| 6774 HAVE_MBSNRTOWCS=1; |
| 6775 HAVE_WCRTOMB=1; |
| 6776 HAVE_WCSRTOMBS=1; |
| 6777 HAVE_WCSNRTOMBS=1; |
| 6778 HAVE_WMEMCHR=1; |
| 6779 HAVE_WMEMCMP=1; |
| 6780 HAVE_WMEMCPY=1; |
| 6781 HAVE_WMEMMOVE=1; |
| 6782 HAVE_WMEMSET=1; |
| 6783 HAVE_WCSLEN=1; |
| 6784 HAVE_WCSNLEN=1; |
| 6785 HAVE_WCSCPY=1; |
| 6786 HAVE_WCPCPY=1; |
| 6787 HAVE_WCSNCPY=1; |
| 6788 HAVE_WCPNCPY=1; |
| 6789 HAVE_WCSCAT=1; |
| 6790 HAVE_WCSNCAT=1; |
| 6791 HAVE_WCSCMP=1; |
| 6792 HAVE_WCSNCMP=1; |
| 6793 HAVE_WCSCASECMP=1; |
| 6794 HAVE_WCSNCASECMP=1; |
| 6795 HAVE_WCSCOLL=1; |
| 6796 HAVE_WCSXFRM=1; |
| 6797 HAVE_WCSDUP=1; |
| 6798 HAVE_WCSCHR=1; |
| 6799 HAVE_WCSRCHR=1; |
| 6800 HAVE_WCSCSPN=1; |
| 6801 HAVE_WCSSPN=1; |
| 6802 HAVE_WCSPBRK=1; |
| 6803 HAVE_WCSSTR=1; |
| 6804 HAVE_WCSTOK=1; |
| 6805 HAVE_WCSWIDTH=1; |
| 6806 HAVE_DECL_WCTOB=1; |
| 6807 HAVE_DECL_WCWIDTH=1; |
| 6808 REPLACE_MBSTATE_T=0; |
| 6809 REPLACE_BTOWC=0; |
| 6810 REPLACE_WCTOB=0; |
| 6811 REPLACE_MBSINIT=0; |
| 6812 REPLACE_MBRTOWC=0; |
| 6813 REPLACE_MBRLEN=0; |
| 6814 REPLACE_MBSRTOWCS=0; |
| 6815 REPLACE_MBSNRTOWCS=0; |
| 6816 REPLACE_WCRTOMB=0; |
| 6817 REPLACE_WCSRTOMBS=0; |
| 6818 REPLACE_WCSNRTOMBS=0; |
| 6819 REPLACE_WCWIDTH=0; |
| 6820 REPLACE_WCSWIDTH=0; |
| 6821 |
| 6822 |
| 6823 |
| 6824 |
| 6825 |
| 6826 |
| 6827 |
| 6828 |
| 6829 |
| 6830 |
| 6831 |
| 6832 |
| 6833 |
| 6834 |
| 6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese l
ocale" >&5 |
| 6836 $as_echo_n "checking for a traditional japanese locale... " >&6; } |
| 6837 if test "${gt_cv_locale_ja+set}" = set; then : |
| 6838 $as_echo_n "(cached) " >&6 |
| 6839 else |
| 6840 |
| 6841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6842 /* end confdefs.h. */ |
| 6843 |
| 6844 #include <locale.h> |
| 6845 #include <time.h> |
| 6846 #if HAVE_LANGINFO_CODESET |
| 6847 # include <langinfo.h> |
| 6848 #endif |
| 6849 #include <stdlib.h> |
| 6850 #include <string.h> |
| 6851 struct tm t; |
| 6852 char buf[16]; |
| 6853 int main () |
| 6854 { |
| 6855 const char *p; |
| 6856 /* Check whether the given locale name is recognized by the system. */ |
| 6857 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__ |
| 6858 /* On native Windows, setlocale(category, "") looks at the system settings, |
| 6859 not at the environment variables. Also, when an encoding suffix such |
| 6860 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE |
| 6861 category of the locale to "C". */ |
| 6862 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL |
| 6863 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) |
| 6864 return 1; |
| 6865 #else |
| 6866 if (setlocale (LC_ALL, "") == NULL) return 1; |
| 6867 #endif |
| 6868 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". |
| 6869 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) |
| 6870 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. |
| 6871 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() |
| 6872 succeeds but then nl_langinfo(CODESET) is "646". In this situation, |
| 6873 some unit tests fail. |
| 6874 On MirBSD 10, when an unsupported locale is specified, setlocale() |
| 6875 succeeds but then nl_langinfo(CODESET) is "UTF-8". */ |
| 6876 #if HAVE_LANGINFO_CODESET |
| 6877 { |
| 6878 const char *cs = nl_langinfo (CODESET); |
| 6879 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0 |
| 6880 || strcmp (cs, "UTF-8") == 0) |
| 6881 return 1; |
| 6882 } |
| 6883 #endif |
| 6884 #ifdef __CYGWIN__ |
| 6885 /* On Cygwin, avoid locale names without encoding suffix, because the |
| 6886 locale_charset() function relies on the encoding suffix. Note that |
| 6887 LC_ALL is set on the command line. */ |
| 6888 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; |
| 6889 #endif |
| 6890 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales |
| 6891 on Cygwin 1.5.x. */ |
| 6892 if (MB_CUR_MAX == 1) |
| 6893 return 1; |
| 6894 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs. |
| 6895 This excludes the UTF-8 encoding (except on MirBSD). */ |
| 6896 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; |
| 6897 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1; |
| 6898 for (p = buf; *p != '\0'; p++) |
| 6899 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0) |
| 6900 return 1; |
| 6901 return 0; |
| 6902 } |
| 6903 |
| 6904 _ACEOF |
| 6905 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 6906 (eval $ac_link) 2>&5 |
| 6907 ac_status=$? |
| 6908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6909 test $ac_status = 0; } && test -s conftest$ac_exeext; then |
| 6910 case "$host_os" in |
| 6911 # Handle native Windows specially, because there setlocale() interprets |
| 6912 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", |
| 6913 # "fr" or "fra" as "French" or "French_France.1252", |
| 6914 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", |
| 6915 # "ja" as "Japanese" or "Japanese_Japan.932", |
| 6916 # and similar. |
| 6917 mingw*) |
| 6918 # Note that on native Windows, the Japanese locale is |
| 6919 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we |
| 6920 # cannot use it here. |
| 6921 gt_cv_locale_ja=none |
| 6922 ;; |
| 6923 *) |
| 6924 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because |
| 6925 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the |
| 6926 # configure script would override the LC_ALL setting. Likewise for |
| 6927 # LC_CTYPE, which is also set at the beginning of the configure script
. |
| 6928 # Test for the AIX locale name. |
| 6929 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; the
n |
| 6930 gt_cv_locale_ja=ja_JP |
| 6931 else |
| 6932 # Test for the locale name with explicit encoding suffix. |
| 6933 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/
null; then |
| 6934 gt_cv_locale_ja=ja_JP.EUC-JP |
| 6935 else |
| 6936 # Test for the HP-UX, OSF/1, NetBSD locale name. |
| 6937 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev
/null; then |
| 6938 gt_cv_locale_ja=ja_JP.eucJP |
| 6939 else |
| 6940 # Test for the IRIX, FreeBSD locale name. |
| 6941 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev
/null; then |
| 6942 gt_cv_locale_ja=ja_JP.EUC |
| 6943 else |
| 6944 # Test for the Solaris 7 locale name. |
| 6945 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null
; then |
| 6946 gt_cv_locale_ja=ja |
| 6947 else |
| 6948 # Special test for NetBSD 1.6. |
| 6949 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then |
| 6950 gt_cv_locale_ja=ja_JP.eucJP |
| 6951 else |
| 6952 # None found. |
| 6953 gt_cv_locale_ja=none |
| 6954 fi |
| 6955 fi |
| 6956 fi |
| 6957 fi |
| 6958 fi |
| 6959 fi |
| 6960 ;; |
| 6961 esac |
| 6962 fi |
| 6963 rm -fr conftest* |
| 6964 |
| 6965 fi |
| 6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5 |
| 6967 $as_echo "$gt_cv_locale_ja" >&6; } |
| 6968 LOCALE_JA=$gt_cv_locale_ja |
| 6969 |
| 6970 |
| 6971 |
| 6972 |
| 6973 |
| 6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese l
ocale" >&5 |
| 6975 $as_echo_n "checking for a transitional chinese locale... " >&6; } |
| 6976 if test "${gt_cv_locale_zh_CN+set}" = set; then : |
| 6977 $as_echo_n "(cached) " >&6 |
| 6978 else |
| 6979 |
| 6980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6981 /* end confdefs.h. */ |
| 6982 |
| 6983 #include <locale.h> |
| 6984 #include <stdlib.h> |
| 6985 #include <time.h> |
| 6986 #if HAVE_LANGINFO_CODESET |
| 6987 # include <langinfo.h> |
| 6988 #endif |
| 6989 #include <stdlib.h> |
| 6990 #include <string.h> |
| 6991 struct tm t; |
| 6992 char buf[16]; |
| 6993 int main () |
| 6994 { |
| 6995 const char *p; |
| 6996 /* Check whether the given locale name is recognized by the system. */ |
| 6997 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__ |
| 6998 /* On native Windows, setlocale(category, "") looks at the system settings, |
| 6999 not at the environment variables. Also, when an encoding suffix such |
| 7000 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE |
| 7001 category of the locale to "C". */ |
| 7002 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL |
| 7003 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) |
| 7004 return 1; |
| 7005 #else |
| 7006 if (setlocale (LC_ALL, "") == NULL) return 1; |
| 7007 #endif |
| 7008 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". |
| 7009 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) |
| 7010 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. |
| 7011 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() |
| 7012 succeeds but then nl_langinfo(CODESET) is "646". In this situation, |
| 7013 some unit tests fail. |
| 7014 On MirBSD 10, when an unsupported locale is specified, setlocale() |
| 7015 succeeds but then nl_langinfo(CODESET) is "UTF-8". */ |
| 7016 #if HAVE_LANGINFO_CODESET |
| 7017 { |
| 7018 const char *cs = nl_langinfo (CODESET); |
| 7019 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0 |
| 7020 || strcmp (cs, "UTF-8") == 0) |
| 7021 return 1; |
| 7022 } |
| 7023 #endif |
| 7024 #ifdef __CYGWIN__ |
| 7025 /* On Cygwin, avoid locale names without encoding suffix, because the |
| 7026 locale_charset() function relies on the encoding suffix. Note that |
| 7027 LC_ALL is set on the command line. */ |
| 7028 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; |
| 7029 #endif |
| 7030 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs. |
| 7031 This excludes the UTF-8 encoding (except on MirBSD). */ |
| 7032 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; |
| 7033 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1; |
| 7034 for (p = buf; *p != '\0'; p++) |
| 7035 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0) |
| 7036 return 1; |
| 7037 /* Check whether a typical GB18030 multibyte sequence is recognized as a |
| 7038 single wide character. This excludes the GB2312 and GBK encodings. */ |
| 7039 if (mblen ("\203\062\332\066", 5) != 4) |
| 7040 return 1; |
| 7041 return 0; |
| 7042 } |
| 7043 |
| 7044 _ACEOF |
| 7045 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 7046 (eval $ac_link) 2>&5 |
| 7047 ac_status=$? |
| 7048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7049 test $ac_status = 0; } && test -s conftest$ac_exeext; then |
| 7050 case "$host_os" in |
| 7051 # Handle native Windows specially, because there setlocale() interprets |
| 7052 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", |
| 7053 # "fr" or "fra" as "French" or "French_France.1252", |
| 7054 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", |
| 7055 # "ja" as "Japanese" or "Japanese_Japan.932", |
| 7056 # and similar. |
| 7057 mingw*) |
| 7058 # Test for the hypothetical native Windows locale name. |
| 7059 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>
/dev/null; then |
| 7060 gt_cv_locale_zh_CN=Chinese_China.54936 |
| 7061 else |
| 7062 # None found. |
| 7063 gt_cv_locale_zh_CN=none |
| 7064 fi |
| 7065 ;; |
| 7066 solaris2.8) |
| 7067 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are |
| 7068 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK. |
| 7069 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps co
re. |
| 7070 gt_cv_locale_zh_CN=none |
| 7071 ;; |
| 7072 *) |
| 7073 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because |
| 7074 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the |
| 7075 # configure script would override the LC_ALL setting. Likewise for |
| 7076 # LC_CTYPE, which is also set at the beginning of the configure script
. |
| 7077 # Test for the locale name without encoding suffix. |
| 7078 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; the
n |
| 7079 gt_cv_locale_zh_CN=zh_CN |
| 7080 else |
| 7081 # Test for the locale name with explicit encoding suffix. |
| 7082 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev
/null; then |
| 7083 gt_cv_locale_zh_CN=zh_CN.GB18030 |
| 7084 else |
| 7085 # None found. |
| 7086 gt_cv_locale_zh_CN=none |
| 7087 fi |
| 7088 fi |
| 7089 ;; |
| 7090 esac |
| 7091 else |
| 7092 # If there was a link error, due to mblen(), the system is so old that |
| 7093 # it certainly doesn't have a chinese locale. |
| 7094 gt_cv_locale_zh_CN=none |
| 7095 fi |
| 7096 rm -fr conftest* |
| 7097 |
| 7098 fi |
| 7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5 |
| 7100 $as_echo "$gt_cv_locale_zh_CN" >&6; } |
| 7101 LOCALE_ZH_CN=$gt_cv_locale_zh_CN |
| 7102 |
| 7103 |
| 7104 |
| 7105 |
| 7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale"
>&5 |
| 7107 $as_echo_n "checking for a french Unicode locale... " >&6; } |
| 7108 if test "${gt_cv_locale_fr_utf8+set}" = set; then : |
| 7109 $as_echo_n "(cached) " >&6 |
| 7110 else |
| 7111 |
| 7112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7113 /* end confdefs.h. */ |
| 7114 |
| 7115 #include <locale.h> |
| 7116 #include <time.h> |
| 7117 #if HAVE_LANGINFO_CODESET |
| 7118 # include <langinfo.h> |
| 7119 #endif |
| 7120 #include <stdlib.h> |
| 7121 #include <string.h> |
| 7122 struct tm t; |
| 7123 char buf[16]; |
| 7124 int main () { |
| 7125 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl |
| 7126 imitates locale dependent behaviour by looking at the environment |
| 7127 variables, and all locales use the UTF-8 encoding. */ |
| 7128 #if !(defined __BEOS__ || defined __HAIKU__) |
| 7129 /* Check whether the given locale name is recognized by the system. */ |
| 7130 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__ |
| 7131 /* On native Windows, setlocale(category, "") looks at the system settings, |
| 7132 not at the environment variables. Also, when an encoding suffix such |
| 7133 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE |
| 7134 category of the locale to "C". */ |
| 7135 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL |
| 7136 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) |
| 7137 return 1; |
| 7138 # else |
| 7139 if (setlocale (LC_ALL, "") == NULL) return 1; |
| 7140 # endif |
| 7141 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". |
| 7142 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) |
| 7143 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. |
| 7144 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() |
| 7145 succeeds but then nl_langinfo(CODESET) is "646". In this situation, |
| 7146 some unit tests fail. */ |
| 7147 # if HAVE_LANGINFO_CODESET |
| 7148 { |
| 7149 const char *cs = nl_langinfo (CODESET); |
| 7150 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) |
| 7151 return 1; |
| 7152 } |
| 7153 # endif |
| 7154 # ifdef __CYGWIN__ |
| 7155 /* On Cygwin, avoid locale names without encoding suffix, because the |
| 7156 locale_charset() function relies on the encoding suffix. Note that |
| 7157 LC_ALL is set on the command line. */ |
| 7158 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; |
| 7159 # endif |
| 7160 /* Check whether in the abbreviation of the second month, the second |
| 7161 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is |
| 7162 two bytes long, with UTF-8 encoding. */ |
| 7163 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; |
| 7164 if (strftime (buf, sizeof (buf), "%b", &t) < 4 |
| 7165 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v') |
| 7166 return 1; |
| 7167 #endif |
| 7168 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */ |
| 7169 /* Check whether the decimal separator is a comma. |
| 7170 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point |
| 7171 are nl_langinfo(RADIXCHAR) are both ".". */ |
| 7172 if (localeconv () ->decimal_point[0] != ',') return 1; |
| 7173 #endif |
| 7174 return 0; |
| 7175 } |
| 7176 |
| 7177 _ACEOF |
| 7178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 7179 (eval $ac_link) 2>&5 |
| 7180 ac_status=$? |
| 7181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7182 test $ac_status = 0; } && test -s conftest$ac_exeext; then |
| 7183 case "$host_os" in |
| 7184 # Handle native Windows specially, because there setlocale() interprets |
| 7185 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", |
| 7186 # "fr" or "fra" as "French" or "French_France.1252", |
| 7187 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", |
| 7188 # "ja" as "Japanese" or "Japanese_Japan.932", |
| 7189 # and similar. |
| 7190 mingw*) |
| 7191 # Test for the hypothetical native Windows locale name. |
| 7192 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>
/dev/null; then |
| 7193 gt_cv_locale_fr_utf8=French_France.65001 |
| 7194 else |
| 7195 # None found. |
| 7196 gt_cv_locale_fr_utf8=none |
| 7197 fi |
| 7198 ;; |
| 7199 *) |
| 7200 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because |
| 7201 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the |
| 7202 # configure script would override the LC_ALL setting. Likewise for |
| 7203 # LC_CTYPE, which is also set at the beginning of the configure script
. |
| 7204 # Test for the usual locale name. |
| 7205 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; the
n |
| 7206 gt_cv_locale_fr_utf8=fr_FR |
| 7207 else |
| 7208 # Test for the locale name with explicit encoding suffix. |
| 7209 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/n
ull; then |
| 7210 gt_cv_locale_fr_utf8=fr_FR.UTF-8 |
| 7211 else |
| 7212 # Test for the Solaris 7 locale name. |
| 7213 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/nu
ll; then |
| 7214 gt_cv_locale_fr_utf8=fr.UTF-8 |
| 7215 else |
| 7216 # None found. |
| 7217 gt_cv_locale_fr_utf8=none |
| 7218 fi |
| 7219 fi |
| 7220 fi |
| 7221 ;; |
| 7222 esac |
| 7223 fi |
| 7224 rm -fr conftest* |
| 7225 |
| 7226 fi |
| 7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5 |
| 7228 $as_echo "$gt_cv_locale_fr_utf8" >&6; } |
| 7229 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8 |
| 7230 |
| 7231 |
| 7232 |
| 7233 |
| 7234 |
| 7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french loc
ale" >&5 |
| 7236 $as_echo_n "checking for a traditional french locale... " >&6; } |
| 7237 if test "${gt_cv_locale_fr+set}" = set; then : |
| 7238 $as_echo_n "(cached) " >&6 |
| 7239 else |
| 7240 |
| 7241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7242 /* end confdefs.h. */ |
| 7243 |
| 7244 #include <locale.h> |
| 7245 #include <time.h> |
| 7246 #if HAVE_LANGINFO_CODESET |
| 7247 # include <langinfo.h> |
| 7248 #endif |
| 7249 #include <stdlib.h> |
| 7250 #include <string.h> |
| 7251 struct tm t; |
| 7252 char buf[16]; |
| 7253 int main () { |
| 7254 /* Check whether the given locale name is recognized by the system. */ |
| 7255 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__ |
| 7256 /* On native Windows, setlocale(category, "") looks at the system settings, |
| 7257 not at the environment variables. Also, when an encoding suffix such |
| 7258 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE |
| 7259 category of the locale to "C". */ |
| 7260 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL |
| 7261 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) |
| 7262 return 1; |
| 7263 #else |
| 7264 if (setlocale (LC_ALL, "") == NULL) return 1; |
| 7265 #endif |
| 7266 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". |
| 7267 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) |
| 7268 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. |
| 7269 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() |
| 7270 succeeds but then nl_langinfo(CODESET) is "646". In this situation, |
| 7271 some unit tests fail. |
| 7272 On MirBSD 10, when an unsupported locale is specified, setlocale() |
| 7273 succeeds but then nl_langinfo(CODESET) is "UTF-8". */ |
| 7274 #if HAVE_LANGINFO_CODESET |
| 7275 { |
| 7276 const char *cs = nl_langinfo (CODESET); |
| 7277 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0 |
| 7278 || strcmp (cs, "UTF-8") == 0) |
| 7279 return 1; |
| 7280 } |
| 7281 #endif |
| 7282 #ifdef __CYGWIN__ |
| 7283 /* On Cygwin, avoid locale names without encoding suffix, because the |
| 7284 locale_charset() function relies on the encoding suffix. Note that |
| 7285 LC_ALL is set on the command line. */ |
| 7286 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; |
| 7287 #endif |
| 7288 /* Check whether in the abbreviation of the second month, the second |
| 7289 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only |
| 7290 one byte long. This excludes the UTF-8 encoding. */ |
| 7291 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; |
| 7292 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1; |
| 7293 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */ |
| 7294 /* Check whether the decimal separator is a comma. |
| 7295 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point |
| 7296 are nl_langinfo(RADIXCHAR) are both ".". */ |
| 7297 if (localeconv () ->decimal_point[0] != ',') return 1; |
| 7298 #endif |
| 7299 return 0; |
| 7300 } |
| 7301 |
| 7302 _ACEOF |
| 7303 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 7304 (eval $ac_link) 2>&5 |
| 7305 ac_status=$? |
| 7306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7307 test $ac_status = 0; } && test -s conftest$ac_exeext; then |
| 7308 case "$host_os" in |
| 7309 # Handle native Windows specially, because there setlocale() interprets |
| 7310 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", |
| 7311 # "fr" or "fra" as "French" or "French_France.1252", |
| 7312 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", |
| 7313 # "ja" as "Japanese" or "Japanese_Japan.932", |
| 7314 # and similar. |
| 7315 mingw*) |
| 7316 # Test for the native Windows locale name. |
| 7317 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/
dev/null; then |
| 7318 gt_cv_locale_fr=French_France.1252 |
| 7319 else |
| 7320 # None found. |
| 7321 gt_cv_locale_fr=none |
| 7322 fi |
| 7323 ;; |
| 7324 *) |
| 7325 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because |
| 7326 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the |
| 7327 # configure script would override the LC_ALL setting. Likewise for |
| 7328 # LC_CTYPE, which is also set at the beginning of the configure script
. |
| 7329 # Test for the usual locale name. |
| 7330 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; the
n |
| 7331 gt_cv_locale_fr=fr_FR |
| 7332 else |
| 7333 # Test for the locale name with explicit encoding suffix. |
| 7334 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/
dev/null; then |
| 7335 gt_cv_locale_fr=fr_FR.ISO-8859-1 |
| 7336 else |
| 7337 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name. |
| 7338 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>
/dev/null; then |
| 7339 gt_cv_locale_fr=fr_FR.ISO8859-1 |
| 7340 else |
| 7341 # Test for the HP-UX locale name. |
| 7342 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2
>/dev/null; then |
| 7343 gt_cv_locale_fr=fr_FR.iso88591 |
| 7344 else |
| 7345 # Test for the Solaris 7 locale name. |
| 7346 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null
; then |
| 7347 gt_cv_locale_fr=fr |
| 7348 else |
| 7349 # None found. |
| 7350 gt_cv_locale_fr=none |
| 7351 fi |
| 7352 fi |
| 7353 fi |
| 7354 fi |
| 7355 fi |
| 7356 ;; |
| 7357 esac |
| 7358 fi |
| 7359 rm -fr conftest* |
| 7360 |
| 7361 fi |
| 7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5 |
| 7363 $as_echo "$gt_cv_locale_fr" >&6; } |
| 7364 LOCALE_FR=$gt_cv_locale_fr |
| 7365 |
| 7366 |
| 7367 |
| 7368 |
| 7369 |
| 7370 |
| 7371 |
| 7372 |
| 7373 |
| 7374 |
| 7375 |
| 7376 |
| 7377 |
| 7378 GNULIB_FFSL=0; |
| 7379 GNULIB_FFSLL=0; |
| 7380 GNULIB_MEMCHR=0; |
| 7381 GNULIB_MEMMEM=0; |
| 7382 GNULIB_MEMPCPY=0; |
| 7383 GNULIB_MEMRCHR=0; |
| 7384 GNULIB_RAWMEMCHR=0; |
| 7385 GNULIB_STPCPY=0; |
| 7386 GNULIB_STPNCPY=0; |
| 7387 GNULIB_STRCHRNUL=0; |
| 7388 GNULIB_STRDUP=0; |
| 7389 GNULIB_STRNCAT=0; |
| 7390 GNULIB_STRNDUP=0; |
| 7391 GNULIB_STRNLEN=0; |
| 7392 GNULIB_STRPBRK=0; |
| 7393 GNULIB_STRSEP=0; |
| 7394 GNULIB_STRSTR=0; |
| 7395 GNULIB_STRCASESTR=0; |
| 7396 GNULIB_STRTOK_R=0; |
| 7397 GNULIB_MBSLEN=0; |
| 7398 GNULIB_MBSNLEN=0; |
| 7399 GNULIB_MBSCHR=0; |
| 7400 GNULIB_MBSRCHR=0; |
| 7401 GNULIB_MBSSTR=0; |
| 7402 GNULIB_MBSCASECMP=0; |
| 7403 GNULIB_MBSNCASECMP=0; |
| 7404 GNULIB_MBSPCASECMP=0; |
| 7405 GNULIB_MBSCASESTR=0; |
| 7406 GNULIB_MBSCSPN=0; |
| 7407 GNULIB_MBSPBRK=0; |
| 7408 GNULIB_MBSSPN=0; |
| 7409 GNULIB_MBSSEP=0; |
| 7410 GNULIB_MBSTOK_R=0; |
| 7411 GNULIB_STRERROR=0; |
| 7412 GNULIB_STRERROR_R=0; |
| 7413 GNULIB_STRSIGNAL=0; |
| 7414 GNULIB_STRVERSCMP=0; |
| 7415 HAVE_MBSLEN=0; |
| 7416 HAVE_FFSL=1; |
| 7417 HAVE_FFSLL=1; |
| 7418 HAVE_MEMCHR=1; |
| 7419 HAVE_DECL_MEMMEM=1; |
| 7420 HAVE_MEMPCPY=1; |
| 7421 HAVE_DECL_MEMRCHR=1; |
| 7422 HAVE_RAWMEMCHR=1; |
| 7423 HAVE_STPCPY=1; |
| 7424 HAVE_STPNCPY=1; |
| 7425 HAVE_STRCHRNUL=1; |
| 7426 HAVE_DECL_STRDUP=1; |
| 7427 HAVE_DECL_STRNDUP=1; |
| 7428 HAVE_DECL_STRNLEN=1; |
| 7429 HAVE_STRPBRK=1; |
| 7430 HAVE_STRSEP=1; |
| 7431 HAVE_STRCASESTR=1; |
| 7432 HAVE_DECL_STRTOK_R=1; |
| 7433 HAVE_DECL_STRERROR_R=1; |
| 7434 HAVE_DECL_STRSIGNAL=1; |
| 7435 HAVE_STRVERSCMP=1; |
| 7436 REPLACE_MEMCHR=0; |
| 7437 REPLACE_MEMMEM=0; |
| 7438 REPLACE_STPNCPY=0; |
| 7439 REPLACE_STRDUP=0; |
| 7440 REPLACE_STRSTR=0; |
| 7441 REPLACE_STRCASESTR=0; |
| 7442 REPLACE_STRCHRNUL=0; |
| 7443 REPLACE_STRERROR=0; |
| 7444 REPLACE_STRERROR_R=0; |
| 7445 REPLACE_STRNCAT=0; |
| 7446 REPLACE_STRNDUP=0; |
| 7447 REPLACE_STRNLEN=0; |
| 7448 REPLACE_STRSIGNAL=0; |
| 7449 REPLACE_STRTOK_R=0; |
| 7450 UNDEFINE_STRTOK_R=0; |
| 7451 |
| 7452 |
| 7453 |
| 7454 |
| 7455 |
| 7456 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it |
| 7457 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is |
| 7458 # irrelevant for anonymous mappings. |
| 7459 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" |
| 7460 if test "x$ac_cv_func_mmap" = x""yes; then : |
| 7461 gl_have_mmap=yes |
| 7462 else |
| 7463 gl_have_mmap=no |
| 7464 fi |
| 7465 |
| 7466 |
| 7467 # Try to allow MAP_ANONYMOUS. |
| 7468 gl_have_mmap_anonymous=no |
| 7469 if test $gl_have_mmap = yes; then |
| 7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5 |
| 7471 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; } |
| 7472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7473 /* end confdefs.h. */ |
| 7474 |
| 7475 #include <sys/mman.h> |
| 7476 #ifdef MAP_ANONYMOUS |
| 7477 I cannot identify this map |
| 7478 #endif |
| 7479 |
| 7480 _ACEOF |
| 7481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7482 $EGREP "I cannot identify this map" >/dev/null 2>&1; then : |
| 7483 gl_have_mmap_anonymous=yes |
| 7484 fi |
| 7485 rm -f conftest* |
| 7486 |
| 7487 if test $gl_have_mmap_anonymous != yes; then |
| 7488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7489 /* end confdefs.h. */ |
| 7490 |
| 7491 #include <sys/mman.h> |
| 7492 #ifdef MAP_ANON |
| 7493 I cannot identify this map |
| 7494 #endif |
| 7495 |
| 7496 _ACEOF |
| 7497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7498 $EGREP "I cannot identify this map" >/dev/null 2>&1; then : |
| 7499 |
| 7500 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h |
| 7501 |
| 7502 gl_have_mmap_anonymous=yes |
| 7503 fi |
| 7504 rm -f conftest* |
| 7505 |
| 7506 fi |
| 7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&
5 |
| 7508 $as_echo "$gl_have_mmap_anonymous" >&6; } |
| 7509 if test $gl_have_mmap_anonymous = yes; then |
| 7510 |
| 7511 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h |
| 7512 |
| 7513 fi |
9195 fi | 7514 fi |
9196 if ac_fn_c_try_link "$LINENO"; then : | 7515 |
9197 ac_cv_search_socketpair=$ac_res | 7516 |
9198 fi | 7517 : |
9199 rm -f core conftest.err conftest.$ac_objext \ | 7518 |
9200 conftest$ac_exeext | 7519 |
9201 if test "${ac_cv_search_socketpair+set}" = set; then : | 7520 |
9202 break | 7521 |
9203 fi | 7522 |
9204 done | 7523 |
9205 if test "${ac_cv_search_socketpair+set}" = set; then : | 7524 : |
9206 | 7525 |
9207 else | 7526 |
9208 ac_cv_search_socketpair=no | 7527 |
9209 fi | 7528 |
9210 rm conftest.$ac_ext | 7529 |
9211 LIBS=$ac_func_search_save_LIBS | 7530 |
9212 fi | 7531 |
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5 | 7532 |
9214 $as_echo "$ac_cv_search_socketpair" >&6; } | 7533 if test $HAVE_MEMCHR = 1; then |
9215 ac_res=$ac_cv_search_socketpair | 7534 # Detect platform-specific bugs in some versions of glibc: |
9216 if test "$ac_res" != no; then : | 7535 # memchr should not dereference anything with length 0 |
9217 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 7536 # http://bugzilla.redhat.com/499689 |
9218 | 7537 # memchr should not dereference overestimated length after a match |
9219 fi | 7538 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737 |
9220 | 7539 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162 |
9221 | 7540 # Assume that memchr works on platforms that lack mprotect. |
9222 # Link in zlib if we can. This allows us to read compressed debug sections. | 7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5 |
9223 | 7542 $as_echo_n "checking whether memchr works... " >&6; } |
9224 # See if the user specified whether he wants zlib support or not. | 7543 if test "${gl_cv_func_memchr_works+set}" = set; then : |
9225 | |
9226 # Check whether --with-zlib was given. | |
9227 if test "${with_zlib+set}" = set; then : | |
9228 withval=$with_zlib; | |
9229 else | |
9230 with_zlib=auto | |
9231 fi | |
9232 | |
9233 | |
9234 if test "$with_zlib" != "no"; then | |
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zli
bVersion" >&5 | |
9236 $as_echo_n "checking for library containing zlibVersion... " >&6; } | |
9237 if test "${ac_cv_search_zlibVersion+set}" = set; then : | |
9238 $as_echo_n "(cached) " >&6 | 7544 $as_echo_n "(cached) " >&6 |
9239 else | 7545 else |
9240 ac_func_search_save_LIBS=$LIBS | 7546 if test "$cross_compiling" = yes; then : |
9241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 7547 gl_cv_func_memchr_works="guessing no" |
9242 /* end confdefs.h. */ | 7548 else |
9243 | 7549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9244 /* Override any GCC internal prototype to avoid an error. | 7550 /* end confdefs.h. */ |
9245 Use char because int might match the return type of a GCC | 7551 |
9246 builtin and then its argument prototype would still apply. */ | 7552 #include <string.h> |
9247 #ifdef __cplusplus | 7553 #if HAVE_SYS_MMAN_H |
9248 extern "C" | 7554 # include <fcntl.h> |
9249 #endif | 7555 # include <unistd.h> |
9250 char zlibVersion (); | 7556 # include <sys/types.h> |
| 7557 # include <sys/mman.h> |
| 7558 # ifndef MAP_FILE |
| 7559 # define MAP_FILE 0 |
| 7560 # endif |
| 7561 #endif |
| 7562 |
9251 int | 7563 int |
9252 main () | 7564 main () |
9253 { | 7565 { |
9254 return zlibVersion (); | 7566 |
| 7567 int result = 0; |
| 7568 char *fence = NULL; |
| 7569 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT |
| 7570 # if HAVE_MAP_ANONYMOUS |
| 7571 const int flags = MAP_ANONYMOUS | MAP_PRIVATE; |
| 7572 const int fd = -1; |
| 7573 # else /* !HAVE_MAP_ANONYMOUS */ |
| 7574 const int flags = MAP_FILE | MAP_PRIVATE; |
| 7575 int fd = open ("/dev/zero", O_RDONLY, 0666); |
| 7576 if (fd >= 0) |
| 7577 # endif |
| 7578 { |
| 7579 int pagesize = getpagesize (); |
| 7580 char *two_pages = |
| 7581 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE, |
| 7582 flags, fd, 0); |
| 7583 if (two_pages != (char *)(-1) |
| 7584 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0) |
| 7585 fence = two_pages + pagesize; |
| 7586 } |
| 7587 #endif |
| 7588 if (fence) |
| 7589 { |
| 7590 if (memchr (fence, 0, 0)) |
| 7591 result |= 1; |
| 7592 strcpy (fence - 9, "12345678"); |
| 7593 if (memchr (fence - 9, 0, 79) != fence - 1) |
| 7594 result |= 2; |
| 7595 if (memchr (fence - 1, 0, 3) != fence - 1) |
| 7596 result |= 4; |
| 7597 } |
| 7598 return result; |
| 7599 |
9255 ; | 7600 ; |
9256 return 0; | 7601 return 0; |
9257 } | 7602 } |
9258 _ACEOF | 7603 _ACEOF |
9259 for ac_lib in '' z; do | 7604 if ac_fn_c_try_run "$LINENO"; then : |
9260 if test -z "$ac_lib"; then | 7605 gl_cv_func_memchr_works=yes |
9261 ac_res="none required" | 7606 else |
9262 else | 7607 gl_cv_func_memchr_works=no |
9263 ac_res=-l$ac_lib | 7608 fi |
9264 LIBS="-l$ac_lib $ac_func_search_save_LIBS" | 7609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
9265 fi | 7610 conftest.$ac_objext conftest.beam conftest.$ac_ext |
9266 if ac_fn_c_try_link "$LINENO"; then : | 7611 fi |
9267 ac_cv_search_zlibVersion=$ac_res | 7612 |
9268 fi | 7613 fi |
9269 rm -f core conftest.err conftest.$ac_objext \ | 7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5 |
9270 conftest$ac_exeext | 7615 $as_echo "$gl_cv_func_memchr_works" >&6; } |
9271 if test "${ac_cv_search_zlibVersion+set}" = set; then : | 7616 if test "$gl_cv_func_memchr_works" != yes; then |
9272 break | 7617 REPLACE_MEMCHR=1 |
9273 fi | |
9274 done | |
9275 if test "${ac_cv_search_zlibVersion+set}" = set; then : | |
9276 | |
9277 else | |
9278 ac_cv_search_zlibVersion=no | |
9279 fi | |
9280 rm conftest.$ac_ext | |
9281 LIBS=$ac_func_search_save_LIBS | |
9282 fi | |
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5 | |
9284 $as_echo "$ac_cv_search_zlibVersion" >&6; } | |
9285 ac_res=$ac_cv_search_zlibVersion | |
9286 if test "$ac_res" != no; then : | |
9287 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
9288 for ac_header in zlib.h | |
9289 do : | |
9290 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_inc
ludes_default" | |
9291 if test "x$ac_cv_header_zlib_h" = x""yes; then : | |
9292 cat >>confdefs.h <<_ACEOF | |
9293 #define HAVE_ZLIB_H 1 | |
9294 _ACEOF | |
9295 | |
9296 fi | |
9297 | |
9298 done | |
9299 | |
9300 fi | |
9301 | |
9302 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then | |
9303 as_fn_error "zlib (libz) library was explicitly requested but not found" "
$LINENO" 5 | |
9304 fi | 7618 fi |
9305 fi | 7619 fi |
9306 | 7620 |
9307 | 7621 |
9308 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c). | 7622 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includ
es_default" |
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmo
dinfo" >&5 | 7623 if test "x$ac_cv_have_decl_memmem" = x""yes; then : |
9310 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; } | 7624 ac_have_decl=1 |
9311 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then : | 7625 else |
| 7626 ac_have_decl=0 |
| 7627 fi |
| 7628 |
| 7629 cat >>confdefs.h <<_ACEOF |
| 7630 #define HAVE_DECL_MEMMEM $ac_have_decl |
| 7631 _ACEOF |
| 7632 |
| 7633 |
| 7634 |
| 7635 |
| 7636 |
| 7637 |
| 7638 for ac_func in memmem |
| 7639 do : |
| 7640 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem" |
| 7641 if test "x$ac_cv_func_memmem" = x""yes; then : |
| 7642 cat >>confdefs.h <<_ACEOF |
| 7643 #define HAVE_MEMMEM 1 |
| 7644 _ACEOF |
| 7645 |
| 7646 fi |
| 7647 done |
| 7648 |
| 7649 if test $ac_cv_func_memmem = yes; then |
| 7650 HAVE_MEMMEM=1 |
| 7651 else |
| 7652 HAVE_MEMMEM=0 |
| 7653 fi |
| 7654 |
| 7655 : |
| 7656 |
| 7657 |
| 7658 |
| 7659 |
| 7660 |
| 7661 if test $ac_cv_have_decl_memmem = no; then |
| 7662 HAVE_DECL_MEMMEM=0 |
| 7663 else |
| 7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem wor
ks" >&5 |
| 7665 $as_echo_n "checking whether memmem works... " >&6; } |
| 7666 if test "${gl_cv_func_memmem_works_always+set}" = set; then : |
9312 $as_echo_n "(cached) " >&6 | 7667 $as_echo_n "(cached) " >&6 |
9313 else | 7668 else |
9314 ac_func_search_save_LIBS=$LIBS | 7669 if test "$cross_compiling" = yes; then : |
9315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 7670 cat confdefs.h - <<_ACEOF >conftest.$ac_ex
t |
9316 /* end confdefs.h. */ | 7671 /* end confdefs.h. */ |
9317 | 7672 |
9318 /* Override any GCC internal prototype to avoid an error. | 7673 #ifdef __GNU_LIBRARY__ |
9319 Use char because int might match the return type of a GCC | 7674 #include <features.h> |
9320 builtin and then its argument prototype would still apply. */ | 7675 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \ |
9321 #ifdef __cplusplus | 7676 || __GLIBC_MINOR__ > 12)) \ |
9322 extern "C" | 7677 || (__GLIBC__ > 2)) \ |
9323 #endif | 7678 || defined __UCLIBC__ |
9324 char dlgetmodinfo (); | 7679 Lucky user |
| 7680 #endif |
| 7681 #elif defined __CYGWIN__ |
| 7682 #include <cygwin/version.h> |
| 7683 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7) |
| 7684 Lucky user |
| 7685 #endif |
| 7686 #else |
| 7687 Lucky user |
| 7688 #endif |
| 7689 |
| 7690 _ACEOF |
| 7691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7692 $EGREP "Lucky user" >/dev/null 2>&1; then : |
| 7693 gl_cv_func_memmem_works_always="guessing yes" |
| 7694 else |
| 7695 gl_cv_func_memmem_works_always="guessing no" |
| 7696 fi |
| 7697 rm -f conftest* |
| 7698 |
| 7699 |
| 7700 else |
| 7701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7702 /* end confdefs.h. */ |
| 7703 |
| 7704 #include <string.h> /* for memmem */ |
| 7705 #define P "_EF_BF_BD" |
| 7706 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P |
| 7707 #define NEEDLE P P P P P |
| 7708 |
9325 int | 7709 int |
9326 main () | 7710 main () |
9327 { | 7711 { |
9328 return dlgetmodinfo (); | 7712 |
| 7713 int result = 0; |
| 7714 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE))) |
| 7715 result |= 1; |
| 7716 /* Check for empty needle behavior. */ |
| 7717 { |
| 7718 const char *haystack = "AAA"; |
| 7719 if (memmem (haystack, 3, NULL, 0) != haystack) |
| 7720 result |= 2; |
| 7721 } |
| 7722 return result; |
| 7723 |
9329 ; | 7724 ; |
9330 return 0; | 7725 return 0; |
9331 } | 7726 } |
9332 _ACEOF | 7727 _ACEOF |
9333 for ac_lib in '' dl xpdl; do | 7728 if ac_fn_c_try_run "$LINENO"; then : |
9334 if test -z "$ac_lib"; then | 7729 gl_cv_func_memmem_works_always=yes |
9335 ac_res="none required" | 7730 else |
9336 else | 7731 gl_cv_func_memmem_works_always=no |
9337 ac_res=-l$ac_lib | 7732 fi |
9338 LIBS="-l$ac_lib $ac_func_search_save_LIBS" | 7733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7734 conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7735 fi |
| 7736 |
| 7737 |
| 7738 fi |
| 7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always
" >&5 |
| 7740 $as_echo "$gl_cv_func_memmem_works_always" >&6; } |
| 7741 case "$gl_cv_func_memmem_works_always" in |
| 7742 *yes) ;; |
| 7743 *) |
| 7744 REPLACE_MEMMEM=1 |
| 7745 ;; |
| 7746 esac |
9339 fi | 7747 fi |
9340 if ac_fn_c_try_link "$LINENO"; then : | 7748 : |
9341 ac_cv_search_dlgetmodinfo=$ac_res | 7749 |
9342 fi | 7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to
C99" >&5 |
9343 rm -f core conftest.err conftest.$ac_objext \ | 7751 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } |
9344 conftest$ac_exeext | 7752 if test "${ac_cv_header_stdbool_h+set}" = set; then : |
9345 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then : | |
9346 break | |
9347 fi | |
9348 done | |
9349 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then : | |
9350 | |
9351 else | |
9352 ac_cv_search_dlgetmodinfo=no | |
9353 fi | |
9354 rm conftest.$ac_ext | |
9355 LIBS=$ac_func_search_save_LIBS | |
9356 fi | |
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5 | |
9358 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; } | |
9359 ac_res=$ac_cv_search_dlgetmodinfo | |
9360 if test "$ac_res" != no; then : | |
9361 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
9362 | |
9363 fi | |
9364 | |
9365 | |
9366 | |
9367 | |
9368 | |
9369 # Check whether --with-libiconv-prefix was given. | |
9370 if test "${with_libiconv_prefix+set}" = set; then : | |
9371 withval=$with_libiconv_prefix; | |
9372 for dir in `echo "$withval" | tr : ' '`; do | |
9373 if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; fi | |
9374 if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; fi | |
9375 done | |
9376 | |
9377 fi | |
9378 | |
9379 | |
9380 BUILD_LIBICONV_LIBDIRS="../libiconv/lib/.libs ../libiconv/lib/_libs" | |
9381 BUILD_LIBICONV_INCLUDE="-I../libiconv/include" | |
9382 | |
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 | |
9384 $as_echo_n "checking for iconv... " >&6; } | |
9385 if test "${am_cv_func_iconv+set}" = set; then : | |
9386 $as_echo_n "(cached) " >&6 | 7753 $as_echo_n "(cached) " >&6 |
9387 else | 7754 else |
9388 | 7755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9389 am_cv_func_iconv="no, consider installing GNU libiconv" | 7756 /* end confdefs.h. */ |
9390 am_cv_lib_iconv=no | 7757 |
9391 am_cv_use_build_libiconv=no | 7758 #include <stdbool.h> |
9392 am_cv_build_libiconv_path= | 7759 #ifndef bool |
9393 | 7760 "error: bool is not defined" |
9394 # If libiconv is part of the build tree, then try using it over | 7761 #endif |
9395 # any system iconv. | 7762 #ifndef false |
9396 if test -d ../libiconv; then | 7763 "error: false is not defined" |
9397 for lib_dir in $BUILD_LIBICONV_LIBDIRS; do | 7764 #endif |
9398 am_save_LIBS="$LIBS" | 7765 #if false |
9399 am_save_CPPFLAGS="$CPPFLAGS" | 7766 "error: false is not 0" |
9400 LIBS="$LIBS $lib_dir/libiconv.a" | 7767 #endif |
9401 CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE" | 7768 #ifndef true |
9402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 7769 "error: true is not defined" |
9403 /* end confdefs.h. */ | 7770 #endif |
9404 #include <stdlib.h> | 7771 #if true != 1 |
9405 #include <iconv.h> | 7772 "error: true is not 1" |
| 7773 #endif |
| 7774 #ifndef __bool_true_false_are_defined |
| 7775 "error: __bool_true_false_are_defined is not defined" |
| 7776 #endif |
| 7777 |
| 7778 struct s { _Bool s: 1; _Bool t; } s; |
| 7779 |
| 7780 char a[true == 1 ? 1 : -1]; |
| 7781 char b[false == 0 ? 1 : -1]; |
| 7782 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
| 7783 char d[(bool) 0.5 == true ? 1 : -1]; |
| 7784 /* See body of main program for 'e'. */ |
| 7785 char f[(_Bool) 0.0 == false ? 1 : -1]; |
| 7786 char g[true]; |
| 7787 char h[sizeof (_Bool)]; |
| 7788 char i[sizeof s.t]; |
| 7789 enum { j = false, k = true, l = false * true, m = true * 256 }; |
| 7790 /* The following fails for |
| 7791 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ |
| 7792 _Bool n[m]; |
| 7793 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; |
| 7794 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; |
| 7795 /* Catch a bug in an HP-UX C compiler. See |
| 7796 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html |
| 7797 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161
.html |
| 7798 */ |
| 7799 _Bool q = true; |
| 7800 _Bool *pq = &q; |
| 7801 |
9406 int | 7802 int |
9407 main () | 7803 main () |
9408 { | 7804 { |
9409 iconv_t cd = iconv_open("",""); | 7805 |
9410 iconv(cd,NULL,NULL,NULL,NULL); | 7806 bool e = &s; |
9411 iconv_close(cd); | 7807 *pq |= q; |
| 7808 *pq |= ! q; |
| 7809 /* Refer to every declared value, to avoid compiler optimizations.
*/ |
| 7810 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l |
| 7811 + !m + !n + !o + !p + !q + !pq); |
| 7812 |
9412 ; | 7813 ; |
9413 return 0; | 7814 return 0; |
9414 } | 7815 } |
9415 _ACEOF | 7816 _ACEOF |
9416 if ac_fn_c_try_link "$LINENO"; then : | 7817 if ac_fn_c_try_compile "$LINENO"; then : |
9417 am_cv_use_build_libiconv=yes | 7818 ac_cv_header_stdbool_h=yes |
9418 am_cv_build_libiconv_path=$lib_dir/libiconv.a | 7819 else |
9419 am_cv_lib_iconv=yes | 7820 ac_cv_header_stdbool_h=no |
9420 am_cv_func_iconv=yes | 7821 fi |
9421 fi | 7822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9422 rm -f core conftest.err conftest.$ac_objext \ | 7823 fi |
9423 conftest$ac_exeext conftest.$ac_ext | 7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 |
9424 LIBS="$am_save_LIBS" | 7825 $as_echo "$ac_cv_header_stdbool_h" >&6; } |
9425 CPPFLAGS="$am_save_CPPFLAGS" | 7826 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default
" |
9426 if test "$am_cv_use_build_libiconv" = "yes"; then | 7827 if test "x$ac_cv_type__Bool" = x""yes; then : |
9427 break | 7828 |
9428 fi | 7829 cat >>confdefs.h <<_ACEOF |
9429 done | 7830 #define HAVE__BOOL 1 |
9430 fi | 7831 _ACEOF |
9431 | 7832 |
9432 # Next, try to find iconv in libc. | 7833 |
9433 if test "$am_cv_func_iconv" != yes; then | 7834 fi |
9434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 7835 |
9435 /* end confdefs.h. */ | 7836 |
9436 #include <stdlib.h> | 7837 |
9437 #include <iconv.h> | 7838 REPLACE_NULL=0; |
| 7839 HAVE_WCHAR_T=1; |
| 7840 |
| 7841 |
| 7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 |
| 7843 $as_echo_n "checking for wchar_t... " >&6; } |
| 7844 if test "${gt_cv_c_wchar_t+set}" = set; then : |
| 7845 $as_echo_n "(cached) " >&6 |
| 7846 else |
| 7847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7848 /* end confdefs.h. */ |
| 7849 #include <stddef.h> |
| 7850 wchar_t foo = (wchar_t)'\0'; |
9438 int | 7851 int |
9439 main () | 7852 main () |
9440 { | 7853 { |
9441 iconv_t cd = iconv_open("",""); | 7854 |
9442 iconv(cd,NULL,NULL,NULL,NULL); | |
9443 iconv_close(cd); | |
9444 ; | 7855 ; |
9445 return 0; | 7856 return 0; |
9446 } | 7857 } |
9447 _ACEOF | 7858 _ACEOF |
9448 if ac_fn_c_try_link "$LINENO"; then : | 7859 if ac_fn_c_try_compile "$LINENO"; then : |
9449 am_cv_func_iconv=yes | 7860 gt_cv_c_wchar_t=yes |
9450 fi | 7861 else |
9451 rm -f core conftest.err conftest.$ac_objext \ | 7862 gt_cv_c_wchar_t=no |
9452 conftest$ac_exeext conftest.$ac_ext | 7863 fi |
9453 fi | 7864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9454 | 7865 fi |
9455 # If iconv was not in libc, try -liconv. In this case, arrange to | 7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 |
9456 # look in the libiconv prefix, if it was specified by the user. | 7867 $as_echo "$gt_cv_c_wchar_t" >&6; } |
9457 if test "$am_cv_func_iconv" != yes; then | 7868 if test $gt_cv_c_wchar_t = yes; then |
9458 am_save_CPPFLAGS="$CPPFLAGS" | 7869 |
9459 am_save_LIBS="$LIBS" | 7870 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h |
9460 if test -n "$LIBICONV_INCLUDE"; then | 7871 |
9461 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE" | 7872 fi |
9462 LIBS="$LIBS $LIBICONV_LIBDIR" | 7873 |
9463 fi | 7874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&
5 |
9464 LIBS="$LIBS -liconv" | 7875 $as_echo_n "checking for C/C++ restrict keyword... " >&6; } |
9465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 7876 if test "${ac_cv_c_restrict+set}" = set; then : |
9466 /* end confdefs.h. */ | 7877 $as_echo_n "(cached) " >&6 |
9467 #include <stdlib.h> | 7878 else |
9468 #include <iconv.h> | 7879 ac_cv_c_restrict=no |
| 7880 # The order here caters to the fact that C++ does not require restrict. |
| 7881 for ac_kw in __restrict __restrict__ _Restrict restrict; do |
| 7882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7883 /* end confdefs.h. */ |
| 7884 typedef int * int_ptr; |
| 7885 » int foo (int_ptr $ac_kw ip) { |
| 7886 » return ip[0]; |
| 7887 } |
9469 int | 7888 int |
9470 main () | 7889 main () |
9471 { | 7890 { |
9472 iconv_t cd = iconv_open("",""); | 7891 int s[1]; |
9473 iconv(cd,NULL,NULL,NULL,NULL); | 7892 » int * $ac_kw t = s; |
9474 iconv_close(cd); | 7893 » t[0] = 0; |
| 7894 » return foo(t) |
9475 ; | 7895 ; |
9476 return 0; | 7896 return 0; |
9477 } | 7897 } |
9478 _ACEOF | 7898 _ACEOF |
9479 if ac_fn_c_try_link "$LINENO"; then : | |
9480 am_cv_lib_iconv=yes | |
9481 am_cv_func_iconv=yes | |
9482 fi | |
9483 rm -f core conftest.err conftest.$ac_objext \ | |
9484 conftest$ac_exeext conftest.$ac_ext | |
9485 LIBS="$am_save_LIBS" | |
9486 CPPFLAGS="$am_save_CPPFLAGS" | |
9487 fi | |
9488 | |
9489 fi | |
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 | |
9491 $as_echo "$am_cv_func_iconv" >&6; } | |
9492 | |
9493 # Set the various flags based on the cache variables. We can't rely | |
9494 # on the flags to remain set from the above code, due to caching. | |
9495 LIBICONV= | |
9496 if test "$am_cv_lib_iconv" = yes; then | |
9497 LIBICONV="-liconv" | |
9498 else | |
9499 LIBICONV_LIBDIR= | |
9500 LIBICONV_INCLUDE= | |
9501 fi | |
9502 if test "$am_cv_use_build_libiconv" = yes; then | |
9503 LIBICONV="$am_cv_build_libiconv_path" | |
9504 LIBICONV_LIBDIR="" | |
9505 LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE" | |
9506 fi | |
9507 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE" | |
9508 LIBS="$LIBS $LIBICONV_LIBDIR $LIBICONV" | |
9509 | |
9510 if test "$am_cv_func_iconv" = yes; then | |
9511 | |
9512 $as_echo "#define HAVE_ICONV 1" >>confdefs.h | |
9513 | |
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 | |
9515 $as_echo_n "checking for iconv declaration... " >&6; } | |
9516 if test "${am_cv_proto_iconv+set}" = set; then : | |
9517 $as_echo_n "(cached) " >&6 | |
9518 else | |
9519 | |
9520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9521 /* end confdefs.h. */ | |
9522 | |
9523 #include <stdlib.h> | |
9524 #include <iconv.h> | |
9525 extern | |
9526 #ifdef __cplusplus | |
9527 "C" | |
9528 #endif | |
9529 #if defined(__STDC__) || defined(__cplusplus) | |
9530 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, si
ze_t *outbytesleft); | |
9531 #else | |
9532 size_t iconv(); | |
9533 #endif | |
9534 | |
9535 int | |
9536 main () | |
9537 { | |
9538 | |
9539 ; | |
9540 return 0; | |
9541 } | |
9542 _ACEOF | |
9543 if ac_fn_c_try_compile "$LINENO"; then : | 7899 if ac_fn_c_try_compile "$LINENO"; then : |
9544 am_cv_proto_iconv_arg1="" | 7900 ac_cv_c_restrict=$ac_kw |
9545 else | |
9546 am_cv_proto_iconv_arg1="const" | |
9547 fi | 7901 fi |
9548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 7902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9549 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg
1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" | 7903 test "$ac_cv_c_restrict" != no && break |
9550 fi | 7904 done |
9551 | 7905 |
9552 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` | 7906 fi |
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- | 7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 |
9554 }$am_cv_proto_iconv" >&5 | 7908 $as_echo "$ac_cv_c_restrict" >&6; } |
9555 $as_echo "${ac_t:- | 7909 |
9556 }$am_cv_proto_iconv" >&6; } | 7910 case $ac_cv_c_restrict in |
9557 | 7911 restrict) ;; |
9558 cat >>confdefs.h <<_ACEOF | 7912 no) $as_echo "#define restrict /**/" >>confdefs.h |
9559 #define ICONV_CONST $am_cv_proto_iconv_arg1 | 7913 ;; |
9560 _ACEOF | 7914 *) cat >>confdefs.h <<_ACEOF |
9561 | 7915 #define restrict $ac_cv_c_restrict |
9562 fi | 7916 _ACEOF |
9563 | 7917 ;; |
9564 | 7918 esac |
9565 # GDB may fork/exec the iconv program to get the list of supported character | 7919 |
9566 # sets. Allow the user to specify where to find it. | 7920 |
9567 # There are several factors affecting the choice of option name: | 7921 |
9568 # - There is already --with-libiconv-prefix but we can't use it, it specifies | |
9569 # the build-time location of libiconv files. | |
9570 # - The program we need to find is iconv, which comes with glibc. The user | |
9571 # doesn't necessarily have libiconv installed. Therefore naming this | |
9572 # --with-libiconv-foo feels wrong. | |
9573 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is | |
9574 # defined to work on directories not files (though it really doesn't know | |
9575 # the difference). | |
9576 # - Calling this --with-iconv-prefix is perceived to cause too much confusion | |
9577 # with --with-libiconv-prefix. | |
9578 # Putting these together is why the option name is --with-iconv-bin. | |
9579 | |
9580 | |
9581 # Check whether --with-iconv-bin was given. | |
9582 if test "${with_iconv_bin+set}" = set; then : | |
9583 withval=$with_iconv_bin; iconv_bin="${withval}" | |
9584 | |
9585 cat >>confdefs.h <<_ACEOF | |
9586 #define ICONV_BIN "${iconv_bin}" | |
9587 _ACEOF | |
9588 | |
9589 | |
9590 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then | |
9591 if test "x$prefix" = xNONE; then | |
9592 test_prefix=/usr/local | |
9593 else | |
9594 test_prefix=$prefix | |
9595 fi | |
9596 else | |
9597 test_prefix=$exec_prefix | |
9598 fi | |
9599 value=0 | |
9600 case ${iconv_bin} in | |
9601 "${test_prefix}"|"${test_prefix}/"*|\ | |
9602 '${exec_prefix}'|'${exec_prefix}/'*) | |
9603 value=1 | |
9604 ;; | |
9605 esac | |
9606 | |
9607 cat >>confdefs.h <<_ACEOF | |
9608 #define ICONV_BIN_RELOCATABLE $value | |
9609 _ACEOF | |
9610 | |
9611 | |
9612 | |
9613 fi | |
9614 | |
9615 | |
9616 # On alpha-osf, it appears that libtermcap and libcurses are not compatible. | |
9617 # There is a very specific comment in /usr/include/curses.h explaining that | |
9618 # termcap routines built into libcurses must not be used. | |
9619 # | |
9620 # The symptoms we observed so far is GDB unexpectedly changing | |
9621 # the terminal settings when tgetent is called - this is particularly | |
9622 # visible as the output is missing carriage returns, and so rapidly | |
9623 # becomes very hard to read. | |
9624 # | |
9625 # The readline configure script has already decided that libtermcap | |
9626 # was enough for its purposes, and so decided to build readline using | |
9627 # libtermcap. Since the TUI mode requires curses, building GDB with | |
9628 # TUI enabled results in both libraries to be used at the same time, | |
9629 # which is not allowed. This basically means that GDB with TUI is | |
9630 # broken on alpha-osf. | |
9631 | |
9632 case $host_os in | |
9633 osf* ) | |
9634 if test x"$enable_tui" = xyes; then | |
9635 as_fn_error "Building GDB with TUI mode is not supported on this host" "$L
INENO" 5 | |
9636 fi | |
9637 if test x"$enable_tui" = xauto; then | |
9638 enable_tui=no | |
9639 fi | |
9640 ;; | |
9641 esac | |
9642 | |
9643 # For the TUI, we need enhanced curses functionality. | |
9644 if test x"$enable_tui" != xno; then | |
9645 prefer_curses=yes | |
9646 fi | |
9647 | |
9648 curses_found=no | |
9649 if test x"$prefer_curses" = xyes; then | |
9650 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied | |
9651 # curses library because the latter might not provide all the | |
9652 # functionality we need. However, this leads to problems on systems | |
9653 # where the linker searches /usr/local/lib, but the compiler doesn't | |
9654 # search /usr/local/include, if ncurses is installed in /usr/local. A | |
9655 # default installation of ncurses on alpha*-dec-osf* will lead to such | |
9656 # a situation. | |
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing wadds
tr" >&5 | |
9658 $as_echo_n "checking for library containing waddstr... " >&6; } | |
9659 if test "${ac_cv_search_waddstr+set}" = set; then : | |
9660 $as_echo_n "(cached) " >&6 | |
9661 else | |
9662 ac_func_search_save_LIBS=$LIBS | |
9663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9664 /* end confdefs.h. */ | |
9665 | |
9666 /* Override any GCC internal prototype to avoid an error. | |
9667 Use char because int might match the return type of a GCC | |
9668 builtin and then its argument prototype would still apply. */ | |
9669 #ifdef __cplusplus | |
9670 extern "C" | |
9671 #endif | |
9672 char waddstr (); | |
9673 int | |
9674 main () | |
9675 { | |
9676 return waddstr (); | |
9677 ; | |
9678 return 0; | |
9679 } | |
9680 _ACEOF | |
9681 for ac_lib in '' ncurses cursesX curses; do | |
9682 if test -z "$ac_lib"; then | |
9683 ac_res="none required" | |
9684 else | |
9685 ac_res=-l$ac_lib | |
9686 LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9687 fi | |
9688 if ac_fn_c_try_link "$LINENO"; then : | |
9689 ac_cv_search_waddstr=$ac_res | |
9690 fi | |
9691 rm -f core conftest.err conftest.$ac_objext \ | |
9692 conftest$ac_exeext | |
9693 if test "${ac_cv_search_waddstr+set}" = set; then : | |
9694 break | |
9695 fi | |
9696 done | |
9697 if test "${ac_cv_search_waddstr+set}" = set; then : | |
9698 | |
9699 else | |
9700 ac_cv_search_waddstr=no | |
9701 fi | |
9702 rm conftest.$ac_ext | |
9703 LIBS=$ac_func_search_save_LIBS | |
9704 fi | |
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5 | |
9706 $as_echo "$ac_cv_search_waddstr" >&6; } | |
9707 ac_res=$ac_cv_search_waddstr | |
9708 if test "$ac_res" != no; then : | |
9709 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
9710 | |
9711 fi | |
9712 | |
9713 | |
9714 if test "$ac_cv_search_waddstr" != no; then | |
9715 curses_found=yes | |
9716 fi | |
9717 fi | |
9718 | |
9719 # Check whether we should enable the TUI, but only do so if we really | |
9720 # can. | |
9721 if test x"$enable_tui" != xno; then | |
9722 if test -d $srcdir/tui; then | |
9723 if test "$curses_found" != no; then | |
9724 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)" | |
9725 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)" | |
9726 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)" | |
9727 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)" | |
9728 CONFIG_ALL="${CONFIG_ALL} all-tui" | |
9729 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui" | |
9730 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui" | |
9731 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui" | |
9732 else | |
9733 if test x"$enable_tui" = xyes; then | |
9734 as_fn_error "no enhanced curses library found; disable TUI" "$LINENO" 5 | |
9735 else | |
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses lib
rary found; disabling TUI" >&5 | |
9737 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;
} | |
9738 fi | |
9739 fi | |
9740 fi | |
9741 fi | |
9742 | |
9743 # Since GDB uses Readline, we need termcap functionality. In many | |
9744 # cases this will be provided by the curses library, but some systems | |
9745 # have a seperate termcap library, or no curses library at all. | |
9746 | |
9747 case $host_os in | |
9748 cygwin*) | |
9749 if test -d $srcdir/libtermcap; then | |
9750 LIBS="../libtermcap/libtermcap.a $LIBS" | |
9751 ac_cv_search_tgetent="../libtermcap/libtermcap.a" | |
9752 fi ;; | |
9753 go32* | *djgpp*) | |
9754 ac_cv_search_tgetent="none required" | |
9755 ;; | |
9756 *mingw32*) | |
9757 ac_cv_search_tgetent="none required" | |
9758 CONFIG_OBS="$CONFIG_OBS windows-termcap.o" | |
9759 ;; | |
9760 esac | |
9761 | |
9762 # These are the libraries checked by Readline. | |
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent
" >&5 | |
9764 $as_echo_n "checking for library containing tgetent... " >&6; } | |
9765 if test "${ac_cv_search_tgetent+set}" = set; then : | |
9766 $as_echo_n "(cached) " >&6 | |
9767 else | |
9768 ac_func_search_save_LIBS=$LIBS | |
9769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9770 /* end confdefs.h. */ | |
9771 | |
9772 /* Override any GCC internal prototype to avoid an error. | |
9773 Use char because int might match the return type of a GCC | |
9774 builtin and then its argument prototype would still apply. */ | |
9775 #ifdef __cplusplus | |
9776 extern "C" | |
9777 #endif | |
9778 char tgetent (); | |
9779 int | |
9780 main () | |
9781 { | |
9782 return tgetent (); | |
9783 ; | |
9784 return 0; | |
9785 } | |
9786 _ACEOF | |
9787 for ac_lib in '' termcap tinfo curses ncurses; do | |
9788 if test -z "$ac_lib"; then | |
9789 ac_res="none required" | |
9790 else | |
9791 ac_res=-l$ac_lib | |
9792 LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9793 fi | |
9794 if ac_fn_c_try_link "$LINENO"; then : | |
9795 ac_cv_search_tgetent=$ac_res | |
9796 fi | |
9797 rm -f core conftest.err conftest.$ac_objext \ | |
9798 conftest$ac_exeext | |
9799 if test "${ac_cv_search_tgetent+set}" = set; then : | |
9800 break | |
9801 fi | |
9802 done | |
9803 if test "${ac_cv_search_tgetent+set}" = set; then : | |
9804 | |
9805 else | |
9806 ac_cv_search_tgetent=no | |
9807 fi | |
9808 rm conftest.$ac_ext | |
9809 LIBS=$ac_func_search_save_LIBS | |
9810 fi | |
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5 | |
9812 $as_echo "$ac_cv_search_tgetent" >&6; } | |
9813 ac_res=$ac_cv_search_tgetent | |
9814 if test "$ac_res" != no; then : | |
9815 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
9816 | |
9817 fi | |
9818 | |
9819 | |
9820 if test "$ac_cv_search_tgetent" = no; then | |
9821 as_fn_error "no termcap library found" "$LINENO" 5 | |
9822 fi | |
9823 | |
9824 | |
9825 # Check whether --with-system-readline was given. | |
9826 if test "${with_system_readline+set}" = set; then : | |
9827 withval=$with_system_readline; | |
9828 fi | |
9829 | |
9830 | |
9831 if test "$with_system_readline" = yes; then | |
9832 READLINE=-lreadline | |
9833 READLINE_DEPS= | |
9834 READLINE_CFLAGS= | |
9835 READLINE_TEXI_INCFLAG= | |
9836 else | |
9837 READLINE='$(READLINE_DIR)/libreadline.a' | |
9838 READLINE_DEPS='$(READLINE)' | |
9839 READLINE_CFLAGS='-I$(READLINE_SRC)/..' | |
9840 READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)' | |
9841 fi | |
9842 | |
9843 | |
9844 | |
9845 | |
9846 | |
9847 # Generate jit-reader.h | |
9848 | |
9849 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h | |
9850 TARGET_PTR= | |
9851 | |
9852 # The cast to long int works around a bug in the HP C Compiler | |
9853 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
9854 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
9855 # This bug is HP SR number 8606223364. | |
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&
5 | |
9857 $as_echo_n "checking size of unsigned long long... " >&6; } | |
9858 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then : | |
9859 $as_echo_n "(cached) " >&6 | |
9860 else | |
9861 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "a
c_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then : | |
9862 | |
9863 else | |
9864 if test "$ac_cv_type_unsigned_long_long" = yes; then | |
9865 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
9866 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
9867 { as_fn_set_status 77 | |
9868 as_fn_error "cannot compute sizeof (unsigned long long) | |
9869 See \`config.log' for more details." "$LINENO" 5; }; } | |
9870 else | |
9871 ac_cv_sizeof_unsigned_long_long=0 | |
9872 fi | |
9873 fi | |
9874 | |
9875 fi | |
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_lon
g" >&5 | |
9877 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; } | |
9878 | |
9879 | |
9880 | |
9881 cat >>confdefs.h <<_ACEOF | |
9882 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long | |
9883 _ACEOF | |
9884 | |
9885 | |
9886 # The cast to long int works around a bug in the HP C Compiler | |
9887 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
9888 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
9889 # This bug is HP SR number 8606223364. | |
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 | |
9891 $as_echo_n "checking size of unsigned long... " >&6; } | |
9892 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then : | |
9893 $as_echo_n "(cached) " >&6 | |
9894 else | |
9895 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_
sizeof_unsigned_long" "$ac_includes_default"; then : | |
9896 | |
9897 else | |
9898 if test "$ac_cv_type_unsigned_long" = yes; then | |
9899 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
9900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
9901 { as_fn_set_status 77 | |
9902 as_fn_error "cannot compute sizeof (unsigned long) | |
9903 See \`config.log' for more details." "$LINENO" 5; }; } | |
9904 else | |
9905 ac_cv_sizeof_unsigned_long=0 | |
9906 fi | |
9907 fi | |
9908 | |
9909 fi | |
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&
5 | |
9911 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; } | |
9912 | |
9913 | |
9914 | |
9915 cat >>confdefs.h <<_ACEOF | |
9916 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long | |
9917 _ACEOF | |
9918 | |
9919 | |
9920 # The cast to long int works around a bug in the HP C Compiler | |
9921 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
9922 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
9923 # This bug is HP SR number 8606223364. | |
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5 | |
9925 $as_echo_n "checking size of unsigned __int128... " >&6; } | |
9926 if test "${ac_cv_sizeof_unsigned___int128+set}" = set; then : | |
9927 $as_echo_n "(cached) " >&6 | |
9928 else | |
9929 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac
_cv_sizeof_unsigned___int128" "$ac_includes_default"; then : | |
9930 | |
9931 else | |
9932 if test "$ac_cv_type_unsigned___int128" = yes; then | |
9933 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
9934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
9935 { as_fn_set_status 77 | |
9936 as_fn_error "cannot compute sizeof (unsigned __int128) | |
9937 See \`config.log' for more details." "$LINENO" 5; }; } | |
9938 else | |
9939 ac_cv_sizeof_unsigned___int128=0 | |
9940 fi | |
9941 fi | |
9942 | |
9943 fi | |
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128
" >&5 | |
9945 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; } | |
9946 | |
9947 | |
9948 | |
9949 cat >>confdefs.h <<_ACEOF | |
9950 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128 | |
9951 _ACEOF | |
9952 | |
9953 | |
9954 | |
9955 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then | |
9956 TARGET_PTR="unsigned long" | |
9957 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then | |
9958 TARGET_PTR="unsigned long long" | |
9959 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then | |
9960 TARGET_PTR="unsigned __int128" | |
9961 else | |
9962 TARGET_PTR="unsigned long" | |
9963 fi | |
9964 | |
9965 | |
9966 ac_config_files="$ac_config_files jit-reader.h:jit-reader.in" | |
9967 | |
9968 | |
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen"
>&5 | |
9970 $as_echo_n "checking for library containing dlopen... " >&6; } | |
9971 if test "${ac_cv_search_dlopen+set}" = set; then : | |
9972 $as_echo_n "(cached) " >&6 | |
9973 else | |
9974 ac_func_search_save_LIBS=$LIBS | |
9975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9976 /* end confdefs.h. */ | |
9977 | |
9978 /* Override any GCC internal prototype to avoid an error. | |
9979 Use char because int might match the return type of a GCC | |
9980 builtin and then its argument prototype would still apply. */ | |
9981 #ifdef __cplusplus | |
9982 extern "C" | |
9983 #endif | |
9984 char dlopen (); | |
9985 int | |
9986 main () | |
9987 { | |
9988 return dlopen (); | |
9989 ; | |
9990 return 0; | |
9991 } | |
9992 _ACEOF | |
9993 for ac_lib in '' dl; do | |
9994 if test -z "$ac_lib"; then | |
9995 ac_res="none required" | |
9996 else | |
9997 ac_res=-l$ac_lib | |
9998 LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9999 fi | |
10000 if ac_fn_c_try_link "$LINENO"; then : | |
10001 ac_cv_search_dlopen=$ac_res | |
10002 fi | |
10003 rm -f core conftest.err conftest.$ac_objext \ | |
10004 conftest$ac_exeext | |
10005 if test "${ac_cv_search_dlopen+set}" = set; then : | |
10006 break | |
10007 fi | |
10008 done | |
10009 if test "${ac_cv_search_dlopen+set}" = set; then : | |
10010 | |
10011 else | |
10012 ac_cv_search_dlopen=no | |
10013 fi | |
10014 rm conftest.$ac_ext | |
10015 LIBS=$ac_func_search_save_LIBS | |
10016 fi | |
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 | |
10018 $as_echo "$ac_cv_search_dlopen" >&6; } | |
10019 ac_res=$ac_cv_search_dlopen | |
10020 if test "$ac_res" != no; then : | |
10021 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
10022 | |
10023 fi | |
10024 | |
10025 | |
10026 | |
10027 | |
10028 # Check whether --with-jit-reader-dir was given. | |
10029 if test "${with_jit_reader_dir+set}" = set; then : | |
10030 withval=$with_jit_reader_dir; | |
10031 JIT_READER_DIR=$withval | |
10032 else | |
10033 JIT_READER_DIR=${libdir}/gdb | |
10034 fi | |
10035 | |
10036 | |
10037 test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
10038 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
10039 ac_define_dir=`eval echo $JIT_READER_DIR` | |
10040 ac_define_dir=`eval echo $ac_define_dir` | |
10041 | |
10042 cat >>confdefs.h <<_ACEOF | |
10043 #define JIT_READER_DIR "$ac_define_dir" | |
10044 _ACEOF | |
10045 | |
10046 | |
10047 | |
10048 | |
10049 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then | |
10050 if test "x$prefix" = xNONE; then | |
10051 test_prefix=/usr/local | |
10052 else | |
10053 test_prefix=$prefix | |
10054 fi | |
10055 else | |
10056 test_prefix=$exec_prefix | |
10057 fi | |
10058 value=0 | |
10059 case ${ac_define_dir} in | |
10060 "${test_prefix}"|"${test_prefix}/"*|\ | |
10061 '${exec_prefix}'|'${exec_prefix}/'*) | |
10062 value=1 | |
10063 ;; | |
10064 esac | |
10065 | |
10066 cat >>confdefs.h <<_ACEOF | |
10067 #define JIT_READER_DIR_RELOCATABLE $value | |
10068 _ACEOF | |
10069 | |
10070 | |
10071 | |
10072 | |
10073 | |
10074 # Check whether --with-expat was given. | |
10075 if test "${with_expat+set}" = set; then : | |
10076 withval=$with_expat; | |
10077 else | |
10078 with_expat=auto | |
10079 fi | |
10080 | |
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5 | |
10082 $as_echo_n "checking whether to use expat... " >&6; } | |
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5 | |
10084 $as_echo "$with_expat" >&6; } | |
10085 | |
10086 if test "${with_expat}" = no; then | |
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some
features may be unavailable." >&5 | |
10088 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavaila
ble." >&2;} | |
10089 HAVE_LIBEXPAT=no | |
10090 else | |
10091 | |
10092 if test "X$prefix" = "XNONE"; then | |
10093 acl_final_prefix="$ac_default_prefix" | |
10094 else | |
10095 acl_final_prefix="$prefix" | |
10096 fi | |
10097 if test "X$exec_prefix" = "XNONE"; then | |
10098 acl_final_exec_prefix='${prefix}' | |
10099 else | |
10100 acl_final_exec_prefix="$exec_prefix" | |
10101 fi | |
10102 acl_save_prefix="$prefix" | |
10103 prefix="$acl_final_prefix" | |
10104 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
10105 prefix="$acl_save_prefix" | |
10106 | |
10107 | |
10108 # Check whether --with-gnu-ld was given. | |
10109 if test "${with_gnu_ld+set}" = set; then : | |
10110 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
10111 else | |
10112 with_gnu_ld=no | |
10113 fi | |
10114 | |
10115 # Prepare PATH_SEPARATOR. | |
10116 # The user is always right. | |
10117 if test "${PATH_SEPARATOR+set}" != set; then | |
10118 echo "#! /bin/sh" >conf$$.sh | |
10119 echo "exit 0" >>conf$$.sh | |
10120 chmod +x conf$$.sh | |
10121 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
10122 PATH_SEPARATOR=';' | |
10123 else | |
10124 PATH_SEPARATOR=: | |
10125 fi | |
10126 rm -f conf$$.sh | |
10127 fi | |
10128 ac_prog=ld | |
10129 if test "$GCC" = yes; then | |
10130 # Check if gcc -print-prog-name=ld gives a path. | |
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 | |
10132 $as_echo_n "checking for ld used by GCC... " >&6; } | |
10133 case $host in | |
10134 *-*-mingw*) | |
10135 # gcc leaves a trailing carriage return which upsets mingw | |
10136 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
10137 *) | |
10138 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
10139 esac | |
10140 case $ac_prog in | |
10141 # Accept absolute paths. | |
10142 [\\/]* | [A-Za-z]:[\\/]*) | |
10143 re_direlt='/[^/][^/]*/\.\./' | |
10144 # Canonicalize the path of ld | |
10145 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
10146 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
10147 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
10148 done | |
10149 test -z "$LD" && LD="$ac_prog" | |
10150 ;; | |
10151 "") | |
10152 # If it fails, then pretend we aren't using GCC. | |
10153 ac_prog=ld | |
10154 ;; | |
10155 *) | |
10156 # If it is relative, then search for the first ld in PATH. | |
10157 with_gnu_ld=unknown | |
10158 ;; | |
10159 esac | |
10160 elif test "$with_gnu_ld" = yes; then | |
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
10162 $as_echo_n "checking for GNU ld... " >&6; } | |
10163 else | |
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
10165 $as_echo_n "checking for non-GNU ld... " >&6; } | |
10166 fi | |
10167 if test "${acl_cv_path_LD+set}" = set; then : | |
10168 $as_echo_n "(cached) " >&6 | |
10169 else | |
10170 if test -z "$LD"; then | |
10171 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
10172 for ac_dir in $PATH; do | |
10173 test -z "$ac_dir" && ac_dir=. | |
10174 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
10175 acl_cv_path_LD="$ac_dir/$ac_prog" | |
10176 # Check to see if the program is GNU ld. I'd rather use --version, | |
10177 # but apparently some GNU ld's only accept -v. | |
10178 # Break only if it was the GNU/non-GNU ld that we prefer. | |
10179 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/n
ull; then | |
10180 test "$with_gnu_ld" != no && break | |
10181 else | |
10182 test "$with_gnu_ld" != yes && break | |
10183 fi | |
10184 fi | |
10185 done | |
10186 IFS="$ac_save_ifs" | |
10187 else | |
10188 acl_cv_path_LD="$LD" # Let the user override the test with a path. | |
10189 fi | |
10190 fi | |
10191 | |
10192 LD="$acl_cv_path_LD" | |
10193 if test -n "$LD"; then | |
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
10195 $as_echo "$LD" >&6; } | |
10196 else | |
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10198 $as_echo "no" >&6; } | |
10199 fi | |
10200 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 | |
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld"
>&5 | |
10202 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
10203 if test "${acl_cv_prog_gnu_ld+set}" = set; then : | |
10204 $as_echo_n "(cached) " >&6 | |
10205 else | |
10206 # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
10207 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
10208 acl_cv_prog_gnu_ld=yes | |
10209 else | |
10210 acl_cv_prog_gnu_ld=no | |
10211 fi | |
10212 fi | |
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 | |
10214 $as_echo "$acl_cv_prog_gnu_ld" >&6; } | |
10215 with_gnu_ld=$acl_cv_prog_gnu_ld | |
10216 | |
10217 | |
10218 | |
10219 { $as_echo "$as_me:${as_lineno-$
LINENO}: checking for shared library run path origin" >&5 | |
10220 $as_echo_n "checking for shared library run path origin... " >&6; } | |
10221 if test "${acl_cv_rpath+set}" = set; then : | |
10222 $as_echo_n "(cached) " >&6 | |
10223 else | |
10224 | |
10225 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ | |
10226 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
10227 . ./conftest.sh | |
10228 rm -f ./conftest.sh | |
10229 acl_cv_rpath=done | |
10230 | |
10231 fi | |
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 | |
10233 $as_echo "$acl_cv_rpath" >&6; } | |
10234 wl="$acl_cv_wl" | |
10235 libext="$acl_cv_libext" | |
10236 shlibext="$acl_cv_shlibext" | |
10237 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
10238 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
10239 hardcode_direct="$acl_cv_hardcode_direct" | |
10240 hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
10241 # Check whether --enable-rpath was given. | |
10242 if test "${enable_rpath+set}" = set; then : | |
10243 enableval=$enable_rpath; : | |
10244 else | |
10245 enable_rpath=yes | |
10246 fi | |
10247 | |
10248 | |
10249 | |
10250 | |
10251 | |
10252 | 7922 |
10253 | 7923 |
10254 | 7924 |
10255 | 7925 |
10256 | 7926 |
10257 use_additional=yes | 7927 |
10258 | 7928 |
10259 acl_save_prefix="$prefix" | 7929 |
10260 prefix="$acl_final_prefix" | 7930 |
10261 acl_save_exec_prefix="$exec_prefix" | 7931 if test $gl_cv_have_include_next = yes; then |
10262 exec_prefix="$acl_final_exec_prefix" | 7932 gl_cv_next_string_h='<'string.h'>' |
10263 | 7933 else |
10264 eval additional_includedir=\"$includedir\" | 7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <strin
g.h>" >&5 |
10265 eval additional_libdir=\"$libdir\" | 7935 $as_echo_n "checking absolute name of <string.h>... " >&6; } |
10266 | 7936 if test "${gl_cv_next_string_h+set}" = set; then : |
10267 exec_prefix="$acl_save_exec_prefix" | |
10268 prefix="$acl_save_prefix" | |
10269 | |
10270 | |
10271 # Check whether --with-libexpat-prefix was given. | |
10272 if test "${with_libexpat_prefix+set}" = set; then : | |
10273 withval=$with_libexpat_prefix; | |
10274 if test "X$withval" = "Xno"; then | |
10275 use_additional=no | |
10276 else | |
10277 if test "X$withval" = "X"; then | |
10278 | |
10279 acl_save_prefix="$prefix" | |
10280 prefix="$acl_final_prefix" | |
10281 acl_save_exec_prefix="$exec_prefix" | |
10282 exec_prefix="$acl_final_exec_prefix" | |
10283 | |
10284 eval additional_includedir=\"$includedir\" | |
10285 eval additional_libdir=\"$libdir\" | |
10286 | |
10287 exec_prefix="$acl_save_exec_prefix" | |
10288 prefix="$acl_save_prefix" | |
10289 | |
10290 else | |
10291 additional_includedir="$withval/include" | |
10292 additional_libdir="$withval/lib" | |
10293 fi | |
10294 fi | |
10295 | |
10296 fi | |
10297 | |
10298 LIBEXPAT= | |
10299 LTLIBEXPAT= | |
10300 INCEXPAT= | |
10301 rpathdirs= | |
10302 ltrpathdirs= | |
10303 names_already_handled= | |
10304 names_next_round='expat ' | |
10305 while test -n "$names_next_round"; do | |
10306 names_this_round="$names_next_round" | |
10307 names_next_round= | |
10308 for name in $names_this_round; do | |
10309 already_handled= | |
10310 for n in $names_already_handled; do | |
10311 if test "$n" = "$name"; then | |
10312 already_handled=yes | |
10313 break | |
10314 fi | |
10315 done | |
10316 if test -z "$already_handled"; then | |
10317 names_already_handled="$names_already_handled $name" | |
10318 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrst
uvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
10319 eval value=\"\$HAVE_LIB$uppername\" | |
10320 if test -n "$value"; then | |
10321 if test "$value" = yes; then | |
10322 eval value=\"\$LIB$uppername\" | |
10323 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value" | |
10324 eval value=\"\$LTLIB$uppername\" | |
10325 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value" | |
10326 else | |
10327 : | |
10328 fi | |
10329 else | |
10330 found_dir= | |
10331 found_la= | |
10332 found_so= | |
10333 found_a= | |
10334 if test $use_additional = yes; then | |
10335 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shli
bext"; then | |
10336 found_dir="$additional_libdir" | |
10337 found_so="$additional_libdir/lib$name.$shlibext" | |
10338 if test -f "$additional_libdir/lib$name.la"; then | |
10339 found_la="$additional_libdir/lib$name.la" | |
10340 fi | |
10341 else | |
10342 if test -f "$additional_libdir/lib$name.$libext"; then | |
10343 found_dir="$additional_libdir" | |
10344 found_a="$additional_libdir/lib$name.$libext" | |
10345 if test -f "$additional_libdir/lib$name.la"; then | |
10346 found_la="$additional_libdir/lib$name.la" | |
10347 fi | |
10348 fi | |
10349 fi | |
10350 fi | |
10351 if test "X$found_dir" = "X"; then | |
10352 for x in $LDFLAGS $LTLIBEXPAT; do | |
10353 | |
10354 acl_save_prefix="$prefix" | |
10355 prefix="$acl_final_prefix" | |
10356 acl_save_exec_prefix="$exec_prefix" | |
10357 exec_prefix="$acl_final_exec_prefix" | |
10358 eval x=\"$x\" | |
10359 exec_prefix="$acl_save_exec_prefix" | |
10360 prefix="$acl_save_prefix" | |
10361 | |
10362 case "$x" in | |
10363 -L*) | |
10364 dir=`echo "X$x" | sed -e 's/^X-L//'` | |
10365 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; t
hen | |
10366 found_dir="$dir" | |
10367 found_so="$dir/lib$name.$shlibext" | |
10368 if test -f "$dir/lib$name.la"; then | |
10369 found_la="$dir/lib$name.la" | |
10370 fi | |
10371 else | |
10372 if test -f "$dir/lib$name.$libext"; then | |
10373 found_dir="$dir" | |
10374 found_a="$dir/lib$name.$libext" | |
10375 if test -f "$dir/lib$name.la"; then | |
10376 found_la="$dir/lib$name.la" | |
10377 fi | |
10378 fi | |
10379 fi | |
10380 ;; | |
10381 esac | |
10382 if test "X$found_dir" != "X"; then | |
10383 break | |
10384 fi | |
10385 done | |
10386 fi | |
10387 if test "X$found_dir" != "X"; then | |
10388 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l
$name" | |
10389 if test "X$found_so" != "X"; then | |
10390 if test "$enable_rpath"
= no || test "X$found_dir" = "X/usr/lib"; then | |
10391 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" | |
10392 else | |
10393
haveit= | |
10394 for x in $ltrpathdirs; do | |
10395 if test "X$x" = "X$found_dir"; then | |
10396 haveit=yes | |
10397 break | |
10398 fi | |
10399 done | |
10400 if test -z "$haveit"; then | |
10401 ltrpathdirs="$ltrpathdirs $found_dir" | |
10402 fi | |
10403 if test "$hardcode_direct" = yes; then | |
10404 LIBEXPAT="${LIBEXPAT}${LIB
EXPAT:+ }$found_so" | |
10405 else | |
10406 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_min
us_L" = no; then | |
10407 LIBEXPAT="${LIBEXPAT
}${LIBEXPAT:+ }$found_so" | |
10408 haveit= | |
10409 for x in $rpathdirs; do | |
10410 if test "X$x" = "X$found_dir"; then | |
10411 haveit=yes | |
10412 break | |
10413 fi | |
10414 done | |
10415 if test -z "$haveit"; then | |
10416 rpathdirs="$rpathdirs $found_dir" | |
10417 fi | |
10418 else | |
10419
haveit= | |
10420 for x in $LDFLAGS $LIBEXPAT; do | |
10421 | |
10422 acl_save_prefix="$prefix" | |
10423 prefix="$acl_final_prefix" | |
10424 acl_save_exec_prefix="$exec_prefix" | |
10425 exec_prefix="$acl_final_exec_prefix" | |
10426 eval x=\"$x\" | |
10427 exec_prefix="$acl_save_exec_prefix" | |
10428 prefix="$acl_save_prefix" | |
10429 | |
10430 if test "X$x" = "X-L$found_dir"; then | |
10431 haveit=yes | |
10432 break | |
10433 fi | |
10434 done | |
10435 if test -z "$haveit"; then | |
10436 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir" | |
10437 fi | |
10438 if test "$hardcode_minus_L" != no; then | |
10439
LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" | |
10440 else | |
10441
LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name" | |
10442 fi | |
10443 fi | |
10444 fi | |
10445 fi | |
10446 else | |
10447 if test "X$found_a" != "X"; then | |
10448 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a" | |
10449 else | |
10450 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:
+ }-L$found_dir -l$name" | |
10451 fi | |
10452 fi | |
10453 additional_includedir= | |
10454 case "$found_dir" in | |
10455 */lib | */lib/) | |
10456 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` | |
10457 additional_includedir="$basedir/include" | |
10458 ;; | |
10459 esac | |
10460 if test "X$additional_includedir" != "X"; then | |
10461
if test "X$additional_includedir" != "X/usr/incl
ude"; then | |
10462 haveit= | |
10463 if test "X$additional_includedir" = "X/usr/local/include"; then | |
10464 if test -n "$GCC"; then | |
10465 case $host_os in | |
10466 linux*) haveit=yes;; | |
10467 esac | |
10468 fi | |
10469 fi | |
10470 if test -z "$haveit"; then | |
10471 for x in $CPPFLAGS $INCEXPAT; do | |
10472 | |
10473 acl_save_prefix="$prefix" | |
10474 prefix="$acl_final_prefix" | |
10475 acl_save_exec_prefix="$exec_prefix" | |
10476 exec_prefix="$acl_final_exec_prefix" | |
10477 eval x=\"$x\" | |
10478 exec_prefix="$acl_save_exec_prefix" | |
10479 prefix="$acl_save_prefix" | |
10480 | |
10481 if test "X$x" = "X-I$additional_includedir"; then | |
10482 haveit=yes | |
10483 break | |
10484 fi | |
10485 done | |
10486 if test -z "$haveit"; then | |
10487 if test -d "$additional_includedir"; then | |
10488 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-
I$additional_includedir" | |
10489 fi | |
10490 fi | |
10491 fi | |
10492 fi | |
10493 fi | |
10494 if test -n "$found_la"; then | |
10495 save_libdir="$libdir" | |
10496 case "$found_la" in | |
10497 */* | *\\*) . "$found_la" ;; | |
10498 *) . "./$found_la" ;; | |
10499 esac | |
10500 libdir="$save_libdir" | |
10501 for dep in $dependency_libs; do | |
10502 case "$dep" in | |
10503 -L*) | |
10504 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
10505
if test "X$additional_libdir" != "X/usr/lib"; then | |
10506 haveit= | |
10507 if test "X$additional_libdir" = "X/usr/local/lib"; then | |
10508 if test -n "$GCC"; then | |
10509 case $host_os in | |
10510 linux*) haveit=yes;; | |
10511 esac | |
10512 fi | |
10513 fi | |
10514 if test -z "$haveit"; then | |
10515 haveit= | |
10516 for x in $LDFLAGS $LIBEXPAT; do | |
10517 | |
10518 acl_save_prefix="$prefix" | |
10519 prefix="$acl_final_prefix" | |
10520 acl_save_exec_prefix="$exec_prefix" | |
10521 exec_prefix="$acl_final_exec_prefix" | |
10522 eval x=\"$x\" | |
10523 exec_prefix="$acl_save_exec_prefix" | |
10524 prefix="$acl_save_prefix" | |
10525 | |
10526 if test "X$x" = "X-L$additional_libdir"; then | |
10527 haveit=yes | |
10528 break | |
10529 fi | |
10530 done | |
10531 if test -z "$haveit"; then | |
10532 if test -d "$additional_libdir"; then | |
10533 LIBEXPAT="${LIBEXPAT}${L
IBEXPAT:+ }-L$additional_libdir" | |
10534 fi | |
10535 fi | |
10536 haveit= | |
10537 for x in $LDFLAGS $LTLIBEXPAT; do | |
10538 | |
10539 acl_save_prefix="$prefix" | |
10540 prefix="$acl_final_prefix" | |
10541 acl_save_exec_prefix="$exec_prefix" | |
10542 exec_prefix="$acl_final_exec_prefix" | |
10543 eval x=\"$x\" | |
10544 exec_prefix="$acl_save_exec_prefix" | |
10545 prefix="$acl_save_prefix" | |
10546 | |
10547 if test "X$x" = "X-L$additional_libdir"; then | |
10548 haveit=yes | |
10549 break | |
10550 fi | |
10551 done | |
10552 if test -z "$haveit"; then | |
10553 if test -d "$additional_libdir"; then | |
10554 LTLIBEXPAT="${LTLIBEXPAT
}${LTLIBEXPAT:+ }-L$additional_libdir" | |
10555 fi | |
10556 fi | |
10557 fi | |
10558 fi | |
10559 ;; | |
10560 -R*) | |
10561 dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
10562 if test "$enable_rpath" != no; then | |
10563 haveit= | |
10564 for x in $rpathdirs; do | |
10565 if test "X$x" = "X$dir"; then | |
10566 haveit=yes | |
10567 break | |
10568 fi | |
10569 done | |
10570 if test -z "$haveit"; then | |
10571 rpathdirs="$rpathdirs $dir" | |
10572 fi | |
10573 haveit= | |
10574 for x in $ltrpathdirs; do | |
10575 if test "X$x" = "X$dir"; then | |
10576 haveit=yes | |
10577 break | |
10578 fi | |
10579 done | |
10580 if test -z "$haveit"; then | |
10581 ltrpathdirs="$ltrpathdirs $dir" | |
10582 fi | |
10583 fi | |
10584 ;; | |
10585 -l*) | |
10586 names_next_round="$names_next_round "`ec
ho "X$dep" | sed -e 's/^X-l//'` | |
10587 ;; | |
10588 *.la) | |
10589
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^l
ib,,' -e 's,\.la$,,'` | |
10590 ;; | |
10591 *) | |
10592 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep" | |
10593 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep" | |
10594 ;; | |
10595 esac | |
10596 done | |
10597 fi | |
10598 else | |
10599 LIBEXPAT="${LIBEXPAT
}${LIBEXPAT:+ }-l$name" | |
10600 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name" | |
10601 fi | |
10602 fi | |
10603 fi | |
10604 done | |
10605 done | |
10606 if test "X$rpathdirs" != "X"; then | |
10607 if test -n "$hardcode_libdir_separator"; then | |
10608 alldirs= | |
10609 for found_dir in $rpathdirs; do | |
10610 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" | |
10611 done | |
10612 acl_save_libdir="$libdir" | |
10613 libdir="$alldirs" | |
10614 eval flag=\"$hardcode_libdir_flag_spec\" | |
10615 libdir="$acl_save_libdir" | |
10616 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag" | |
10617 else | |
10618 for found_dir in $rpathdirs; do | |
10619 acl_save_libdir="$libdir" | |
10620 libdir="$found_dir" | |
10621 eval flag=\"$hardcode_libdir_flag_spec\" | |
10622 libdir="$acl_save_libdir" | |
10623 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag" | |
10624 done | |
10625 fi | |
10626 fi | |
10627 if test "X$ltrpathdirs" != "X"; then | |
10628 for found_dir in $ltrpathdirs; do | |
10629 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir" | |
10630 done | |
10631 fi | |
10632 | |
10633 | |
10634 ac_save_CPPFLAGS="$CPPFLAGS" | |
10635 | |
10636 for element in $INCEXPAT; do | |
10637 haveit= | |
10638 for x in $CPPFLAGS; do | |
10639 | |
10640 acl_save_prefix="$prefix" | |
10641 prefix="$acl_final_prefix" | |
10642 acl_save_exec_prefix="$exec_prefix" | |
10643 exec_prefix="$acl_final_exec_prefix" | |
10644 eval x=\"$x\" | |
10645 exec_prefix="$acl_save_exec_prefix" | |
10646 prefix="$acl_save_prefix" | |
10647 | |
10648 if test "X$x" = "X$element"; then | |
10649 haveit=yes | |
10650 break | |
10651 fi | |
10652 done | |
10653 if test -z "$haveit"; then | |
10654 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
10655 fi | |
10656 done | |
10657 | |
10658 | |
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5 | |
10660 $as_echo_n "checking for libexpat... " >&6; } | |
10661 if test "${ac_cv_libexpat+set}" = set; then : | |
10662 $as_echo_n "(cached) " >&6 | 7937 $as_echo_n "(cached) " >&6 |
10663 else | 7938 else |
10664 | 7939 |
10665 ac_save_LIBS="$LIBS" | 7940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10666 LIBS="$LIBS $LIBEXPAT" | 7941 /* end confdefs.h. */ |
10667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 7942 #include <string.h> |
10668 /* end confdefs.h. */ | 7943 |
10669 #include "expat.h" | 7944 _ACEOF |
| 7945
case "$host_os" in |
| 7946 aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 7947 *) gl_absname_cpp="$ac_cpp" ;; |
| 7948 esac |
| 7949 |
| 7950 case "$host_os" in |
| 7951 mingw*) |
| 7952
gl_dirsep_regex='[/\\]' |
| 7953 ;; |
| 7954 *) |
| 7955 gl_dirsep_regex='\/' |
| 7956 ;; |
| 7957 esac |
| 7958 gl_make_literal_regex_sed='s,[]$^\\
.*/[],\\&,g' |
| 7959 |
| 7960 gl_header_literal_regex=`echo 'string.h' \ |
| 7961 | sed -e "$gl_make_literal_regex_sed"` |
| 7962 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_re
gex}/"'{ |
| 7963 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".
*/\1/ |
| 7964 s|^/[^/]|//&| |
| 7965 p |
| 7966 q |
| 7967 }' |
| 7968 gl_cv_next_string_h=
'"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 7969 sed -n "$gl_absolute_header_sed"`'"' |
| 7970 |
| 7971 |
| 7972 fi |
| 7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5 |
| 7974 $as_echo "$gl_cv_next_string_h" >&6; } |
| 7975 fi |
| 7976 NEXT_STRING_H=$gl_cv_next_string_h |
| 7977 |
| 7978 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = b
uggy; then |
| 7979 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 7980 gl_next_as_first_directive='<'string.h'>' |
| 7981 else |
| 7982 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 7983 gl_next_as_first_directive=$gl_cv_next_string_h |
| 7984 fi |
| 7985 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive |
| 7986 |
| 7987 |
| 7988 |
| 7989 |
| 7990 |
| 7991 |
| 7992 for gl_func in ffsl ffsll memmem mempcpy memrchr rawmemchr stpcpy stpncpy st
rchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r
strerror_r strsignal strverscmp; do |
| 7993 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` |
| 7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declar
ed without a macro" >&5 |
| 7995 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } |
| 7996 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 7997 $as_echo_n "(cached) " >&6 |
| 7998 else |
| 7999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8000 /* end confdefs.h. */ |
| 8001 #include <string.h> |
| 8002 |
10670 int | 8003 int |
10671 main () | 8004 main () |
10672 { | 8005 { |
10673 XML_Parser p = XML_ParserCreate (0); | 8006 #undef $gl_func |
| 8007 (void) $gl_func; |
10674 ; | 8008 ; |
10675 return 0; | 8009 return 0; |
10676 } | 8010 } |
10677 _ACEOF | 8011 _ACEOF |
10678 if ac_fn_c_try_link "$LINENO"; then : | 8012 if ac_fn_c_try_compile "$LINENO"; then : |
10679 ac_cv_libexpat=yes | 8013 eval "$as_gl_Symbol=yes" |
10680 else | 8014 else |
10681 ac_cv_libexpat=no | 8015 eval "$as_gl_Symbol=no" |
10682 fi | 8016 fi |
10683 rm -f core conftest.err conftest.$ac_objext \ | 8017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10684 conftest$ac_exeext conftest.$ac_ext | 8018 fi |
10685 LIBS="$ac_save_LIBS" | 8019 eval ac_res=\$$as_gl_Symbol |
10686 | 8020 » { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
10687 fi | 8021 $as_echo "$ac_res" >&6; } |
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5 | 8022 eval as_val=\$$as_gl_Symbol |
10689 $as_echo "$ac_cv_libexpat" >&6; } | 8023 if test "x$as_val" = x""yes; then : |
10690 if test "$ac_cv_libexpat" = yes; then | 8024 cat >>confdefs.h <<_ACEOF |
10691 HAVE_LIBEXPAT=yes | 8025 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 |
10692 | 8026 _ACEOF |
10693 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h | 8027 |
10694 | 8028 eval ac_cv_have_decl_$gl_func=yes |
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat"
>&5 | 8029 fi |
10696 $as_echo_n "checking how to link with libexpat... " >&6; } | 8030 done |
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5 | 8031 |
10698 $as_echo "$LIBEXPAT" >&6; } | 8032 |
| 8033 |
| 8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h>
uses 'inline' correctly" >&5 |
| 8035 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; } |
| 8036 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then : |
| 8037 $as_echo_n "(cached) " >&6 |
| 8038 else |
| 8039 gl_cv_header_wchar_h_correct_inline=yes |
| 8040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8041 /* end confdefs.h. */ |
| 8042 |
| 8043 #define wcstod renamed_wcstod |
| 8044 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before |
| 8045 <wchar.h>. |
| 8046 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 8047 included before <wchar.h>. */ |
| 8048 #include <stddef.h> |
| 8049 #include <stdio.h> |
| 8050 #include <time.h> |
| 8051 #include <wchar.h> |
| 8052 extern int zero (void); |
| 8053 int main () { return zero(); } |
| 8054 |
| 8055 _ACEOF |
| 8056 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 8057 (eval $ac_compile) 2>&5 |
| 8058 ac_status=$? |
| 8059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8060 test $ac_status = 0; }; then |
| 8061 mv conftest.$ac_objext conftest1.$ac_objext |
| 8062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8063 /* end confdefs.h. */ |
| 8064 |
| 8065 #define wcstod renamed_wcstod |
| 8066 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before |
| 8067 <wchar.h>. |
| 8068 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 8069 included before <wchar.h>. */ |
| 8070 #include <stddef.h> |
| 8071 #include <stdio.h> |
| 8072 #include <time.h> |
| 8073 #include <wchar.h> |
| 8074 int zero (void) { return 0; } |
| 8075 |
| 8076 _ACEOF |
| 8077 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >
&5 |
| 8078 (eval $ac_compile) 2>&5 |
| 8079 ac_status=$? |
| 8080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8081 test $ac_status = 0; }; then |
| 8082 mv conftest.$ac_objext conftest2.$ac_objext |
| 8083 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conf
test2.$ac_objext $LIBS >&5 2>&1; then |
| 8084 : |
| 8085 else |
| 8086 gl_cv_header_wchar_h_correct_inline=no |
| 8087 fi |
| 8088 fi |
| 8089 fi |
| 8090 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext |
| 8091 |
| 8092 fi |
| 8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_i
nline" >&5 |
| 8094 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; } |
| 8095 if test $gl_cv_header_wchar_h_correct_inline = no; then |
| 8096 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFL
AGS). |
| 8097 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in |
| 8098 C99 mode. You have four options: |
| 8099 - Add the flag -fgnu89-inline to CC and reconfigure, or |
| 8100 - Fix your include files, using parts of |
| 8101 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d70
6c2e18c929d0e69a621>, or |
| 8102 - Use a gcc version older than 4.3, or |
| 8103 - Don't use the flags -std=c99 or -std=gnu99. |
| 8104 Configuration aborted." "$LINENO" 5 |
| 8105 fi |
| 8106 |
| 8107 |
| 8108 |
| 8109 |
| 8110 |
| 8111 |
| 8112 |
| 8113 |
| 8114 : |
| 8115 |
| 8116 |
| 8117 |
| 8118 |
| 8119 |
| 8120 if test $ac_cv_header_features_h = yes; then |
| 8121 HAVE_FEATURES_H=1 |
10699 else | 8122 else |
10700 HAVE_LIBEXPAT=no | 8123 HAVE_FEATURES_H=0 |
10701 CPPFLAGS="$ac_save_CPPFLAGS" | 8124 fi |
10702 LIBEXPAT= | 8125 |
10703 LTLIBEXPAT= | 8126 |
10704 fi | 8127 |
10705 | 8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 |
10706 | 8129 $as_echo_n "checking for wint_t... " >&6; } |
10707 | 8130 if test "${gt_cv_c_wint_t+set}" = set; then : |
10708 | |
10709 | |
10710 | |
10711 if test "$HAVE_LIBEXPAT" != yes; then | |
10712 if test "$with_expat" = yes; then | |
10713 as_fn_error "expat is missing or unusable" "$LINENO" 5 | |
10714 else | |
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unus
able; some features may be unavailable." >&5 | |
10716 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be un
available." >&2;} | |
10717 fi | |
10718 else | |
10719 save_LIBS=$LIBS | |
10720 LIBS="$LIBS $LIBEXPAT" | |
10721 for ac_func in XML_StopParser | |
10722 do : | |
10723 ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser" | |
10724 if test "x$ac_cv_func_XML_StopParser" = x""yes; then : | |
10725 cat >>confdefs.h <<_ACEOF | |
10726 #define HAVE_XML_STOPPARSER 1 | |
10727 _ACEOF | |
10728 | |
10729 fi | |
10730 done | |
10731 | |
10732 LIBS=$save_LIBS | |
10733 fi | |
10734 fi | |
10735 | |
10736 | |
10737 | |
10738 | |
10739 | |
10740 | |
10741 # Check whether --with-python was given. | |
10742 if test "${with_python+set}" = set; then : | |
10743 withval=$with_python; | |
10744 else | |
10745 with_python=auto | |
10746 fi | |
10747 | |
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5 | |
10749 $as_echo_n "checking whether to use python... " >&6; } | |
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5 | |
10751 $as_echo "$with_python" >&6; } | |
10752 | |
10753 if test "${with_python}" = no; then | |
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; som
e features may be unavailable." >&5 | |
10755 $as_echo "$as_me: WARNING: python support disabled; some features may be unavail
able." >&2;} | |
10756 have_libpython=no | |
10757 else | |
10758 case "${with_python}" in | |
10759 /*) | |
10760 if test -d ${with_python}; then | |
10761 # Assume the python binary is ${with_python}/bin/python. | |
10762 python_prog="${with_python}/bin/python" | |
10763 python_prefix= | |
10764 # If python does not exit ${with_python}/bin, then try in | |
10765 # ${with_python}. On Windows/MinGW, this is where the Python | |
10766 # executable is. | |
10767 if test ! -x "${python_prog}"; then | |
10768 python_prog="${with_python}/python" | |
10769 python_prefix= | |
10770 fi | |
10771 if test ! -x "${python_prog}"; then | |
10772 # Fall back to gdb 7.0/7.1 behaviour. | |
10773 python_prog=missing | |
10774 python_prefix=${with_python} | |
10775 fi | |
10776 elif test -x "${with_python}"; then | |
10777 # While we can't run python compiled for $host (unless host == build), | |
10778 # the user could write a script that provides the needed information, | |
10779 # so we support that. | |
10780 python_prog=${with_python} | |
10781 python_prefix= | |
10782 else | |
10783 as_fn_error "invalid value for --with-python" "$LINENO" 5 | |
10784 fi | |
10785 ;; | |
10786 */*) | |
10787 # Disallow --with-python=foo/bar. | |
10788 as_fn_error "invalid value for --with-python" "$LINENO" 5 | |
10789 ;; | |
10790 *) | |
10791 # The user has either specified auto, yes, or the name of the python | |
10792 # program assumed to be in $PATH. | |
10793 python_prefix= | |
10794 case "${with_python}" in | |
10795 yes | auto) | |
10796 if test ${build} = ${host}; then | |
10797 # Extract the first word of "python", so it can be a program name with a
rgs. | |
10798 set dummy python; ac_word=$2 | |
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10800 $as_echo_n "checking for $ac_word... " >&6; } | |
10801 if test "${ac_cv_path_python_prog_path+set}" = set; then : | |
10802 $as_echo_n "(cached) " >&6 | 8131 $as_echo_n "(cached) " >&6 |
10803 else | 8132 else |
10804 case $python_prog_path in | |
10805 [\\/]* | ?:[\\/]*) | |
10806 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the te
st with a path. | |
10807 ;; | |
10808 *) | |
10809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10810 for as_dir in $PATH | |
10811 do | |
10812 IFS=$as_save_IFS | |
10813 test -z "$as_dir" && as_dir=. | |
10814 for ac_exec_ext in '' $ac_executable_extensions; do | |
10815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then | |
10816 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext" | |
10817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 | |
10818 break 2 | |
10819 fi | |
10820 done | |
10821 done | |
10822 IFS=$as_save_IFS | |
10823 | |
10824 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing
" | |
10825 ;; | |
10826 esac | |
10827 fi | |
10828 python_prog_path=$ac_cv_path_python_prog_path | |
10829 if test -n "$python_prog_path"; then | |
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5 | |
10831 $as_echo "$python_prog_path" >&6; } | |
10832 else | |
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10834 $as_echo "no" >&6; } | |
10835 fi | |
10836 | |
10837 | |
10838 if test "${python_prog_path}" = missing; then | |
10839 python_prog=missing | |
10840 else | |
10841 python_prog=${python_prog_path} | |
10842 fi | |
10843 else | |
10844 # Not much we can do except assume the cross-compiler will find the | |
10845 # right files. | |
10846 python_prog=missing | |
10847 fi | |
10848 ;; | |
10849 *) | |
10850 # While we can't run python compiled for $host (unless host == build), | |
10851 # the user could write a script that provides the needed information, | |
10852 # so we support that. | |
10853 python_prog="${with_python}" | |
10854 # Extract the first word of "${python_prog}", so it can be a program name
with args. | |
10855 set dummy ${python_prog}; ac_word=$2 | |
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10857 $as_echo_n "checking for $ac_word... " >&6; } | |
10858 if test "${ac_cv_path_python_prog_path+set}" = set; then : | |
10859 $as_echo_n "(cached) " >&6 | |
10860 else | |
10861 case $python_prog_path in | |
10862 [\\/]* | ?:[\\/]*) | |
10863 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the te
st with a path. | |
10864 ;; | |
10865 *) | |
10866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10867 for as_dir in $PATH | |
10868 do | |
10869 IFS=$as_save_IFS | |
10870 test -z "$as_dir" && as_dir=. | |
10871 for ac_exec_ext in '' $ac_executable_extensions; do | |
10872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then | |
10873 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext" | |
10874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 | |
10875 break 2 | |
10876 fi | |
10877 done | |
10878 done | |
10879 IFS=$as_save_IFS | |
10880 | |
10881 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing
" | |
10882 ;; | |
10883 esac | |
10884 fi | |
10885 python_prog_path=$ac_cv_path_python_prog_path | |
10886 if test -n "$python_prog_path"; then | |
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5 | |
10888 $as_echo "$python_prog_path" >&6; } | |
10889 else | |
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10891 $as_echo "no" >&6; } | |
10892 fi | |
10893 | |
10894 | |
10895 if test "${python_prog_path}" = missing; then | |
10896 as_fn_error "unable to find python program ${python_prog}" "$LINENO" 5 | |
10897 fi | |
10898 ;; | |
10899 esac | |
10900 esac | |
10901 | |
10902 if test "${python_prog}" != missing; then | |
10903 # We have a python program to use, but it may be too old. | |
10904 # Don't flag an error for --with-python=auto (the default). | |
10905 have_python_config=yes | |
10906 python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes
` | |
10907 if test $? != 0; then | |
10908 have_python_config=failed | |
10909 if test "${with_python}" != auto; then | |
10910 as_fn_error "failure running python-config --includes" "$LINENO" 5 | |
10911 fi | |
10912 fi | |
10913 python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags` | |
10914 if test $? != 0; then | |
10915 have_python_config=failed | |
10916 if test "${with_python}" != auto; then | |
10917 as_fn_error "failure running python-config --ldflags" "$LINENO" 5 | |
10918 fi | |
10919 fi | |
10920 python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefi
x` | |
10921 if test $? != 0; then | |
10922 have_python_config=failed | |
10923 if test "${with_python}" != auto; then | |
10924 as_fn_error "failure running python-config --exec-prefix" "$LINENO" 5 | |
10925 fi | |
10926 fi | |
10927 else | |
10928 # We do not have a python executable we can use to determine where | |
10929 # to find the Python headers and libs. We cannot guess the include | |
10930 # path from the python_prefix either, because that include path | |
10931 # depends on the Python version. So, there is nothing much we can | |
10932 # do except assume that the compiler will be able to find those files. | |
10933 python_includes= | |
10934 python_libs= | |
10935 have_python_config=no | |
10936 fi | |
10937 | |
10938 # If we have python-config, only try the configuration it provides. | |
10939 # Otherwise fallback on the old way of trying different versions of | |
10940 # python in turn. | |
10941 | |
10942 have_libpython=no | |
10943 if test "${have_python_config}" = yes; then | |
10944 # Determine the Python version by extracting "-lpython<version>" | |
10945 # part of the python_libs. <version> is usually X.Y with X and Y | |
10946 # being decimal numbers, but can also be XY (seen on Windows). | |
10947 # | |
10948 # The extraction is performed using sed with a regular expression. | |
10949 # Initially, the regexp used was using the '?' quantifier to make | |
10950 # the dot in the version number optional. Unfortunately, this | |
10951 # does not work with non-GNU versions of sed because, because of | |
10952 # what looks like a limitation (the '?' quantifier does not work | |
10953 # with back-references). We work around this limitation by using | |
10954 # the '*' quantifier instead. It means that, in theory, we might | |
10955 # match unexpected version strings such as "-lpython2..7", but | |
10956 # this seems unlikely in practice. And even if that happens, | |
10957 # an error will be triggered later on, when checking that version | |
10958 # number. | |
10959 python_version=`echo " ${python_libs} " \ | |
10960 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'` | |
10961 case "${python_version}" in | |
10962 python*) | |
10963 | |
10964 version=${python_version} | |
10965 | |
10966 new_CPPFLAGS=${python_includes} | |
10967 new_LIBS=${python_libs} | |
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5 | |
10969 $as_echo_n "checking for ${version}... " >&6; } | |
10970 save_CPPFLAGS=$CPPFLAGS | |
10971 save_LIBS=$LIBS | |
10972 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS" | |
10973 LIBS="$LIBS $new_LIBS" | |
10974 found_usable_python=no | |
10975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 8133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10976 /* end confdefs.h. */ | 8134 /* end confdefs.h. */ |
10977 #include "Python.h" | 8135 |
| 8136 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before |
| 8137 <wchar.h>. |
| 8138 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included |
| 8139 before <wchar.h>. */ |
| 8140 #include <stddef.h> |
| 8141 #include <stdio.h> |
| 8142 #include <time.h> |
| 8143 #include <wchar.h> |
| 8144 wint_t foo = (wchar_t)'\0'; |
10978 int | 8145 int |
10979 main () | 8146 main () |
10980 { | 8147 { |
10981 Py_Initialize (); | 8148 |
10982 ; | 8149 ; |
10983 return 0; | 8150 return 0; |
10984 } | 8151 } |
10985 _ACEOF | 8152 _ACEOF |
10986 if ac_fn_c_try_link "$LINENO"; then : | |
10987 have_libpython=${version} | |
10988 found_usable_python=yes | |
10989 PYTHON_CPPFLAGS=$new_CPPFLAGS | |
10990 PYTHON_LIBS=$new_LIBS | |
10991 fi | |
10992 rm -f core conftest.err conftest.$ac_objext \ | |
10993 conftest$ac_exeext conftest.$ac_ext | |
10994 CPPFLAGS=$save_CPPFLAGS | |
10995 LIBS=$save_LIBS | |
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5 | |
10997 $as_echo "${found_usable_python}" >&6; } | |
10998 | |
10999 ;; | |
11000 *) | |
11001 as_fn_error "unable to determine python version from ${python_libs}" "$LIN
ENO" 5 | |
11002 ;; | |
11003 esac | |
11004 elif test "${have_python_config}" != failed; then | |
11005 if test "${have_libpython}" = no; then | |
11006 | |
11007 version=python2.7 | |
11008 | |
11009 new_CPPFLAGS=${python_includes} | |
11010 new_LIBS="${python_libs} -lpython2.7" | |
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5 | |
11012 $as_echo_n "checking for ${version}... " >&6; } | |
11013 save_CPPFLAGS=$CPPFLAGS | |
11014 save_LIBS=$LIBS | |
11015 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS" | |
11016 LIBS="$LIBS $new_LIBS" | |
11017 found_usable_python=no | |
11018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11019 /* end confdefs.h. */ | |
11020 #include "Python.h" | |
11021 int | |
11022 main () | |
11023 { | |
11024 Py_Initialize (); | |
11025 ; | |
11026 return 0; | |
11027 } | |
11028 _ACEOF | |
11029 if ac_fn_c_try_link "$LINENO"; then : | |
11030 have_libpython=${version} | |
11031 found_usable_python=yes | |
11032 PYTHON_CPPFLAGS=$new_CPPFLAGS | |
11033 PYTHON_LIBS=$new_LIBS | |
11034 fi | |
11035 rm -f core conftest.err conftest.$ac_objext \ | |
11036 conftest$ac_exeext conftest.$ac_ext | |
11037 CPPFLAGS=$save_CPPFLAGS | |
11038 LIBS=$save_LIBS | |
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5 | |
11040 $as_echo "${found_usable_python}" >&6; } | |
11041 | |
11042 fi | |
11043 if test "${have_libpython}" = no; then | |
11044 | |
11045 version=python2.6 | |
11046 | |
11047 new_CPPFLAGS=${python_includes} | |
11048 new_LIBS="${python_libs} -lpython2.6" | |
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5 | |
11050 $as_echo_n "checking for ${version}... " >&6; } | |
11051 save_CPPFLAGS=$CPPFLAGS | |
11052 save_LIBS=$LIBS | |
11053 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS" | |
11054 LIBS="$LIBS $new_LIBS" | |
11055 found_usable_python=no | |
11056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11057 /* end confdefs.h. */ | |
11058 #include "Python.h" | |
11059 int | |
11060 main () | |
11061 { | |
11062 Py_Initialize (); | |
11063 ; | |
11064 return 0; | |
11065 } | |
11066 _ACEOF | |
11067 if ac_fn_c_try_link "$LINENO"; then : | |
11068 have_libpython=${version} | |
11069 found_usable_python=yes | |
11070 PYTHON_CPPFLAGS=$new_CPPFLAGS | |
11071 PYTHON_LIBS=$new_LIBS | |
11072 fi | |
11073 rm -f core conftest.err conftest.$ac_objext \ | |
11074 conftest$ac_exeext conftest.$ac_ext | |
11075 CPPFLAGS=$save_CPPFLAGS | |
11076 LIBS=$save_LIBS | |
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5 | |
11078 $as_echo "${found_usable_python}" >&6; } | |
11079 | |
11080 fi | |
11081 if test ${have_libpython} = no; then | |
11082 | |
11083 version=python2.5 | |
11084 | |
11085 new_CPPFLAGS=${python_includes} | |
11086 new_LIBS="${python_libs} -lpython2.5" | |
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5 | |
11088 $as_echo_n "checking for ${version}... " >&6; } | |
11089 save_CPPFLAGS=$CPPFLAGS | |
11090 save_LIBS=$LIBS | |
11091 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS" | |
11092 LIBS="$LIBS $new_LIBS" | |
11093 found_usable_python=no | |
11094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11095 /* end confdefs.h. */ | |
11096 #include "Python.h" | |
11097 int | |
11098 main () | |
11099 { | |
11100 Py_Initialize (); | |
11101 ; | |
11102 return 0; | |
11103 } | |
11104 _ACEOF | |
11105 if ac_fn_c_try_link "$LINENO"; then : | |
11106 have_libpython=${version} | |
11107 found_usable_python=yes | |
11108 PYTHON_CPPFLAGS=$new_CPPFLAGS | |
11109 PYTHON_LIBS=$new_LIBS | |
11110 fi | |
11111 rm -f core conftest.err conftest.$ac_objext \ | |
11112 conftest$ac_exeext conftest.$ac_ext | |
11113 CPPFLAGS=$save_CPPFLAGS | |
11114 LIBS=$save_LIBS | |
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5 | |
11116 $as_echo "${found_usable_python}" >&6; } | |
11117 | |
11118 fi | |
11119 if test ${have_libpython} = no; then | |
11120 | |
11121 version=python2.4 | |
11122 | |
11123 new_CPPFLAGS=${python_includes} | |
11124 new_LIBS="${python_libs} -lpython2.4" | |
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5 | |
11126 $as_echo_n "checking for ${version}... " >&6; } | |
11127 save_CPPFLAGS=$CPPFLAGS | |
11128 save_LIBS=$LIBS | |
11129 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS" | |
11130 LIBS="$LIBS $new_LIBS" | |
11131 found_usable_python=no | |
11132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11133 /* end confdefs.h. */ | |
11134 #include "Python.h" | |
11135 int | |
11136 main () | |
11137 { | |
11138 Py_Initialize (); | |
11139 ; | |
11140 return 0; | |
11141 } | |
11142 _ACEOF | |
11143 if ac_fn_c_try_link "$LINENO"; then : | |
11144 have_libpython=${version} | |
11145 found_usable_python=yes | |
11146 PYTHON_CPPFLAGS=$new_CPPFLAGS | |
11147 PYTHON_LIBS=$new_LIBS | |
11148 fi | |
11149 rm -f core conftest.err conftest.$ac_objext \ | |
11150 conftest$ac_exeext conftest.$ac_ext | |
11151 CPPFLAGS=$save_CPPFLAGS | |
11152 LIBS=$save_LIBS | |
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5 | |
11154 $as_echo "${found_usable_python}" >&6; } | |
11155 | |
11156 fi | |
11157 fi | |
11158 if test "${have_libpython}" = python2.7 -o "${have_libpython}" = python27; the
n | |
11159 | |
11160 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h | |
11161 | |
11162 elif test "${have_libpython}" = python2.6 -o "${have_libpython}" = python26; t
hen | |
11163 | |
11164 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h | |
11165 | |
11166 elif test "${have_libpython}" = python2.5 -o "${have_libpython}" = python25; t
hen | |
11167 | |
11168 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h | |
11169 | |
11170 elif test "${have_libpython}" = python2.4 -o "${have_libpython}" = python24; t
hen | |
11171 | |
11172 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h | |
11173 | |
11174 fi | |
11175 | |
11176 if test "${have_libpython}" = no; then | |
11177 case "${with_python}" in | |
11178 yes) | |
11179 as_fn_error "python is missing or unusable" "$LINENO" 5 | |
11180 ;; | |
11181 auto) | |
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unu
sable; some features may be unavailable." >&5 | |
11183 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be u
navailable." >&2;} | |
11184 ;; | |
11185 *) | |
11186 as_fn_error "no usable python found at ${with_python}" "$LINENO" 5 | |
11187 ;; | |
11188 esac | |
11189 else | |
11190 if test -n "${python_prefix}"; then | |
11191 | |
11192 cat >>confdefs.h <<_ACEOF | |
11193 #define WITH_PYTHON_PATH "${python_prefix}" | |
11194 _ACEOF | |
11195 | |
11196 | |
11197 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then | |
11198 if test "x$prefix" = xNONE; then | |
11199 test_prefix=/usr/local | |
11200 else | |
11201 test_prefix=$prefix | |
11202 fi | |
11203 else | |
11204 test_prefix=$exec_prefix | |
11205 fi | |
11206 value=0 | |
11207 case ${python_prefix} in | |
11208 "${test_prefix}"|"${test_prefix}/"*|\ | |
11209 '${exec_prefix}'|'${exec_prefix}/'*) | |
11210 value=1 | |
11211 ;; | |
11212 esac | |
11213 | |
11214 cat >>confdefs.h <<_ACEOF | |
11215 #define PYTHON_PATH_RELOCATABLE $value | |
11216 _ACEOF | |
11217 | |
11218 | |
11219 fi | |
11220 fi | |
11221 fi | |
11222 | |
11223 if test "${have_libpython}" != no; then | |
11224 | |
11225 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h | |
11226 | |
11227 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)" | |
11228 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)" | |
11229 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)" | |
11230 CONFIG_INSTALL="$CONFIG_INSTALL install-python" | |
11231 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)" | |
11232 | |
11233 # Flags needed to compile Python code (taken from python-config --cflags). | |
11234 # We cannot call python-config directly because it will output whatever was | |
11235 # used when compiling the Python interpreter itself, including flags which | |
11236 # would make the python-related objects be compiled differently from the | |
11237 # rest of GDB (e.g., -O2 and -fPIC). | |
11238 if test "${GCC}" = yes; then | |
11239 tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv" | |
11240 fi | |
11241 | |
11242 if test "x${tentative_python_cflags}" != x; then | |
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python
code" >&5 | |
11244 $as_echo_n "checking compiler flags for python code... " >&6; } | |
11245 for flag in ${tentative_python_cflags}; do | |
11246 # Check that the compiler accepts it | |
11247 saved_CFLAGS="$CFLAGS" | |
11248 CFLAGS="$CFLAGS $flag" | |
11249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11250 /* end confdefs.h. */ | |
11251 | |
11252 int | |
11253 main () | |
11254 { | |
11255 | |
11256 ; | |
11257 return 0; | |
11258 } | |
11259 _ACEOF | |
11260 if ac_fn_c_try_compile "$LINENO"; then : | 8153 if ac_fn_c_try_compile "$LINENO"; then : |
11261 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag" | 8154 gt_cv_c_wint_t=yes |
| 8155 else |
| 8156 gt_cv_c_wint_t=no |
11262 fi | 8157 fi |
11263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 8158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11264 CFLAGS="$saved_CFLAGS" | 8159 fi |
11265 done | 8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 |
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5 | 8161 $as_echo "$gt_cv_c_wint_t" >&6; } |
11267 $as_echo "${PYTHON_CFLAGS}" >&6; } | 8162 if test $gt_cv_c_wint_t = yes; then |
11268 fi | 8163 |
11269 | 8164 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h |
11270 # On IRIX, type siginfo is not defined. Instead, sys/siginfo.h provides: | 8165 |
11271 # #if _SGIAPI | 8166 fi |
11272 # #define siginfo __siginfo | 8167 |
11273 # #endif | 8168 |
11274 # The problem is that including Python causes some XOPEN macros to be | 8169 GNULIB_ISWBLANK=0; |
11275 # unilaterally defined, and that in turn causes _SGIAPI to evaluate | 8170 GNULIB_WCTYPE=0; |
11276 # to false. So, we work around this issue by defining siginfo ourself | 8171 GNULIB_ISWCTYPE=0; |
11277 # though the command-line. | 8172 GNULIB_WCTRANS=0; |
11278 case "$gdb_host" in | 8173 GNULIB_TOWCTRANS=0; |
11279 irix*) if test "${GCC}" = yes; then | 8174 HAVE_ISWBLANK=1; |
11280 CPPFLAGS="$CPPFLAGS -Dsiginfo=__siginfo" | 8175 HAVE_WCTYPE_T=1; |
11281 fi | 8176 HAVE_WCTRANS_T=1; |
11282 ;; | 8177 REPLACE_ISWBLANK=0; |
11283 esac | 8178 |
11284 else | 8179 |
11285 # Even if Python support is not compiled in, we need to have these files | 8180 |
11286 # included. | 8181 |
11287 CONFIG_OBS="$CONFIG_OBS python.o py-value.o py-prettyprint.o py-auto-load.o" | 8182 |
11288 CONFIG_SRCS="$CONFIG_SRCS python/python.c python/py-value.c \ | |
11289 python/py-prettyprint.c python/py-auto-load.c" | |
11290 fi | |
11291 | |
11292 | |
11293 | |
11294 | |
11295 # ------------------------- # | |
11296 # Checks for header files. # | |
11297 # ------------------------- # | |
11298 | |
11299 ac_header_dirent=no | |
11300 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
11301 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR"
>&5 | |
11303 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
11304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then : | |
11305 $as_echo_n "(cached) " >&6 | |
11306 else | |
11307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11308 /* end confdefs.h. */ | |
11309 #include <sys/types.h> | |
11310 #include <$ac_hdr> | |
11311 | |
11312 int | |
11313 main () | |
11314 { | |
11315 if ((DIR *) 0) | |
11316 return 0; | |
11317 ; | |
11318 return 0; | |
11319 } | |
11320 _ACEOF | |
11321 if ac_fn_c_try_compile "$LINENO"; then : | |
11322 eval "$as_ac_Header=yes" | |
11323 else | |
11324 eval "$as_ac_Header=no" | |
11325 fi | |
11326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11327 fi | |
11328 eval ac_res=\$$as_ac_Header | |
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
11330 $as_echo "$ac_res" >&6; } | |
11331 eval as_val=\$$as_ac_Header | |
11332 if test "x$as_val" = x""yes; then : | |
11333 cat >>confdefs.h <<_ACEOF | |
11334 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
11335 _ACEOF | |
11336 | |
11337 ac_header_dirent=$ac_hdr; break | |
11338 fi | |
11339 | |
11340 done | |
11341 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
11342 if test $ac_header_dirent = dirent.h; then | |
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opend
ir" >&5 | |
11344 $as_echo_n "checking for library containing opendir... " >&6; } | |
11345 if test "${ac_cv_search_opendir+set}" = set; then : | |
11346 $as_echo_n "(cached) " >&6 | |
11347 else | |
11348 ac_func_search_save_LIBS=$LIBS | |
11349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11350 /* end confdefs.h. */ | |
11351 | |
11352 /* Override any GCC internal prototype to avoid an error. | |
11353 Use char because int might match the return type of a GCC | |
11354 builtin and then its argument prototype would still apply. */ | |
11355 #ifdef __cplusplus | |
11356 extern "C" | |
11357 #endif | |
11358 char opendir (); | |
11359 int | |
11360 main () | |
11361 { | |
11362 return opendir (); | |
11363 ; | |
11364 return 0; | |
11365 } | |
11366 _ACEOF | |
11367 for ac_lib in '' dir; do | |
11368 if test -z "$ac_lib"; then | |
11369 ac_res="none required" | |
11370 else | |
11371 ac_res=-l$ac_lib | |
11372 LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
11373 fi | |
11374 if ac_fn_c_try_link "$LINENO"; then : | |
11375 ac_cv_search_opendir=$ac_res | |
11376 fi | |
11377 rm -f core conftest.err conftest.$ac_objext \ | |
11378 conftest$ac_exeext | |
11379 if test "${ac_cv_search_opendir+set}" = set; then : | |
11380 break | |
11381 fi | |
11382 done | |
11383 if test "${ac_cv_search_opendir+set}" = set; then : | |
11384 | |
11385 else | |
11386 ac_cv_search_opendir=no | |
11387 fi | |
11388 rm conftest.$ac_ext | |
11389 LIBS=$ac_func_search_save_LIBS | |
11390 fi | |
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | |
11392 $as_echo "$ac_cv_search_opendir" >&6; } | |
11393 ac_res=$ac_cv_search_opendir | |
11394 if test "$ac_res" != no; then : | |
11395 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
11396 | |
11397 fi | |
11398 | |
11399 else | |
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opend
ir" >&5 | |
11401 $as_echo_n "checking for library containing opendir... " >&6; } | |
11402 if test "${ac_cv_search_opendir+set}" = set; then : | |
11403 $as_echo_n "(cached) " >&6 | |
11404 else | |
11405 ac_func_search_save_LIBS=$LIBS | |
11406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11407 /* end confdefs.h. */ | |
11408 | |
11409 /* Override any GCC internal prototype to avoid an error. | |
11410 Use char because int might match the return type of a GCC | |
11411 builtin and then its argument prototype would still apply. */ | |
11412 #ifdef __cplusplus | |
11413 extern "C" | |
11414 #endif | |
11415 char opendir (); | |
11416 int | |
11417 main () | |
11418 { | |
11419 return opendir (); | |
11420 ; | |
11421 return 0; | |
11422 } | |
11423 _ACEOF | |
11424 for ac_lib in '' x; do | |
11425 if test -z "$ac_lib"; then | |
11426 ac_res="none required" | |
11427 else | |
11428 ac_res=-l$ac_lib | |
11429 LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
11430 fi | |
11431 if ac_fn_c_try_link "$LINENO"; then : | |
11432 ac_cv_search_opendir=$ac_res | |
11433 fi | |
11434 rm -f core conftest.err conftest.$ac_objext \ | |
11435 conftest$ac_exeext | |
11436 if test "${ac_cv_search_opendir+set}" = set; then : | |
11437 break | |
11438 fi | |
11439 done | |
11440 if test "${ac_cv_search_opendir+set}" = set; then : | |
11441 | |
11442 else | |
11443 ac_cv_search_opendir=no | |
11444 fi | |
11445 rm conftest.$ac_ext | |
11446 LIBS=$ac_func_search_save_LIBS | |
11447 fi | |
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | |
11449 $as_echo "$ac_cv_search_opendir" >&6; } | |
11450 ac_res=$ac_cv_search_opendir | |
11451 if test "$ac_res" != no; then : | |
11452 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
11453 | |
11454 fi | |
11455 | |
11456 fi | |
11457 | |
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros
are broken" >&5 | |
11459 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; } | |
11460 if test "${ac_cv_header_stat_broken+set}" = set; then : | |
11461 $as_echo_n "(cached) " >&6 | |
11462 else | |
11463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11464 /* end confdefs.h. */ | |
11465 #include <sys/types.h> | |
11466 #include <sys/stat.h> | |
11467 | |
11468 #if defined S_ISBLK && defined S_IFDIR | |
11469 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; | |
11470 #endif | |
11471 | |
11472 #if defined S_ISBLK && defined S_IFCHR | |
11473 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; | |
11474 #endif | |
11475 | |
11476 #if defined S_ISLNK && defined S_IFREG | |
11477 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; | |
11478 #endif | |
11479 | |
11480 #if defined S_ISSOCK && defined S_IFREG | |
11481 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; | |
11482 #endif | |
11483 | |
11484 _ACEOF | |
11485 if ac_fn_c_try_compile "$LINENO"; then : | |
11486 ac_cv_header_stat_broken=no | |
11487 else | |
11488 ac_cv_header_stat_broken=yes | |
11489 fi | |
11490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11491 fi | |
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5 | |
11493 $as_echo "$ac_cv_header_stat_broken" >&6; } | |
11494 if test $ac_cv_header_stat_broken = yes; then | |
11495 | |
11496 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h | |
11497 | |
11498 fi | |
11499 | |
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
11501 $as_echo_n "checking for ANSI C header files... " >&6; } | |
11502 if test "${ac_cv_header_stdc+set}" = set; then : | |
11503 $as_echo_n "(cached) " >&6 | |
11504 else | |
11505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11506 /* end confdefs.h. */ | |
11507 #include <stdlib.h> | |
11508 #include <stdarg.h> | |
11509 #include <string.h> | |
11510 #include <float.h> | |
11511 | |
11512 int | |
11513 main () | |
11514 { | |
11515 | |
11516 ; | |
11517 return 0; | |
11518 } | |
11519 _ACEOF | |
11520 if ac_fn_c_try_compile "$LINENO"; then : | |
11521 ac_cv_header_stdc=yes | |
11522 else | |
11523 ac_cv_header_stdc=no | |
11524 fi | |
11525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11526 | |
11527 if test $ac_cv_header_stdc = yes; then | |
11528 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
11529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11530 /* end confdefs.h. */ | |
11531 #include <string.h> | |
11532 | |
11533 _ACEOF | |
11534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11535 $EGREP "memchr" >/dev/null 2>&1; then : | |
11536 | |
11537 else | |
11538 ac_cv_header_stdc=no | |
11539 fi | |
11540 rm -f conftest* | |
11541 | |
11542 fi | |
11543 | |
11544 if test $ac_cv_header_stdc = yes; then | |
11545 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
11546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11547 /* end confdefs.h. */ | |
11548 #include <stdlib.h> | |
11549 | |
11550 _ACEOF | |
11551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11552 $EGREP "free" >/dev/null 2>&1; then : | |
11553 | |
11554 else | |
11555 ac_cv_header_stdc=no | |
11556 fi | |
11557 rm -f conftest* | |
11558 | |
11559 fi | |
11560 | |
11561 if test $ac_cv_header_stdc = yes; then | |
11562 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
11563 if test "$cross_compiling" = yes; then : | |
11564 : | |
11565 else | |
11566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11567 /* end confdefs.h. */ | |
11568 #include <ctype.h> | |
11569 #include <stdlib.h> | |
11570 #if ((' ' & 0x0FF) == 0x020) | |
11571 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
11572 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
11573 #else | |
11574 # define ISLOWER(c) \ | |
11575 (('a' <= (c) && (c) <= 'i') \ | |
11576 || ('j' <= (c) && (c) <= 'r') \ | |
11577 || ('s' <= (c) && (c) <= 'z')) | |
11578 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
11579 #endif | |
11580 | |
11581 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
11582 int | |
11583 main () | |
11584 { | |
11585 int i; | |
11586 for (i = 0; i < 256; i++) | |
11587 if (XOR (islower (i), ISLOWER (i)) | |
11588 || toupper (i) != TOUPPER (i)) | |
11589 return 2; | |
11590 return 0; | |
11591 } | |
11592 _ACEOF | |
11593 if ac_fn_c_try_run "$LINENO"; then : | |
11594 | |
11595 else | |
11596 ac_cv_header_stdc=no | |
11597 fi | |
11598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
11599 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
11600 fi | |
11601 | |
11602 fi | |
11603 fi | |
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
11605 $as_echo "$ac_cv_header_stdc" >&6; } | |
11606 if test $ac_cv_header_stdc = yes; then | |
11607 | |
11608 $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
11609 | |
11610 fi | |
11611 | |
11612 # elf_hp.h is for HP/UX 64-bit shared library support. | |
11613 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h) | |
11614 # unconditionally, so what's the point in checking these? | |
11615 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \ | |
11616 thread_db.h gnu/libc-version.h signal.h stddef.h \ | |
11617 stdlib.h string.h memory.h strings.h sys/fault.h \ | |
11618 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \ | |
11619 sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \ | |
11620 sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \ | |
11621 sys/types.h sys/wait.h wait.h termios.h termio.h \ | |
11622 sgtty.h unistd.h elf_hp.h ctype.h time.h locale.h \ | |
11623 dlfcn.h | |
11624 do : | |
11625 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11626 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_include
s_default" | |
11627 eval as_val=\$$as_ac_Header | |
11628 if test "x$as_val" = x""yes; then : | |
11629 cat >>confdefs.h <<_ACEOF | |
11630 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11631 _ACEOF | |
11632 | |
11633 fi | |
11634 | |
11635 done | |
11636 | |
11637 for ac_header in link.h | |
11638 do : | |
11639 ac_fn_c_check_header_compile "$LINENO" "link.h" "ac_cv_header_link_h" "#if HAV
E_SYS_TYPES_H | |
11640 # include <sys/types.h> | |
11641 #endif | |
11642 #if HAVE_NLIST_H | |
11643 # include <nlist.h> | |
11644 #endif | |
11645 | |
11646 " | |
11647 if test "x$ac_cv_header_link_h" = x""yes; then : | |
11648 cat >>confdefs.h <<_ACEOF | |
11649 #define HAVE_LINK_H 1 | |
11650 _ACEOF | |
11651 | |
11652 fi | |
11653 | |
11654 done | |
11655 | |
11656 for ac_header in sys/proc.h | |
11657 do : | |
11658 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h"
"#if HAVE_SYS_PARAM_H | |
11659 # include <sys/param.h> | |
11660 #endif | |
11661 | |
11662 " | |
11663 if test "x$ac_cv_header_sys_proc_h" = x""yes; then : | |
11664 cat >>confdefs.h <<_ACEOF | |
11665 #define HAVE_SYS_PROC_H 1 | |
11666 _ACEOF | |
11667 | |
11668 fi | |
11669 | |
11670 done | |
11671 | |
11672 for ac_header in sys/user.h | |
11673 do : | |
11674 ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h"
"#if HAVE_SYS_PARAM_H | |
11675 # include <sys/param.h> | |
11676 #endif | |
11677 | |
11678 " | |
11679 if test "x$ac_cv_header_sys_user_h" = x""yes; then : | |
11680 cat >>confdefs.h <<_ACEOF | |
11681 #define HAVE_SYS_USER_H 1 | |
11682 _ACEOF | |
11683 | |
11684 fi | |
11685 | |
11686 done | |
11687 | |
11688 | |
11689 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash | |
11690 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to | |
11691 # think that we don't have <curses.h> if we're using GCC. | |
11692 case $host_os in | |
11693 solaris2.[789]) | |
11694 if test "$GCC" = yes; then | |
11695 | |
11696 $as_echo "#define _MSE_INT_H 1" >>confdefs.h | |
11697 | |
11698 fi ;; | |
11699 esac | |
11700 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h | |
11701 do : | |
11702 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11703 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_include
s_default" | |
11704 eval as_val=\$$as_ac_Header | |
11705 if test "x$as_val" = x""yes; then : | |
11706 cat >>confdefs.h <<_ACEOF | |
11707 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11708 _ACEOF | |
11709 | |
11710 fi | |
11711 | |
11712 done | |
11713 | |
11714 for ac_header in term.h | |
11715 do : | |
11716 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAV
E_CURSES_H | |
11717 # include <curses.h> | |
11718 #endif | |
11719 | |
11720 " | |
11721 if test "x$ac_cv_header_term_h" = x""yes; then : | |
11722 cat >>confdefs.h <<_ACEOF | |
11723 #define HAVE_TERM_H 1 | |
11724 _ACEOF | |
11725 | |
11726 fi | |
11727 | |
11728 done | |
11729 | |
11730 | |
11731 # ------------------------- # | |
11732 # Checks for declarations. # | |
11733 # ------------------------- # | |
11734 | |
11735 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default
" | |
11736 if test "x$ac_cv_have_decl_free" = x""yes; then : | |
11737 ac_have_decl=1 | |
11738 else | |
11739 ac_have_decl=0 | |
11740 fi | |
11741 | |
11742 cat >>confdefs.h <<_ACEOF | |
11743 #define HAVE_DECL_FREE $ac_have_decl | |
11744 _ACEOF | |
11745 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_def
ault" | |
11746 if test "x$ac_cv_have_decl_malloc" = x""yes; then : | |
11747 ac_have_decl=1 | |
11748 else | |
11749 ac_have_decl=0 | |
11750 fi | |
11751 | |
11752 cat >>confdefs.h <<_ACEOF | |
11753 #define HAVE_DECL_MALLOC $ac_have_decl | |
11754 _ACEOF | |
11755 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_d
efault" | |
11756 if test "x$ac_cv_have_decl_realloc" = x""yes; then : | |
11757 ac_have_decl=1 | |
11758 else | |
11759 ac_have_decl=0 | |
11760 fi | |
11761 | |
11762 cat >>confdefs.h <<_ACEOF | |
11763 #define HAVE_DECL_REALLOC $ac_have_decl | |
11764 _ACEOF | |
11765 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes
_default" | |
11766 if test "x$ac_cv_have_decl_strerror" = x""yes; then : | |
11767 ac_have_decl=1 | |
11768 else | |
11769 ac_have_decl=0 | |
11770 fi | |
11771 | |
11772 cat >>confdefs.h <<_ACEOF | |
11773 #define HAVE_DECL_STRERROR $ac_have_decl | |
11774 _ACEOF | |
11775 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_def
ault" | |
11776 if test "x$ac_cv_have_decl_strstr" = x""yes; then : | |
11777 ac_have_decl=1 | |
11778 else | |
11779 ac_have_decl=0 | |
11780 fi | |
11781 | |
11782 cat >>confdefs.h <<_ACEOF | |
11783 #define HAVE_DECL_STRSTR $ac_have_decl | |
11784 _ACEOF | |
11785 ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_def
ault" | |
11786 if test "x$ac_cv_have_decl_getopt" = x""yes; then : | |
11787 ac_have_decl=1 | |
11788 else | |
11789 ac_have_decl=0 | |
11790 fi | |
11791 | |
11792 cat >>confdefs.h <<_ACEOF | |
11793 #define HAVE_DECL_GETOPT $ac_have_decl | |
11794 _ACEOF | |
11795 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes
_default" | |
11796 if test "x$ac_cv_have_decl_snprintf" = x""yes; then : | |
11797 ac_have_decl=1 | |
11798 else | |
11799 ac_have_decl=0 | |
11800 fi | |
11801 | |
11802 cat >>confdefs.h <<_ACEOF | |
11803 #define HAVE_DECL_SNPRINTF $ac_have_decl | |
11804 _ACEOF | |
11805 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includ
es_default" | |
11806 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then : | |
11807 ac_have_decl=1 | |
11808 else | |
11809 ac_have_decl=0 | |
11810 fi | |
11811 | |
11812 cat >>confdefs.h <<_ACEOF | |
11813 #define HAVE_DECL_VSNPRINTF $ac_have_decl | |
11814 _ACEOF | |
11815 | |
11816 | |
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 | |
11818 $as_echo_n "checking for LC_MESSAGES... " >&6; } | |
11819 if test "${am_cv_val_LC_MESSAGES+set}" = set; then : | |
11820 $as_echo_n "(cached) " >&6 | |
11821 else | |
11822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11823 /* end confdefs.h. */ | |
11824 #include <locale.h> | |
11825 int | |
11826 main () | |
11827 { | |
11828 return LC_MESSAGES | |
11829 ; | |
11830 return 0; | |
11831 } | |
11832 _ACEOF | |
11833 if ac_fn_c_try_link "$LINENO"; then : | |
11834 am_cv_val_LC_MESSAGES=yes | |
11835 else | |
11836 am_cv_val_LC_MESSAGES=no | |
11837 fi | |
11838 rm -f core conftest.err conftest.$ac_objext \ | |
11839 conftest$ac_exeext conftest.$ac_ext | |
11840 fi | |
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 | |
11842 $as_echo "$am_cv_val_LC_MESSAGES" >&6; } | |
11843 if test $am_cv_val_LC_MESSAGES = yes; then | |
11844 | |
11845 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h | |
11846 | |
11847 fi | |
11848 | |
11849 | |
11850 # ----------------------- # | |
11851 # Checks for structures. # | |
11852 # ----------------------- # | |
11853 | |
11854 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_st
at_st_blocks" "$ac_includes_default" | |
11855 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then : | |
11856 | |
11857 cat >>confdefs.h <<_ACEOF | |
11858 #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | |
11859 _ACEOF | |
11860 | |
11861 | |
11862 fi | |
11863 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_s
tat_st_blksize" "$ac_includes_default" | |
11864 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then : | |
11865 | |
11866 cat >>confdefs.h <<_ACEOF | |
11867 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | |
11868 _ACEOF | |
11869 | |
11870 | |
11871 fi | |
11872 | |
11873 | |
11874 # ------------------ # | |
11875 # Checks for types. # | |
11876 # ------------------ # | |
11877 | |
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers
" >&5 | |
11879 $as_echo_n "checking return type of signal handlers... " >&6; } | |
11880 if test "${ac_cv_type_signal+set}" = set; then : | |
11881 $as_echo_n "(cached) " >&6 | |
11882 else | |
11883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11884 /* end confdefs.h. */ | |
11885 #include <sys/types.h> | |
11886 #include <signal.h> | |
11887 | |
11888 int | |
11889 main () | |
11890 { | |
11891 return *(signal (0, 0)) (0) == 1; | |
11892 ; | |
11893 return 0; | |
11894 } | |
11895 _ACEOF | |
11896 if ac_fn_c_try_compile "$LINENO"; then : | |
11897 ac_cv_type_signal=int | |
11898 else | |
11899 ac_cv_type_signal=void | |
11900 fi | |
11901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11902 fi | |
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 | |
11904 $as_echo "$ac_cv_type_signal" >&6; } | |
11905 | |
11906 cat >>confdefs.h <<_ACEOF | |
11907 #define RETSIGTYPE $ac_cv_type_signal | |
11908 _ACEOF | |
11909 | |
11910 | |
11911 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/t
ypes.h> | |
11912 #include <sys/socket.h> | |
11913 | |
11914 " | |
11915 if test "x$ac_cv_type_socklen_t" = x""yes; then : | |
11916 | |
11917 cat >>confdefs.h <<_ACEOF | |
11918 #define HAVE_SOCKLEN_T 1 | |
11919 _ACEOF | |
11920 | |
11921 | |
11922 fi | |
11923 | |
11924 | |
11925 # ------------------------------------- # | |
11926 # Checks for compiler characteristics. # | |
11927 # ------------------------------------- # | |
11928 | |
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const
" >&5 | |
11930 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
11931 if test "${ac_cv_c_const+set}" = set; then : | |
11932 $as_echo_n "(cached) " >&6 | |
11933 else | |
11934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11935 /* end confdefs.h. */ | |
11936 | |
11937 int | |
11938 main () | |
11939 { | |
11940 /* FIXME: Include the comments suggested by Paul. */ | |
11941 #ifndef __cplusplus | |
11942 /* Ultrix mips cc rejects this. */ | |
11943 typedef int charset[2]; | |
11944 const charset cs; | |
11945 /* SunOS 4.1.1 cc rejects this. */ | |
11946 char const *const *pcpcc; | |
11947 char **ppc; | |
11948 /* NEC SVR4.0.2 mips cc rejects this. */ | |
11949 struct point {int x, y;}; | |
11950 static struct point const zero = {0,0}; | |
11951 /* AIX XL C 1.02.0.0 rejects this. | |
11952 It does not let you subtract one const X* pointer from another in | |
11953 an arm of an if-expression whose if-part is not a constant | |
11954 expression */ | |
11955 const char *g = "string"; | |
11956 pcpcc = &g + (g ? g-g : 0); | |
11957 /* HPUX 7.0 cc rejects these. */ | |
11958 ++pcpcc; | |
11959 ppc = (char**) pcpcc; | |
11960 pcpcc = (char const *const *) ppc; | |
11961 { /* SCO 3.2v4 cc rejects this. */ | |
11962 char *t; | |
11963 char const *s = 0 ? (char *) 0 : (char const *) 0; | |
11964 | |
11965 *t++ = 0; | |
11966 if (s) return 0; | |
11967 } | |
11968 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
11969 int x[] = {25, 17}; | |
11970 const int *foo = &x[0]; | |
11971 ++foo; | |
11972 } | |
11973 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
11974 typedef const int *iptr; | |
11975 iptr p = 0; | |
11976 ++p; | |
11977 } | |
11978 { /* AIX XL C 1.02.0.0 rejects this saying | |
11979 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
11980 struct s { int j; const int *ap[3]; }; | |
11981 struct s *b; b->j = 5; | |
11982 } | |
11983 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
11984 const int foo = 10; | |
11985 if (!foo) return 0; | |
11986 } | |
11987 return !cs[0] && !zero.x; | |
11988 #endif | |
11989 | |
11990 ; | |
11991 return 0; | |
11992 } | |
11993 _ACEOF | |
11994 if ac_fn_c_try_compile "$LINENO"; then : | |
11995 ac_cv_c_const=yes | |
11996 else | |
11997 ac_cv_c_const=no | |
11998 fi | |
11999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12000 fi | |
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | |
12002 $as_echo "$ac_cv_c_const" >&6; } | |
12003 if test $ac_cv_c_const = no; then | |
12004 | |
12005 $as_echo "#define const /**/" >>confdefs.h | |
12006 | |
12007 fi | |
12008 | 8183 |
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | 8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
12010 $as_echo_n "checking for inline... " >&6; } | 8185 $as_echo_n "checking for inline... " >&6; } |
12011 if test "${ac_cv_c_inline+set}" = set; then : | 8186 if test "${ac_cv_c_inline+set}" = set; then : |
12012 $as_echo_n "(cached) " >&6 | 8187 $as_echo_n "(cached) " >&6 |
12013 else | 8188 else |
12014 ac_cv_c_inline=no | 8189 ac_cv_c_inline=no |
12015 for ac_kw in inline __inline__ __inline; do | 8190 for ac_kw in inline __inline__ __inline; do |
12016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 8191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12017 /* end confdefs.h. */ | 8192 /* end confdefs.h. */ |
(...skipping 23 matching lines...) Expand all Loading... |
12041 *) ac_val=$ac_cv_c_inline;; | 8216 *) ac_val=$ac_cv_c_inline;; |
12042 esac | 8217 esac |
12043 cat >>confdefs.h <<_ACEOF | 8218 cat >>confdefs.h <<_ACEOF |
12044 #ifndef __cplusplus | 8219 #ifndef __cplusplus |
12045 #define inline $ac_val | 8220 #define inline $ac_val |
12046 #endif | 8221 #endif |
12047 _ACEOF | 8222 _ACEOF |
12048 ;; | 8223 ;; |
12049 esac | 8224 esac |
12050 | 8225 |
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bige
ndian" >&5 | 8226 |
12052 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | 8227 if false; then |
12053 if test "${ac_cv_c_bigendian+set}" = set; then : | 8228 GL_COND_LIBTOOL_TRUE= |
| 8229 GL_COND_LIBTOOL_FALSE='#' |
| 8230 else |
| 8231 GL_COND_LIBTOOL_TRUE='#' |
| 8232 GL_COND_LIBTOOL_FALSE= |
| 8233 fi |
| 8234 |
| 8235 gl_cond_libtool=false |
| 8236 gl_libdeps= |
| 8237 gl_ltlibdeps= |
| 8238 gl_m4_base='import/m4' |
| 8239 |
| 8240 |
| 8241 |
| 8242 |
| 8243 |
| 8244 |
| 8245 |
| 8246 |
| 8247 |
| 8248 gl_source_base='import' |
| 8249 |
| 8250 |
| 8251 if test $ac_cv_func_alloca_works = no; then |
| 8252 : |
| 8253 fi |
| 8254 |
| 8255 # Define an additional variable used in the Makefile substitution. |
| 8256 if test $ac_cv_working_alloca_h = yes; then |
| 8257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler b
uilt-in" >&5 |
| 8258 $as_echo_n "checking for alloca as a compiler built-in... " >&6; } |
| 8259 if test "${gl_cv_rpl_alloca+set}" = set; then : |
12054 $as_echo_n "(cached) " >&6 | 8260 $as_echo_n "(cached) " >&6 |
12055 else | 8261 else |
12056 ac_cv_c_bigendian=unknown | 8262 |
12057 # See if we're dealing with a universal compiler. | |
12058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12059 /* end confdefs.h. */ | |
12060 #ifndef __APPLE_CC__ | |
12061 » not a universal capable compiler | |
12062 » #endif | |
12063 » typedef int dummy; | |
12064 | |
12065 _ACEOF | |
12066 if ac_fn_c_try_compile "$LINENO"; then : | |
12067 | |
12068 » # Check for potential -arch flags. It is not universal unless | |
12069 » # there are at least two -arch flags with different values. | |
12070 » ac_arch= | |
12071 » ac_prev= | |
12072 » for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
12073 » if test -n "$ac_prev"; then | |
12074 » case $ac_word in | |
12075 » i?86 | x86_64 | ppc | ppc64) | |
12076 » if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
12077 » » ac_arch=$ac_word | |
12078 » else | |
12079 » » ac_cv_c_bigendian=universal | |
12080 » » break | |
12081 » fi | |
12082 » ;; | |
12083 » esac | |
12084 » ac_prev= | |
12085 » elif test "x$ac_word" = "x-arch"; then | |
12086 » ac_prev=arch | |
12087 » fi | |
12088 done | |
12089 fi | |
12090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12091 if test $ac_cv_c_bigendian = unknown; then | |
12092 # See if sys/param.h defines the BYTE_ORDER macro. | |
12093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 8263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12094 /* end confdefs.h. */ | 8264 /* end confdefs.h. */ |
12095 #include <sys/types.h> | 8265 |
12096 » #include <sys/param.h> | 8266 #if defined __GNUC__ || defined _AIX || defined _MSC_VER |
| 8267 Need own alloca |
| 8268 #endif |
| 8269 |
| 8270 _ACEOF |
| 8271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 8272 $EGREP "Need own alloca" >/dev/null 2>&1; then : |
| 8273 gl_cv_rpl_alloca=yes |
| 8274 else |
| 8275 gl_cv_rpl_alloca=no |
| 8276 fi |
| 8277 rm -f conftest* |
| 8278 |
| 8279 |
| 8280 fi |
| 8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5 |
| 8282 $as_echo "$gl_cv_rpl_alloca" >&6; } |
| 8283 if test $gl_cv_rpl_alloca = yes; then |
| 8284 |
| 8285 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
| 8286 |
| 8287 ALLOCA_H=alloca.h |
| 8288 else |
| 8289 ALLOCA_H= |
| 8290 fi |
| 8291 else |
| 8292 ALLOCA_H=alloca.h |
| 8293 fi |
| 8294 |
| 8295 if test -n "$ALLOCA_H"; then |
| 8296 GL_GENERATE_ALLOCA_H_TRUE= |
| 8297 GL_GENERATE_ALLOCA_H_FALSE='#' |
| 8298 else |
| 8299 GL_GENERATE_ALLOCA_H_TRUE='#' |
| 8300 GL_GENERATE_ALLOCA_H_FALSE= |
| 8301 fi |
| 8302 |
| 8303 |
| 8304 |
| 8305 if test "x$datarootdir" = x; then |
| 8306 datarootdir='${datadir}' |
| 8307 |
| 8308 fi |
| 8309 if test "x$docdir" = x; then |
| 8310 docdir='${datarootdir}/doc/${PACKAGE}' |
| 8311 |
| 8312 fi |
| 8313 if test "x$htmldir" = x; then |
| 8314 htmldir='${docdir}' |
| 8315 |
| 8316 fi |
| 8317 if test "x$dvidir" = x; then |
| 8318 dvidir='${docdir}' |
| 8319 |
| 8320 fi |
| 8321 if test "x$pdfdir" = x; then |
| 8322 pdfdir='${docdir}' |
| 8323 |
| 8324 fi |
| 8325 if test "x$psdir" = x; then |
| 8326 psdir='${docdir}' |
| 8327 |
| 8328 fi |
| 8329 if test "x$lispdir" = x; then |
| 8330 lispdir='${datarootdir}/emacs/site-lisp' |
| 8331 |
| 8332 fi |
| 8333 if test "x$localedir" = x; then |
| 8334 localedir='${datarootdir}/locale' |
| 8335 |
| 8336 fi |
| 8337 |
| 8338 pkglibexecdir='${libexecdir}/${PACKAGE}' |
| 8339 |
| 8340 |
| 8341 |
| 8342 |
| 8343 |
| 8344 |
| 8345 |
| 8346 FNMATCH_H= |
| 8347 gl_fnmatch_required_lowercase=` |
| 8348 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]' |
| 8349 ` |
| 8350 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}" |
| 8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_requ
ired fnmatch" >&5 |
| 8352 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; } |
| 8353 if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; the
n : |
| 8354 $as_echo_n "(cached) " >&6 |
| 8355 else |
| 8356 if test $gl_fnmatch_required = GNU; then |
| 8357 gl_fnmatch_gnu_start= |
| 8358 gl_fnmatch_gnu_end= |
| 8359 else |
| 8360 gl_fnmatch_gnu_start='#if 0' |
| 8361 gl_fnmatch_gnu_end='#endif' |
| 8362 fi |
| 8363 if test "$cross_compiling" = yes; then : |
| 8364 eval "$gl_fnmatch_cache_var=\"guessing no\"" |
| 8365 else |
| 8366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8367 /* end confdefs.h. */ |
| 8368 #include <fnmatch.h> |
| 8369 static int |
| 8370 y (char const *pattern, char const *string, int flags) |
| 8371 { |
| 8372 return fnmatch (pattern, string, flags) == 0; |
| 8373 } |
| 8374 static int |
| 8375 n (char const *pattern, char const *string, int flags) |
| 8376 { |
| 8377 return fnmatch (pattern, string, flags) == FNM_NOMATCH; |
| 8378 } |
12097 | 8379 |
12098 int | 8380 int |
12099 main () | 8381 main () |
12100 { | 8382 { |
12101 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | 8383 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]"; |
12102 » » && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | 8384 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]"; |
12103 » » && LITTLE_ENDIAN) | 8385 static char const A_1[] = { 'A' - 1, 0 }; |
12104 » bogus endian macros | 8386 static char const A01[] = { 'A' + 1, 0 }; |
12105 » #endif | 8387 static char const a_1[] = { 'a' - 1, 0 }; |
| 8388 static char const a01[] = { 'a' + 1, 0 }; |
| 8389 static char const bs_1[] = { '\\\\' - 1, 0 }; |
| 8390 static char const bs01[] = { '\\\\' + 1, 0 }; |
| 8391 int result = 0; |
| 8392 if (!n ("a*", "", 0)) |
| 8393 return 1; |
| 8394 if (!y ("a*", "abc", 0)) |
| 8395 return 1; |
| 8396 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */ |
| 8397 return 1; |
| 8398 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME)) |
| 8399 return 2; |
| 8400 if (!y ("a\\\\bc", "abc", 0)) |
| 8401 return 3; |
| 8402 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE)) |
| 8403 return 3; |
| 8404 if (!y ("*x", ".x", 0)) |
| 8405 return 4; |
| 8406 if (!n ("*x", ".x", FNM_PERIOD)) |
| 8407 return 4; |
| 8408 if (!y (Apat, "\\\\", 0)) |
| 8409 return 5; |
| 8410 if (!y (Apat, "A", 0)) |
| 8411 return 5; |
| 8412 if (!y (apat, "\\\\", 0)) |
| 8413 return 5; |
| 8414 if (!y (apat, "a", 0)) |
| 8415 return 5; |
| 8416 if (!(n (Apat, A_1, 0) == ('A' < '\\\\'))) |
| 8417 return 5; |
| 8418 if (!(n (apat, a_1, 0) == ('a' < '\\\\'))) |
| 8419 return 5; |
| 8420 if (!(y (Apat, A01, 0) == ('A' < '\\\\'))) |
| 8421 return 5; |
| 8422 if (!(y (apat, a01, 0) == ('a' < '\\\\'))) |
| 8423 return 5; |
| 8424 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\'))) |
| 8425 return 5; |
| 8426 if (!(y (apat, bs_1, 0) == ('a' < '\\\\'))) |
| 8427 return 5; |
| 8428 if (!(n (Apat, bs01, 0) == ('A' < '\\\\'))) |
| 8429 return 5; |
| 8430 if (!(n (apat, bs01, 0) == ('a' < '\\\\'))) |
| 8431 return 5; |
| 8432 $gl_fnmatch_gnu_start |
| 8433 if (!y ("xxXX", "xXxX", FNM_CASEFOLD)) |
| 8434 result |= 8; |
| 8435 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH)) |
| 8436 result |= 16; |
| 8437 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME)) |
| 8438 result |= 32; |
| 8439 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR)) |
| 8440 result |= 64; |
| 8441 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR)) |
| 8442 result |= 64; |
| 8443 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR)) |
| 8444 result |= 64; |
| 8445 $gl_fnmatch_gnu_end |
| 8446 return result; |
12106 | 8447 |
12107 ; | 8448 ; |
12108 return 0; | 8449 return 0; |
12109 } | 8450 } |
12110 _ACEOF | 8451 _ACEOF |
12111 if ac_fn_c_try_compile "$LINENO"; then : | 8452 if ac_fn_c_try_run "$LINENO"; then : |
12112 # It does; now see whether it defined to BIG_ENDIAN or not. | 8453 eval "$gl_fnmatch_cache_var=yes" |
12113 » cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 8454 else |
12114 /* end confdefs.h. */ | 8455 eval "$gl_fnmatch_cache_var=no" |
12115 #include <sys/types.h> | 8456 fi |
12116 » » #include <sys/param.h> | 8457 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
12117 | 8458 conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8459 fi |
| 8460 |
| 8461 |
| 8462 fi |
| 8463 eval ac_res=\$$gl_fnmatch_cache_var |
| 8464 » { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 8465 $as_echo "$ac_res" >&6; } |
| 8466 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\"" |
| 8467 if test "$gl_fnmatch_result" = yes; then |
| 8468 rm -f "$gl_source_base/fnmatch.h" |
| 8469 else |
| 8470 FNMATCH_H=fnmatch.h |
| 8471 fi |
| 8472 |
| 8473 if test -n "$FNMATCH_H"; then |
| 8474 GL_GENERATE_FNMATCH_H_TRUE= |
| 8475 GL_GENERATE_FNMATCH_H_FALSE='#' |
| 8476 else |
| 8477 GL_GENERATE_FNMATCH_H_TRUE='#' |
| 8478 GL_GENERATE_FNMATCH_H_FALSE= |
| 8479 fi |
| 8480 |
| 8481 |
| 8482 if test -n "$FNMATCH_H"; then |
| 8483 |
| 8484 |
| 8485 |
| 8486 |
| 8487 |
| 8488 |
| 8489 |
| 8490 |
| 8491 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext" |
| 8492 |
| 8493 |
| 8494 |
| 8495 cat >>confdefs.h <<_ACEOF |
| 8496 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch |
| 8497 _ACEOF |
| 8498 |
| 8499 |
| 8500 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ct
ype.h> |
| 8501 " |
| 8502 if test "x$ac_cv_have_decl_isblank" = x""yes; then : |
| 8503 ac_have_decl=1 |
| 8504 else |
| 8505 ac_have_decl=0 |
| 8506 fi |
| 8507 |
| 8508 cat >>confdefs.h <<_ACEOF |
| 8509 #define HAVE_DECL_ISBLANK $ac_have_decl |
| 8510 _ACEOF |
| 8511 |
| 8512 |
| 8513 : |
| 8514 |
| 8515 |
| 8516 |
| 8517 |
| 8518 |
| 8519 |
| 8520 |
| 8521 |
| 8522 |
| 8523 |
| 8524 |
| 8525 |
| 8526 |
| 8527 |
| 8528 |
| 8529 |
| 8530 |
| 8531 |
| 8532 |
| 8533 |
| 8534 |
| 8535 |
| 8536 |
| 8537 |
| 8538 |
| 8539 |
| 8540 |
| 8541 : |
| 8542 |
| 8543 |
| 8544 |
| 8545 |
| 8546 |
| 8547 |
| 8548 fi |
| 8549 |
| 8550 |
| 8551 |
| 8552 |
| 8553 |
| 8554 if test -n "$FNMATCH_H"; then |
| 8555 |
| 8556 |
| 8557 |
| 8558 |
| 8559 |
| 8560 |
| 8561 |
| 8562 |
| 8563 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext" |
| 8564 |
| 8565 |
| 8566 |
| 8567 cat >>confdefs.h <<_ACEOF |
| 8568 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch |
| 8569 _ACEOF |
| 8570 |
| 8571 |
| 8572 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ct
ype.h> |
| 8573 " |
| 8574 if test "x$ac_cv_have_decl_isblank" = x""yes; then : |
| 8575 ac_have_decl=1 |
| 8576 else |
| 8577 ac_have_decl=0 |
| 8578 fi |
| 8579 |
| 8580 cat >>confdefs.h <<_ACEOF |
| 8581 #define HAVE_DECL_ISBLANK $ac_have_decl |
| 8582 _ACEOF |
| 8583 |
| 8584 |
| 8585 : |
| 8586 |
| 8587 |
| 8588 |
| 8589 |
| 8590 |
| 8591 |
| 8592 |
| 8593 |
| 8594 |
| 8595 |
| 8596 |
| 8597 |
| 8598 |
| 8599 |
| 8600 |
| 8601 |
| 8602 |
| 8603 |
| 8604 |
| 8605 |
| 8606 |
| 8607 |
| 8608 |
| 8609 |
| 8610 |
| 8611 |
| 8612 |
| 8613 : |
| 8614 |
| 8615 |
| 8616 |
| 8617 |
| 8618 |
| 8619 |
| 8620 fi |
| 8621 |
| 8622 |
| 8623 |
| 8624 |
| 8625 |
| 8626 PRIPTR_PREFIX= |
| 8627 if test -n "$STDINT_H"; then |
| 8628 PRIPTR_PREFIX='"l"' |
| 8629 else |
| 8630 for glpfx in '' l ll I64; do |
| 8631 case $glpfx in |
| 8632 '') gltype1='int';; |
| 8633 l) gltype1='long int';; |
| 8634 ll) gltype1='long long int';; |
| 8635 I64) gltype1='__int64';; |
| 8636 esac |
| 8637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8638 /* end confdefs.h. */ |
| 8639 #include <stdint.h> |
| 8640 extern intptr_t foo; |
| 8641 extern $gltype1 foo; |
12118 int | 8642 int |
12119 main () | 8643 main () |
12120 { | 8644 { |
12121 #if BYTE_ORDER != BIG_ENDIAN | |
12122 not big endian | |
12123 #endif | |
12124 | 8645 |
12125 ; | 8646 ; |
12126 return 0; | 8647 return 0; |
12127 } | 8648 } |
12128 _ACEOF | 8649 _ACEOF |
12129 if ac_fn_c_try_compile "$LINENO"; then : | 8650 if ac_fn_c_try_compile "$LINENO"; then : |
12130 ac_cv_c_bigendian=yes | 8651 PRIPTR_PREFIX='"'$glpfx'"' |
12131 else | |
12132 ac_cv_c_bigendian=no | |
12133 fi | 8652 fi |
12134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 8653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12135 fi | 8654 test -n "$PRIPTR_PREFIX" && break |
12136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 8655 done |
12137 fi | 8656 fi |
12138 if test $ac_cv_c_bigendian = unknown; then | 8657 |
12139 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | 8658 |
12140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 8659 |
12141 /* end confdefs.h. */ | 8660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_M
AX" >&5 |
12142 #include <limits.h> | 8661 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; } |
12143 | 8662 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then : |
| 8663 $as_echo_n "(cached) " >&6 |
| 8664 else |
| 8665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8666 /* end confdefs.h. */ |
| 8667 /* Work also in C++ mode. */ |
| 8668 #define __STDC_LIMIT_MACROS 1 |
| 8669 |
| 8670 /* Work if build is not clean. */ |
| 8671 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H |
| 8672 |
| 8673 #include <limits.h> |
| 8674 #if HAVE_STDINT_H |
| 8675 #include <stdint.h> |
| 8676 #endif |
| 8677 |
| 8678 #if defined INT32_MAX && defined INTMAX_MAX |
| 8679 #define CONDITION (INT32_MAX < INTMAX_MAX) |
| 8680 #elif HAVE_LONG_LONG_INT |
| 8681 #define CONDITION (sizeof (int) < sizeof (long long int)) |
| 8682 #else |
| 8683 #define CONDITION 0 |
| 8684 #endif |
| 8685 int test[CONDITION ? 1 : -1]; |
12144 int | 8686 int |
12145 main () | 8687 main () |
12146 { | 8688 { |
12147 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
12148 bogus endian macros | |
12149 #endif | |
12150 | 8689 |
12151 ; | 8690 ; |
12152 return 0; | 8691 return 0; |
12153 } | 8692 } |
12154 _ACEOF | 8693 _ACEOF |
12155 if ac_fn_c_try_compile "$LINENO"; then : | 8694 if ac_fn_c_try_compile "$LINENO"; then : |
12156 # It does; now see whether it defined to _BIG_ENDIAN or not. | 8695 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes |
12157 » cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 8696 else |
12158 /* end confdefs.h. */ | 8697 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no |
12159 #include <limits.h> | 8698 fi |
12160 | 8699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8700 fi |
| 8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX
_MAX" >&5 |
| 8702 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; } |
| 8703 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then |
| 8704 INT32_MAX_LT_INTMAX_MAX=1; |
| 8705 else |
| 8706 INT32_MAX_LT_INTMAX_MAX=0; |
| 8707 fi |
| 8708 |
| 8709 |
| 8710 if test $APPLE_UNIVERSAL_BUILD = 0; then |
| 8711 |
| 8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MA
X" >&5 |
| 8713 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; } |
| 8714 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then : |
| 8715 $as_echo_n "(cached) " >&6 |
| 8716 else |
| 8717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8718 /* end confdefs.h. */ |
| 8719 /* Work also in C++ mode. */ |
| 8720 #define __STDC_LIMIT_MACROS 1 |
| 8721 |
| 8722 /* Work if build is not clean. */ |
| 8723 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H |
| 8724 |
| 8725 #include <limits.h> |
| 8726 #if HAVE_STDINT_H |
| 8727 #include <stdint.h> |
| 8728 #endif |
| 8729 |
| 8730 #if defined INT64_MAX |
| 8731 #define CONDITION (INT64_MAX == LONG_MAX) |
| 8732 #elif HAVE_LONG_LONG_INT |
| 8733 #define CONDITION (sizeof (long long int) == sizeof (long int)) |
| 8734 #else |
| 8735 #define CONDITION 0 |
| 8736 #endif |
| 8737 int test[CONDITION ? 1 : -1]; |
12161 int | 8738 int |
12162 main () | 8739 main () |
12163 { | 8740 { |
12164 #ifndef _BIG_ENDIAN | |
12165 not big endian | |
12166 #endif | |
12167 | 8741 |
12168 ; | 8742 ; |
12169 return 0; | 8743 return 0; |
12170 } | 8744 } |
12171 _ACEOF | 8745 _ACEOF |
12172 if ac_fn_c_try_compile "$LINENO"; then : | 8746 if ac_fn_c_try_compile "$LINENO"; then : |
12173 ac_cv_c_bigendian=yes | 8747 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes |
12174 else | 8748 else |
12175 ac_cv_c_bigendian=no | 8749 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no |
12176 fi | 8750 fi |
12177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 8751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12178 fi | 8752 fi |
12179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_M
AX" >&5 |
12180 fi | 8754 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; } |
12181 if test $ac_cv_c_bigendian = unknown; then | 8755 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then |
12182 # Compile a test program. | 8756 INT64_MAX_EQ_LONG_MAX=1; |
12183 if test "$cross_compiling" = yes; then : | 8757 else |
12184 # Try to guess by grepping values from an object file. | 8758 INT64_MAX_EQ_LONG_MAX=0; |
12185 » cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 8759 fi |
12186 /* end confdefs.h. */ | 8760 |
12187 short int ascii_mm[] = | 8761 |
12188 » » { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | 8762 else |
12189 » » short int ascii_ii[] = | 8763 INT64_MAX_EQ_LONG_MAX=-1 |
12190 » » { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | 8764 fi |
12191 » » int use_ascii (int i) { | 8765 |
12192 » » return ascii_mm[i] + ascii_ii[i]; | 8766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX
_MAX" >&5 |
12193 » » } | 8767 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; } |
12194 » » short int ebcdic_ii[] = | 8768 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then : |
12195 » » { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | 8769 $as_echo_n "(cached) " >&6 |
12196 » » short int ebcdic_mm[] = | 8770 else |
12197 » » { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | 8771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12198 » » int use_ebcdic (int i) { | 8772 /* end confdefs.h. */ |
12199 » » return ebcdic_mm[i] + ebcdic_ii[i]; | 8773 /* Work also in C++ mode. */ |
12200 » » } | 8774 #define __STDC_LIMIT_MACROS 1 |
12201 » » extern int foo; | 8775 |
12202 | 8776 /* Work if build is not clean. */ |
| 8777 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H |
| 8778 |
| 8779 #include <limits.h> |
| 8780 #if HAVE_STDINT_H |
| 8781 #include <stdint.h> |
| 8782 #endif |
| 8783 |
| 8784 #if defined UINT32_MAX && defined UINTMAX_MAX |
| 8785 #define CONDITION (UINT32_MAX < UINTMAX_MAX) |
| 8786 #elif HAVE_LONG_LONG_INT |
| 8787 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long lo
ng int)) |
| 8788 #else |
| 8789 #define CONDITION 0 |
| 8790 #endif |
| 8791 int test[CONDITION ? 1 : -1]; |
12203 int | 8792 int |
12204 main () | 8793 main () |
12205 { | 8794 { |
12206 return use_ascii (foo) == use_ebcdic (foo); | 8795 |
12207 ; | 8796 ; |
12208 return 0; | 8797 return 0; |
12209 } | 8798 } |
12210 _ACEOF | 8799 _ACEOF |
12211 if ac_fn_c_try_compile "$LINENO"; then : | 8800 if ac_fn_c_try_compile "$LINENO"; then : |
12212 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | 8801 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes |
12213 » ac_cv_c_bigendian=yes | 8802 else |
12214 » fi | 8803 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no |
12215 » if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
12216 » if test "$ac_cv_c_bigendian" = unknown; then | |
12217 » » ac_cv_c_bigendian=no | |
12218 » else | |
12219 » » # finding both strings is unlikely to happen, but who knows? | |
12220 » » ac_cv_c_bigendian=unknown | |
12221 » fi | |
12222 » fi | |
12223 fi | 8804 fi |
12224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 8805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8806 fi |
| 8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTM
AX_MAX" >&5 |
| 8808 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; } |
| 8809 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then |
| 8810 UINT32_MAX_LT_UINTMAX_MAX=1; |
| 8811 else |
| 8812 UINT32_MAX_LT_UINTMAX_MAX=0; |
| 8813 fi |
| 8814 |
| 8815 |
| 8816 if test $APPLE_UNIVERSAL_BUILD = 0; then |
| 8817 |
| 8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_
MAX" >&5 |
| 8819 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; } |
| 8820 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then : |
| 8821 $as_echo_n "(cached) " >&6 |
12225 else | 8822 else |
12226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 8823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12227 /* end confdefs.h. */ | 8824 /* end confdefs.h. */ |
12228 $ac_includes_default | 8825 /* Work also in C++ mode. */ |
| 8826 #define __STDC_LIMIT_MACROS 1 |
| 8827 |
| 8828 /* Work if build is not clean. */ |
| 8829 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H |
| 8830 |
| 8831 #include <limits.h> |
| 8832 #if HAVE_STDINT_H |
| 8833 #include <stdint.h> |
| 8834 #endif |
| 8835 |
| 8836 #if defined UINT64_MAX |
| 8837 #define CONDITION (UINT64_MAX == ULONG_MAX) |
| 8838 #elif HAVE_LONG_LONG_INT |
| 8839 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsig
ned long int)) |
| 8840 #else |
| 8841 #define CONDITION 0 |
| 8842 #endif |
| 8843 int test[CONDITION ? 1 : -1]; |
12229 int | 8844 int |
12230 main () | 8845 main () |
12231 { | 8846 { |
12232 | 8847 |
12233 /* Are we little or big endian? From Harbison&Steele. */ | |
12234 union | |
12235 { | |
12236 long int l; | |
12237 char c[sizeof (long int)]; | |
12238 } u; | |
12239 u.l = 1; | |
12240 return u.c[sizeof (long int) - 1] == 1; | |
12241 | |
12242 ; | 8848 ; |
12243 return 0; | 8849 return 0; |
12244 } | 8850 } |
12245 _ACEOF | 8851 _ACEOF |
| 8852 if ac_fn_c_try_compile "$LINENO"; then : |
| 8853 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes |
| 8854 else |
| 8855 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no |
| 8856 fi |
| 8857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8858 fi |
| 8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG
_MAX" >&5 |
| 8860 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; } |
| 8861 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then |
| 8862 UINT64_MAX_EQ_ULONG_MAX=1; |
| 8863 else |
| 8864 UINT64_MAX_EQ_ULONG_MAX=0; |
| 8865 fi |
| 8866 |
| 8867 |
| 8868 else |
| 8869 UINT64_MAX_EQ_ULONG_MAX=-1 |
| 8870 fi |
| 8871 |
| 8872 |
| 8873 |
| 8874 |
| 8875 |
| 8876 |
| 8877 |
| 8878 : |
| 8879 |
| 8880 |
| 8881 |
| 8882 |
| 8883 |
| 8884 |
| 8885 |
| 8886 |
| 8887 |
| 8888 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_sourc
e_base\"" |
| 8889 |
| 8890 |
| 8891 |
| 8892 |
| 8893 |
| 8894 |
| 8895 |
| 8896 |
| 8897 |
| 8898 |
| 8899 : |
| 8900 |
| 8901 |
| 8902 |
| 8903 |
| 8904 |
| 8905 |
| 8906 : |
| 8907 |
| 8908 |
| 8909 |
| 8910 |
| 8911 |
| 8912 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then |
| 8913 |
| 8914 |
| 8915 |
| 8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles i
ncomplete characters" >&5 |
| 8917 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; } |
| 8918 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then : |
| 8919 $as_echo_n "(cached) " >&6 |
| 8920 else |
| 8921 |
| 8922 case "$host_os" in |
| 8923 # Guess no on AIX and OSF/1. |
| 8924 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;; |
| 8925 # Guess yes otherwise. |
| 8926 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;; |
| 8927 esac |
| 8928 if test $LOCALE_JA != none; then |
| 8929 if test "$cross_compiling" = yes; then : |
| 8930 : |
| 8931 else |
| 8932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8933 /* end confdefs.h. */ |
| 8934 |
| 8935 #include <locale.h> |
| 8936 #include <string.h> |
| 8937 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before |
| 8938 <wchar.h>. |
| 8939 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 8940 included before <wchar.h>. */ |
| 8941 #include <stddef.h> |
| 8942 #include <stdio.h> |
| 8943 #include <time.h> |
| 8944 #include <wchar.h> |
| 8945 int main () |
| 8946 { |
| 8947 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) |
| 8948 { |
| 8949 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */ |
| 8950 mbstate_t state; |
| 8951 wchar_t wc; |
| 8952 |
| 8953 memset (&state, '\0', sizeof (mbstate_t)); |
| 8954 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) |
| 8955 if (mbsinit (&state)) |
| 8956 return 1; |
| 8957 } |
| 8958 return 0; |
| 8959 } |
| 8960 _ACEOF |
12246 if ac_fn_c_try_run "$LINENO"; then : | 8961 if ac_fn_c_try_run "$LINENO"; then : |
12247 ac_cv_c_bigendian=no | 8962 gl_cv_func_mbrtowc_incomplete_state=yes |
12248 else | 8963 else |
12249 ac_cv_c_bigendian=yes | 8964 gl_cv_func_mbrtowc_incomplete_state=no |
12250 fi | 8965 fi |
12251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 8966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
12252 conftest.$ac_objext conftest.beam conftest.$ac_ext | 8967 conftest.$ac_objext conftest.beam conftest.$ac_ext |
12253 fi | 8968 fi |
12254 | 8969 |
| 8970 fi |
| 8971 |
| 8972 fi |
| 8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_
state" >&5 |
| 8974 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; } |
| 8975 |
| 8976 |
| 8977 |
| 8978 |
| 8979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as
well as mbtowc" >&5 |
| 8980 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; } |
| 8981 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then : |
| 8982 $as_echo_n "(cached) " >&6 |
| 8983 else |
| 8984 |
| 8985 case "$host_os" in |
| 8986 # Guess no on Solaris 8. |
| 8987 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;; |
| 8988 # Guess yes otherwise. |
| 8989 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;; |
| 8990 esac |
| 8991 if test $LOCALE_ZH_CN != none; then |
| 8992 if test "$cross_compiling" = yes; then : |
| 8993 : |
| 8994 else |
| 8995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8996 /* end confdefs.h. */ |
| 8997 |
| 8998 #include <locale.h> |
| 8999 #include <stdlib.h> |
| 9000 #include <string.h> |
| 9001 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before |
| 9002 <wchar.h>. |
| 9003 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 9004 included before <wchar.h>. */ |
| 9005 #include <stddef.h> |
| 9006 #include <stdio.h> |
| 9007 #include <time.h> |
| 9008 #include <wchar.h> |
| 9009 int main () |
| 9010 { |
| 9011 /* This fails on Solaris 8: |
| 9012 mbrtowc returns 2, and sets wc to 0x00F0. |
| 9013 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */ |
| 9014 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) |
| 9015 { |
| 9016 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */ |
| 9017 mbstate_t state; |
| 9018 wchar_t wc; |
| 9019 |
| 9020 memset (&state, '\0', sizeof (mbstate_t)); |
| 9021 if (mbrtowc (&wc, input + 3, 6, &state) != 4 |
| 9022 && mbtowc (&wc, input + 3, 6) == 4) |
| 9023 return 1; |
| 9024 } |
| 9025 return 0; |
| 9026 } |
| 9027 _ACEOF |
| 9028 if ac_fn_c_try_run "$LINENO"; then : |
| 9029 gl_cv_func_mbrtowc_sanitycheck=yes |
| 9030 else |
| 9031 gl_cv_func_mbrtowc_sanitycheck=no |
| 9032 fi |
| 9033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9034 conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9035 fi |
| 9036 |
| 9037 fi |
| 9038 |
| 9039 fi |
| 9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck
" >&5 |
| 9041 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; } |
| 9042 |
| 9043 REPLACE_MBSTATE_T=0 |
| 9044 case "$gl_cv_func_mbrtowc_incomplete_state" in |
| 9045 *yes) ;; |
| 9046 *) REPLACE_MBSTATE_T=1 ;; |
| 9047 esac |
| 9048 case "$gl_cv_func_mbrtowc_sanitycheck" in |
| 9049 *yes) ;; |
| 9050 *) REPLACE_MBSTATE_T=1 ;; |
| 9051 esac |
| 9052 else |
| 9053 REPLACE_MBSTATE_T=1 |
| 9054 fi |
| 9055 |
| 9056 |
| 9057 |
| 9058 : |
| 9059 |
| 9060 |
| 9061 |
| 9062 |
| 9063 |
| 9064 if test $ac_cv_func_mbrtowc = no; then |
| 9065 HAVE_MBRTOWC=0 |
| 9066 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" " |
| 9067 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before |
| 9068 <wchar.h>. |
| 9069 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 9070 included before <wchar.h>. */ |
| 9071 #include <stddef.h> |
| 9072 #include <stdio.h> |
| 9073 #include <time.h> |
| 9074 #include <wchar.h> |
| 9075 |
| 9076 " |
| 9077 if test "x$ac_cv_have_decl_mbrtowc" = x""yes; then : |
| 9078 ac_have_decl=1 |
| 9079 else |
| 9080 ac_have_decl=0 |
| 9081 fi |
| 9082 |
| 9083 cat >>confdefs.h <<_ACEOF |
| 9084 #define HAVE_DECL_MBRTOWC $ac_have_decl |
| 9085 _ACEOF |
| 9086 |
| 9087 if test $ac_cv_have_decl_mbrtowc = yes; then |
| 9088 REPLACE_MBRTOWC=1 |
12255 fi | 9089 fi |
12256 fi | 9090 else |
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | 9091 if test $REPLACE_MBSTATE_T = 1; then |
12258 $as_echo "$ac_cv_c_bigendian" >&6; } | 9092 REPLACE_MBRTOWC=1 |
12259 case $ac_cv_c_bigendian in #( | 9093 else |
12260 yes) | 9094 |
12261 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | 9095 |
12262 ;; #( | 9096 |
12263 no) | 9097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a
NULL pwc argument" >&5 |
12264 ;; #( | 9098 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; } |
12265 universal) | 9099 if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then : |
12266 | |
12267 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |
12268 | |
12269 ;; #( | |
12270 *) | |
12271 as_fn_error "unknown endianness | |
12272 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | |
12273 esac | |
12274 | |
12275 | |
12276 # ------------------------------ # | |
12277 # Checks for library functions. # | |
12278 # ------------------------------ # | |
12279 | |
12280 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
12281 # for constant arguments. Useless! | |
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 | |
12283 $as_echo_n "checking for working alloca.h... " >&6; } | |
12284 if test "${ac_cv_working_alloca_h+set}" = set; then : | |
12285 $as_echo_n "(cached) " >&6 | 9100 $as_echo_n "(cached) " >&6 |
12286 else | 9101 else |
| 9102 |
| 9103 case "$host_os" in |
| 9104 # Guess no on Solaris. |
| 9105 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;; |
| 9106 # Guess yes otherwise. |
| 9107 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;; |
| 9108 esac |
| 9109 if test $LOCALE_FR_UTF8 != none; then |
| 9110 if test "$cross_compiling" = yes; then : |
| 9111 : |
| 9112 else |
12287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 9113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12288 /* end confdefs.h. */ | 9114 /* end confdefs.h. */ |
12289 #include <alloca.h> | 9115 |
| 9116 #include <locale.h> |
| 9117 #include <stdlib.h> |
| 9118 #include <string.h> |
| 9119 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before |
| 9120 <wchar.h>. |
| 9121 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 9122 included before <wchar.h>. */ |
| 9123 #include <stddef.h> |
| 9124 #include <stdio.h> |
| 9125 #include <time.h> |
| 9126 #include <wchar.h> |
| 9127 int main () |
| 9128 { |
| 9129 int result = 0; |
| 9130 |
| 9131 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) |
| 9132 { |
| 9133 char input[] = "\303\237er"; |
| 9134 mbstate_t state; |
| 9135 wchar_t wc; |
| 9136 size_t ret; |
| 9137 |
| 9138 memset (&state, '\0', sizeof (mbstate_t)); |
| 9139 wc = (wchar_t) 0xBADFACE; |
| 9140 ret = mbrtowc (&wc, input, 5, &state); |
| 9141 if (ret != 2) |
| 9142 result |= 1; |
| 9143 if (!mbsinit (&state)) |
| 9144 result |= 2; |
| 9145 |
| 9146 memset (&state, '\0', sizeof (mbstate_t)); |
| 9147 ret = mbrtowc (NULL, input, 5, &state); |
| 9148 if (ret != 2) /* Solaris 7 fails here: ret is -1. */ |
| 9149 result |= 4; |
| 9150 if (!mbsinit (&state)) |
| 9151 result |= 8; |
| 9152 } |
| 9153 return result; |
| 9154 } |
| 9155 _ACEOF |
| 9156 if ac_fn_c_try_run "$LINENO"; then : |
| 9157 gl_cv_func_mbrtowc_null_arg1=yes |
| 9158 else |
| 9159 gl_cv_func_mbrtowc_null_arg1=no |
| 9160 fi |
| 9161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9162 conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9163 fi |
| 9164 |
| 9165 fi |
| 9166 |
| 9167 fi |
| 9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1"
>&5 |
| 9169 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; } |
| 9170 |
| 9171 |
| 9172 |
| 9173 |
| 9174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a
NULL string argument" >&5 |
| 9175 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; } |
| 9176 if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then : |
| 9177 $as_echo_n "(cached) " >&6 |
| 9178 else |
| 9179 |
| 9180 case "$host_os" in |
| 9181 # Guess no on OSF/1. |
| 9182 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;; |
| 9183 # Guess yes otherwise. |
| 9184 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;; |
| 9185 esac |
| 9186 if test $LOCALE_FR_UTF8 != none; then |
| 9187 if test "$cross_compiling" = yes; then : |
| 9188 : |
| 9189 else |
| 9190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9191 /* end confdefs.h. */ |
| 9192 |
| 9193 #include <locale.h> |
| 9194 #include <string.h> |
| 9195 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before |
| 9196 <wchar.h>. |
| 9197 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 9198 included before <wchar.h>. */ |
| 9199 #include <stddef.h> |
| 9200 #include <stdio.h> |
| 9201 #include <time.h> |
| 9202 #include <wchar.h> |
| 9203 int main () |
| 9204 { |
| 9205 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) |
| 9206 { |
| 9207 mbstate_t state; |
| 9208 wchar_t wc; |
| 9209 int ret; |
| 9210 |
| 9211 memset (&state, '\0', sizeof (mbstate_t)); |
| 9212 wc = (wchar_t) 0xBADFACE; |
| 9213 mbrtowc (&wc, NULL, 5, &state); |
| 9214 /* Check that wc was not modified. */ |
| 9215 if (wc != (wchar_t) 0xBADFACE) |
| 9216 return 1; |
| 9217 } |
| 9218 return 0; |
| 9219 } |
| 9220 _ACEOF |
| 9221 if ac_fn_c_try_run "$LINENO"; then : |
| 9222 gl_cv_func_mbrtowc_null_arg2=yes |
| 9223 else |
| 9224 gl_cv_func_mbrtowc_null_arg2=no |
| 9225 fi |
| 9226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9227 conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9228 fi |
| 9229 |
| 9230 fi |
| 9231 |
| 9232 fi |
| 9233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2"
>&5 |
| 9234 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; } |
| 9235 |
| 9236 |
| 9237 |
| 9238 |
| 9239 |
| 9240 |
| 9241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correc
t return value" >&5 |
| 9242 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; } |
| 9243 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then : |
| 9244 $as_echo_n "(cached) " >&6 |
| 9245 else |
| 9246 |
| 9247 case "$host_os" in |
| 9248 # Guess no on HP-UX, Solaris, native Windows. |
| 9249 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;; |
| 9250 # Guess yes otherwise. |
| 9251 *) gl_cv_func_mbrtowc_retval="guessing yes" ;; |
| 9252 esac |
| 9253 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \ |
| 9254 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then |
| 9255 if test "$cross_compiling" = yes; then : |
| 9256 : |
| 9257 else |
| 9258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9259 /* end confdefs.h. */ |
| 9260 |
| 9261 #include <locale.h> |
| 9262 #include <string.h> |
| 9263 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before |
| 9264 <wchar.h>. |
| 9265 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 9266 included before <wchar.h>. */ |
| 9267 #include <stddef.h> |
| 9268 #include <stdio.h> |
| 9269 #include <time.h> |
| 9270 #include <wchar.h> |
| 9271 int main () |
| 9272 { |
| 9273 int result = 0; |
| 9274 int found_some_locale = 0; |
| 9275 /* This fails on Solaris. */ |
| 9276 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) |
| 9277 { |
| 9278 char input[] = "B\303\274\303\237er"; /* "Büßer" */ |
| 9279 mbstate_t state; |
| 9280 wchar_t wc; |
| 9281 |
| 9282 memset (&state, '\0', sizeof (mbstate_t)); |
| 9283 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) |
| 9284 { |
| 9285 input[1] = '\0'; |
| 9286 if (mbrtowc (&wc, input + 2, 5, &state) != 1) |
| 9287 result |= 1; |
| 9288 } |
| 9289 found_some_locale = 1; |
| 9290 } |
| 9291 /* This fails on HP-UX 11.11. */ |
| 9292 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) |
| 9293 { |
| 9294 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */ |
| 9295 mbstate_t state; |
| 9296 wchar_t wc; |
| 9297 |
| 9298 memset (&state, '\0', sizeof (mbstate_t)); |
| 9299 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) |
| 9300 { |
| 9301 input[1] = '\0'; |
| 9302 if (mbrtowc (&wc, input + 2, 5, &state) != 2) |
| 9303 result |= 2; |
| 9304 } |
| 9305 found_some_locale = 1; |
| 9306 } |
| 9307 /* This fails on native Windows. */ |
| 9308 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL) |
| 9309 { |
| 9310 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */ |
| 9311 mbstate_t state; |
| 9312 wchar_t wc; |
| 9313 |
| 9314 memset (&state, '\0', sizeof (mbstate_t)); |
| 9315 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2)) |
| 9316 { |
| 9317 input[3] = '\0'; |
| 9318 if (mbrtowc (&wc, input + 4, 4, &state) != 1) |
| 9319 result |= 4; |
| 9320 } |
| 9321 found_some_locale = 1; |
| 9322 } |
| 9323 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL) |
| 9324 { |
| 9325 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */ |
| 9326 mbstate_t state; |
| 9327 wchar_t wc; |
| 9328 |
| 9329 memset (&state, '\0', sizeof (mbstate_t)); |
| 9330 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2)) |
| 9331 { |
| 9332 input[3] = '\0'; |
| 9333 if (mbrtowc (&wc, input + 4, 4, &state) != 1) |
| 9334 result |= 8; |
| 9335 } |
| 9336 found_some_locale = 1; |
| 9337 } |
| 9338 if (setlocale (LC_ALL, "Chinese_China.936") != NULL) |
| 9339 { |
| 9340 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */ |
| 9341 mbstate_t state; |
| 9342 wchar_t wc; |
| 9343 |
| 9344 memset (&state, '\0', sizeof (mbstate_t)); |
| 9345 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2)) |
| 9346 { |
| 9347 input[3] = '\0'; |
| 9348 if (mbrtowc (&wc, input + 4, 4, &state) != 1) |
| 9349 result |= 16; |
| 9350 } |
| 9351 found_some_locale = 1; |
| 9352 } |
| 9353 return (found_some_locale ? result : 77); |
| 9354 } |
| 9355 _ACEOF |
| 9356 if ac_fn_c_try_run "$LINENO"; then : |
| 9357 gl_cv_func_mbrtowc_retval=yes |
| 9358 else |
| 9359 if test $? != 77; then |
| 9360 gl_cv_func_mbrtowc_retval=no |
| 9361 fi |
| 9362 |
| 9363 fi |
| 9364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9365 conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9366 fi |
| 9367 |
| 9368 fi |
| 9369 |
| 9370 fi |
| 9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5 |
| 9372 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; } |
| 9373 |
| 9374 |
| 9375 |
| 9376 |
| 9377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0
when parsing a NUL character" >&5 |
| 9378 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... "
>&6; } |
| 9379 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then : |
| 9380 $as_echo_n "(cached) " >&6 |
| 9381 else |
| 9382 |
| 9383 case "$host_os" in |
| 9384 # Guess no on Solaris 8 and 9. |
| 9385 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;; |
| 9386 # Guess yes otherwise. |
| 9387 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;; |
| 9388 esac |
| 9389 if test $LOCALE_ZH_CN != none; then |
| 9390 if test "$cross_compiling" = yes; then : |
| 9391 : |
| 9392 else |
| 9393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9394 /* end confdefs.h. */ |
| 9395 |
| 9396 #include <locale.h> |
| 9397 #include <string.h> |
| 9398 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before |
| 9399 <wchar.h>. |
| 9400 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 9401 included before <wchar.h>. */ |
| 9402 #include <stddef.h> |
| 9403 #include <stdio.h> |
| 9404 #include <time.h> |
| 9405 #include <wchar.h> |
| 9406 int main () |
| 9407 { |
| 9408 /* This fails on Solaris 8 and 9. */ |
| 9409 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) |
| 9410 { |
| 9411 mbstate_t state; |
| 9412 wchar_t wc; |
| 9413 |
| 9414 memset (&state, '\0', sizeof (mbstate_t)); |
| 9415 if (mbrtowc (&wc, "", 1, &state) != 0) |
| 9416 return 1; |
| 9417 } |
| 9418 return 0; |
| 9419 } |
| 9420 _ACEOF |
| 9421 if ac_fn_c_try_run "$LINENO"; then : |
| 9422 gl_cv_func_mbrtowc_nul_retval=yes |
| 9423 else |
| 9424 gl_cv_func_mbrtowc_nul_retval=no |
| 9425 fi |
| 9426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9427 conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9428 fi |
| 9429 |
| 9430 fi |
| 9431 |
| 9432 fi |
| 9433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval"
>&5 |
| 9434 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; } |
| 9435 |
| 9436 case "$gl_cv_func_mbrtowc_null_arg1" in |
| 9437 *yes) ;; |
| 9438 *) |
| 9439 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h |
| 9440 |
| 9441 REPLACE_MBRTOWC=1 |
| 9442 ;; |
| 9443 esac |
| 9444 case "$gl_cv_func_mbrtowc_null_arg2" in |
| 9445 *yes) ;; |
| 9446 *) |
| 9447 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h |
| 9448 |
| 9449 REPLACE_MBRTOWC=1 |
| 9450 ;; |
| 9451 esac |
| 9452 case "$gl_cv_func_mbrtowc_retval" in |
| 9453 *yes) ;; |
| 9454 *) |
| 9455 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h |
| 9456 |
| 9457 REPLACE_MBRTOWC=1 |
| 9458 ;; |
| 9459 esac |
| 9460 case "$gl_cv_func_mbrtowc_nul_retval" in |
| 9461 *yes) ;; |
| 9462 *) |
| 9463 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h |
| 9464 |
| 9465 REPLACE_MBRTOWC=1 |
| 9466 ;; |
| 9467 esac |
| 9468 fi |
| 9469 fi |
| 9470 |
| 9471 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then |
| 9472 |
| 9473 |
| 9474 |
| 9475 |
| 9476 |
| 9477 |
| 9478 |
| 9479 |
| 9480 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext" |
| 9481 |
| 9482 |
| 9483 : |
| 9484 |
| 9485 fi |
| 9486 |
| 9487 |
| 9488 |
| 9489 |
| 9490 |
| 9491 GNULIB_MBRTOWC=1 |
| 9492 |
| 9493 |
| 9494 |
| 9495 |
| 9496 |
| 9497 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h |
| 9498 |
| 9499 |
| 9500 |
| 9501 |
| 9502 |
| 9503 |
| 9504 |
| 9505 |
| 9506 |
| 9507 |
| 9508 |
| 9509 |
| 9510 |
| 9511 : |
| 9512 |
| 9513 |
| 9514 |
| 9515 |
| 9516 |
| 9517 |
| 9518 : |
| 9519 |
| 9520 |
| 9521 |
| 9522 |
| 9523 |
| 9524 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then |
| 9525 |
| 9526 |
| 9527 |
| 9528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles i
ncomplete characters" >&5 |
| 9529 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; } |
| 9530 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then : |
| 9531 $as_echo_n "(cached) " >&6 |
| 9532 else |
| 9533 |
| 9534 case "$host_os" in |
| 9535 # Guess no on AIX and OSF/1. |
| 9536 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;; |
| 9537 # Guess yes otherwise. |
| 9538 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;; |
| 9539 esac |
| 9540 if test $LOCALE_JA != none; then |
| 9541 if test "$cross_compiling" = yes; then : |
| 9542 : |
| 9543 else |
| 9544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9545 /* end confdefs.h. */ |
| 9546 |
| 9547 #include <locale.h> |
| 9548 #include <string.h> |
| 9549 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before |
| 9550 <wchar.h>. |
| 9551 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 9552 included before <wchar.h>. */ |
| 9553 #include <stddef.h> |
| 9554 #include <stdio.h> |
| 9555 #include <time.h> |
| 9556 #include <wchar.h> |
| 9557 int main () |
| 9558 { |
| 9559 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) |
| 9560 { |
| 9561 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */ |
| 9562 mbstate_t state; |
| 9563 wchar_t wc; |
| 9564 |
| 9565 memset (&state, '\0', sizeof (mbstate_t)); |
| 9566 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) |
| 9567 if (mbsinit (&state)) |
| 9568 return 1; |
| 9569 } |
| 9570 return 0; |
| 9571 } |
| 9572 _ACEOF |
| 9573 if ac_fn_c_try_run "$LINENO"; then : |
| 9574 gl_cv_func_mbrtowc_incomplete_state=yes |
| 9575 else |
| 9576 gl_cv_func_mbrtowc_incomplete_state=no |
| 9577 fi |
| 9578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9579 conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9580 fi |
| 9581 |
| 9582 fi |
| 9583 |
| 9584 fi |
| 9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_
state" >&5 |
| 9586 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; } |
| 9587 |
| 9588 |
| 9589 |
| 9590 |
| 9591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as
well as mbtowc" >&5 |
| 9592 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; } |
| 9593 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then : |
| 9594 $as_echo_n "(cached) " >&6 |
| 9595 else |
| 9596 |
| 9597 case "$host_os" in |
| 9598 # Guess no on Solaris 8. |
| 9599 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;; |
| 9600 # Guess yes otherwise. |
| 9601 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;; |
| 9602 esac |
| 9603 if test $LOCALE_ZH_CN != none; then |
| 9604 if test "$cross_compiling" = yes; then : |
| 9605 : |
| 9606 else |
| 9607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9608 /* end confdefs.h. */ |
| 9609 |
| 9610 #include <locale.h> |
| 9611 #include <stdlib.h> |
| 9612 #include <string.h> |
| 9613 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before |
| 9614 <wchar.h>. |
| 9615 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 9616 included before <wchar.h>. */ |
| 9617 #include <stddef.h> |
| 9618 #include <stdio.h> |
| 9619 #include <time.h> |
| 9620 #include <wchar.h> |
| 9621 int main () |
| 9622 { |
| 9623 /* This fails on Solaris 8: |
| 9624 mbrtowc returns 2, and sets wc to 0x00F0. |
| 9625 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */ |
| 9626 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) |
| 9627 { |
| 9628 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */ |
| 9629 mbstate_t state; |
| 9630 wchar_t wc; |
| 9631 |
| 9632 memset (&state, '\0', sizeof (mbstate_t)); |
| 9633 if (mbrtowc (&wc, input + 3, 6, &state) != 4 |
| 9634 && mbtowc (&wc, input + 3, 6) == 4) |
| 9635 return 1; |
| 9636 } |
| 9637 return 0; |
| 9638 } |
| 9639 _ACEOF |
| 9640 if ac_fn_c_try_run "$LINENO"; then : |
| 9641 gl_cv_func_mbrtowc_sanitycheck=yes |
| 9642 else |
| 9643 gl_cv_func_mbrtowc_sanitycheck=no |
| 9644 fi |
| 9645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9646 conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9647 fi |
| 9648 |
| 9649 fi |
| 9650 |
| 9651 fi |
| 9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck
" >&5 |
| 9653 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; } |
| 9654 |
| 9655 REPLACE_MBSTATE_T=0 |
| 9656 case "$gl_cv_func_mbrtowc_incomplete_state" in |
| 9657 *yes) ;; |
| 9658 *) REPLACE_MBSTATE_T=1 ;; |
| 9659 esac |
| 9660 case "$gl_cv_func_mbrtowc_sanitycheck" in |
| 9661 *yes) ;; |
| 9662 *) REPLACE_MBSTATE_T=1 ;; |
| 9663 esac |
| 9664 else |
| 9665 REPLACE_MBSTATE_T=1 |
| 9666 fi |
| 9667 |
| 9668 |
| 9669 |
| 9670 : |
| 9671 |
| 9672 |
| 9673 |
| 9674 |
| 9675 |
| 9676 if test $ac_cv_func_mbsinit = no; then |
| 9677 HAVE_MBSINIT=0 |
| 9678 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" " |
| 9679 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before |
| 9680 <wchar.h>. |
| 9681 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 9682 included before <wchar.h>. */ |
| 9683 #include <stddef.h> |
| 9684 #include <stdio.h> |
| 9685 #include <time.h> |
| 9686 #include <wchar.h> |
| 9687 |
| 9688 " |
| 9689 if test "x$ac_cv_have_decl_mbsinit" = x""yes; then : |
| 9690 ac_have_decl=1 |
| 9691 else |
| 9692 ac_have_decl=0 |
| 9693 fi |
| 9694 |
| 9695 cat >>confdefs.h <<_ACEOF |
| 9696 #define HAVE_DECL_MBSINIT $ac_have_decl |
| 9697 _ACEOF |
| 9698 |
| 9699 if test $ac_cv_have_decl_mbsinit = yes; then |
| 9700 REPLACE_MBSINIT=1 |
| 9701 fi |
| 9702 else |
| 9703 if test $REPLACE_MBSTATE_T = 1; then |
| 9704 REPLACE_MBSINIT=1 |
| 9705 else |
| 9706 case "$host_os" in |
| 9707 mingw*) REPLACE_MBSINIT=1 ;; |
| 9708 esac |
| 9709 fi |
| 9710 fi |
| 9711 |
| 9712 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then |
| 9713 |
| 9714 |
| 9715 |
| 9716 |
| 9717 |
| 9718 |
| 9719 |
| 9720 |
| 9721 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext" |
| 9722 |
| 9723 |
| 9724 : |
| 9725 |
| 9726 fi |
| 9727 |
| 9728 |
| 9729 |
| 9730 |
| 9731 |
| 9732 GNULIB_MBSINIT=1 |
| 9733 |
| 9734 |
| 9735 |
| 9736 |
| 9737 |
| 9738 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h |
| 9739 |
| 9740 |
| 9741 |
| 9742 |
| 9743 |
| 9744 |
| 9745 |
| 9746 |
| 9747 |
| 9748 |
| 9749 |
| 9750 |
| 9751 : |
| 9752 |
| 9753 |
| 9754 |
| 9755 |
| 9756 |
| 9757 |
| 9758 : |
| 9759 |
| 9760 |
| 9761 |
| 9762 |
| 9763 |
| 9764 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then |
| 9765 |
| 9766 |
| 9767 |
| 9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles i
ncomplete characters" >&5 |
| 9769 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; } |
| 9770 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then : |
| 9771 $as_echo_n "(cached) " >&6 |
| 9772 else |
| 9773 |
| 9774 case "$host_os" in |
| 9775 # Guess no on AIX and OSF/1. |
| 9776 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;; |
| 9777 # Guess yes otherwise. |
| 9778 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;; |
| 9779 esac |
| 9780 if test $LOCALE_JA != none; then |
| 9781 if test "$cross_compiling" = yes; then : |
| 9782 : |
| 9783 else |
| 9784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9785 /* end confdefs.h. */ |
| 9786 |
| 9787 #include <locale.h> |
| 9788 #include <string.h> |
| 9789 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before |
| 9790 <wchar.h>. |
| 9791 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 9792 included before <wchar.h>. */ |
| 9793 #include <stddef.h> |
| 9794 #include <stdio.h> |
| 9795 #include <time.h> |
| 9796 #include <wchar.h> |
| 9797 int main () |
| 9798 { |
| 9799 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) |
| 9800 { |
| 9801 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */ |
| 9802 mbstate_t state; |
| 9803 wchar_t wc; |
| 9804 |
| 9805 memset (&state, '\0', sizeof (mbstate_t)); |
| 9806 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) |
| 9807 if (mbsinit (&state)) |
| 9808 return 1; |
| 9809 } |
| 9810 return 0; |
| 9811 } |
| 9812 _ACEOF |
| 9813 if ac_fn_c_try_run "$LINENO"; then : |
| 9814 gl_cv_func_mbrtowc_incomplete_state=yes |
| 9815 else |
| 9816 gl_cv_func_mbrtowc_incomplete_state=no |
| 9817 fi |
| 9818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9819 conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9820 fi |
| 9821 |
| 9822 fi |
| 9823 |
| 9824 fi |
| 9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_
state" >&5 |
| 9826 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; } |
| 9827 |
| 9828 |
| 9829 |
| 9830 |
| 9831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as
well as mbtowc" >&5 |
| 9832 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; } |
| 9833 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then : |
| 9834 $as_echo_n "(cached) " >&6 |
| 9835 else |
| 9836 |
| 9837 case "$host_os" in |
| 9838 # Guess no on Solaris 8. |
| 9839 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;; |
| 9840 # Guess yes otherwise. |
| 9841 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;; |
| 9842 esac |
| 9843 if test $LOCALE_ZH_CN != none; then |
| 9844 if test "$cross_compiling" = yes; then : |
| 9845 : |
| 9846 else |
| 9847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9848 /* end confdefs.h. */ |
| 9849 |
| 9850 #include <locale.h> |
| 9851 #include <stdlib.h> |
| 9852 #include <string.h> |
| 9853 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before |
| 9854 <wchar.h>. |
| 9855 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 9856 included before <wchar.h>. */ |
| 9857 #include <stddef.h> |
| 9858 #include <stdio.h> |
| 9859 #include <time.h> |
| 9860 #include <wchar.h> |
| 9861 int main () |
| 9862 { |
| 9863 /* This fails on Solaris 8: |
| 9864 mbrtowc returns 2, and sets wc to 0x00F0. |
| 9865 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */ |
| 9866 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) |
| 9867 { |
| 9868 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */ |
| 9869 mbstate_t state; |
| 9870 wchar_t wc; |
| 9871 |
| 9872 memset (&state, '\0', sizeof (mbstate_t)); |
| 9873 if (mbrtowc (&wc, input + 3, 6, &state) != 4 |
| 9874 && mbtowc (&wc, input + 3, 6) == 4) |
| 9875 return 1; |
| 9876 } |
| 9877 return 0; |
| 9878 } |
| 9879 _ACEOF |
| 9880 if ac_fn_c_try_run "$LINENO"; then : |
| 9881 gl_cv_func_mbrtowc_sanitycheck=yes |
| 9882 else |
| 9883 gl_cv_func_mbrtowc_sanitycheck=no |
| 9884 fi |
| 9885 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9886 conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9887 fi |
| 9888 |
| 9889 fi |
| 9890 |
| 9891 fi |
| 9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck
" >&5 |
| 9893 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; } |
| 9894 |
| 9895 REPLACE_MBSTATE_T=0 |
| 9896 case "$gl_cv_func_mbrtowc_incomplete_state" in |
| 9897 *yes) ;; |
| 9898 *) REPLACE_MBSTATE_T=1 ;; |
| 9899 esac |
| 9900 case "$gl_cv_func_mbrtowc_sanitycheck" in |
| 9901 *yes) ;; |
| 9902 *) REPLACE_MBSTATE_T=1 ;; |
| 9903 esac |
| 9904 else |
| 9905 REPLACE_MBSTATE_T=1 |
| 9906 fi |
| 9907 |
| 9908 |
| 9909 |
| 9910 : |
| 9911 |
| 9912 |
| 9913 |
| 9914 |
| 9915 |
| 9916 if test $ac_cv_func_mbsrtowcs = no; then |
| 9917 HAVE_MBSRTOWCS=0 |
| 9918 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" " |
| 9919 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before |
| 9920 <wchar.h>. |
| 9921 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 9922 included before <wchar.h>. */ |
| 9923 #include <stddef.h> |
| 9924 #include <stdio.h> |
| 9925 #include <time.h> |
| 9926 #include <wchar.h> |
| 9927 |
| 9928 " |
| 9929 if test "x$ac_cv_have_decl_mbsrtowcs" = x""yes; then : |
| 9930 ac_have_decl=1 |
| 9931 else |
| 9932 ac_have_decl=0 |
| 9933 fi |
| 9934 |
| 9935 cat >>confdefs.h <<_ACEOF |
| 9936 #define HAVE_DECL_MBSRTOWCS $ac_have_decl |
| 9937 _ACEOF |
| 9938 |
| 9939 if test $ac_cv_have_decl_mbsrtowcs = yes; then |
| 9940 REPLACE_MBSRTOWCS=1 |
| 9941 fi |
| 9942 else |
| 9943 if test $REPLACE_MBSTATE_T = 1; then |
| 9944 REPLACE_MBSRTOWCS=1 |
| 9945 else |
| 9946 |
| 9947 |
| 9948 |
| 9949 |
| 9950 |
| 9951 |
| 9952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works"
>&5 |
| 9953 $as_echo_n "checking whether mbsrtowcs works... " >&6; } |
| 9954 if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then : |
| 9955 $as_echo_n "(cached) " >&6 |
| 9956 else |
| 9957 |
| 9958 case "$host_os" in |
| 9959 # Guess no on HP-UX, Solaris, mingw. |
| 9960 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;; |
| 9961 # Guess yes otherwise. |
| 9962 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;; |
| 9963 esac |
| 9964 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE
_JA != none || test $LOCALE_ZH_CN != none; then |
| 9965 if test "$cross_compiling" = yes; then : |
| 9966 : |
| 9967 else |
| 9968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9969 /* end confdefs.h. */ |
| 9970 |
| 9971 #include <locale.h> |
| 9972 #include <string.h> |
| 9973 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before |
| 9974 <wchar.h>. |
| 9975 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 9976 included before <wchar.h>. */ |
| 9977 #include <stddef.h> |
| 9978 #include <stdio.h> |
| 9979 #include <time.h> |
| 9980 #include <wchar.h> |
| 9981 int main () |
| 9982 { |
| 9983 int result = 0; |
| 9984 /* Test whether the function supports a NULL destination argument. |
| 9985 This fails on native Windows. */ |
| 9986 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL) |
| 9987 { |
| 9988 const char input[] = "\337er"; |
| 9989 const char *src = input; |
| 9990 mbstate_t state; |
| 9991 |
| 9992 memset (&state, '\0', sizeof (mbstate_t)); |
| 9993 if (mbsrtowcs (NULL, &src, 1, &state) != 3 |
| 9994 || src != input) |
| 9995 result |= 1; |
| 9996 } |
| 9997 /* Test whether the function works when started with a conversion state |
| 9998 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */ |
| 9999 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) |
| 10000 { |
| 10001 const char input[] = "B\303\274\303\237er"; |
| 10002 mbstate_t state; |
| 10003 |
| 10004 memset (&state, '\0', sizeof (mbstate_t)); |
| 10005 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2)) |
| 10006 if (!mbsinit (&state)) |
| 10007 { |
| 10008 const char *src = input + 2; |
| 10009 if (mbsrtowcs (NULL, &src, 10, &state) != 4) |
| 10010 result |= 2; |
| 10011 } |
| 10012 } |
| 10013 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) |
| 10014 { |
| 10015 const char input[] = "<\306\374\313\334\270\354>"; |
| 10016 mbstate_t state; |
| 10017 |
| 10018 memset (&state, '\0', sizeof (mbstate_t)); |
| 10019 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2)) |
| 10020 if (!mbsinit (&state)) |
| 10021 { |
| 10022 const char *src = input + 4; |
| 10023 if (mbsrtowcs (NULL, &src, 10, &state) != 3) |
| 10024 result |= 4; |
| 10025 } |
| 10026 } |
| 10027 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) |
| 10028 { |
| 10029 const char input[] = "B\250\271\201\060\211\070er"; |
| 10030 mbstate_t state; |
| 10031 |
| 10032 memset (&state, '\0', sizeof (mbstate_t)); |
| 10033 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2)) |
| 10034 if (!mbsinit (&state)) |
| 10035 { |
| 10036 const char *src = input + 2; |
| 10037 if (mbsrtowcs (NULL, &src, 10, &state) != 4) |
| 10038 result |= 8; |
| 10039 } |
| 10040 } |
| 10041 return result; |
| 10042 } |
| 10043 _ACEOF |
| 10044 if ac_fn_c_try_run "$LINENO"; then : |
| 10045 gl_cv_func_mbsrtowcs_works=yes |
| 10046 else |
| 10047 gl_cv_func_mbsrtowcs_works=no |
| 10048 fi |
| 10049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10050 conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 10051 fi |
| 10052 |
| 10053 fi |
| 10054 |
| 10055 fi |
| 10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&
5 |
| 10057 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; } |
| 10058 |
| 10059 case "$gl_cv_func_mbsrtowcs_works" in |
| 10060 *yes) ;; |
| 10061 *) REPLACE_MBSRTOWCS=1 ;; |
| 10062 esac |
| 10063 fi |
| 10064 fi |
| 10065 |
| 10066 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then |
| 10067 |
| 10068 |
| 10069 |
| 10070 |
| 10071 |
| 10072 |
| 10073 |
| 10074 |
| 10075 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext" |
| 10076 |
| 10077 |
| 10078 |
| 10079 |
| 10080 |
| 10081 |
| 10082 |
| 10083 |
| 10084 |
| 10085 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext" |
| 10086 |
| 10087 |
| 10088 : |
| 10089 |
| 10090 fi |
| 10091 |
| 10092 |
| 10093 |
| 10094 |
| 10095 |
| 10096 GNULIB_MBSRTOWCS=1 |
| 10097 |
| 10098 |
| 10099 |
| 10100 |
| 10101 |
| 10102 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h |
| 10103 |
| 10104 |
| 10105 |
| 10106 |
| 10107 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then |
| 10108 |
| 10109 |
| 10110 |
| 10111 |
| 10112 |
| 10113 |
| 10114 |
| 10115 |
| 10116 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext" |
| 10117 |
| 10118 |
| 10119 for ac_header in bp-sym.h |
| 10120 do : |
| 10121 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac
_includes_default" |
| 10122 if test "x$ac_cv_header_bp_sym_h" = x""yes; then : |
| 10123 cat >>confdefs.h <<_ACEOF |
| 10124 #define HAVE_BP_SYM_H 1 |
| 10125 _ACEOF |
| 10126 |
| 10127 fi |
| 10128 |
| 10129 done |
| 10130 |
| 10131 |
| 10132 fi |
| 10133 |
| 10134 |
| 10135 |
| 10136 |
| 10137 |
| 10138 GNULIB_MEMCHR=1 |
| 10139 |
| 10140 |
| 10141 |
| 10142 |
| 10143 |
| 10144 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h |
| 10145 |
| 10146 |
| 10147 |
| 10148 |
| 10149 |
| 10150 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then |
| 10151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in li
near time" >&5 |
| 10152 $as_echo_n "checking whether memmem works in linear time... " >&6; } |
| 10153 if test "${gl_cv_func_memmem_works_fast+set}" = set; then : |
| 10154 $as_echo_n "(cached) " >&6 |
| 10155 else |
| 10156 if test "$cross_compiling" = yes; then : |
| 10157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10158 /* end confdefs.h. */ |
| 10159 |
| 10160 #include <features.h> |
| 10161 #ifdef __GNU_LIBRARY__ |
| 10162 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \ |
| 10163 && !defined __UCLIBC__ |
| 10164 Lucky user |
| 10165 #endif |
| 10166 #endif |
| 10167 #ifdef __CYGWIN__ |
| 10168 #include <cygwin/version.h> |
| 10169 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0) |
| 10170 Lucky user |
| 10171 #endif |
| 10172 #endif |
| 10173 |
| 10174 _ACEOF |
| 10175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 10176 $EGREP "Lucky user" >/dev/null 2>&1; then : |
| 10177 gl_cv_func_memmem_works_fast="guessing yes" |
| 10178 else |
| 10179 gl_cv_func_memmem_works_fast="guessing no" |
| 10180 fi |
| 10181 rm -f conftest* |
| 10182 |
| 10183 |
| 10184 else |
| 10185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10186 /* end confdefs.h. */ |
| 10187 |
| 10188 #include <signal.h> /* for signal */ |
| 10189 #include <string.h> /* for memmem */ |
| 10190 #include <stdlib.h> /* for malloc */ |
| 10191 #include <unistd.h> /* for alarm */ |
| 10192 static void quit (int sig) { exit (sig + 128); } |
| 10193 |
12290 int | 10194 int |
12291 main () | 10195 main () |
12292 { | 10196 { |
12293 char *p = (char *) alloca (2 * sizeof (int)); | 10197 |
12294 » » » if (p) return 0; | 10198 int result = 0; |
| 10199 size_t m = 1000000; |
| 10200 char *haystack = (char *) malloc (2 * m + 1); |
| 10201 char *needle = (char *) malloc (m + 1); |
| 10202 /* Failure to compile this test due to missing alarm is okay, |
| 10203 since all such platforms (mingw) also lack memmem. */ |
| 10204 signal (SIGALRM, quit); |
| 10205 alarm (5); |
| 10206 /* Check for quadratic performance. */ |
| 10207 if (haystack && needle) |
| 10208 { |
| 10209 memset (haystack, 'A', 2 * m); |
| 10210 haystack[2 * m] = 'B'; |
| 10211 memset (needle, 'A', m); |
| 10212 needle[m] = 'B'; |
| 10213 if (!memmem (haystack, 2 * m + 1, needle, m + 1)) |
| 10214 result |= 1; |
| 10215 } |
| 10216 return result; |
| 10217 |
12295 ; | 10218 ; |
12296 return 0; | 10219 return 0; |
12297 } | 10220 } |
12298 _ACEOF | 10221 _ACEOF |
12299 if ac_fn_c_try_link "$LINENO"; then : | 10222 if ac_fn_c_try_run "$LINENO"; then : |
12300 ac_cv_working_alloca_h=yes | 10223 gl_cv_func_memmem_works_fast=yes |
12301 else | 10224 else |
12302 ac_cv_working_alloca_h=no | 10225 gl_cv_func_memmem_works_fast=no |
12303 fi | 10226 fi |
12304 rm -f core conftest.err conftest.$ac_objext \ | 10227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
12305 conftest$ac_exeext conftest.$ac_ext | 10228 conftest.$ac_objext conftest.beam conftest.$ac_ext |
12306 fi | 10229 fi |
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 | 10230 |
12308 $as_echo "$ac_cv_working_alloca_h" >&6; } | 10231 |
12309 if test $ac_cv_working_alloca_h = yes; then | 10232 fi |
12310 | 10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast"
>&5 |
12311 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h | 10234 $as_echo "$gl_cv_func_memmem_works_fast" >&6; } |
12312 | 10235 case "$gl_cv_func_memmem_works_fast" in |
12313 fi | 10236 *yes) ;; |
12314 | 10237 *) |
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 | 10238 REPLACE_MEMMEM=1 |
12316 $as_echo_n "checking for alloca... " >&6; } | 10239 ;; |
12317 if test "${ac_cv_func_alloca_works+set}" = set; then : | 10240 esac |
| 10241 fi |
| 10242 |
| 10243 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then |
| 10244 |
| 10245 |
| 10246 |
| 10247 |
| 10248 |
| 10249 |
| 10250 |
| 10251 |
| 10252 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext" |
| 10253 |
| 10254 fi |
| 10255 |
| 10256 |
| 10257 |
| 10258 |
| 10259 for ac_func in memmem |
| 10260 do : |
| 10261 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem" |
| 10262 if test "x$ac_cv_func_memmem" = x""yes; then : |
| 10263 cat >>confdefs.h <<_ACEOF |
| 10264 #define HAVE_MEMMEM 1 |
| 10265 _ACEOF |
| 10266 |
| 10267 fi |
| 10268 done |
| 10269 |
| 10270 if test $ac_cv_func_memmem = yes; then |
| 10271 HAVE_MEMMEM=1 |
| 10272 else |
| 10273 HAVE_MEMMEM=0 |
| 10274 fi |
| 10275 |
| 10276 : |
| 10277 |
| 10278 |
| 10279 |
| 10280 |
| 10281 |
| 10282 if test $ac_cv_have_decl_memmem = no; then |
| 10283 HAVE_DECL_MEMMEM=0 |
| 10284 else |
| 10285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem wor
ks" >&5 |
| 10286 $as_echo_n "checking whether memmem works... " >&6; } |
| 10287 if test "${gl_cv_func_memmem_works_always+set}" = set; then : |
12318 $as_echo_n "(cached) " >&6 | 10288 $as_echo_n "(cached) " >&6 |
12319 else | 10289 else |
| 10290 if test "$cross_compiling" = yes; then : |
| 10291 cat confdefs.h - <<_ACEOF >conftest.$ac_ex
t |
| 10292 /* end confdefs.h. */ |
| 10293 |
| 10294 #ifdef __GNU_LIBRARY__ |
| 10295 #include <features.h> |
| 10296 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \ |
| 10297 || __GLIBC_MINOR__ > 12)) \ |
| 10298 || (__GLIBC__ > 2)) \ |
| 10299 || defined __UCLIBC__ |
| 10300 Lucky user |
| 10301 #endif |
| 10302 #elif defined __CYGWIN__ |
| 10303 #include <cygwin/version.h> |
| 10304 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7) |
| 10305 Lucky user |
| 10306 #endif |
| 10307 #else |
| 10308 Lucky user |
| 10309 #endif |
| 10310 |
| 10311 _ACEOF |
| 10312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 10313 $EGREP "Lucky user" >/dev/null 2>&1; then : |
| 10314 gl_cv_func_memmem_works_always="guessing yes" |
| 10315 else |
| 10316 gl_cv_func_memmem_works_always="guessing no" |
| 10317 fi |
| 10318 rm -f conftest* |
| 10319 |
| 10320 |
| 10321 else |
12320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 10322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12321 /* end confdefs.h. */ | 10323 /* end confdefs.h. */ |
12322 #ifdef __GNUC__ | 10324 |
12323 # define alloca __builtin_alloca | 10325 #include <string.h> /* for memmem */ |
12324 #else | 10326 #define P "_EF_BF_BD" |
12325 # ifdef _MSC_VER | 10327 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P |
12326 # include <malloc.h> | 10328 #define NEEDLE P P P P P |
12327 # define alloca _alloca | |
12328 # else | |
12329 # ifdef HAVE_ALLOCA_H | |
12330 # include <alloca.h> | |
12331 # else | |
12332 # ifdef _AIX | |
12333 #pragma alloca | |
12334 # else | |
12335 # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
12336 char *alloca (); | |
12337 # endif | |
12338 # endif | |
12339 # endif | |
12340 # endif | |
12341 #endif | |
12342 | 10329 |
12343 int | 10330 int |
12344 main () | 10331 main () |
12345 { | 10332 { |
12346 char *p = (char *) alloca (1); | 10333 |
12347 » » » » if (p) return 0; | 10334 int result = 0; |
| 10335 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE))) |
| 10336 result |= 1; |
| 10337 /* Check for empty needle behavior. */ |
| 10338 { |
| 10339 const char *haystack = "AAA"; |
| 10340 if (memmem (haystack, 3, NULL, 0) != haystack) |
| 10341 result |= 2; |
| 10342 } |
| 10343 return result; |
| 10344 |
12348 ; | 10345 ; |
12349 return 0; | 10346 return 0; |
12350 } | 10347 } |
12351 _ACEOF | 10348 _ACEOF |
12352 if ac_fn_c_try_link "$LINENO"; then : | 10349 if ac_fn_c_try_run "$LINENO"; then : |
12353 ac_cv_func_alloca_works=yes | 10350 gl_cv_func_memmem_works_always=yes |
12354 else | 10351 else |
12355 ac_cv_func_alloca_works=no | 10352 gl_cv_func_memmem_works_always=no |
12356 fi | 10353 fi |
12357 rm -f core conftest.err conftest.$ac_objext \ | 10354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
12358 conftest$ac_exeext conftest.$ac_ext | 10355 conftest.$ac_objext conftest.beam conftest.$ac_ext |
12359 fi | 10356 fi |
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 | 10357 |
12361 $as_echo "$ac_cv_func_alloca_works" >&6; } | 10358 |
12362 | 10359 fi |
12363 if test $ac_cv_func_alloca_works = yes; then | 10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always
" >&5 |
12364 | 10361 $as_echo "$gl_cv_func_memmem_works_always" >&6; } |
12365 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h | 10362 case "$gl_cv_func_memmem_works_always" in |
12366 | 10363 *yes) ;; |
12367 else | 10364 *) |
12368 # The SVR3 libPW and SVR4 libucb both contain incompatible functions | 10365 REPLACE_MEMMEM=1 |
12369 # that cause trouble. Some versions do not even contain alloca or | 10366 ;; |
12370 # contain a buggy version. If you still want to use their alloca, | 10367 esac |
12371 # use ar to extract alloca.o from them instead of compiling alloca.c. | 10368 fi |
12372 | 10369 : |
12373 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext | 10370 |
12374 | 10371 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then |
12375 $as_echo "#define C_ALLOCA 1" >>confdefs.h | 10372 |
12376 | 10373 |
12377 | 10374 |
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray
hooks" >&5 | 10375 |
12379 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | 10376 |
12380 if test "${ac_cv_os_cray+set}" = set; then : | 10377 |
| 10378 |
| 10379 |
| 10380 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext" |
| 10381 |
| 10382 fi |
| 10383 |
| 10384 |
| 10385 |
| 10386 |
| 10387 |
| 10388 GNULIB_MEMMEM=1 |
| 10389 |
| 10390 |
| 10391 |
| 10392 |
| 10393 |
| 10394 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h |
| 10395 |
| 10396 |
| 10397 |
| 10398 |
| 10399 |
| 10400 |
| 10401 |
| 10402 # Define two additional variables used in the Makefile substitution. |
| 10403 |
| 10404 if test "$ac_cv_header_stdbool_h" = yes; then |
| 10405 STDBOOL_H='' |
| 10406 else |
| 10407 STDBOOL_H='stdbool.h' |
| 10408 fi |
| 10409 |
| 10410 if test -n "$STDBOOL_H"; then |
| 10411 GL_GENERATE_STDBOOL_H_TRUE= |
| 10412 GL_GENERATE_STDBOOL_H_FALSE='#' |
| 10413 else |
| 10414 GL_GENERATE_STDBOOL_H_TRUE='#' |
| 10415 GL_GENERATE_STDBOOL_H_FALSE= |
| 10416 fi |
| 10417 |
| 10418 |
| 10419 if test "$ac_cv_type__Bool" = yes; then |
| 10420 HAVE__BOOL=1 |
| 10421 else |
| 10422 HAVE__BOOL=0 |
| 10423 fi |
| 10424 |
| 10425 |
| 10426 |
| 10427 |
| 10428 |
| 10429 STDDEF_H= |
| 10430 if test $gt_cv_c_wchar_t = no; then |
| 10431 HAVE_WCHAR_T=0 |
| 10432 STDDEF_H=stddef.h |
| 10433 fi |
| 10434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in
arbitrary expressions" >&5 |
| 10435 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6;
} |
| 10436 if test "${gl_cv_decl_null_works+set}" = set; then : |
12381 $as_echo_n "(cached) " >&6 | 10437 $as_echo_n "(cached) " >&6 |
12382 else | 10438 else |
12383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 10439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12384 /* end confdefs.h. */ | 10440 /* end confdefs.h. */ |
12385 #if defined CRAY && ! defined CRAY2 | 10441 #include <stddef.h> |
12386 webecray | 10442 int test[2 * (sizeof NULL == sizeof (void *)) -1]; |
12387 #else | |
12388 wenotbecray | |
12389 #endif | |
12390 | |
12391 _ACEOF | |
12392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12393 $EGREP "webecray" >/dev/null 2>&1; then : | |
12394 ac_cv_os_cray=yes | |
12395 else | |
12396 ac_cv_os_cray=no | |
12397 fi | |
12398 rm -f conftest* | |
12399 | |
12400 fi | |
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 | |
12402 $as_echo "$ac_cv_os_cray" >&6; } | |
12403 if test $ac_cv_os_cray = yes; then | |
12404 for ac_func in _getb67 GETB67 getb67; do | |
12405 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
12406 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
12407 eval as_val=\$$as_ac_var | |
12408 if test "x$as_val" = x""yes; then : | |
12409 | |
12410 cat >>confdefs.h <<_ACEOF | |
12411 #define CRAY_STACKSEG_END $ac_func | |
12412 _ACEOF | |
12413 | |
12414 break | |
12415 fi | |
12416 | |
12417 done | |
12418 fi | |
12419 | |
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca"
>&5 | |
12421 $as_echo_n "checking stack direction for C alloca... " >&6; } | |
12422 if test "${ac_cv_c_stack_direction+set}" = set; then : | |
12423 $as_echo_n "(cached) " >&6 | |
12424 else | |
12425 if test "$cross_compiling" = yes; then : | |
12426 ac_cv_c_stack_direction=0 | |
12427 else | |
12428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12429 /* end confdefs.h. */ | |
12430 $ac_includes_default | |
12431 int | |
12432 find_stack_direction () | |
12433 { | |
12434 static char *addr = 0; | |
12435 auto char dummy; | |
12436 if (addr == 0) | |
12437 { | |
12438 addr = &dummy; | |
12439 return find_stack_direction (); | |
12440 } | |
12441 else | |
12442 return (&dummy > addr) ? 1 : -1; | |
12443 } | |
12444 | 10443 |
12445 int | 10444 int |
12446 main () | 10445 main () |
12447 { | 10446 { |
12448 return find_stack_direction () < 0; | 10447 |
| 10448 ; |
| 10449 return 0; |
12449 } | 10450 } |
12450 _ACEOF | 10451 _ACEOF |
12451 if ac_fn_c_try_run "$LINENO"; then : | 10452 if ac_fn_c_try_compile "$LINENO"; then : |
12452 ac_cv_c_stack_direction=1 | 10453 gl_cv_decl_null_works=yes |
12453 else | 10454 else |
12454 ac_cv_c_stack_direction=-1 | 10455 gl_cv_decl_null_works=no |
12455 fi | 10456 fi |
12456 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 10457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12457 conftest.$ac_objext conftest.beam conftest.$ac_ext | 10458 fi |
12458 fi | 10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5 |
12459 | 10460 $as_echo "$gl_cv_decl_null_works" >&6; } |
12460 fi | 10461 if test $gl_cv_decl_null_works = no; then |
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 | 10462 REPLACE_NULL=1 |
12462 $as_echo "$ac_cv_c_stack_direction" >&6; } | 10463 STDDEF_H=stddef.h |
12463 cat >>confdefs.h <<_ACEOF | 10464 fi |
12464 #define STACK_DIRECTION $ac_cv_c_stack_direction | 10465 |
12465 _ACEOF | 10466 if test -n "$STDDEF_H"; then |
12466 | 10467 GL_GENERATE_STDDEF_H_TRUE= |
12467 | 10468 GL_GENERATE_STDDEF_H_FALSE='#' |
12468 fi | 10469 else |
12469 | 10470 GL_GENERATE_STDDEF_H_TRUE='#' |
12470 for ac_header in stdlib.h unistd.h | 10471 GL_GENERATE_STDDEF_H_FALSE= |
12471 do : | 10472 fi |
12472 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 10473 |
12473 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_include
s_default" | 10474 if test -n "$STDDEF_H"; then |
12474 eval as_val=\$$as_ac_Header | 10475 |
12475 if test "x$as_val" = x""yes; then : | 10476 |
12476 cat >>confdefs.h <<_ACEOF | 10477 |
12477 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 10478 |
12478 _ACEOF | 10479 |
12479 | 10480 |
12480 fi | 10481 |
12481 | 10482 |
12482 done | 10483 if test $gl_cv_have_include_next = yes; then |
12483 | 10484 gl_cv_next_stddef_h='<'stddef.h'>' |
12484 for ac_func in getpagesize | 10485 else |
12485 do : | 10486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdde
f.h>" >&5 |
12486 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" | 10487 $as_echo_n "checking absolute name of <stddef.h>... " >&6; } |
12487 if test "x$ac_cv_func_getpagesize" = x""yes; then : | 10488 if test "${gl_cv_next_stddef_h+set}" = set; then : |
12488 cat >>confdefs.h <<_ACEOF | |
12489 #define HAVE_GETPAGESIZE 1 | |
12490 _ACEOF | |
12491 | |
12492 fi | |
12493 done | |
12494 | |
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 | |
12496 $as_echo_n "checking for working mmap... " >&6; } | |
12497 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : | |
12498 $as_echo_n "(cached) " >&6 | 10489 $as_echo_n "(cached) " >&6 |
12499 else | 10490 else |
12500 if test "$cross_compiling" = yes; then : | 10491 |
12501 ac_cv_func_mmap_fixed_mapped=no | 10492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10493 /* end confdefs.h. */ |
| 10494 #include <stddef.h> |
| 10495 |
| 10496 _ACEOF |
| 10497
case "$host_os" in |
| 10498 aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 10499 *) gl_absname_cpp="$ac_cpp" ;; |
| 10500 esac |
| 10501 |
| 10502 case "$host_os" in |
| 10503 mingw*) |
| 10504
gl_dirsep_regex='[/\\]' |
| 10505 ;; |
| 10506 *) |
| 10507 gl_dirsep_regex='\/' |
| 10508 ;; |
| 10509 esac |
| 10510 gl_make_literal_regex_sed='s,[]$^\\
.*/[],\\&,g' |
| 10511 |
| 10512 gl_header_literal_regex=`echo 'stddef.h' \ |
| 10513 | sed -e "$gl_make_literal_regex_sed"` |
| 10514 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_re
gex}/"'{ |
| 10515 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".
*/\1/ |
| 10516 s|^/[^/]|//&| |
| 10517 p |
| 10518 q |
| 10519 }' |
| 10520 gl_cv_next_stddef_h=
'"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 10521 sed -n "$gl_absolute_header_sed"`'"' |
| 10522 |
| 10523 |
| 10524 fi |
| 10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5 |
| 10526 $as_echo "$gl_cv_next_stddef_h" >&6; } |
| 10527 fi |
| 10528 NEXT_STDDEF_H=$gl_cv_next_stddef_h |
| 10529 |
| 10530 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = b
uggy; then |
| 10531 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 10532 gl_next_as_first_directive='<'stddef.h'>' |
| 10533 else |
| 10534 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 10535 gl_next_as_first_directive=$gl_cv_next_stddef_h |
| 10536 fi |
| 10537 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive |
| 10538 |
| 10539 |
| 10540 |
| 10541 |
| 10542 fi |
| 10543 |
| 10544 |
| 10545 |
| 10546 |
| 10547 |
| 10548 |
| 10549 |
| 10550 |
| 10551 |
| 10552 |
| 10553 |
| 10554 |
| 10555 |
| 10556 |
| 10557 : |
| 10558 |
| 10559 |
| 10560 |
| 10561 |
| 10562 |
| 10563 |
| 10564 |
| 10565 |
| 10566 if test $gl_cv_have_include_next = yes; then |
| 10567 gl_cv_next_wchar_h='<'wchar.h'>' |
| 10568 else |
| 10569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar
.h>" >&5 |
| 10570 $as_echo_n "checking absolute name of <wchar.h>... " >&6; } |
| 10571 if test "${gl_cv_next_wchar_h+set}" = set; then : |
| 10572 $as_echo_n "(cached) " >&6 |
| 10573 else |
| 10574 |
| 10575 if test $ac_cv_header_wchar_h = yes; then |
| 10576 |
| 10577 |
| 10578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10579 /* end confdefs.h. */ |
| 10580 #include <wchar.h> |
| 10581 |
| 10582 _ACEOF |
| 10583
case "$host_os" in |
| 10584 aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 10585 *) gl_absname_cpp="$ac_cpp" ;; |
| 10586 esac |
| 10587 |
| 10588 case "$host_os" in |
| 10589 mingw*) |
| 10590
gl_dirsep_regex='[/\\]' |
| 10591 ;; |
| 10592 *) |
| 10593 gl_dirsep_regex='\/' |
| 10594 ;; |
| 10595 esac |
| 10596 gl_make_literal_regex_sed='s,[]$^\\
.*/[],\\&,g' |
| 10597 |
| 10598 gl_header_literal_regex=`echo 'wchar.h' \ |
| 10599 | sed -e "$gl_make_literal_regex_sed"` |
| 10600 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_re
gex}/"'{ |
| 10601 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".
*/\1/ |
| 10602 s|^/[^/]|//&| |
| 10603 p |
| 10604 q |
| 10605 }' |
| 10606 gl_cv_next_wchar_h='
"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 10607 sed -n "$gl_absolute_header_sed"`'"' |
| 10608 else |
| 10609 gl_cv_next_wchar_h='<'wchar.h'>' |
| 10610 fi |
| 10611 |
| 10612 |
| 10613 fi |
| 10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5 |
| 10615 $as_echo "$gl_cv_next_wchar_h" >&6; } |
| 10616 fi |
| 10617 NEXT_WCHAR_H=$gl_cv_next_wchar_h |
| 10618 |
| 10619 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = b
uggy; then |
| 10620 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 10621 gl_next_as_first_directive='<'wchar.h'>' |
| 10622 else |
| 10623 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 10624 gl_next_as_first_directive=$gl_cv_next_wchar_h |
| 10625 fi |
| 10626 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive |
| 10627 |
| 10628 |
| 10629 |
| 10630 |
| 10631 if test $ac_cv_header_wchar_h = yes; then |
| 10632 HAVE_WCHAR_H=1 |
| 10633 else |
| 10634 HAVE_WCHAR_H=0 |
| 10635 fi |
| 10636 |
| 10637 |
| 10638 |
| 10639 |
| 10640 |
| 10641 if test $gt_cv_c_wint_t = yes; then |
| 10642 HAVE_WINT_T=1 |
| 10643 else |
| 10644 HAVE_WINT_T=0 |
| 10645 fi |
| 10646 |
| 10647 |
| 10648 |
| 10649 for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrto
mb wcsrtombs wcsnrtombs wcwidth wmemchr wmemcmp wmemcpy wmemmove wmemset
wcslen wcsnlen wcscpy wcpcpy wcsncpy wcpncpy wcscat wcsncat wcscmp wcsnc
mp wcscasecmp wcsncasecmp wcscoll wcsxfrm wcsdup wcschr wcsrchr wcscspn wcs
spn wcspbrk wcsstr wcstok wcswidth ; do |
| 10650 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` |
| 10651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declar
ed without a macro" >&5 |
| 10652 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } |
| 10653 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 10654 $as_echo_n "(cached) " >&6 |
12502 else | 10655 else |
12503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 10656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12504 /* end confdefs.h. */ | 10657 /* end confdefs.h. */ |
12505 $ac_includes_default | 10658 |
12506 /* malloc might have been renamed as rpl_malloc. */ | 10659 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before |
12507 #undef malloc | 10660 <wchar.h>. |
12508 | 10661 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
12509 /* Thanks to Mike Haertel and Jim Avera for this test. | 10662 included before <wchar.h>. */ |
12510 Here is a matrix of mmap possibilities: | 10663 #if !(defined __GLIBC__ && !defined __UCLIBC__) |
12511 » mmap private not fixed | 10664 # include <stddef.h> |
12512 » mmap private fixed at somewhere currently unmapped | 10665 # include <stdio.h> |
12513 » mmap private fixed at somewhere already mapped | 10666 # include <time.h> |
12514 » mmap shared not fixed | |
12515 » mmap shared fixed at somewhere currently unmapped | |
12516 » mmap shared fixed at somewhere already mapped | |
12517 For private mappings, we should verify that changes cannot be read() | |
12518 back from the file, nor mmap's back from the file at a different | |
12519 address. (There have been systems where private was not correctly | |
12520 implemented like the infamous i386 svr4.0, and systems where the | |
12521 VM page cache was not coherent with the file system buffer cache | |
12522 like early versions of FreeBSD and possibly contemporary NetBSD.) | |
12523 For shared mappings, we should conversely verify that changes get | |
12524 propagated back to all the places they're supposed to be. | |
12525 | |
12526 Grep wants private fixed already mapped. | |
12527 The main things grep needs to know about mmap are: | |
12528 * does it exist and is it safe to write into the mmap'd area | |
12529 * how to use it (BSD variants) */ | |
12530 | |
12531 #include <fcntl.h> | |
12532 #include <sys/mman.h> | |
12533 | |
12534 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H | |
12535 char *malloc (); | |
12536 #endif | 10667 #endif |
12537 | 10668 #include <wchar.h> |
12538 /* This mess was copied from the GNU getpagesize.h. */ | |
12539 #ifndef HAVE_GETPAGESIZE | |
12540 /* Assume that all systems that can run configure have sys/param.h. */ | |
12541 # ifndef HAVE_SYS_PARAM_H | |
12542 # define HAVE_SYS_PARAM_H 1 | |
12543 # endif | |
12544 | |
12545 # ifdef _SC_PAGESIZE | |
12546 # define getpagesize() sysconf(_SC_PAGESIZE) | |
12547 # else /* no _SC_PAGESIZE */ | |
12548 # ifdef HAVE_SYS_PARAM_H | |
12549 # include <sys/param.h> | |
12550 # ifdef EXEC_PAGESIZE | |
12551 # define getpagesize() EXEC_PAGESIZE | |
12552 # else /* no EXEC_PAGESIZE */ | |
12553 # ifdef NBPG | |
12554 # define getpagesize() NBPG * CLSIZE | |
12555 # ifndef CLSIZE | |
12556 # define CLSIZE 1 | |
12557 # endif /* no CLSIZE */ | |
12558 # else /* no NBPG */ | |
12559 # ifdef NBPC | |
12560 # define getpagesize() NBPC | |
12561 # else /* no NBPC */ | |
12562 # ifdef PAGESIZE | |
12563 # define getpagesize() PAGESIZE | |
12564 # endif /* PAGESIZE */ | |
12565 # endif /* no NBPC */ | |
12566 # endif /* no NBPG */ | |
12567 # endif /* no EXEC_PAGESIZE */ | |
12568 # else /* no HAVE_SYS_PARAM_H */ | |
12569 # define getpagesize() 8192» /* punt totally */ | |
12570 # endif /* no HAVE_SYS_PARAM_H */ | |
12571 # endif /* no _SC_PAGESIZE */ | |
12572 | |
12573 #endif /* no HAVE_GETPAGESIZE */ | |
12574 | 10669 |
12575 int | 10670 int |
12576 main () | 10671 main () |
12577 { | 10672 { |
12578 char *data, *data2, *data3; | 10673 #undef $gl_func |
12579 int i, pagesize; | 10674 (void) $gl_func; |
12580 int fd; | 10675 ; |
12581 | |
12582 pagesize = getpagesize (); | |
12583 | |
12584 /* First, make a file with some known garbage in it. */ | |
12585 data = (char *) malloc (pagesize); | |
12586 if (!data) | |
12587 return 1; | |
12588 for (i = 0; i < pagesize; ++i) | |
12589 *(data + i) = rand (); | |
12590 umask (0); | |
12591 fd = creat ("conftest.mmap", 0600); | |
12592 if (fd < 0) | |
12593 return 1; | |
12594 if (write (fd, data, pagesize) != pagesize) | |
12595 return 1; | |
12596 close (fd); | |
12597 | |
12598 /* Next, try to mmap the file at a fixed address which already has | |
12599 something else allocated at it. If we can, also make sure that | |
12600 we see the same garbage. */ | |
12601 fd = open ("conftest.mmap", O_RDWR); | |
12602 if (fd < 0) | |
12603 return 1; | |
12604 data2 = (char *) malloc (2 * pagesize); | |
12605 if (!data2) | |
12606 return 1; | |
12607 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
12608 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
12609 » » MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
12610 return 1; | |
12611 for (i = 0; i < pagesize; ++i) | |
12612 if (*(data + i) != *(data2 + i)) | |
12613 return 1; | |
12614 | |
12615 /* Finally, make sure that changes to the mapped area do not | |
12616 percolate back to the file as seen by read(). (This is a bug on | |
12617 some variants of i386 svr4.0.) */ | |
12618 for (i = 0; i < pagesize; ++i) | |
12619 *(data2 + i) = *(data2 + i) + 1; | |
12620 data3 = (char *) malloc (pagesize); | |
12621 if (!data3) | |
12622 return 1; | |
12623 if (read (fd, data3, pagesize) != pagesize) | |
12624 return 1; | |
12625 for (i = 0; i < pagesize; ++i) | |
12626 if (*(data + i) != *(data3 + i)) | |
12627 return 1; | |
12628 close (fd); | |
12629 return 0; | 10676 return 0; |
12630 } | 10677 } |
12631 _ACEOF | 10678 _ACEOF |
12632 if ac_fn_c_try_run "$LINENO"; then : | 10679 if ac_fn_c_try_compile "$LINENO"; then : |
12633 ac_cv_func_mmap_fixed_mapped=yes | 10680 eval "$as_gl_Symbol=yes" |
12634 else | 10681 else |
12635 ac_cv_func_mmap_fixed_mapped=no | 10682 eval "$as_gl_Symbol=no" |
12636 fi | 10683 fi |
12637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 10684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12638 conftest.$ac_objext conftest.beam conftest.$ac_ext | 10685 fi |
12639 fi | 10686 eval ac_res=\$$as_gl_Symbol |
12640 | 10687 » { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
12641 fi | 10688 $as_echo "$ac_res" >&6; } |
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped"
>&5 | 10689 eval as_val=\$$as_gl_Symbol |
12643 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
12644 if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
12645 | |
12646 $as_echo "#define HAVE_MMAP 1" >>confdefs.h | |
12647 | |
12648 fi | |
12649 rm -f conftest.mmap | |
12650 | |
12651 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" | |
12652 if test "x$ac_cv_type_pid_t" = x""yes; then : | |
12653 | |
12654 else | |
12655 | |
12656 cat >>confdefs.h <<_ACEOF | |
12657 #define pid_t int | |
12658 _ACEOF | |
12659 | |
12660 fi | |
12661 | |
12662 for ac_header in vfork.h | |
12663 do : | |
12664 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_i
ncludes_default" | |
12665 if test "x$ac_cv_header_vfork_h" = x""yes; then : | |
12666 cat >>confdefs.h <<_ACEOF | |
12667 #define HAVE_VFORK_H 1 | |
12668 _ACEOF | |
12669 | |
12670 fi | |
12671 | |
12672 done | |
12673 | |
12674 for ac_func in fork vfork | |
12675 do : | |
12676 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
12677 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
12678 eval as_val=\$$as_ac_var | |
12679 if test "x$as_val" = x""yes; then : | 10690 if test "x$as_val" = x""yes; then : |
12680 cat >>confdefs.h <<_ACEOF | 10691 cat >>confdefs.h <<_ACEOF |
12681 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 10692 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 |
12682 _ACEOF | 10693 _ACEOF |
12683 | 10694 |
12684 fi | 10695 eval ac_cv_have_decl_$gl_func=yes |
12685 done | 10696 fi |
12686 | 10697 done |
12687 if test "x$ac_cv_func_fork" = xyes; then | 10698 |
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 | 10699 |
12689 $as_echo_n "checking for working fork... " >&6; } | 10700 |
12690 if test "${ac_cv_func_fork_works+set}" = set; then : | 10701 |
| 10702 |
| 10703 |
| 10704 |
| 10705 : |
| 10706 |
| 10707 |
| 10708 |
| 10709 |
| 10710 |
| 10711 if test $ac_cv_func_iswcntrl = yes; then |
| 10712 HAVE_ISWCNTRL=1 |
| 10713 else |
| 10714 HAVE_ISWCNTRL=0 |
| 10715 fi |
| 10716 |
| 10717 |
| 10718 |
| 10719 |
| 10720 |
| 10721 if test $gt_cv_c_wint_t = yes; then |
| 10722 HAVE_WINT_T=1 |
| 10723 else |
| 10724 HAVE_WINT_T=0 |
| 10725 fi |
| 10726 |
| 10727 |
| 10728 |
| 10729 |
| 10730 |
| 10731 |
| 10732 |
| 10733 |
| 10734 : |
| 10735 |
| 10736 |
| 10737 |
| 10738 |
| 10739 |
| 10740 |
| 10741 |
| 10742 |
| 10743 if test $gl_cv_have_include_next = yes; then |
| 10744 gl_cv_next_wctype_h='<'wctype.h'>' |
| 10745 else |
| 10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctyp
e.h>" >&5 |
| 10747 $as_echo_n "checking absolute name of <wctype.h>... " >&6; } |
| 10748 if test "${gl_cv_next_wctype_h+set}" = set; then : |
12691 $as_echo_n "(cached) " >&6 | 10749 $as_echo_n "(cached) " >&6 |
12692 else | 10750 else |
12693 if test "$cross_compiling" = yes; then : | 10751 |
12694 ac_cv_func_fork_works=cross | 10752 if test $ac_cv_header_wctype_h = yes; then |
12695 else | 10753 |
| 10754 |
| 10755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10756 /* end confdefs.h. */ |
| 10757 #include <wctype.h> |
| 10758 |
| 10759 _ACEOF |
| 10760
case "$host_os" in |
| 10761 aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 10762 *) gl_absname_cpp="$ac_cpp" ;; |
| 10763 esac |
| 10764 |
| 10765 case "$host_os" in |
| 10766 mingw*) |
| 10767
gl_dirsep_regex='[/\\]' |
| 10768 ;; |
| 10769 *) |
| 10770 gl_dirsep_regex='\/' |
| 10771 ;; |
| 10772 esac |
| 10773 gl_make_literal_regex_sed='s,[]$^\\
.*/[],\\&,g' |
| 10774 |
| 10775 gl_header_literal_regex=`echo 'wctype.h' \ |
| 10776 | sed -e "$gl_make_literal_regex_sed"` |
| 10777 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_re
gex}/"'{ |
| 10778 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".
*/\1/ |
| 10779 s|^/[^/]|//&| |
| 10780 p |
| 10781 q |
| 10782 }' |
| 10783 gl_cv_next_wctype_h=
'"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 10784 sed -n "$gl_absolute_header_sed"`'"' |
| 10785 else |
| 10786 gl_cv_next_wctype_h='<'wctype.h'>' |
| 10787 fi |
| 10788 |
| 10789 |
| 10790 fi |
| 10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5 |
| 10792 $as_echo "$gl_cv_next_wctype_h" >&6; } |
| 10793 fi |
| 10794 NEXT_WCTYPE_H=$gl_cv_next_wctype_h |
| 10795 |
| 10796 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = b
uggy; then |
| 10797 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 10798 gl_next_as_first_directive='<'wctype.h'>' |
| 10799 else |
| 10800 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 10801 gl_next_as_first_directive=$gl_cv_next_wctype_h |
| 10802 fi |
| 10803 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive |
| 10804 |
| 10805 |
| 10806 |
| 10807 |
| 10808 if test $ac_cv_header_wctype_h = yes; then |
| 10809 if test $ac_cv_func_iswcntrl = yes; then |
| 10810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswc
ntrl works" >&5 |
| 10811 $as_echo_n "checking whether iswcntrl works... " >&6; } |
| 10812 if test "${gl_cv_func_iswcntrl_works+set}" = set; then : |
| 10813 $as_echo_n "(cached) " >&6 |
| 10814 else |
| 10815 |
| 10816 if test "$cross_compiling" = yes; then : |
12696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 10817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12697 /* end confdefs.h. */ | 10818 /* end confdefs.h. */ |
12698 $ac_includes_default | 10819 #include <stdlib.h> |
| 10820 #if __GNU_LIBRARY__ == 1 |
| 10821 Linux libc5 i18n is broken. |
| 10822 #endif |
12699 int | 10823 int |
12700 main () | 10824 main () |
12701 { | 10825 { |
12702 | |
12703 /* By Ruediger Kuhlmann. */ | |
12704 return fork () < 0; | |
12705 | |
12706 ; | |
12707 return 0; | |
12708 } | |
12709 _ACEOF | |
12710 if ac_fn_c_try_run "$LINENO"; then : | |
12711 ac_cv_func_fork_works=yes | |
12712 else | |
12713 ac_cv_func_fork_works=no | |
12714 fi | |
12715 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
12716 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
12717 fi | |
12718 | |
12719 fi | |
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 | |
12721 $as_echo "$ac_cv_func_fork_works" >&6; } | |
12722 | |
12723 else | |
12724 ac_cv_func_fork_works=$ac_cv_func_fork | |
12725 fi | |
12726 if test "x$ac_cv_func_fork_works" = xcross; then | |
12727 case $host in | |
12728 *-*-amigaos* | *-*-msdosdjgpp*) | |
12729 # Override, as these systems have only a dummy fork() stub | |
12730 ac_cv_func_fork_works=no | |
12731 ;; | |
12732 *) | |
12733 ac_cv_func_fork_works=yes | |
12734 ;; | |
12735 esac | |
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_work
s guessed because of cross compilation" >&5 | |
12737 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cros
s compilation" >&2;} | |
12738 fi | |
12739 ac_cv_func_vfork_works=$ac_cv_func_vfork | |
12740 if test "x$ac_cv_func_vfork" = xyes; then | |
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 | |
12742 $as_echo_n "checking for working vfork... " >&6; } | |
12743 if test "${ac_cv_func_vfork_works+set}" = set; then : | |
12744 $as_echo_n "(cached) " >&6 | |
12745 else | |
12746 if test "$cross_compiling" = yes; then : | |
12747 ac_cv_func_vfork_works=cross | |
12748 else | |
12749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12750 /* end confdefs.h. */ | |
12751 /* Thanks to Paul Eggert for this test. */ | |
12752 $ac_includes_default | |
12753 #include <sys/wait.h> | |
12754 #ifdef HAVE_VFORK_H | |
12755 # include <vfork.h> | |
12756 #endif | |
12757 /* On some sparc systems, changes by the child to local and incoming | |
12758 argument registers are propagated back to the parent. The compiler | |
12759 is told about this with #include <vfork.h>, but some compilers | |
12760 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
12761 static variable whose address is put into a register that is | |
12762 clobbered by the vfork. */ | |
12763 static void | |
12764 #ifdef __cplusplus | |
12765 sparc_address_test (int arg) | |
12766 # else | |
12767 sparc_address_test (arg) int arg; | |
12768 #endif | |
12769 { | |
12770 static pid_t child; | |
12771 if (!child) { | |
12772 child = vfork (); | |
12773 if (child < 0) { | |
12774 perror ("vfork"); | |
12775 _exit(2); | |
12776 } | |
12777 if (!child) { | |
12778 arg = getpid(); | |
12779 write(-1, "", 0); | |
12780 _exit (arg); | |
12781 } | |
12782 } | |
12783 } | |
12784 | |
12785 int | |
12786 main () | |
12787 { | |
12788 pid_t parent = getpid (); | |
12789 pid_t child; | |
12790 | |
12791 sparc_address_test (0); | |
12792 | |
12793 child = vfork (); | |
12794 | |
12795 if (child == 0) { | |
12796 /* Here is another test for sparc vfork register problems. This | |
12797 test uses lots of local variables, at least as many local | |
12798 variables as main has allocated so far including compiler | |
12799 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
12800 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
12801 reuse the register of parent for one of the local variables, | |
12802 since it will think that parent can't possibly be used any more | |
12803 in this routine. Assigning to the local variable will thus | |
12804 munge parent in the parent process. */ | |
12805 pid_t | |
12806 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
12807 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
12808 /* Convince the compiler that p..p7 are live; otherwise, it might | |
12809 use the same hardware register for all 8 local variables. */ | |
12810 if (p != p1 || p != p2 || p != p3 || p != p4 | |
12811 || p != p5 || p != p6 || p != p7) | |
12812 _exit(1); | |
12813 | |
12814 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
12815 from child file descriptors. If the child closes a descriptor | |
12816 before it execs or exits, this munges the parent's descriptor | |
12817 as well. Test for this by closing stdout in the child. */ | |
12818 _exit(close(fileno(stdout)) != 0); | |
12819 } else { | |
12820 int status; | |
12821 struct stat st; | |
12822 | |
12823 while (wait(&status) != child) | |
12824 ; | |
12825 return ( | |
12826 /* Was there some problem with vforking? */ | |
12827 child < 0 | |
12828 | |
12829 /* Did the child fail? (This shouldn't happen.) */ | |
12830 || status | |
12831 | |
12832 /* Did the vfork/compiler bug occur? */ | |
12833 || parent != getpid() | |
12834 | |
12835 /* Did the file descriptor bug occur? */ | |
12836 || fstat(fileno(stdout), &st) != 0 | |
12837 ); | |
12838 } | |
12839 } | |
12840 _ACEOF | |
12841 if ac_fn_c_try_run "$LINENO"; then : | |
12842 ac_cv_func_vfork_works=yes | |
12843 else | |
12844 ac_cv_func_vfork_works=no | |
12845 fi | |
12846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
12847 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
12848 fi | |
12849 | |
12850 fi | |
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 | |
12852 $as_echo "$ac_cv_func_vfork_works" >&6; } | |
12853 | |
12854 fi; | |
12855 if test "x$ac_cv_func_fork_works" = xcross; then | |
12856 ac_cv_func_vfork_works=$ac_cv_func_vfork | |
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_wor
ks guessed because of cross compilation" >&5 | |
12858 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cro
ss compilation" >&2;} | |
12859 fi | |
12860 | |
12861 if test "x$ac_cv_func_vfork_works" = xyes; then | |
12862 | |
12863 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h | |
12864 | |
12865 else | |
12866 | |
12867 $as_echo "#define vfork fork" >>confdefs.h | |
12868 | |
12869 fi | |
12870 if test "x$ac_cv_func_fork_works" = xyes; then | |
12871 | |
12872 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h | |
12873 | |
12874 fi | |
12875 | |
12876 for ac_func in canonicalize_file_name realpath getrusage getuid \ | |
12877 getgid pipe poll pread64 resize_term sbrk setpgid setpgrp setsid
\ | |
12878 sigaction sigprocmask sigsetmask socketpair syscall \ | |
12879 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \ | |
12880 setrlimit getrlimit posix_madvise waitpid | |
12881 do : | |
12882 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
12883 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
12884 eval as_val=\$$as_ac_var | |
12885 if test "x$as_val" = x""yes; then : | |
12886 cat >>confdefs.h <<_ACEOF | |
12887 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
12888 _ACEOF | |
12889 | |
12890 fi | |
12891 done | |
12892 | |
12893 | |
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET"
>&5 | |
12895 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } | |
12896 if test "${am_cv_langinfo_codeset+set}" = set; then : | |
12897 $as_echo_n "(cached) " >&6 | |
12898 else | |
12899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12900 /* end confdefs.h. */ | |
12901 #include <langinfo.h> | |
12902 int | |
12903 main () | |
12904 { | |
12905 char* cs = nl_langinfo(CODESET); | |
12906 ; | |
12907 return 0; | |
12908 } | |
12909 _ACEOF | |
12910 if ac_fn_c_try_link "$LINENO"; then : | |
12911 am_cv_langinfo_codeset=yes | |
12912 else | |
12913 am_cv_langinfo_codeset=no | |
12914 fi | |
12915 rm -f core conftest.err conftest.$ac_objext \ | |
12916 conftest$ac_exeext conftest.$ac_ext | |
12917 | |
12918 fi | |
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 | |
12920 $as_echo "$am_cv_langinfo_codeset" >&6; } | |
12921 if test $am_cv_langinfo_codeset = yes; then | |
12922 | |
12923 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h | |
12924 | |
12925 fi | |
12926 | |
12927 | |
12928 # Check the return and argument types of ptrace. No canned test for | |
12929 # this, so roll our own. | |
12930 gdb_ptrace_headers=' | |
12931 #if HAVE_SYS_TYPES_H | |
12932 # include <sys/types.h> | |
12933 #endif | |
12934 #if HAVE_SYS_PTRACE_H | |
12935 # include <sys/ptrace.h> | |
12936 #endif | |
12937 #if HAVE_UNISTD_H | |
12938 # include <unistd.h> | |
12939 #endif | |
12940 ' | |
12941 # There is no point in checking if we don't have a prototype. | |
12942 ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_head
ers | |
12943 " | |
12944 if test "x$ac_cv_have_decl_ptrace" = x""yes; then : | |
12945 ac_have_decl=1 | |
12946 else | |
12947 ac_have_decl=0 | |
12948 fi | |
12949 | |
12950 cat >>confdefs.h <<_ACEOF | |
12951 #define HAVE_DECL_PTRACE $ac_have_decl | |
12952 _ACEOF | |
12953 if test $ac_have_decl = 1; then : | |
12954 | |
12955 else | |
12956 | |
12957 : ${gdb_cv_func_ptrace_ret='int'} | |
12958 : ${gdb_cv_func_ptrace_args='int,int,long,long'} | |
12959 | |
12960 fi | |
12961 | |
12962 # Check return type. Varargs (used on GNU/Linux) conflict with the | |
12963 # empty argument list, so check for that explicitly. | |
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5 | |
12965 $as_echo_n "checking return type of ptrace... " >&6; } | |
12966 if test "${gdb_cv_func_ptrace_ret+set}" = set; then : | |
12967 $as_echo_n "(cached) " >&6 | |
12968 else | |
12969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12970 /* end confdefs.h. */ | |
12971 $gdb_ptrace_headers | |
12972 int | |
12973 main () | |
12974 { | |
12975 extern long ptrace (enum __ptrace_request, ...); | |
12976 ; | |
12977 return 0; | |
12978 } | |
12979 _ACEOF | |
12980 if ac_fn_c_try_compile "$LINENO"; then : | |
12981 gdb_cv_func_ptrace_ret='long' | |
12982 else | |
12983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12984 /* end confdefs.h. */ | |
12985 $gdb_ptrace_headers | |
12986 int | |
12987 main () | |
12988 { | |
12989 extern int ptrace (); | |
12990 ; | |
12991 return 0; | |
12992 } | |
12993 _ACEOF | |
12994 if ac_fn_c_try_compile "$LINENO"; then : | |
12995 gdb_cv_func_ptrace_ret='int' | |
12996 else | |
12997 gdb_cv_func_ptrace_ret='long' | |
12998 fi | |
12999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13000 fi | |
13001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13002 fi | |
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5 | |
13004 $as_echo "$gdb_cv_func_ptrace_ret" >&6; } | |
13005 | |
13006 cat >>confdefs.h <<_ACEOF | |
13007 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret | |
13008 _ACEOF | |
13009 | |
13010 # Check argument types. | |
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace"
>&5 | |
13012 $as_echo_n "checking types of arguments for ptrace... " >&6; } | |
13013 if test "${gdb_cv_func_ptrace_args+set}" = set; then : | |
13014 $as_echo_n "(cached) " >&6 | |
13015 else | |
13016 | |
13017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13018 /* end confdefs.h. */ | |
13019 $gdb_ptrace_headers | |
13020 int | |
13021 main () | |
13022 { | |
13023 extern long ptrace (enum __ptrace_request, ...); | |
13024 ; | |
13025 return 0; | |
13026 } | |
13027 _ACEOF | |
13028 if ac_fn_c_try_compile "$LINENO"; then : | |
13029 gdb_cv_func_ptrace_args='int,int,long,long' | |
13030 else | |
13031 | |
13032 for gdb_arg1 in 'int' 'long'; do | |
13033 for gdb_arg2 in 'pid_t' 'int' 'long'; do | |
13034 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do | |
13035 for gdb_arg4 in 'int' 'long'; do | |
13036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13037 /* end confdefs.h. */ | |
13038 $gdb_ptrace_headers | |
13039 int | |
13040 main () | |
13041 { | |
13042 | |
13043 extern $gdb_cv_func_ptrace_ret | |
13044 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4); | |
13045 | |
13046 ; | |
13047 return 0; | |
13048 } | |
13049 _ACEOF | |
13050 if ac_fn_c_try_compile "$LINENO"; then : | |
13051 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4"; | |
13052 break 4; | |
13053 fi | |
13054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13055 for gdb_arg5 in 'int *' 'int' 'long'; do | |
13056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13057 /* end confdefs.h. */ | |
13058 $gdb_ptrace_headers | |
13059 int | |
13060 main () | |
13061 { | |
13062 | |
13063 extern $gdb_cv_func_ptrace_ret | |
13064 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5); | |
13065 | |
13066 ; | |
13067 return 0; | |
13068 } | |
13069 _ACEOF | |
13070 if ac_fn_c_try_compile "$LINENO"; then : | |
13071 | |
13072 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5"; | |
13073 break 5; | |
13074 fi | |
13075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13076 done | |
13077 done | |
13078 done | |
13079 done | |
13080 done | |
13081 # Provide a safe default value. | |
13082 : ${gdb_cv_func_ptrace_args='int,int,long,long'} | |
13083 | |
13084 fi | |
13085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13086 fi | |
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5 | |
13088 $as_echo "$gdb_cv_func_ptrace_args" >&6; } | |
13089 ac_save_IFS=$IFS; IFS=',' | |
13090 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'` | |
13091 IFS=$ac_save_IFS | |
13092 shift | |
13093 | |
13094 cat >>confdefs.h <<_ACEOF | |
13095 #define PTRACE_TYPE_ARG3 $3 | |
13096 _ACEOF | |
13097 | |
13098 if test -n "$5"; then | |
13099 | |
13100 cat >>confdefs.h <<_ACEOF | |
13101 #define PTRACE_TYPE_ARG5 $5 | |
13102 _ACEOF | |
13103 | |
13104 fi | |
13105 | |
13106 if test "$cross_compiling" = no; then | |
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no arg
ument" >&5 | |
13108 $as_echo_n "checking whether setpgrp takes no argument... " >&6; } | |
13109 if test "${ac_cv_func_setpgrp_void+set}" = set; then : | |
13110 $as_echo_n "(cached) " >&6 | |
13111 else | |
13112 if test "$cross_compiling" = yes; then : | |
13113 as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5 | |
13114 else | |
13115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13116 /* end confdefs.h. */ | |
13117 $ac_includes_default | |
13118 int | |
13119 main () | |
13120 { | |
13121 /* If this system has a BSD-style setpgrp which takes arguments, | |
13122 setpgrp(1, 1) will fail with ESRCH and return -1, in that case | |
13123 exit successfully. */ | |
13124 return setpgrp (1,1) != -1; | |
13125 ; | |
13126 return 0; | |
13127 } | |
13128 _ACEOF | |
13129 if ac_fn_c_try_run "$LINENO"; then : | |
13130 ac_cv_func_setpgrp_void=no | |
13131 else | |
13132 ac_cv_func_setpgrp_void=yes | |
13133 fi | |
13134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
13135 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
13136 fi | |
13137 | |
13138 fi | |
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5 | |
13140 $as_echo "$ac_cv_func_setpgrp_void" >&6; } | |
13141 if test $ac_cv_func_setpgrp_void = yes; then | |
13142 | |
13143 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h | |
13144 | |
13145 fi | |
13146 | |
13147 else | |
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no arg
ument" >&5 | |
13149 $as_echo_n "checking whether setpgrp takes no argument... " >&6; } | |
13150 if test "${ac_cv_func_setpgrp_void+set}" = set; then : | |
13151 $as_echo_n "(cached) " >&6 | |
13152 else | |
13153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13154 /* end confdefs.h. */ | |
13155 | |
13156 #include <unistd.h> | |
13157 | |
13158 int | |
13159 main () | |
13160 { | |
13161 | |
13162 if (setpgrp(1,1) == -1) | |
13163 exit (0); | |
13164 else | |
13165 exit (1); | |
13166 | |
13167 ; | |
13168 return 0; | |
13169 } | |
13170 _ACEOF | |
13171 if ac_fn_c_try_compile "$LINENO"; then : | |
13172 ac_cv_func_setpgrp_void=no | |
13173 else | |
13174 ac_cv_func_setpgrp_void=yes | |
13175 fi | |
13176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13177 fi | |
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5 | |
13179 $as_echo "$ac_cv_func_setpgrp_void" >&6; } | |
13180 if test $ac_cv_func_setpgrp_void = yes; then | |
13181 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h | |
13182 | |
13183 fi | |
13184 fi | |
13185 | |
13186 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do | |
13187 # since sigsetjmp might only be defined as a macro. | |
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5 | |
13189 $as_echo_n "checking for sigsetjmp... " >&6; } | |
13190 if test "${gdb_cv_func_sigsetjmp+set}" = set; then : | |
13191 $as_echo_n "(cached) " >&6 | |
13192 else | |
13193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13194 /* end confdefs.h. */ | |
13195 | |
13196 #include <setjmp.h> | |
13197 | |
13198 int | |
13199 main () | |
13200 { | |
13201 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1); | |
13202 ; | |
13203 return 0; | |
13204 } | |
13205 _ACEOF | |
13206 if ac_fn_c_try_compile "$LINENO"; then : | |
13207 gdb_cv_func_sigsetjmp=yes | |
13208 else | |
13209 gdb_cv_func_sigsetjmp=no | |
13210 fi | |
13211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13212 fi | |
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5 | |
13214 $as_echo "$gdb_cv_func_sigsetjmp" >&6; } | |
13215 if test $gdb_cv_func_sigsetjmp = yes; then | |
13216 | |
13217 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h | |
13218 | |
13219 fi | |
13220 | |
13221 # Assume we'll default to using the included libiberty regex. | |
13222 gdb_use_included_regex=yes | |
13223 | |
13224 # However, if the system regex is GNU regex, then default to *not* | |
13225 # using the included regex. | |
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5 | |
13227 $as_echo_n "checking for GNU regex... " >&6; } | |
13228 if test "${gdb_cv_have_gnu_regex+set}" = set; then : | |
13229 $as_echo_n "(cached) " >&6 | |
13230 else | |
13231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13232 /* end confdefs.h. */ | |
13233 #include <gnu-versions.h> | |
13234 int | |
13235 main () | |
13236 { | |
13237 #define REGEX_INTERFACE_VERSION 1 | |
13238 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION | |
13239 # error "Version mismatch" | |
13240 #endif | |
13241 ; | |
13242 return 0; | |
13243 } | |
13244 _ACEOF | |
13245 if ac_fn_c_try_compile "$LINENO"; then : | |
13246 gdb_cv_have_gnu_regex=yes | |
13247 else | |
13248 gdb_cv_have_gnu_regex=no | |
13249 fi | |
13250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13251 fi | |
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5 | |
13253 $as_echo "$gdb_cv_have_gnu_regex" >&6; } | |
13254 if test $gdb_cv_have_gnu_regex = yes; then | |
13255 gdb_use_included_regex=no | |
13256 fi | |
13257 | |
13258 | |
13259 # Check whether --with-included-regex was given. | |
13260 if test "${with_included_regex+set}" = set; then : | |
13261 withval=$with_included_regex; gdb_with_regex=$withval | |
13262 else | |
13263 gdb_with_regex=$gdb_use_included_regex | |
13264 fi | |
13265 | |
13266 if test "$gdb_with_regex" = yes; then | |
13267 | |
13268 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h | |
13269 | |
13270 fi | |
13271 | |
13272 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member. | |
13273 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thr
ead_td_pcb" "#include <sys/param.h> | |
13274 #include <sys/proc.h> | |
13275 | |
13276 " | |
13277 if test "x$ac_cv_member_struct_thread_td_pcb" = x""yes; then : | |
13278 | |
13279 cat >>confdefs.h <<_ACEOF | |
13280 #define HAVE_STRUCT_THREAD_TD_PCB 1 | |
13281 _ACEOF | |
13282 | |
13283 | |
13284 fi | |
13285 | |
13286 | |
13287 # See if <sys/lwp.h> defines `struct lwp`. | |
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5 | |
13289 $as_echo_n "checking for struct lwp... " >&6; } | |
13290 if test "${gdb_cv_struct_lwp+set}" = set; then : | |
13291 $as_echo_n "(cached) " >&6 | |
13292 else | |
13293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13294 /* end confdefs.h. */ | |
13295 #include <sys/param.h> | |
13296 #include <sys/lwp.h> | |
13297 int | |
13298 main () | |
13299 { | |
13300 struct lwp l; | |
13301 ; | |
13302 return 0; | |
13303 } | |
13304 _ACEOF | |
13305 if ac_fn_c_try_compile "$LINENO"; then : | |
13306 gdb_cv_struct_lwp=yes | |
13307 else | |
13308 gdb_cv_struct_lwp=no | |
13309 fi | |
13310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13311 fi | |
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5 | |
13313 $as_echo "$gdb_cv_struct_lwp" >&6; } | |
13314 if test $gdb_cv_struct_lwp = yes; then | |
13315 | |
13316 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h | |
13317 | |
13318 fi | |
13319 | |
13320 # See if <machine/reg.h> degines `struct reg'. | |
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.
h" >&5 | |
13322 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; } | |
13323 if test "${gdb_cv_struct_reg+set}" = set; then : | |
13324 $as_echo_n "(cached) " >&6 | |
13325 else | |
13326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13327 /* end confdefs.h. */ | |
13328 #include <sys/types.h> | |
13329 #include <machine/reg.h> | |
13330 int | |
13331 main () | |
13332 { | |
13333 struct reg r; | |
13334 ; | |
13335 return 0; | |
13336 } | |
13337 _ACEOF | |
13338 if ac_fn_c_try_compile "$LINENO"; then : | |
13339 gdb_cv_struct_reg=yes | |
13340 else | |
13341 gdb_cv_struct_reg=no | |
13342 fi | |
13343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13344 fi | |
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5 | |
13346 $as_echo "$gdb_cv_struct_reg" >&6; } | |
13347 if test $gdb_cv_struct_reg = yes; then | |
13348 | |
13349 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h | |
13350 | |
13351 fi | |
13352 | |
13353 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers. | |
13354 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'. | |
13355 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs
" "#include <machine/reg.h> | |
13356 " | |
13357 if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then : | |
13358 | |
13359 cat >>confdefs.h <<_ACEOF | |
13360 #define HAVE_STRUCT_REG_R_FS 1 | |
13361 _ACEOF | |
13362 | |
13363 | |
13364 fi | |
13365 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs
" "#include <machine/reg.h> | |
13366 " | |
13367 if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then : | |
13368 | |
13369 cat >>confdefs.h <<_ACEOF | |
13370 #define HAVE_STRUCT_REG_R_GS 1 | |
13371 _ACEOF | |
13372 | |
13373 | |
13374 fi | |
13375 | |
13376 | |
13377 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request. | |
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5 | |
13379 $as_echo_n "checking for PTRACE_GETREGS... " >&6; } | |
13380 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then : | |
13381 $as_echo_n "(cached) " >&6 | |
13382 else | |
13383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13384 /* end confdefs.h. */ | |
13385 #include <sys/ptrace.h> | |
13386 int | |
13387 main () | |
13388 { | |
13389 PTRACE_GETREGS; | |
13390 ; | |
13391 return 0; | |
13392 } | |
13393 _ACEOF | |
13394 if ac_fn_c_try_compile "$LINENO"; then : | |
13395 gdb_cv_have_ptrace_getregs=yes | |
13396 else | |
13397 gdb_cv_have_ptrace_getregs=no | |
13398 fi | |
13399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13400 fi | |
13401 | |
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&
5 | |
13403 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; } | |
13404 if test $gdb_cv_have_ptrace_getregs = yes; then | |
13405 | |
13406 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h | |
13407 | |
13408 fi | |
13409 | |
13410 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request. | |
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5 | |
13412 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; } | |
13413 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then : | |
13414 $as_echo_n "(cached) " >&6 | |
13415 else | |
13416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13417 /* end confdefs.h. */ | |
13418 #include <sys/ptrace.h> | |
13419 int | |
13420 main () | |
13421 { | |
13422 PTRACE_GETFPXREGS; | |
13423 ; | |
13424 return 0; | |
13425 } | |
13426 _ACEOF | |
13427 if ac_fn_c_try_compile "$LINENO"; then : | |
13428 gdb_cv_have_ptrace_getfpxregs=yes | |
13429 else | |
13430 gdb_cv_have_ptrace_getfpxregs=no | |
13431 fi | |
13432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13433 fi | |
13434 | |
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs"
>&5 | |
13436 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; } | |
13437 if test $gdb_cv_have_ptrace_getfpxregs = yes; then | |
13438 | |
13439 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h | |
13440 | |
13441 fi | |
13442 | |
13443 # See if <sys/ptrace.h> provides the PT_GETDBREGS request. | |
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5 | |
13445 $as_echo_n "checking for PT_GETDBREGS... " >&6; } | |
13446 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then : | |
13447 $as_echo_n "(cached) " >&6 | |
13448 else | |
13449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13450 /* end confdefs.h. */ | |
13451 #include <sys/types.h> | |
13452 #include <sys/ptrace.h> | |
13453 int | |
13454 main () | |
13455 { | |
13456 PT_GETDBREGS; | |
13457 ; | |
13458 return 0; | |
13459 } | |
13460 _ACEOF | |
13461 if ac_fn_c_try_compile "$LINENO"; then : | |
13462 gdb_cv_have_pt_getdbregs=yes | |
13463 else | |
13464 gdb_cv_have_pt_getdbregs=no | |
13465 fi | |
13466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13467 fi | |
13468 | |
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5 | |
13470 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; } | |
13471 if test $gdb_cv_have_pt_getdbregs = yes; then | |
13472 | |
13473 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h | |
13474 | |
13475 fi | |
13476 | |
13477 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request. | |
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5 | |
13479 $as_echo_n "checking for PT_GETXMMREGS... " >&6; } | |
13480 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then : | |
13481 $as_echo_n "(cached) " >&6 | |
13482 else | |
13483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13484 /* end confdefs.h. */ | |
13485 #include <sys/types.h> | |
13486 #include <sys/ptrace.h> | |
13487 int | |
13488 main () | |
13489 { | |
13490 PT_GETXMMREGS; | |
13491 ; | |
13492 return 0; | |
13493 } | |
13494 _ACEOF | |
13495 if ac_fn_c_try_compile "$LINENO"; then : | |
13496 gdb_cv_have_pt_getxmmregs=yes | |
13497 else | |
13498 gdb_cv_have_pt_getxmmregs=no | |
13499 fi | |
13500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13501 fi | |
13502 | |
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5 | |
13504 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; } | |
13505 if test $gdb_cv_have_pt_getxmmregs = yes; then | |
13506 | |
13507 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h | |
13508 | |
13509 fi | |
13510 | |
13511 # Detect which type of /proc is in use, such as for Unixware or Solaris. | |
13512 | |
13513 if test "${target}" = "${host}"; then | |
13514 case "${host}" in | |
13515 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* ) | |
13516 | |
13517 $as_echo "#define NEW_PROC_API 1" >>confdefs.h | |
13518 | |
13519 ;; | |
13520 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*) | |
13521 | |
13522 $as_echo "#define NEW_PROC_API 1" >>confdefs.h | |
13523 | |
13524 ;; | |
13525 mips-sgi-irix5*) | |
13526 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5. | |
13527 | |
13528 $as_echo "#define _KMEMUSER 1" >>confdefs.h | |
13529 | |
13530 ;; | |
13531 esac | |
13532 fi | |
13533 | |
13534 if test "$ac_cv_header_sys_procfs_h" = yes; then | |
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.
h" >&5 | |
13536 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; } | |
13537 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then : | |
13538 $as_echo_n "(cached) " >&6 | |
13539 else | |
13540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13541 /* end confdefs.h. */ | |
13542 | |
13543 #define _SYSCALL32 | |
13544 /* Needed for new procfs interface on sparc-solaris. */ | |
13545 #define _STRUCTURED_PROC 1 | |
13546 #include <sys/procfs.h> | |
13547 int | |
13548 main () | |
13549 { | |
13550 pstatus_t avar | |
13551 ; | |
13552 return 0; | |
13553 } | |
13554 _ACEOF | |
13555 if ac_fn_c_try_compile "$LINENO"; then : | |
13556 bfd_cv_have_sys_procfs_type_pstatus_t=yes | |
13557 else | |
13558 bfd_cv_have_sys_procfs_type_pstatus_t=no | |
13559 | |
13560 fi | |
13561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13562 fi | |
13563 | |
13564 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then | |
13565 | |
13566 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h | |
13567 | |
13568 fi | |
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_p
status_t" >&5 | |
13570 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; } | |
13571 | |
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prrun_t in sys/procfs.h"
>&5 | |
13573 $as_echo_n "checking for prrun_t in sys/procfs.h... " >&6; } | |
13574 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then : | |
13575 $as_echo_n "(cached) " >&6 | |
13576 else | |
13577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13578 /* end confdefs.h. */ | |
13579 | |
13580 #define _SYSCALL32 | |
13581 /* Needed for new procfs interface on sparc-solaris. */ | |
13582 #define _STRUCTURED_PROC 1 | |
13583 #include <sys/procfs.h> | |
13584 int | |
13585 main () | |
13586 { | |
13587 prrun_t avar | |
13588 ; | |
13589 return 0; | |
13590 } | |
13591 _ACEOF | |
13592 if ac_fn_c_try_compile "$LINENO"; then : | |
13593 bfd_cv_have_sys_procfs_type_prrun_t=yes | |
13594 else | |
13595 bfd_cv_have_sys_procfs_type_prrun_t=no | |
13596 | |
13597 fi | |
13598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13599 fi | |
13600 | |
13601 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then | |
13602 | |
13603 $as_echo "#define HAVE_PRRUN_T 1" >>confdefs.h | |
13604 | |
13605 fi | |
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_p
rrun_t" >&5 | |
13607 $as_echo "$bfd_cv_have_sys_procfs_type_prrun_t" >&6; } | |
13608 | |
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.
h" >&5 | |
13610 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; } | |
13611 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then : | |
13612 $as_echo_n "(cached) " >&6 | |
13613 else | |
13614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13615 /* end confdefs.h. */ | |
13616 | |
13617 #define _SYSCALL32 | |
13618 /* Needed for new procfs interface on sparc-solaris. */ | |
13619 #define _STRUCTURED_PROC 1 | |
13620 #include <sys/procfs.h> | |
13621 int | |
13622 main () | |
13623 { | |
13624 gregset_t avar | |
13625 ; | |
13626 return 0; | |
13627 } | |
13628 _ACEOF | |
13629 if ac_fn_c_try_compile "$LINENO"; then : | |
13630 bfd_cv_have_sys_procfs_type_gregset_t=yes | |
13631 else | |
13632 bfd_cv_have_sys_procfs_type_gregset_t=no | |
13633 | |
13634 fi | |
13635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13636 fi | |
13637 | |
13638 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then | |
13639 | |
13640 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h | |
13641 | |
13642 fi | |
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_g
regset_t" >&5 | |
13644 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; } | |
13645 | |
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs
.h" >&5 | |
13647 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; } | |
13648 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then : | |
13649 $as_echo_n "(cached) " >&6 | |
13650 else | |
13651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13652 /* end confdefs.h. */ | |
13653 | |
13654 #define _SYSCALL32 | |
13655 /* Needed for new procfs interface on sparc-solaris. */ | |
13656 #define _STRUCTURED_PROC 1 | |
13657 #include <sys/procfs.h> | |
13658 int | |
13659 main () | |
13660 { | |
13661 fpregset_t avar | |
13662 ; | |
13663 return 0; | |
13664 } | |
13665 _ACEOF | |
13666 if ac_fn_c_try_compile "$LINENO"; then : | |
13667 bfd_cv_have_sys_procfs_type_fpregset_t=yes | |
13668 else | |
13669 bfd_cv_have_sys_procfs_type_fpregset_t=no | |
13670 | |
13671 fi | |
13672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13673 fi | |
13674 | |
13675 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then | |
13676 | |
13677 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h | |
13678 | |
13679 fi | |
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_f
pregset_t" >&5 | |
13681 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; } | |
13682 | |
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procf
s.h" >&5 | |
13684 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; } | |
13685 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then : | |
13686 $as_echo_n "(cached) " >&6 | |
13687 else | |
13688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13689 /* end confdefs.h. */ | |
13690 | |
13691 #define _SYSCALL32 | |
13692 /* Needed for new procfs interface on sparc-solaris. */ | |
13693 #define _STRUCTURED_PROC 1 | |
13694 #include <sys/procfs.h> | |
13695 int | |
13696 main () | |
13697 { | |
13698 prgregset_t avar | |
13699 ; | |
13700 return 0; | |
13701 } | |
13702 _ACEOF | |
13703 if ac_fn_c_try_compile "$LINENO"; then : | |
13704 bfd_cv_have_sys_procfs_type_prgregset_t=yes | |
13705 else | |
13706 bfd_cv_have_sys_procfs_type_prgregset_t=no | |
13707 | |
13708 fi | |
13709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13710 fi | |
13711 | |
13712 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then | |
13713 | |
13714 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h | |
13715 | |
13716 fi | |
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_p
rgregset_t" >&5 | |
13718 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; } | |
13719 | |
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/proc
fs.h" >&5 | |
13721 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; } | |
13722 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then : | |
13723 $as_echo_n "(cached) " >&6 | |
13724 else | |
13725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13726 /* end confdefs.h. */ | |
13727 | |
13728 #define _SYSCALL32 | |
13729 /* Needed for new procfs interface on sparc-solaris. */ | |
13730 #define _STRUCTURED_PROC 1 | |
13731 #include <sys/procfs.h> | |
13732 int | |
13733 main () | |
13734 { | |
13735 prfpregset_t avar | |
13736 ; | |
13737 return 0; | |
13738 } | |
13739 _ACEOF | |
13740 if ac_fn_c_try_compile "$LINENO"; then : | |
13741 bfd_cv_have_sys_procfs_type_prfpregset_t=yes | |
13742 else | |
13743 bfd_cv_have_sys_procfs_type_prfpregset_t=no | |
13744 | |
13745 fi | |
13746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13747 fi | |
13748 | |
13749 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then | |
13750 | |
13751 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h | |
13752 | |
13753 fi | |
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_p
rfpregset_t" >&5 | |
13755 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; } | |
13756 | |
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/pro
cfs.h" >&5 | |
13758 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; } | |
13759 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then : | |
13760 $as_echo_n "(cached) " >&6 | |
13761 else | |
13762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13763 /* end confdefs.h. */ | |
13764 | |
13765 #define _SYSCALL32 | |
13766 /* Needed for new procfs interface on sparc-solaris. */ | |
13767 #define _STRUCTURED_PROC 1 | |
13768 #include <sys/procfs.h> | |
13769 int | |
13770 main () | |
13771 { | |
13772 prgregset32_t avar | |
13773 ; | |
13774 return 0; | |
13775 } | |
13776 _ACEOF | |
13777 if ac_fn_c_try_compile "$LINENO"; then : | |
13778 bfd_cv_have_sys_procfs_type_prgregset32_t=yes | |
13779 else | |
13780 bfd_cv_have_sys_procfs_type_prgregset32_t=no | |
13781 | |
13782 fi | |
13783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13784 fi | |
13785 | |
13786 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then | |
13787 | |
13788 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h | |
13789 | |
13790 fi | |
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_p
rgregset32_t" >&5 | |
13792 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; } | |
13793 | |
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset32_t in sys/pr
ocfs.h" >&5 | |
13795 $as_echo_n "checking for prfpregset32_t in sys/procfs.h... " >&6; } | |
13796 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then : | |
13797 $as_echo_n "(cached) " >&6 | |
13798 else | |
13799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13800 /* end confdefs.h. */ | |
13801 | |
13802 #define _SYSCALL32 | |
13803 /* Needed for new procfs interface on sparc-solaris. */ | |
13804 #define _STRUCTURED_PROC 1 | |
13805 #include <sys/procfs.h> | |
13806 int | |
13807 main () | |
13808 { | |
13809 prfpregset32_t avar | |
13810 ; | |
13811 return 0; | |
13812 } | |
13813 _ACEOF | |
13814 if ac_fn_c_try_compile "$LINENO"; then : | |
13815 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes | |
13816 else | |
13817 bfd_cv_have_sys_procfs_type_prfpregset32_t=no | |
13818 | |
13819 fi | |
13820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13821 fi | |
13822 | |
13823 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then | |
13824 | |
13825 $as_echo "#define HAVE_PRFPREGSET32_T 1" >>confdefs.h | |
13826 | |
13827 fi | |
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_p
rfpregset32_t" >&5 | |
13829 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; } | |
13830 | |
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h"
>&5 | |
13832 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; } | |
13833 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then : | |
13834 $as_echo_n "(cached) " >&6 | |
13835 else | |
13836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13837 /* end confdefs.h. */ | |
13838 | |
13839 #define _SYSCALL32 | |
13840 /* Needed for new procfs interface on sparc-solaris. */ | |
13841 #define _STRUCTURED_PROC 1 | |
13842 #include <sys/procfs.h> | |
13843 int | |
13844 main () | |
13845 { | |
13846 lwpid_t avar | |
13847 ; | |
13848 return 0; | |
13849 } | |
13850 _ACEOF | |
13851 if ac_fn_c_try_compile "$LINENO"; then : | |
13852 bfd_cv_have_sys_procfs_type_lwpid_t=yes | |
13853 else | |
13854 bfd_cv_have_sys_procfs_type_lwpid_t=no | |
13855 | |
13856 fi | |
13857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13858 fi | |
13859 | |
13860 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then | |
13861 | |
13862 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h | |
13863 | |
13864 fi | |
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_l
wpid_t" >&5 | |
13866 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; } | |
13867 | |
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h
" >&5 | |
13869 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; } | |
13870 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then : | |
13871 $as_echo_n "(cached) " >&6 | |
13872 else | |
13873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13874 /* end confdefs.h. */ | |
13875 | |
13876 #define _SYSCALL32 | |
13877 /* Needed for new procfs interface on sparc-solaris. */ | |
13878 #define _STRUCTURED_PROC 1 | |
13879 #include <sys/procfs.h> | |
13880 int | |
13881 main () | |
13882 { | |
13883 psaddr_t avar | |
13884 ; | |
13885 return 0; | |
13886 } | |
13887 _ACEOF | |
13888 if ac_fn_c_try_compile "$LINENO"; then : | |
13889 bfd_cv_have_sys_procfs_type_psaddr_t=yes | |
13890 else | |
13891 bfd_cv_have_sys_procfs_type_psaddr_t=no | |
13892 | |
13893 fi | |
13894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13895 fi | |
13896 | |
13897 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then | |
13898 | |
13899 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h | |
13900 | |
13901 fi | |
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_p
saddr_t" >&5 | |
13903 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; } | |
13904 | |
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs
.h" >&5 | |
13906 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; } | |
13907 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then : | |
13908 $as_echo_n "(cached) " >&6 | |
13909 else | |
13910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13911 /* end confdefs.h. */ | |
13912 | |
13913 #define _SYSCALL32 | |
13914 /* Needed for new procfs interface on sparc-solaris. */ | |
13915 #define _STRUCTURED_PROC 1 | |
13916 #include <sys/procfs.h> | |
13917 int | |
13918 main () | |
13919 { | |
13920 prsysent_t avar | |
13921 ; | |
13922 return 0; | |
13923 } | |
13924 _ACEOF | |
13925 if ac_fn_c_try_compile "$LINENO"; then : | |
13926 bfd_cv_have_sys_procfs_type_prsysent_t=yes | |
13927 else | |
13928 bfd_cv_have_sys_procfs_type_prsysent_t=no | |
13929 | |
13930 fi | |
13931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13932 fi | |
13933 | |
13934 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then | |
13935 | |
13936 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h | |
13937 | |
13938 fi | |
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_p
rsysent_t" >&5 | |
13940 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; } | |
13941 | |
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procf
s.h" >&5 | |
13943 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; } | |
13944 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then : | |
13945 $as_echo_n "(cached) " >&6 | |
13946 else | |
13947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13948 /* end confdefs.h. */ | |
13949 | |
13950 #define _SYSCALL32 | |
13951 /* Needed for new procfs interface on sparc-solaris. */ | |
13952 #define _STRUCTURED_PROC 1 | |
13953 #include <sys/procfs.h> | |
13954 int | |
13955 main () | |
13956 { | |
13957 pr_sigset_t avar | |
13958 ; | |
13959 return 0; | |
13960 } | |
13961 _ACEOF | |
13962 if ac_fn_c_try_compile "$LINENO"; then : | |
13963 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes | |
13964 else | |
13965 bfd_cv_have_sys_procfs_type_pr_sigset_t=no | |
13966 | |
13967 fi | |
13968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13969 fi | |
13970 | |
13971 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then | |
13972 | |
13973 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h | |
13974 | |
13975 fi | |
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_p
r_sigset_t" >&5 | |
13977 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; } | |
13978 | |
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/
procfs.h" >&5 | |
13980 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; } | |
13981 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then : | |
13982 $as_echo_n "(cached) " >&6 | |
13983 else | |
13984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13985 /* end confdefs.h. */ | |
13986 | |
13987 #define _SYSCALL32 | |
13988 /* Needed for new procfs interface on sparc-solaris. */ | |
13989 #define _STRUCTURED_PROC 1 | |
13990 #include <sys/procfs.h> | |
13991 int | |
13992 main () | |
13993 { | |
13994 pr_sigaction64_t avar | |
13995 ; | |
13996 return 0; | |
13997 } | |
13998 _ACEOF | |
13999 if ac_fn_c_try_compile "$LINENO"; then : | |
14000 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes | |
14001 else | |
14002 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no | |
14003 | |
14004 fi | |
14005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14006 fi | |
14007 | |
14008 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then | |
14009 | |
14010 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h | |
14011 | |
14012 fi | |
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_p
r_sigaction64_t" >&5 | |
14014 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; } | |
14015 | |
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/pr
ocfs.h" >&5 | |
14017 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; } | |
14018 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then : | |
14019 $as_echo_n "(cached) " >&6 | |
14020 else | |
14021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14022 /* end confdefs.h. */ | |
14023 | |
14024 #define _SYSCALL32 | |
14025 /* Needed for new procfs interface on sparc-solaris. */ | |
14026 #define _STRUCTURED_PROC 1 | |
14027 #include <sys/procfs.h> | |
14028 int | |
14029 main () | |
14030 { | |
14031 pr_siginfo64_t avar | |
14032 ; | |
14033 return 0; | |
14034 } | |
14035 _ACEOF | |
14036 if ac_fn_c_try_compile "$LINENO"; then : | |
14037 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes | |
14038 else | |
14039 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no | |
14040 | |
14041 fi | |
14042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14043 fi | |
14044 | |
14045 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then | |
14046 | |
14047 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h | |
14048 | |
14049 fi | |
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_p
r_siginfo64_t" >&5 | |
14051 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; } | |
14052 | |
14053 | |
14054 | |
14055 | |
14056 | |
14057 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then | |
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type
is broken" >&5 | |
14059 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; } | |
14060 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then : | |
14061 $as_echo_n "(cached) " >&6 | |
14062 else | |
14063 if test "$cross_compiling" = yes; then : | |
14064 gdb_cv_prfpregset_t_broken=yes | |
14065 else | |
14066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14067 /* end confdefs.h. */ | |
14068 #include <sys/procfs.h> | |
14069 int main () | |
14070 { | |
14071 if (sizeof (prfpregset_t) == sizeof (void *)) | |
14072 return 1; | |
14073 return 0; | |
14074 } | |
14075 _ACEOF | |
14076 if ac_fn_c_try_run "$LINENO"; then : | |
14077 gdb_cv_prfpregset_t_broken=no | |
14078 else | |
14079 gdb_cv_prfpregset_t_broken=yes | |
14080 fi | |
14081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
14082 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
14083 fi | |
14084 | |
14085 fi | |
14086 | |
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken
" >&5 | |
14088 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; } | |
14089 if test $gdb_cv_prfpregset_t_broken = yes; then | |
14090 | |
14091 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h | |
14092 | |
14093 fi | |
14094 fi | |
14095 | |
14096 | |
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIOCSET ioctl entry in s
ys/procfs.h" >&5 | |
14098 $as_echo_n "checking for PIOCSET ioctl entry in sys/procfs.h... " >&6; } | |
14099 if test "${gdb_cv_have_procfs_piocset+set}" = set; then : | |
14100 $as_echo_n "(cached) " >&6 | |
14101 else | |
14102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14103 /* end confdefs.h. */ | |
14104 #include <unistd.h> | |
14105 #include <sys/types.h> | |
14106 #include <sys/procfs.h> | |
14107 | |
14108 int | |
14109 main () | |
14110 { | |
14111 | |
14112 int dummy;; | |
14113 dummy = ioctl(0, PIOCSET, &dummy); | |
14114 | |
14115 ; | |
14116 return 0; | |
14117 } | |
14118 _ACEOF | |
14119 if ac_fn_c_try_compile "$LINENO"; then : | |
14120 gdb_cv_have_procfs_piocset=yes | |
14121 else | |
14122 gdb_cv_have_procfs_piocset=no | |
14123 fi | |
14124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14125 fi | |
14126 | |
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_procfs_piocset"
>&5 | |
14128 $as_echo "$gdb_cv_have_procfs_piocset" >&6; } | |
14129 if test $gdb_cv_have_procfs_piocset = yes; then | |
14130 | |
14131 $as_echo "#define HAVE_PROCFS_PIOCSET 1" >>confdefs.h | |
14132 | |
14133 fi | |
14134 fi | |
14135 | |
14136 if test ${host} = ${target} ; then | |
14137 | |
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member l_addr in struct
link_map" >&5 | |
14139 $as_echo_n "checking for member l_addr in struct link_map... " >&6; } | |
14140 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then : | |
14141 $as_echo_n "(cached) " >&6 | |
14142 else | |
14143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14144 /* end confdefs.h. */ | |
14145 #include <link.h> | |
14146 int | |
14147 main () | |
14148 { | |
14149 struct link_map lm; (void) lm.l_addr; | |
14150 ; | |
14151 return 0; | |
14152 } | |
14153 _ACEOF | |
14154 if ac_fn_c_try_compile "$LINENO"; then : | |
14155 gdb_cv_have_struct_link_map_with_l_members=yes | |
14156 else | |
14157 gdb_cv_have_struct_link_map_with_l_members=no | |
14158 fi | |
14159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14160 fi | |
14161 | |
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_
with_l_members" >&5 | |
14163 $as_echo "$gdb_cv_have_struct_link_map_with_l_members" >&6; } | |
14164 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then | |
14165 | |
14166 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1" >>confdefs.h | |
14167 | |
14168 fi | |
14169 | |
14170 | |
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member lm_addr in struct
link_map" >&5 | |
14172 $as_echo_n "checking for member lm_addr in struct link_map... " >&6; } | |
14173 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then : | |
14174 $as_echo_n "(cached) " >&6 | |
14175 else | |
14176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14177 /* end confdefs.h. */ | |
14178 #include <sys/types.h> | |
14179 #include <link.h> | |
14180 int | |
14181 main () | |
14182 { | |
14183 struct link_map lm; (void) lm.lm_addr; | |
14184 ; | |
14185 return 0; | |
14186 } | |
14187 _ACEOF | |
14188 if ac_fn_c_try_compile "$LINENO"; then : | |
14189 gdb_cv_have_struct_link_map_with_lm_members=yes | |
14190 else | |
14191 gdb_cv_have_struct_link_map_with_lm_members=no | |
14192 fi | |
14193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14194 fi | |
14195 | |
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_
with_lm_members" >&5 | |
14197 $as_echo "$gdb_cv_have_struct_link_map_with_lm_members" >&6; } | |
14198 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then | |
14199 | |
14200 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1" >>confdefs.h | |
14201 | |
14202 fi | |
14203 | |
14204 | |
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member som_addr in struc
t so_map" >&5 | |
14206 $as_echo_n "checking for member som_addr in struct so_map... " >&6; } | |
14207 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then : | |
14208 $as_echo_n "(cached) " >&6 | |
14209 else | |
14210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14211 /* end confdefs.h. */ | |
14212 #include <sys/types.h> | |
14213 #ifdef HAVE_NLIST_H | |
14214 #include <nlist.h> | |
14215 #endif | |
14216 #include <link.h> | |
14217 int | |
14218 main () | |
14219 { | |
14220 struct so_map lm; (void) lm.som_addr; | |
14221 ; | |
14222 return 0; | |
14223 } | |
14224 _ACEOF | |
14225 if ac_fn_c_try_compile "$LINENO"; then : | |
14226 gdb_cv_have_struct_so_map_with_som_members=yes | |
14227 else | |
14228 gdb_cv_have_struct_so_map_with_som_members=no | |
14229 fi | |
14230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14231 fi | |
14232 | |
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_so_map_wi
th_som_members" >&5 | |
14234 $as_echo "$gdb_cv_have_struct_so_map_with_som_members" >&6; } | |
14235 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then | |
14236 | |
14237 $as_echo "#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1" >>confdefs.h | |
14238 | |
14239 fi | |
14240 | |
14241 | |
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct link_map32 in sys
/link.h" >&5 | |
14243 $as_echo_n "checking for struct link_map32 in sys/link.h... " >&6; } | |
14244 if test "${gdb_cv_have_struct_link_map32+set}" = set; then : | |
14245 $as_echo_n "(cached) " >&6 | |
14246 else | |
14247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14248 /* end confdefs.h. */ | |
14249 #define _SYSCALL32 | |
14250 #include <sys/link.h> | |
14251 int | |
14252 main () | |
14253 { | |
14254 struct link_map32 l; | |
14255 ; | |
14256 return 0; | |
14257 } | |
14258 _ACEOF | |
14259 if ac_fn_c_try_compile "$LINENO"; then : | |
14260 gdb_cv_have_struct_link_map32=yes | |
14261 else | |
14262 gdb_cv_have_struct_link_map32=no | |
14263 fi | |
14264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14265 fi | |
14266 | |
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map3
2" >&5 | |
14268 $as_echo "$gdb_cv_have_struct_link_map32" >&6; } | |
14269 if test $gdb_cv_have_struct_link_map32 = yes; then | |
14270 | |
14271 $as_echo "#define HAVE_STRUCT_LINK_MAP32 1" >>confdefs.h | |
14272 | |
14273 | |
14274 $as_echo "#define _SYSCALL32 1" >>confdefs.h | |
14275 | |
14276 fi | |
14277 fi | |
14278 | |
14279 # Check if the compiler supports the `long long' type. | |
14280 | |
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compi
ler" >&5 | |
14282 $as_echo_n "checking for long long support in compiler... " >&6; } | |
14283 if test "${gdb_cv_c_long_long+set}" = set; then : | |
14284 $as_echo_n "(cached) " >&6 | |
14285 else | |
14286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14287 /* end confdefs.h. */ | |
14288 extern long long foo; | |
14289 int | |
14290 main () | |
14291 { | |
14292 switch (foo & 2) { case 0: return 1; } | |
14293 ; | |
14294 return 0; | |
14295 } | |
14296 _ACEOF | |
14297 if ac_fn_c_try_compile "$LINENO"; then : | |
14298 gdb_cv_c_long_long=yes | |
14299 else | |
14300 gdb_cv_c_long_long=no | |
14301 fi | |
14302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14303 fi | |
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5 | |
14305 $as_echo "$gdb_cv_c_long_long" >&6; } | |
14306 if test $gdb_cv_c_long_long = yes; then | |
14307 | |
14308 $as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h | |
14309 | |
14310 fi | |
14311 | |
14312 # Check if the compiler and runtime support printing long longs. | |
14313 | |
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in print
f" >&5 | |
14315 $as_echo_n "checking for long long support in printf... " >&6; } | |
14316 if test "${gdb_cv_printf_has_long_long+set}" = set; then : | |
14317 $as_echo_n "(cached) " >&6 | |
14318 else | |
14319 if test "$cross_compiling" = yes; then : | |
14320 gdb_cv_printf_has_long_long=no | |
14321 else | |
14322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14323 /* end confdefs.h. */ | |
14324 $ac_includes_default | |
14325 int | |
14326 main () | |
14327 { | |
14328 char buf[32]; | |
14329 long long l = 0; | |
14330 l = (l << 16) + 0x0123; | |
14331 l = (l << 16) + 0x4567; | |
14332 l = (l << 16) + 0x89ab; | |
14333 l = (l << 16) + 0xcdef; | |
14334 sprintf (buf, "0x%016llx", l); | |
14335 return (strcmp ("0x0123456789abcdef", buf)); | |
14336 ; | |
14337 return 0; | |
14338 } | |
14339 _ACEOF | |
14340 if ac_fn_c_try_run "$LINENO"; then : | |
14341 gdb_cv_printf_has_long_long=yes | |
14342 else | |
14343 gdb_cv_printf_has_long_long=no | |
14344 fi | |
14345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
14346 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
14347 fi | |
14348 | |
14349 fi | |
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >
&5 | |
14351 $as_echo "$gdb_cv_printf_has_long_long" >&6; } | |
14352 if test $gdb_cv_printf_has_long_long = yes; then | |
14353 | |
14354 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h | |
14355 | |
14356 fi | |
14357 | |
14358 # Check if the compiler and runtime support printing decfloats. | |
14359 | |
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf
" >&5 | |
14361 $as_echo_n "checking for decfloat support in printf... " >&6; } | |
14362 if test "${gdb_cv_printf_has_decfloat+set}" = set; then : | |
14363 $as_echo_n "(cached) " >&6 | |
14364 else | |
14365 if test "$cross_compiling" = yes; then : | |
14366 gdb_cv_printf_has_decfloat=no | |
14367 else | |
14368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14369 /* end confdefs.h. */ | |
14370 $ac_includes_default | |
14371 int | |
14372 main () | |
14373 { | |
14374 char buf[64]; | |
14375 _Decimal32 d32 = 1.2345df; | |
14376 _Decimal64 d64 = 1.2345dd; | |
14377 _Decimal128 d128 = 1.2345dl; | |
14378 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128)
; | |
14379 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", bu
f)); | |
14380 ; | |
14381 return 0; | |
14382 } | |
14383 _ACEOF | |
14384 if ac_fn_c_try_run "$LINENO"; then : | |
14385 gdb_cv_printf_has_decfloat=yes | |
14386 else | |
14387 gdb_cv_printf_has_decfloat=no | |
14388 fi | |
14389 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
14390 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
14391 fi | |
14392 | |
14393 fi | |
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&
5 | |
14395 $as_echo "$gdb_cv_printf_has_decfloat" >&6; } | |
14396 if test $gdb_cv_printf_has_decfloat = yes; then | |
14397 | |
14398 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h | |
14399 | |
14400 fi | |
14401 | |
14402 # Check if the compiler supports the `long double' type. We can't use | |
14403 # AC_C_LONG_DOUBLE because that one does additional checks on the | |
14404 # constants defined in <float.h> that fail on some systems, | |
14405 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6. | |
14406 | |
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in com
piler" >&5 | |
14408 $as_echo_n "checking for long double support in compiler... " >&6; } | |
14409 if test "${gdb_cv_c_long_double+set}" = set; then : | |
14410 $as_echo_n "(cached) " >&6 | |
14411 else | |
14412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14413 /* end confdefs.h. */ | |
14414 long double foo; | |
14415 _ACEOF | |
14416 if ac_fn_c_try_compile "$LINENO"; then : | |
14417 gdb_cv_c_long_double=yes | |
14418 else | |
14419 gdb_cv_c_long_double=no | |
14420 fi | |
14421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14422 fi | |
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5 | |
14424 $as_echo "$gdb_cv_c_long_double" >&6; } | |
14425 if test $gdb_cv_c_long_double = yes; then | |
14426 | |
14427 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h | |
14428 | |
14429 fi | |
14430 | |
14431 # Check if the compiler and runtime support printing long doubles. | |
14432 | |
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in pri
ntf" >&5 | |
14434 $as_echo_n "checking for long double support in printf... " >&6; } | |
14435 if test "${gdb_cv_printf_has_long_double+set}" = set; then : | |
14436 $as_echo_n "(cached) " >&6 | |
14437 else | |
14438 if test "$cross_compiling" = yes; then : | |
14439 gdb_cv_printf_has_long_double=no | |
14440 else | |
14441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14442 /* end confdefs.h. */ | |
14443 $ac_includes_default | |
14444 int | |
14445 main () | |
14446 { | |
14447 char buf[16]; | |
14448 long double f = 3.141592653; | |
14449 sprintf (buf, "%Lg", f); | |
14450 return (strncmp ("3.14159", buf, 7)); | |
14451 ; | |
14452 return 0; | |
14453 } | |
14454 _ACEOF | |
14455 if ac_fn_c_try_run "$LINENO"; then : | |
14456 gdb_cv_printf_has_long_double=yes | |
14457 else | |
14458 gdb_cv_printf_has_long_double=no | |
14459 fi | |
14460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
14461 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
14462 fi | |
14463 | |
14464 fi | |
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double"
>&5 | |
14466 $as_echo "$gdb_cv_printf_has_long_double" >&6; } | |
14467 if test $gdb_cv_printf_has_long_double = yes; then | |
14468 | |
14469 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h | |
14470 | |
14471 fi | |
14472 | |
14473 # Check if the compiler and runtime support scanning long doubles. | |
14474 | |
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in sca
nf" >&5 | |
14476 $as_echo_n "checking for long double support in scanf... " >&6; } | |
14477 if test "${gdb_cv_scanf_has_long_double+set}" = set; then : | |
14478 $as_echo_n "(cached) " >&6 | |
14479 else | |
14480 if test "$cross_compiling" = yes; then : | |
14481 gdb_cv_scanf_has_long_double=no | |
14482 else | |
14483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14484 /* end confdefs.h. */ | |
14485 #include <stdio.h> | |
14486 int | |
14487 main () | |
14488 { | |
14489 char *buf = "3.141592653"; | |
14490 long double f = 0; | |
14491 sscanf (buf, "%Lg", &f); | |
14492 return !(f > 3.14159 && f < 3.14160); | |
14493 ; | |
14494 return 0; | |
14495 } | |
14496 _ACEOF | |
14497 if ac_fn_c_try_run "$LINENO"; then : | |
14498 gdb_cv_scanf_has_long_double=yes | |
14499 else | |
14500 gdb_cv_scanf_has_long_double=no | |
14501 fi | |
14502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
14503 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
14504 fi | |
14505 | |
14506 fi | |
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double"
>&5 | |
14508 $as_echo "$gdb_cv_scanf_has_long_double" >&6; } | |
14509 if test $gdb_cv_scanf_has_long_double = yes; then | |
14510 | |
14511 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h | |
14512 | |
14513 fi | |
14514 | |
14515 case ${host_os} in | |
14516 aix*) | |
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5 | |
14518 $as_echo_n "checking for -bbigtoc option... " >&6; } | |
14519 if test "${gdb_cv_bigtoc+set}" = set; then : | |
14520 $as_echo_n "(cached) " >&6 | |
14521 else | |
14522 | |
14523 SAVE_LDFLAGS=$LDFLAGS | |
14524 | |
14525 case $GCC in | |
14526 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;; | |
14527 *) gdb_cv_bigtoc=-bbigtoc ;; | |
14528 esac | |
14529 | |
14530 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc | |
14531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14532 /* end confdefs.h. */ | |
14533 | |
14534 int | |
14535 main () | |
14536 { | |
14537 int i; | |
14538 ; | |
14539 return 0; | |
14540 } | |
14541 _ACEOF | |
14542 if ac_fn_c_try_link "$LINENO"; then : | |
14543 | |
14544 else | |
14545 gdb_cv_bigtoc= | |
14546 fi | |
14547 rm -f core conftest.err conftest.$ac_objext \ | |
14548 conftest$ac_exeext conftest.$ac_ext | |
14549 LDFLAGS="${SAVE_LDFLAGS}" | |
14550 | |
14551 fi | |
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5 | |
14553 $as_echo "$gdb_cv_bigtoc" >&6; } | |
14554 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}" | |
14555 ;; | |
14556 esac | |
14557 | |
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >
&5 | |
14559 $as_echo_n "checking for the dynamic export flag... " >&6; } | |
14560 dynamic_list=false | |
14561 if test "${gdb_native}" = yes; then | |
14562 # The dynamically loaded libthread_db needs access to symbols in the gdb | |
14563 # executable. Older GNU ld supports --export-dynamic but --dynamic-list | |
14564 # may not be supported there. | |
14565 old_LDFLAGS="$LDFLAGS" | |
14566 # Older GNU ld supports --export-dynamic but --dynamic-list it does not. | |
14567 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list" | |
14568 LDFLAGS="$LDFLAGS $RDYNAMIC" | |
14569 if test "${have_libpython}" = no; then | |
14570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14571 /* end confdefs.h. */ | |
14572 | |
14573 int | |
14574 main () | |
14575 { | |
14576 | |
14577 ; | |
14578 return 0; | |
14579 } | |
14580 _ACEOF | |
14581 if ac_fn_c_try_link "$LINENO"; then : | |
14582 dynamic_list=true | |
14583 fi | |
14584 rm -f core conftest.err conftest.$ac_objext \ | |
14585 conftest$ac_exeext conftest.$ac_ext | |
14586 else | |
14587 # Workaround http://bugs.python.org/issue4434 where static | |
14588 # libpythonX.Y.a would get its symbols required for | |
14589 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list. | |
14590 # Problem does not happen for the recommended libpythonX.Y.so linkage. | |
14591 old_CFLAGS="$CFLAGS" | |
14592 CFLAGS="$CFLAGS $PYTHON_CFLAGS" | |
14593 if test "$cross_compiling" = yes; then : | |
14594 true | |
14595 else | |
14596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14597 /* end confdefs.h. */ | |
14598 #include "${have_libpython}/Python.h" | |
14599 int | |
14600 main () | |
14601 { | |
14602 int err; | |
14603 Py_Initialize (); | |
14604 err = PyRun_SimpleString ("import itertools\n"); | |
14605 Py_Finalize (); | |
14606 return err == 0 ? 0 : 1; | |
14607 ; | |
14608 return 0; | |
14609 } | |
14610 _ACEOF | |
14611 if ac_fn_c_try_run "$LINENO"; then : | |
14612 dynamic_list=true | |
14613 fi | |
14614 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
14615 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
14616 fi | |
14617 | |
14618 CFLAGS="$old_CFLAGS" | |
14619 fi | |
14620 LDFLAGS="$old_LDFLAGS" | |
14621 fi | |
14622 if $dynamic_list; then | |
14623 found="-Wl,--dynamic-list" | |
14624 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list' | |
14625 else | |
14626 found="-rdynamic" | |
14627 RDYNAMIC="-rdynamic" | |
14628 fi | |
14629 | |
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5 | |
14631 $as_echo "$found" >&6; } | |
14632 | |
14633 | |
14634 if test ${build} = ${host} -a ${host} = ${target} ; then | |
14635 case ${host_os} in | |
14636 solaris*) | |
14637 # See if thread_db library is around for Solaris thread debugging. | |
14638 # Note that we must explicitly test for version 1 of the library | |
14639 # because version 0 (present on Solaris 2.4 or earlier) doesn't have | |
14640 # the same API. | |
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debug
ging library" >&5 | |
14642 $as_echo_n "checking for Solaris thread debugging library... " >&6; } | |
14643 if test -f /usr/lib/libthread_db.so.1 ; then | |
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14645 $as_echo "yes" >&6; } | |
14646 | |
14647 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h | |
14648 | |
14649 CONFIG_OBS="${CONFIG_OBS} sol-thread.o" | |
14650 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c" | |
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >
&5 | |
14652 $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
14653 if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
14654 $as_echo_n "(cached) " >&6 | |
14655 else | |
14656 ac_check_lib_save_LIBS=$LIBS | |
14657 LIBS="-ldl $LIBS" | |
14658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14659 /* end confdefs.h. */ | |
14660 | |
14661 /* Override any GCC internal prototype to avoid an error. | |
14662 Use char because int might match the return type of a GCC | |
14663 builtin and then its argument prototype would still apply. */ | |
14664 #ifdef __cplusplus | |
14665 extern "C" | |
14666 #endif | |
14667 char dlopen (); | |
14668 int | |
14669 main () | |
14670 { | |
14671 return dlopen (); | |
14672 ; | |
14673 return 0; | |
14674 } | |
14675 _ACEOF | |
14676 if ac_fn_c_try_link "$LINENO"; then : | |
14677 ac_cv_lib_dl_dlopen=yes | |
14678 else | |
14679 ac_cv_lib_dl_dlopen=no | |
14680 fi | |
14681 rm -f core conftest.err conftest.$ac_objext \ | |
14682 conftest$ac_exeext conftest.$ac_ext | |
14683 LIBS=$ac_check_lib_save_LIBS | |
14684 fi | |
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
14686 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
14687 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
14688 cat >>confdefs.h <<_ACEOF | |
14689 #define HAVE_LIBDL 1 | |
14690 _ACEOF | |
14691 | |
14692 LIBS="-ldl $LIBS" | |
14693 | |
14694 fi | |
14695 | |
14696 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} $RDYNAMIC" | |
14697 # Sun randomly tweaked the prototypes in <proc_service.h> | |
14698 # at one point. | |
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> i
s old" >&5 | |
14700 $as_echo_n "checking if <proc_service.h> is old... " >&6; } | |
14701 if test "${gdb_cv_proc_service_is_old+set}" = set; then : | |
14702 $as_echo_n "(cached) " >&6 | |
14703 else | |
14704 | |
14705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14706 /* end confdefs.h. */ | |
14707 | |
14708 #include <proc_service.h> | |
14709 ps_err_e ps_pdwrite | |
14710 (struct ps_prochandle*, psaddr_t, const void*, size_t); | |
14711 | |
14712 int | |
14713 main () | |
14714 { | |
14715 | 10826 |
14716 ; | 10827 ; |
14717 return 0; | 10828 return 0; |
14718 } | 10829 } |
14719 _ACEOF | 10830 _ACEOF |
14720 if ac_fn_c_try_compile "$LINENO"; then : | 10831 if ac_fn_c_try_compile "$LINENO"; then : |
14721 gdb_cv_proc_service_is_old=no | 10832 gl_cv_func_iswcntrl_works="guessing yes" |
14722 else | 10833 else |
14723 gdb_cv_proc_service_is_old=yes | 10834 gl_cv_func_iswcntrl_works="guessing no" |
14724 fi | 10835 fi |
14725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 10836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
14726 | 10837 |
14727 fi | |
14728 | |
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_i
s_old" >&5 | |
14730 $as_echo "$gdb_cv_proc_service_is_old" >&6; } | |
14731 if test $gdb_cv_proc_service_is_old = yes; then | |
14732 | |
14733 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h | |
14734 | |
14735 fi | |
14736 else | |
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14738 $as_echo "no" >&6; } | |
14739 fi | |
14740 ;; | |
14741 aix*) | |
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging
library" >&5 | |
14743 $as_echo_n "checking for AiX thread debugging library... " >&6; } | |
14744 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then : | |
14745 $as_echo_n "(cached) " >&6 | |
14746 else | 10838 else |
14747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 10839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14748 /* end confdefs.h. */ | 10840 /* end confdefs.h. */ |
14749 #include <sys/pthdebug.h> | 10841 |
| 10842 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be |
| 10843 included before <wchar.h>. |
| 10844 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> |
| 10845 must be included before <wchar.h>. */ |
| 10846 #include <stddef.h> |
| 10847 #include <stdio.h> |
| 10848 #include <time.h> |
| 10849 #include <wchar.h> |
| 10850 #include <wctype.h> |
| 10851 int main () { return iswprint ('x') == 0; } |
| 10852 |
| 10853 _ACEOF |
| 10854 if ac_fn_c_try_run "$LINENO"; then : |
| 10855 gl_cv_func_iswcntrl_works=yes |
| 10856 else |
| 10857 gl_cv_func_iswcntrl_works=no |
| 10858 fi |
| 10859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10860 conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 10861 fi |
| 10862 |
| 10863 |
| 10864 fi |
| 10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5 |
| 10866 $as_echo "$gl_cv_func_iswcntrl_works" >&6; } |
| 10867 fi |
| 10868 HAVE_WCTYPE_H=1 |
| 10869 else |
| 10870 HAVE_WCTYPE_H=0 |
| 10871 fi |
| 10872 |
| 10873 |
| 10874 case "$gl_cv_func_iswcntrl_works" in |
| 10875 *yes) REPLACE_ISWCNTRL=0 ;; |
| 10876 *) REPLACE_ISWCNTRL=1 ;; |
| 10877 esac |
| 10878 |
| 10879 |
| 10880 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then |
| 10881 : |
| 10882 fi |
| 10883 |
| 10884 if test $REPLACE_ISWCNTRL = 1; then |
| 10885 REPLACE_TOWLOWER=1 |
| 10886 else |
| 10887 for ac_func in towlower |
| 10888 do : |
| 10889 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower" |
| 10890 if test "x$ac_cv_func_towlower" = x""yes; then : |
| 10891 cat >>confdefs.h <<_ACEOF |
| 10892 #define HAVE_TOWLOWER 1 |
| 10893 _ACEOF |
| 10894 |
| 10895 fi |
| 10896 done |
| 10897 |
| 10898 if test $ac_cv_func_towlower = yes; then |
| 10899 REPLACE_TOWLOWER=0 |
| 10900 else |
| 10901 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru
64 with Desktop Toolkit C has a bug: <stdio.h> must be |
| 10902 included before <wchar.h>. |
| 10903 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> |
| 10904 must be included before <wchar.h>. */ |
| 10905 #include <stddef.h> |
| 10906 #include <stdio.h> |
| 10907 #include <time.h> |
| 10908 #include <wchar.h> |
| 10909 #if HAVE_WCTYPE_H |
| 10910 # include <wctype.h> |
| 10911 #endif |
| 10912 |
| 10913 " |
| 10914 if test "x$ac_cv_have_decl_towlower" = x""yes; then : |
| 10915 ac_have_decl=1 |
| 10916 else |
| 10917 ac_have_decl=0 |
| 10918 fi |
| 10919 |
| 10920 cat >>confdefs.h <<_ACEOF |
| 10921 #define HAVE_DECL_TOWLOWER $ac_have_decl |
| 10922 _ACEOF |
| 10923 |
| 10924 if test $ac_cv_have_decl_towlower = yes; then |
| 10925 REPLACE_TOWLOWER=1 |
| 10926 else |
| 10927 REPLACE_TOWLOWER=0 |
| 10928 fi |
| 10929 fi |
| 10930 fi |
| 10931 |
| 10932 |
| 10933 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then |
| 10934 : |
| 10935 fi |
| 10936 |
| 10937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5 |
| 10938 $as_echo_n "checking for wctype_t... " >&6; } |
| 10939 if test "${gl_cv_type_wctype_t+set}" = set; then : |
| 10940 $as_echo_n "(cached) " >&6 |
| 10941 else |
| 10942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10943 /* end confdefs.h. */ |
| 10944 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be |
| 10945 included before <wchar.h>. |
| 10946 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> |
| 10947 must be included before <wchar.h>. */ |
| 10948 #include <stddef.h> |
| 10949 #include <stdio.h> |
| 10950 #include <time.h> |
| 10951 #include <wchar.h> |
| 10952 #if HAVE_WCTYPE_H |
| 10953 # include <wctype.h> |
| 10954 #endif |
| 10955 wctype_t a; |
| 10956 |
14750 int | 10957 int |
14751 main () | 10958 main () |
14752 { | 10959 { |
14753 #ifndef PTHDB_VERSION_3 | 10960 |
14754 #error | |
14755 #endif | |
14756 ; | 10961 ; |
14757 return 0; | 10962 return 0; |
14758 } | 10963 } |
14759 _ACEOF | 10964 _ACEOF |
14760 if ac_fn_c_try_compile "$LINENO"; then : | 10965 if ac_fn_c_try_compile "$LINENO"; then : |
14761 gdb_cv_have_aix_thread_debug=yes | 10966 gl_cv_type_wctype_t=yes |
14762 else | 10967 else |
14763 gdb_cv_have_aix_thread_debug=no | 10968 gl_cv_type_wctype_t=no |
14764 fi | 10969 fi |
14765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 10970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
14766 fi | 10971 |
14767 | 10972 fi |
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_d
ebug" >&5 | 10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5 |
14769 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; } | 10974 $as_echo "$gl_cv_type_wctype_t" >&6; } |
14770 if test $gdb_cv_have_aix_thread_debug = yes; then | 10975 if test $gl_cv_type_wctype_t = no; then |
14771 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c" | 10976 HAVE_WCTYPE_T=0 |
14772 CONFIG_OBS="${CONFIG_OBS} aix-thread.o" | 10977 fi |
14773 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug" | 10978 |
14774 | 10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5 |
14775 # Older versions of AIX do not provide the declaration for | 10980 $as_echo_n "checking for wctrans_t... " >&6; } |
14776 # the getthrds function (it appears that it was introduced | 10981 if test "${gl_cv_type_wctrans_t+set}" = set; then : |
14777 # with AIX 6.x). | |
14778 ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#in
clude <procinfo.h> | |
14779 " | |
14780 if test "x$ac_cv_have_decl_getthrds" = x""yes; then : | |
14781 ac_have_decl=1 | |
14782 else | |
14783 ac_have_decl=0 | |
14784 fi | |
14785 | |
14786 cat >>confdefs.h <<_ACEOF | |
14787 #define HAVE_DECL_GETTHRDS $ac_have_decl | |
14788 _ACEOF | |
14789 | |
14790 fi | |
14791 ;; | |
14792 esac | |
14793 | |
14794 fi | |
14795 | |
14796 if test "x$ac_cv_header_thread_db_h" = "xyes"; then | |
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has T
D_NOTALLOC" >&5 | |
14798 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; } | |
14799 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then : | |
14800 $as_echo_n "(cached) " >&6 | 10982 $as_echo_n "(cached) " >&6 |
14801 else | 10983 else |
14802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 10984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14803 /* end confdefs.h. */ | 10985 /* end confdefs.h. */ |
14804 #include <thread_db.h> | 10986 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be |
| 10987 included before <wchar.h>. |
| 10988 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> |
| 10989 must be included before <wchar.h>. */ |
| 10990 #include <stddef.h> |
| 10991 #include <stdio.h> |
| 10992 #include <time.h> |
| 10993 #include <wchar.h> |
| 10994 #include <wctype.h> |
| 10995 wctrans_t a; |
| 10996 |
14805 int | 10997 int |
14806 main () | 10998 main () |
14807 { | 10999 { |
14808 int i = TD_NOTALLOC; | 11000 |
14809 ; | 11001 ; |
14810 return 0; | 11002 return 0; |
14811 } | 11003 } |
14812 _ACEOF | 11004 _ACEOF |
14813 if ac_fn_c_try_compile "$LINENO"; then : | 11005 if ac_fn_c_try_compile "$LINENO"; then : |
14814 gdb_cv_thread_db_h_has_td_notalloc=yes | 11006 gl_cv_type_wctrans_t=yes |
14815 else | 11007 else |
14816 gdb_cv_thread_db_h_has_td_notalloc=no | 11008 gl_cv_type_wctrans_t=no |
14817 | |
14818 fi | 11009 fi |
14819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 11010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
14820 | 11011 |
14821 fi | 11012 fi |
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_nota
lloc" >&5 | 11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5 |
14823 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; } | 11014 $as_echo "$gl_cv_type_wctrans_t" >&6; } |
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has T
D_VERSION" >&5 | 11015 if test $gl_cv_type_wctrans_t = no; then |
14825 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; } | 11016 HAVE_WCTRANS_T=0 |
14826 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then : | 11017 fi |
| 11018 |
| 11019 |
| 11020 for gl_func in wctype iswctype wctrans towctrans ; do |
| 11021 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` |
| 11022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declar
ed without a macro" >&5 |
| 11023 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } |
| 11024 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then : |
14827 $as_echo_n "(cached) " >&6 | 11025 $as_echo_n "(cached) " >&6 |
14828 else | 11026 else |
14829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 11027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14830 /* end confdefs.h. */ | 11028 /* end confdefs.h. */ |
14831 #include <thread_db.h> | 11029 |
| 11030 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before |
| 11031 <wchar.h>. |
| 11032 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 11033 included before <wchar.h>. */ |
| 11034 #if !(defined __GLIBC__ && !defined __UCLIBC__) |
| 11035 # include <stddef.h> |
| 11036 # include <stdio.h> |
| 11037 # include <time.h> |
| 11038 # include <wchar.h> |
| 11039 #endif |
| 11040 #include <wctype.h> |
| 11041 |
14832 int | 11042 int |
14833 main () | 11043 main () |
14834 { | 11044 { |
14835 int i = TD_VERSION; | 11045 #undef $gl_func |
| 11046 (void) $gl_func; |
14836 ; | 11047 ; |
14837 return 0; | 11048 return 0; |
14838 } | 11049 } |
14839 _ACEOF | 11050 _ACEOF |
14840 if ac_fn_c_try_compile "$LINENO"; then : | 11051 if ac_fn_c_try_compile "$LINENO"; then : |
14841 gdb_cv_thread_db_h_has_td_version=yes | 11052 eval "$as_gl_Symbol=yes" |
14842 else | 11053 else |
14843 gdb_cv_thread_db_h_has_td_version=no | 11054 eval "$as_gl_Symbol=no" |
14844 | |
14845 fi | 11055 fi |
14846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 11056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
14847 | 11057 fi |
14848 fi | 11058 eval ac_res=\$$as_gl_Symbol |
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_vers
ion" >&5 | 11059 » { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
14850 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; } | 11060 $as_echo "$ac_res" >&6; } |
14851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has T
D_NOTLS" >&5 | 11061 eval as_val=\$$as_gl_Symbol |
14852 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; } | 11062 if test "x$as_val" = x""yes; then : |
14853 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then : | 11063 cat >>confdefs.h <<_ACEOF |
14854 $as_echo_n "(cached) " >&6 | 11064 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 |
14855 else | |
14856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14857 /* end confdefs.h. */ | |
14858 #include <thread_db.h> | |
14859 int | |
14860 main () | |
14861 { | |
14862 int i = TD_NOTLS; | |
14863 ; | |
14864 return 0; | |
14865 } | |
14866 _ACEOF | 11065 _ACEOF |
14867 if ac_fn_c_try_compile "$LINENO"; then : | 11066 |
14868 gdb_cv_thread_db_h_has_td_notls=yes | 11067 eval ac_cv_have_decl_$gl_func=yes |
14869 else | 11068 fi |
14870 gdb_cv_thread_db_h_has_td_notls=no | 11069 done |
14871 | 11070 |
14872 fi | 11071 |
14873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 11072 # End of code from modules |
14874 | 11073 |
14875 fi | 11074 |
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notl
s" >&5 | 11075 |
14877 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; } | 11076 |
14878 fi | 11077 |
14879 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then | 11078 |
14880 | 11079 |
14881 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h | 11080 |
14882 | 11081 |
14883 fi | 11082 gltests_libdeps= |
14884 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then | 11083 gltests_ltlibdeps= |
14885 | 11084 |
14886 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h | 11085 |
14887 | 11086 |
14888 fi | 11087 |
14889 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then | 11088 |
14890 | 11089 |
14891 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h | 11090 |
14892 | 11091 |
14893 fi | 11092 |
14894 | 11093 gl_source_base='tests' |
14895 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then | 11094 gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghi
jklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g
'`_GNULIB_TESTS |
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has
__NR_tkill" >&5 | 11095 |
14897 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; } | 11096 gl_module_indicator_condition=$gltests_WITNESS |
14898 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then : | 11097 |
14899 $as_echo_n "(cached) " >&6 | 11098 |
14900 else | 11099 |
14901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 11100 |
14902 /* end confdefs.h. */ | 11101 |
14903 #include <sys/syscall.h> | 11102 |
14904 int | 11103 |
14905 main () | 11104 |
14906 { | 11105 |
14907 int i = __NR_tkill; | 11106 LIBGNU_LIBDEPS="$gl_libdeps" |
14908 ; | 11107 |
14909 return 0; | 11108 LIBGNU_LTLIBDEPS="$gl_ltlibdeps" |
14910 } | 11109 |
14911 _ACEOF | 11110 |
14912 if ac_fn_c_try_compile "$LINENO"; then : | 11111 |
14913 gdb_cv_sys_syscall_h_has_tkill=yes | 11112 # We don't use automake, but gnulib does. This line lets us generate |
14914 else | 11113 # its Makefile.in. |
14915 gdb_cv_sys_syscall_h_has_tkill=no | 11114 am__api_version='1.11' |
14916 | 11115 |
14917 fi | 11116 # Find a good install program. We prefer a C program (faster), |
14918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 11117 # so one script is as good as another. But avoid the broken or |
14919 | 11118 # incompatible versions: |
14920 fi | 11119 # SysV /etc/install, /usr/sbin/install |
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill
" >&5 | 11120 # SunOS /usr/etc/install |
14922 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; } | 11121 # IRIX /sbin/install |
14923 fi | 11122 # AIX /bin/install |
14924 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscal
l" = "xyes"; then | 11123 # AmigaOS /C/install, which installs bootblocks on floppy discs |
14925 | 11124 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
14926 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h | 11125 # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
14927 | 11126 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
14928 fi | 11127 # OS/2's system install, which has a completely different semantic |
14929 | 11128 # ./install, which can be erroneously created by make from ./install.sh. |
14930 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOM
IZE" "#include <sys/personality.h> | 11129 # Reject install programs that cannot install multiple files. |
14931 " | 11130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install"
>&5 |
14932 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then : | 11131 $as_echo_n "checking for a BSD-compatible install... " >&6; } |
14933 ac_have_decl=1 | 11132 if test -z "$INSTALL"; then |
14934 else | 11133 if test "${ac_cv_path_install+set}" = set; then : |
14935 ac_have_decl=0 | 11134 $as_echo_n "(cached) " >&6 |
14936 fi | 11135 else |
14937 | 11136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14938 cat >>confdefs.h <<_ACEOF | 11137 for as_dir in $PATH |
14939 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl | 11138 do |
14940 _ACEOF | 11139 IFS=$as_save_IFS |
14941 | 11140 test -z "$as_dir" && as_dir=. |
14942 | 11141 # Account for people who put trailing slashes in PATH elements. |
14943 if test "$cross_compiling" = yes; then : | 11142 case $as_dir/ in #(( |
14944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 11143 ./ | .// | /[cC]/* | \ |
14945 /* end confdefs.h. */ | 11144 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
14946 #include <sys/personality.h> | 11145 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
14947 int | 11146 /usr/ucb/* ) ;; |
14948 main () | 11147 *) |
14949 { | 11148 # OSF1 and SCO ODT 3.0 have their own names for install. |
14950 | 11149 # Don't use installbsd from OSF since it installs stuff as root |
14951 # if !HAVE_DECL_ADDR_NO_RANDOMIZE | 11150 # by default. |
14952 # define ADDR_NO_RANDOMIZE 0x0040000 | 11151 for ac_prog in ginstall scoinst install; do |
14953 # endif | 11152 for ac_exec_ext in '' $ac_executable_extensions; do |
14954 /* Test the flag could be set and stays set. */ | 11153 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_p
rog$ac_exec_ext"; }; then |
14955 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE); | 11154 if test $ac_prog = install && |
14956 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE)) | 11155 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
14957 return 1 | 11156 # AIX install. It has an incompatible calling convention. |
14958 ; | 11157 : |
14959 return 0; | 11158 elif test $ac_prog = install && |
14960 } | 11159 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
14961 _ACEOF | 11160 # program-specific install script used by HP pwplus--don't use. |
14962 if ac_fn_c_try_link "$LINENO"; then : | 11161 : |
14963 have_personality=true | 11162 else |
14964 else | 11163 rm -rf conftest.one conftest.two conftest.dir |
14965 have_personality=false | 11164 echo one > conftest.one |
14966 fi | 11165 echo two > conftest.two |
14967 rm -f core conftest.err conftest.$ac_objext \ | 11166 mkdir conftest.dir |
14968 conftest$ac_exeext conftest.$ac_ext | 11167 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd
`/conftest.dir" && |
14969 else | 11168 test -s conftest.one && test -s conftest.two && |
14970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 11169 test -s conftest.dir/conftest.one && |
14971 /* end confdefs.h. */ | 11170 test -s conftest.dir/conftest.two |
14972 #include <sys/personality.h> | 11171 then |
14973 int | 11172 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
14974 main () | 11173 break 3 |
14975 { | 11174 fi |
14976 | 11175 fi |
14977 # if !HAVE_DECL_ADDR_NO_RANDOMIZE | 11176 fi |
14978 # define ADDR_NO_RANDOMIZE 0x0040000 | 11177 done |
14979 # endif | |
14980 /* Test the flag could be set and stays set. */ | |
14981 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE); | |
14982 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE)) | |
14983 return 1 | |
14984 ; | |
14985 return 0; | |
14986 } | |
14987 _ACEOF | |
14988 if ac_fn_c_try_run "$LINENO"; then : | |
14989 have_personality=true | |
14990 else | |
14991 have_personality=false | |
14992 fi | |
14993 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
14994 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
14995 fi | |
14996 | |
14997 if $have_personality | |
14998 then | |
14999 | |
15000 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h | |
15001 | |
15002 fi | |
15003 | |
15004 | |
15005 target_sysroot_reloc=0 | |
15006 | |
15007 # Check whether --with-sysroot was given. | |
15008 if test "${with_sysroot+set}" = set; then : | |
15009 withval=$with_sysroot; | |
15010 case ${with_sysroot} in | |
15011 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;; | |
15012 *) TARGET_SYSTEM_ROOT=$with_sysroot ;; | |
15013 esac | |
15014 | |
15015 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"' | |
15016 | |
15017 if test "x$prefix" = xNONE; then | |
15018 test_prefix=/usr/local | |
15019 else | |
15020 test_prefix=$prefix | |
15021 fi | |
15022 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then | |
15023 test_exec_prefix=$test_prefix | |
15024 else | |
15025 test_exec_prefix=$exec_prefix | |
15026 fi | |
15027 case ${TARGET_SYSTEM_ROOT} in | |
15028 "${test_prefix}"|"${test_prefix}/"*|\ | |
15029 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\ | |
15030 '${prefix}'|'${prefix}/'*|\ | |
15031 '${exec_prefix}'|'${exec_prefix}/'*) | |
15032 target_sysroot_reloc=1 | |
15033 ;; | |
15034 esac | |
15035 | |
15036 else | |
15037 | |
15038 TARGET_SYSTEM_ROOT= | |
15039 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"' | |
15040 | |
15041 fi | |
15042 | |
15043 TARGET_SYSTEM_ROOT_DEFINE="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOC
ATABLE=$target_sysroot_reloc" | |
15044 | |
15045 | |
15046 | |
15047 | |
15048 | |
15049 # Check whether --with-system-gdbinit was given. | |
15050 if test "${with_system_gdbinit+set}" = set; then : | |
15051 withval=$with_system_gdbinit; | |
15052 SYSTEM_GDBINIT=$withval | |
15053 else | |
15054 SYSTEM_GDBINIT= | |
15055 fi | |
15056 | |
15057 | |
15058 test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
15059 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
15060 ac_define_dir=`eval echo $SYSTEM_GDBINIT` | |
15061 ac_define_dir=`eval echo $ac_define_dir` | |
15062 | |
15063 cat >>confdefs.h <<_ACEOF | |
15064 #define SYSTEM_GDBINIT "$ac_define_dir" | |
15065 _ACEOF | |
15066 | |
15067 | |
15068 | |
15069 | |
15070 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then | |
15071 if test "x$prefix" = xNONE; then | |
15072 test_prefix=/usr/local | |
15073 else | |
15074 test_prefix=$prefix | |
15075 fi | |
15076 else | |
15077 test_prefix=$exec_prefix | |
15078 fi | |
15079 value=0 | |
15080 case ${ac_define_dir} in | |
15081 "${test_prefix}"|"${test_prefix}/"*|\ | |
15082 '${exec_prefix}'|'${exec_prefix}/'*) | |
15083 value=1 | |
15084 ;; | |
15085 esac | |
15086 | |
15087 cat >>confdefs.h <<_ACEOF | |
15088 #define SYSTEM_GDBINIT_RELOCATABLE $value | |
15089 _ACEOF | |
15090 | |
15091 | |
15092 | |
15093 | |
15094 # Check whether --enable-werror was given. | |
15095 if test "${enable_werror+set}" = set; then : | |
15096 enableval=$enable_werror; case "${enableval}" in | |
15097 yes | y) ERROR_ON_WARNING="yes" ;; | |
15098 no | n) ERROR_ON_WARNING="no" ;; | |
15099 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; | |
15100 esac | |
15101 fi | |
15102 | |
15103 | |
15104 WERROR_CFLAGS="" | |
15105 if test "${ERROR_ON_WARNING}" = yes ; then | |
15106 WERROR_CFLAGS="-Werror" | |
15107 fi | |
15108 | |
15109 # The entries after -Wno-pointer-sign are disabled warnings which may | |
15110 # be enabled in the future, which can not currently be used to build | |
15111 # GDB. | |
15112 # NOTE: If you change this list, remember to update | |
15113 # gdb/doc/gdbint.texinfo. | |
15114 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \ | |
15115 -Wformat-nonliteral -Wno-pointer-sign \ | |
15116 -Wno-unused -Wunused-value -Wunused-function \ | |
15117 -Wno-switch -Wno-char-subscripts" | |
15118 | |
15119 # Enable -Wno-format by default when using gcc on mingw since many | |
15120 # GCC versions complain about %I64. | |
15121 case "${host}" in | |
15122 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;; | |
15123 esac | |
15124 | |
15125 # Check whether --enable-build-warnings was given. | |
15126 if test "${enable_build_warnings+set}" = set; then : | |
15127 enableval=$enable_build_warnings; case "${enableval}" in | |
15128 yes) ;; | |
15129 no) build_warnings="-w";; | |
15130 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
15131 build_warnings="${build_warnings} ${t}";; | |
15132 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
15133 build_warnings="${t} ${build_warnings}";; | |
15134 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
15135 esac | |
15136 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then | |
15137 echo "Setting compiler warning flags = $build_warnings" 6>&1 | |
15138 fi | |
15139 fi | |
15140 # Check whether --enable-gdb-build-warnings was given. | |
15141 if test "${enable_gdb_build_warnings+set}" = set; then : | |
15142 enableval=$enable_gdb_build_warnings; case "${enableval}" in | |
15143 yes) ;; | |
15144 no) build_warnings="-w";; | |
15145 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
15146 build_warnings="${build_warnings} ${t}";; | |
15147 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
15148 build_warnings="${t} ${build_warnings}";; | |
15149 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
15150 esac | |
15151 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then | |
15152 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1 | |
15153 fi | |
15154 fi | |
15155 WARN_CFLAGS="" | |
15156 if test "x${build_warnings}" != x -a "x$GCC" = xyes | |
15157 then | |
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&
5 | |
15159 $as_echo_n "checking compiler warning flags... " >&6; } | |
15160 # Separate out the -Werror flag as some files just cannot be | |
15161 # compiled with it enabled. | |
15162 for w in ${build_warnings}; do | |
15163 case $w in | |
15164 -Werr*) WERROR_CFLAGS=-Werror ;; | |
15165 *) # Check that GCC accepts it | |
15166 saved_CFLAGS="$CFLAGS" | |
15167 CFLAGS="$CFLAGS $w" | |
15168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15169 /* end confdefs.h. */ | |
15170 | |
15171 int | |
15172 main () | |
15173 { | |
15174 | |
15175 ; | |
15176 return 0; | |
15177 } | |
15178 _ACEOF | |
15179 if ac_fn_c_try_compile "$LINENO"; then : | |
15180 WARN_CFLAGS="${WARN_CFLAGS} $w" | |
15181 fi | |
15182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15183 CFLAGS="$saved_CFLAGS" | |
15184 esac | |
15185 done | 11178 done |
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFL
AGS}" >&5 | |
15187 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; } | |
15188 fi | |
15189 | |
15190 | |
15191 | |
15192 # In the Cygwin environment, we need some additional flags. | |
15193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5 | |
15194 $as_echo_n "checking for cygwin... " >&6; } | |
15195 if test "${gdb_cv_os_cygwin+set}" = set; then : | |
15196 $as_echo_n "(cached) " >&6 | |
15197 else | |
15198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15199 /* end confdefs.h. */ | |
15200 | |
15201 #if defined (__CYGWIN__) || defined (__CYGWIN32__) | |
15202 lose | |
15203 #endif | |
15204 _ACEOF | |
15205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15206 $EGREP "lose" >/dev/null 2>&1; then : | |
15207 gdb_cv_os_cygwin=yes | |
15208 else | |
15209 gdb_cv_os_cygwin=no | |
15210 fi | |
15211 rm -f conftest* | |
15212 | |
15213 fi | |
15214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5 | |
15215 $as_echo "$gdb_cv_os_cygwin" >&6; } | |
15216 | |
15217 | |
15218 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o" | |
15219 case ${host} in | |
15220 *go32* ) SER_HARDWIRE=ser-go32.o ;; | |
15221 *djgpp* ) SER_HARDWIRE=ser-go32.o ;; | |
15222 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;; | |
15223 esac | |
15224 | |
15225 | |
15226 # libreadline needs libuser32.a in a cygwin environment | |
15227 WIN32LIBS= | |
15228 if test x$gdb_cv_os_cygwin = xyes; then | |
15229 WIN32LIBS="-luser32" | |
15230 case "${target}" in | |
15231 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp" | |
15232 ;; | |
15233 esac | |
15234 fi | |
15235 | |
15236 # The ser-tcp.c module requires sockets. | |
15237 case ${host} in | |
15238 *mingw32*) | |
15239 | |
15240 $as_echo "#define USE_WIN32API 1" >>confdefs.h | |
15241 | |
15242 WIN32LIBS="$WIN32LIBS -lws2_32" | |
15243 ;; | 11179 ;; |
15244 esac | 11180 esac |
15245 | 11181 |
15246 | 11182 done |
15247 # Add ELF support to GDB, but only if BFD includes ELF support. | 11183 IFS=$as_save_IFS |
15248 OLD_CFLAGS=$CFLAGS | 11184 |
15249 OLD_LDFLAGS=$LDFLAGS | 11185 rm -rf conftest.one conftest.two conftest.dir |
15250 OLD_LIBS=$LIBS | 11186 |
15251 CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd" | 11187 fi |
15252 LDFLAGS="$LDFLAGS -L../bfd -L../libiberty" | 11188 if test "${ac_cv_path_install+set}" = set; then |
15253 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'` | 11189 INSTALL=$ac_cv_path_install |
15254 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>. | 11190 else |
15255 if test "$plugins" = "yes"; then | 11191 # As a last resort, use the slow shell script. Don't cache a |
15256 LIBS="-ldl $LIBS" | 11192 # value for INSTALL within a source directory, because that will |
15257 fi | 11193 # break other packages using the cache if that directory is |
15258 LIBS="-lbfd -liberty $intl $LIBS" | 11194 # removed, or if the value is a relative name. |
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5 | 11195 INSTALL=$ac_install_sh |
15260 $as_echo_n "checking for ELF support in BFD... " >&6; } | 11196 fi |
15261 if test "${gdb_cv_var_elf+set}" = set; then : | 11197 fi |
15262 $as_echo_n "(cached) " >&6 | 11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
15263 else | 11199 $as_echo "$INSTALL" >&6; } |
15264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 11200 |
15265 /* end confdefs.h. */ | 11201 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
15266 #include <stdlib.h> | 11202 # It thinks the first close brace ends the variable substitution. |
15267 #include "bfd.h" | 11203 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
15268 #include "elf-bfd.h" | 11204 |
15269 | 11205 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
15270 int | 11206 |
15271 main () | 11207 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
15272 { | 11208 |
15273 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd); | 11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is s
ane" >&5 |
15274 ; | 11210 $as_echo_n "checking whether build environment is sane... " >&6; } |
15275 return 0; | 11211 # Just in case |
15276 } | 11212 sleep 1 |
| 11213 echo timestamp > conftest.file |
| 11214 # Reject unsafe characters in $srcdir or the absolute working directory |
| 11215 # name. Accept space and tab only in the latter. |
| 11216 am_lf=' |
| 11217 ' |
| 11218 case `pwd` in |
| 11219 *[\\\"\#\$\&\'\`$am_lf]*) |
| 11220 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; |
| 11221 esac |
| 11222 case $srcdir in |
| 11223 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
| 11224 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; |
| 11225 esac |
| 11226 |
| 11227 # Do `set' in a subshell so we don't clobber the current shell's |
| 11228 # arguments. Must try -L first in case configure is actually a |
| 11229 # symlink; some systems play weird games with the mod time of symlinks |
| 11230 # (eg FreeBSD returns the mod time of the symlink's containing |
| 11231 # directory). |
| 11232 if ( |
| 11233 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
| 11234 if test "$*" = "X"; then |
| 11235 # -L didn't work. |
| 11236 set X `ls -t "$srcdir/configure" conftest.file` |
| 11237 fi |
| 11238 rm -f conftest.file |
| 11239 if test "$*" != "X $srcdir/configure conftest.file" \ |
| 11240 && test "$*" != "X conftest.file $srcdir/configure"; then |
| 11241 |
| 11242 # If neither matched, then we have a broken ls. This can happen |
| 11243 # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 11244 # broken ls alias from the environment. This has actually |
| 11245 # happened. Such a system could not be considered "sane". |
| 11246 as_fn_error "ls -t appears to fail. Make sure there is not a broken |
| 11247 alias in your environment" "$LINENO" 5 |
| 11248 fi |
| 11249 |
| 11250 test "$2" = conftest.file |
| 11251 ) |
| 11252 then |
| 11253 # Ok. |
| 11254 : |
| 11255 else |
| 11256 as_fn_error "newly created file is older than distributed files! |
| 11257 Check your system clock" "$LINENO" 5 |
| 11258 fi |
| 11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11260 $as_echo "yes" >&6; } |
| 11261 test "$program_prefix" != NONE && |
| 11262 program_transform_name="s&^&$program_prefix&;$program_transform_name" |
| 11263 # Use a double $ so make ignores it. |
| 11264 test "$program_suffix" != NONE && |
| 11265 program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
| 11266 # Double any \ or $. |
| 11267 # By default was `s,x,x', remove it if useless. |
| 11268 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 11269 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
| 11270 |
| 11271 # expand $ac_aux_dir to an absolute path |
| 11272 am_aux_dir=`cd $ac_aux_dir && pwd` |
| 11273 |
| 11274 if test x"${MISSING+set}" != xset; then |
| 11275 case $am_aux_dir in |
| 11276 *\ * | *\ *) |
| 11277 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
| 11278 *) |
| 11279 MISSING="\${SHELL} $am_aux_dir/missing" ;; |
| 11280 esac |
| 11281 fi |
| 11282 # Use eval to expand $SHELL |
| 11283 if eval "$MISSING --run true"; then |
| 11284 am_missing_run="$MISSING --run " |
| 11285 else |
| 11286 am_missing_run= |
| 11287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old
or missing" >&5 |
| 11288 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
| 11289 fi |
| 11290 |
| 11291 if test x"${install_sh}" != xset; then |
| 11292 case $am_aux_dir in |
| 11293 *\ * | *\ *) |
| 11294 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 11295 *) |
| 11296 install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 11297 esac |
| 11298 fi |
| 11299 |
| 11300 # Installed binaries are usually stripped using `strip' when the user |
| 11301 # run `make install-strip'. However `strip' might not be the right |
| 11302 # tool to use in cross-compilation environments, therefore Automake |
| 11303 # will honor the `STRIP' environment variable to overrule this program. |
| 11304 if test "$cross_compiling" != no; then |
| 11305 if test -n "$ac_tool_prefix"; then |
| 11306 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program n
ame with args. |
| 11307 set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11309 $as_echo_n "checking for $ac_word... " >&6; } |
| 11310 if test "${ac_cv_prog_STRIP+set}" = set; then : |
| 11311 $as_echo_n "(cached) " >&6 |
| 11312 else |
| 11313 if test -n "$STRIP"; then |
| 11314 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 11315 else |
| 11316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11317 for as_dir in $PATH |
| 11318 do |
| 11319 IFS=$as_save_IFS |
| 11320 test -z "$as_dir" && as_dir=. |
| 11321 for ac_exec_ext in '' $ac_executable_extensions; do |
| 11322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then |
| 11323 ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 11324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 |
| 11325 break 2 |
| 11326 fi |
| 11327 done |
| 11328 done |
| 11329 IFS=$as_save_IFS |
| 11330 |
| 11331 fi |
| 11332 fi |
| 11333 STRIP=$ac_cv_prog_STRIP |
| 11334 if test -n "$STRIP"; then |
| 11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 11336 $as_echo "$STRIP" >&6; } |
| 11337 else |
| 11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11339 $as_echo "no" >&6; } |
| 11340 fi |
| 11341 |
| 11342 |
| 11343 fi |
| 11344 if test -z "$ac_cv_prog_STRIP"; then |
| 11345 ac_ct_STRIP=$STRIP |
| 11346 # Extract the first word of "strip", so it can be a program name with args. |
| 11347 set dummy strip; ac_word=$2 |
| 11348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11349 $as_echo_n "checking for $ac_word... " >&6; } |
| 11350 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : |
| 11351 $as_echo_n "(cached) " >&6 |
| 11352 else |
| 11353 if test -n "$ac_ct_STRIP"; then |
| 11354 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 11355 else |
| 11356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11357 for as_dir in $PATH |
| 11358 do |
| 11359 IFS=$as_save_IFS |
| 11360 test -z "$as_dir" && as_dir=. |
| 11361 for ac_exec_ext in '' $ac_executable_extensions; do |
| 11362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then |
| 11363 ac_cv_prog_ac_ct_STRIP="strip" |
| 11364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 |
| 11365 break 2 |
| 11366 fi |
| 11367 done |
| 11368 done |
| 11369 IFS=$as_save_IFS |
| 11370 |
| 11371 fi |
| 11372 fi |
| 11373 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 11374 if test -n "$ac_ct_STRIP"; then |
| 11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 11376 $as_echo "$ac_ct_STRIP" >&6; } |
| 11377 else |
| 11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11379 $as_echo "no" >&6; } |
| 11380 fi |
| 11381 |
| 11382 if test "x$ac_ct_STRIP" = x; then |
| 11383 STRIP=":" |
| 11384 else |
| 11385 case $cross_compiling:$ac_tool_warned in |
| 11386 yes:) |
| 11387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed
with host triplet" >&5 |
| 11388 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2
;} |
| 11389 ac_tool_warned=yes ;; |
| 11390 esac |
| 11391 STRIP=$ac_ct_STRIP |
| 11392 fi |
| 11393 else |
| 11394 STRIP="$ac_cv_prog_STRIP" |
| 11395 fi |
| 11396 |
| 11397 fi |
| 11398 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 11399 |
| 11400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&
5 |
| 11401 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
| 11402 if test -z "$MKDIR_P"; then |
| 11403 if test "${ac_cv_path_mkdir+set}" = set; then : |
| 11404 $as_echo_n "(cached) " >&6 |
| 11405 else |
| 11406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11407 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 11408 do |
| 11409 IFS=$as_save_IFS |
| 11410 test -z "$as_dir" && as_dir=. |
| 11411 for ac_prog in mkdir gmkdir; do |
| 11412 for ac_exec_ext in '' $ac_executable_extensions; do |
| 11413 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_p
rog$ac_exec_ext"; } || continue |
| 11414 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 11415 'mkdir (GNU coreutils) '* | \ |
| 11416 'mkdir (coreutils) '* | \ |
| 11417 'mkdir (fileutils) '4.1*) |
| 11418 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 11419 break 3;; |
| 11420 esac |
| 11421 done |
| 11422 done |
| 11423 done |
| 11424 IFS=$as_save_IFS |
| 11425 |
| 11426 fi |
| 11427 |
| 11428 if test "${ac_cv_path_mkdir+set}" = set; then |
| 11429 MKDIR_P="$ac_cv_path_mkdir -p" |
| 11430 else |
| 11431 # As a last resort, use the slow shell script. Don't cache a |
| 11432 # value for MKDIR_P within a source directory, because that will |
| 11433 # break other packages using the cache if that directory is |
| 11434 # removed, or if the value is a relative name. |
| 11435 test -d ./--version && rmdir ./--version |
| 11436 MKDIR_P="$ac_install_sh -d" |
| 11437 fi |
| 11438 fi |
| 11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 11440 $as_echo "$MKDIR_P" >&6; } |
| 11441 |
| 11442 |
| 11443 mkdir_p="$MKDIR_P" |
| 11444 case $mkdir_p in |
| 11445 [\\/$]* | ?:[\\/]*) ;; |
| 11446 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
| 11447 esac |
| 11448 |
| 11449 for ac_prog in gawk mawk nawk awk |
| 11450 do |
| 11451 # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 11452 set dummy $ac_prog; ac_word=$2 |
| 11453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11454 $as_echo_n "checking for $ac_word... " >&6; } |
| 11455 if test "${ac_cv_prog_AWK+set}" = set; then : |
| 11456 $as_echo_n "(cached) " >&6 |
| 11457 else |
| 11458 if test -n "$AWK"; then |
| 11459 ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 11460 else |
| 11461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11462 for as_dir in $PATH |
| 11463 do |
| 11464 IFS=$as_save_IFS |
| 11465 test -z "$as_dir" && as_dir=. |
| 11466 for ac_exec_ext in '' $ac_executable_extensions; do |
| 11467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then |
| 11468 ac_cv_prog_AWK="$ac_prog" |
| 11469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 |
| 11470 break 2 |
| 11471 fi |
| 11472 done |
| 11473 done |
| 11474 IFS=$as_save_IFS |
| 11475 |
| 11476 fi |
| 11477 fi |
| 11478 AWK=$ac_cv_prog_AWK |
| 11479 if test -n "$AWK"; then |
| 11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 11481 $as_echo "$AWK" >&6; } |
| 11482 else |
| 11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11484 $as_echo "no" >&6; } |
| 11485 fi |
| 11486 |
| 11487 |
| 11488 test -n "$AWK" && break |
| 11489 done |
| 11490 |
| 11491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(M
AKE)" >&5 |
| 11492 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 11493 set x ${MAKE-make} |
| 11494 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 11495 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set
"; }; then : |
| 11496 $as_echo_n "(cached) " >&6 |
| 11497 else |
| 11498 cat >conftest.make <<\_ACEOF |
| 11499 SHELL = /bin/sh |
| 11500 all: |
| 11501 @echo '@@@%%%=$(MAKE)=@@@%%%' |
15277 _ACEOF | 11502 _ACEOF |
15278 if ac_fn_c_try_link "$LINENO"; then : | 11503 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
15279 gdb_cv_var_elf=yes | 11504 case `${MAKE-make} -f conftest.make 2>/dev/null` in |
15280 else | 11505 *@@@%%%=?*=@@@%%%*) |
15281 gdb_cv_var_elf=no | 11506 eval ac_cv_prog_make_${ac_make}_set=yes;; |
15282 fi | 11507 *) |
15283 rm -f core conftest.err conftest.$ac_objext \ | 11508 eval ac_cv_prog_make_${ac_make}_set=no;; |
15284 conftest$ac_exeext conftest.$ac_ext | |
15285 fi | |
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5 | |
15287 $as_echo "$gdb_cv_var_elf" >&6; } | |
15288 if test $gdb_cv_var_elf = yes; then | |
15289 CONFIG_OBS="$CONFIG_OBS elfread.o" | |
15290 | |
15291 $as_echo "#define HAVE_ELF 1" >>confdefs.h | |
15292 | |
15293 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>. | |
15294 if test "$plugins" = "yes"; then | |
15295 OLD_LIBS="-ldl $OLD_LIBS" | |
15296 fi | |
15297 fi | |
15298 CFLAGS=$OLD_CFLAGS | |
15299 LDFLAGS=$OLD_LDFLAGS | |
15300 LIBS=$OLD_LIBS | |
15301 | |
15302 # Add any host-specific objects to GDB. | |
15303 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}" | |
15304 | |
15305 LIBGUI="../libgui/src/libgui.a" | |
15306 GUI_CFLAGS_X="-I${srcdir}/../libgui/src" | |
15307 | |
15308 | |
15309 | |
15310 WIN32LDAPP= | |
15311 | |
15312 | |
15313 | |
15314 case "${host}" in | |
15315 *-*-cygwin* | *-*-mingw* ) | |
15316 configdir="win" | |
15317 ;; | |
15318 *) | |
15319 configdir="unix" | |
15320 ;; | |
15321 esac | 11509 esac |
15322 | 11510 rm -f conftest.make |
15323 GDBTKLIBS= | 11511 fi |
15324 if test "${enable_gdbtk}" = "yes"; then | 11512 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
15325 | 11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15326 # Gdbtk must have an absolute path to srcdir in order to run | 11514 $as_echo "yes" >&6; } |
15327 # properly when not installed. | 11515 SET_MAKE= |
15328 here=`pwd` | 11516 else |
15329 cd ${srcdir} | 11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15330 GDBTK_SRC_DIR=`pwd` | 11518 $as_echo "no" >&6; } |
15331 cd $here | 11519 SET_MAKE="MAKE=${MAKE-make}" |
15332 | 11520 fi |
15333 | 11521 |
| 11522 rm -rf .tst 2>/dev/null |
| 11523 mkdir .tst 2>/dev/null |
| 11524 if test -d .tst; then |
| 11525 am__leading_dot=. |
| 11526 else |
| 11527 am__leading_dot=_ |
| 11528 fi |
| 11529 rmdir .tst 2>/dev/null |
| 11530 |
| 11531 DEPDIR="${am__leading_dot}deps" |
| 11532 |
| 11533 ac_config_commands="$ac_config_commands depfiles" |
| 11534 |
| 11535 |
| 11536 am_make=${MAKE-make} |
| 11537 cat > confinc << 'END' |
| 11538 am__doit: |
| 11539 » @echo this is the am__doit target |
| 11540 .PHONY: am__doit |
| 11541 END |
| 11542 # If we don't find an include directive, just comment out the code. |
| 11543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $
am_make" >&5 |
| 11544 $as_echo_n "checking for style of include used by $am_make... " >&6; } |
| 11545 am__include="#" |
| 11546 am__quote= |
| 11547 _am_result=none |
| 11548 # First try GNU make style include. |
| 11549 echo "include confinc" > confmf |
| 11550 # Ignore all kinds of additional output from `make'. |
| 11551 case `$am_make -s -f confmf 2> /dev/null` in #( |
| 11552 *the\ am__doit\ target*) |
| 11553 am__include=include |
| 11554 am__quote= |
| 11555 _am_result=GNU |
| 11556 ;; |
| 11557 esac |
| 11558 # Now try BSD make style include. |
| 11559 if test "$am__include" = "#"; then |
| 11560 echo '.include "confinc"' > confmf |
| 11561 case `$am_make -s -f confmf 2> /dev/null` in #( |
| 11562 *the\ am__doit\ target*) |
| 11563 am__include=.include |
| 11564 am__quote="\"" |
| 11565 _am_result=BSD |
| 11566 ;; |
| 11567 esac |
| 11568 fi |
| 11569 |
| 11570 |
| 11571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
| 11572 $as_echo "$_am_result" >&6; } |
| 11573 rm -f confinc confmf |
| 11574 |
| 11575 # Check whether --enable-dependency-tracking was given. |
| 11576 if test "${enable_dependency_tracking+set}" = set; then : |
| 11577 enableval=$enable_dependency_tracking; |
| 11578 fi |
| 11579 |
| 11580 if test "x$enable_dependency_tracking" != xno; then |
| 11581 am_depcomp="$ac_aux_dir/depcomp" |
| 11582 AMDEPBACKSLASH='\' |
| 11583 fi |
| 11584 if test "x$enable_dependency_tracking" != xno; then |
| 11585 AMDEP_TRUE= |
| 11586 AMDEP_FALSE='#' |
| 11587 else |
| 11588 AMDEP_TRUE='#' |
| 11589 AMDEP_FALSE= |
| 11590 fi |
| 11591 |
| 11592 |
| 11593 if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 11594 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 11595 # is not polluted with repeated "-I." |
| 11596 am__isrc=' -I$(srcdir)' |
| 11597 # test to see if srcdir already configured |
| 11598 if test -f $srcdir/config.status; then |
| 11599 as_fn_error "source directory already configured; run \"make distclean\" the
re first" "$LINENO" 5 |
| 11600 fi |
| 11601 fi |
| 11602 |
| 11603 # test whether we have cygpath |
| 11604 if test -z "$CYGPATH_W"; then |
| 11605 if (cygpath --version) >/dev/null 2>/dev/null; then |
| 11606 CYGPATH_W='cygpath -w' |
| 11607 else |
| 11608 CYGPATH_W=echo |
| 11609 fi |
| 11610 fi |
| 11611 |
| 11612 |
| 11613 # Define the identity of the package. |
| 11614 PACKAGE=libgnu |
| 11615 VERSION=UNUSED-VERSION |
| 11616 |
| 11617 |
| 11618 # Some tools Automake needs. |
| 11619 |
| 11620 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 11621 |
| 11622 |
| 11623 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 11624 |
| 11625 |
| 11626 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 11627 |
| 11628 |
| 11629 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 11630 |
| 11631 |
| 11632 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 11633 |
| 11634 # We need awk for the "check" target. The system "awk" is bad on |
| 11635 # some platforms. |
| 11636 # Always define AMTAR for backward compatibility. |
| 11637 |
| 11638 AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 11639 |
| 11640 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
| 11641 |
| 11642 |
| 11643 |
| 11644 |
| 11645 depcc="$CC" am_compiler_list= |
| 11646 |
| 11647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&
5 |
| 11648 $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 11649 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : |
| 11650 $as_echo_n "(cached) " >&6 |
| 11651 else |
| 11652 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 11653 # We make a subdir and do the tests there. Otherwise we can end up |
| 11654 # making bogus files that we don't know about and never remove. For |
| 11655 # instance it was reported that on HP-UX the gcc test will end up |
| 11656 # making a dummy file named `D' -- because `-MD' means `put the output |
| 11657 # in D'. |
| 11658 mkdir conftest.dir |
| 11659 # Copy depcomp to subdir because otherwise we won't find it if we're |
| 11660 # using a relative directory. |
| 11661 cp "$am_depcomp" conftest.dir |
| 11662 cd conftest.dir |
| 11663 # We will build objects and dependencies in a subdirectory because |
| 11664 # it helps to detect inapplicable dependency modes. For instance |
| 11665 # both Tru64's cc and ICC support -MD to output dependencies as a |
| 11666 # side effect of compilation, but ICC will put the dependencies in |
| 11667 # the current directory while Tru64 will put them in the object |
| 11668 # directory. |
| 11669 mkdir sub |
| 11670 |
| 11671 am_cv_CC_dependencies_compiler_type=none |
| 11672 if test "$am_compiler_list" = ""; then |
| 11673 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 11674 fi |
| 11675 am__universal=false |
| 11676 case " $depcc " in #( |
| 11677 *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 11678 esac |
| 11679 |
| 11680 for depmode in $am_compiler_list; do |
| 11681 # Setup a source with many dependencies, because some compilers |
| 11682 # like to wrap large dependency lists on column 80 (with \), and |
| 11683 # we should not choose a depcomp mode which is confused by this. |
15334 # | 11684 # |
15335 # Ok, lets find the tcl configuration | 11685 # We need to recreate these files for each test, as the compiler may |
15336 # First, look for one uninstalled. | 11686 # overwrite some of them when testing with obscure command lines. |
15337 # the alternative search directory is invoked by --with-tcl | 11687 # This happens at least with the AIX C compiler. |
15338 # | 11688 : > sub/conftest.c |
15339 | 11689 for i in 1 2 3 4 5 6; do |
15340 if test x"${no_tcl}" = x ; then | 11690 echo '#include "conftst'$i'.h"' >> sub/conftest.c |
15341 # we reset no_tcl in case something fails here | 11691 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
15342 no_tcl=true | 11692 # Solaris 8's {/usr,}/bin/sh. |
15343 | 11693 touch sub/conftst$i.h |
15344 # Check whether --with-tcl was given. | |
15345 if test "${with_tcl+set}" = set; then : | |
15346 withval=$with_tcl; with_tclconfig=${withval} | |
15347 fi | |
15348 | |
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration"
>&5 | |
15350 $as_echo_n "checking for Tcl configuration... " >&6; } | |
15351 if test "${ac_cv_c_tclconfig+set}" = set; then : | |
15352 $as_echo_n "(cached) " >&6 | |
15353 else | |
15354 | |
15355 | |
15356 # First check to see if --with-tcl was specified. | |
15357 case "${host}" in | |
15358 *-*-cygwin*) platDir="win" ;; | |
15359 *) platDir="unix" ;; | |
15360 esac | |
15361 if test x"${with_tclconfig}" != x ; then | |
15362 if test -f "${with_tclconfig}/tclConfig.sh" ; then | |
15363 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)` | |
15364 else | |
15365 as_fn_error "${with_tclconfig} directory doesn't contain tcl
Config.sh" "$LINENO" 5 | |
15366 fi | |
15367 fi | |
15368 | |
15369 # then check for a private Tcl installation | |
15370 if test x"${ac_cv_c_tclconfig}" = x ; then | |
15371 for i in \ | |
15372 ../tcl \ | |
15373 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ | |
15374 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ | |
15375 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ | |
15376 ../../tcl \ | |
15377 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ | |
15378 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ | |
15379 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ | |
15380 ../../../tcl \ | |
15381 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ | |
15382 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ | |
15383 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do | |
15384 if test -f "$i/$platDir/tclConfig.sh" ; then | |
15385 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)` | |
15386 break | |
15387 fi | |
15388 done | |
15389 fi | |
15390 | |
15391 # on Darwin, check in Framework installation locations | |
15392 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; the
n | |
15393 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ | |
15394 `ls -d /Library/Frameworks 2>/dev/null` \ | |
15395 `ls -d /Network/Library/Frameworks 2>/dev/null` \ | |
15396 `ls -d /System/Library/Frameworks 2>/dev/null` \ | |
15397 ; do | |
15398 if test -f "$i/Tcl.framework/tclConfig.sh" ; then | |
15399 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)` | |
15400 break | |
15401 fi | |
15402 done | |
15403 fi | |
15404 | |
15405 # check in a few common install locations | |
15406 if test x"${ac_cv_c_tclconfig}" = x ; then | |
15407 for i in `ls -d ${libdir} 2>/dev/null` \ | |
15408 `ls -d ${exec_prefix}/lib 2>/dev/null` \ | |
15409 `ls -d ${prefix}/lib 2>/dev/null` \ | |
15410 `ls -d /usr/local/lib 2>/dev/null` \ | |
15411 `ls -d /usr/contrib/lib 2>/dev/null` \ | |
15412 `ls -d /usr/lib 2>/dev/null` \ | |
15413 ; do | |
15414 if test -f "$i/tclConfig.sh" ; then | |
15415 ac_cv_c_tclconfig=`(cd $i; pwd)` | |
15416 break | |
15417 fi | |
15418 done | |
15419 fi | |
15420 | |
15421 # check in a few other private locations | |
15422 if test x"${ac_cv_c_tclconfig}" = x ; then | |
15423 for i in \ | |
15424 ${srcdir}/../tcl \ | |
15425 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null`
\ | |
15426 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ | |
15427 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do | |
15428 if test -f "$i/$platDir/tclConfig.sh" ; then | |
15429 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)` | |
15430 break | |
15431 fi | |
15432 done | |
15433 fi | |
15434 | |
15435 fi | |
15436 | |
15437 | |
15438 if test x"${ac_cv_c_tclconfig}" = x ; then | |
15439 TCL_BIN_DIR="# no Tcl configs found" | |
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl con
figuration definitions" >&5 | |
15441 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;} | |
15442 else | |
15443 no_tcl= | |
15444 TCL_BIN_DIR=${ac_cv_c_tclconfig} | |
15445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR
}/tclConfig.sh" >&5 | |
15446 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; } | |
15447 fi | |
15448 fi | |
15449 | |
15450 | |
15451 # If $no_tk is nonempty, then we can't do Tk, and there is no | |
15452 # point to doing Tcl. | |
15453 | |
15454 # | |
15455 # Ok, lets find the tk configuration | |
15456 # First, look for one uninstalled. | |
15457 # the alternative search directory is invoked by --with-tk | |
15458 # | |
15459 | |
15460 if test x"${no_tk}" = x ; then | |
15461 # we reset no_tk in case something fails here | |
15462 no_tk=true | |
15463 | |
15464 # Check whether --with-tk was given. | |
15465 if test "${with_tk+set}" = set; then : | |
15466 withval=$with_tk; with_tkconfig=${withval} | |
15467 fi | |
15468 | |
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration"
>&5 | |
15470 $as_echo_n "checking for Tk configuration... " >&6; } | |
15471 if test "${ac_cv_c_tkconfig+set}" = set; then : | |
15472 $as_echo_n "(cached) " >&6 | |
15473 else | |
15474 | |
15475 | |
15476 # First check to see if --with-tkconfig was specified. | |
15477 if test x"${with_tkconfig}" != x ; then | |
15478 if test -f "${with_tkconfig}/tkConfig.sh" ; then | |
15479 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)` | |
15480 else | |
15481 as_fn_error "${with_tkconfig} directory doesn't contain tkCo
nfig.sh" "$LINENO" 5 | |
15482 fi | |
15483 fi | |
15484 | |
15485 # then check for a private Tk library | |
15486 case "${host}" in | |
15487 *-*-cygwin*) platDir="win" ;; | |
15488 *) platDir="unix" ;; | |
15489 esac | |
15490 if test x"${ac_cv_c_tkconfig}" = x ; then | |
15491 for i in \ | |
15492 ../tk \ | |
15493 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ | |
15494 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \ | |
15495 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \ | |
15496 ../../tk \ | |
15497 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ | |
15498 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \ | |
15499 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \ | |
15500 ../../../tk \ | |
15501 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ | |
15502 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \ | |
15503 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do | |
15504 if test -f "$i/$platDir/tkConfig.sh" ; then | |
15505 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)` | |
15506 break | |
15507 fi | |
15508 done | |
15509 fi | |
15510 | |
15511 # on Darwin, check in Framework installation locations | |
15512 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then | |
15513 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ | |
15514 `ls -d /Library/Frameworks 2>/dev/null` \ | |
15515 `ls -d /Network/Library/Frameworks 2>/dev/null` \ | |
15516 `ls -d /System/Library/Frameworks 2>/dev/null` \ | |
15517 ; do | |
15518 if test -f "$i/Tk.framework/tkConfig.sh" ; then | |
15519 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)` | |
15520 break | |
15521 fi | |
15522 done | |
15523 fi | |
15524 | |
15525 # check in a few common install locations | |
15526 if test x"${ac_cv_c_tkconfig}" = x ; then | |
15527 for i in `ls -d ${libdir} 2>/dev/null` \ | |
15528 `ls -d ${exec_prefix}/lib 2>/dev/null` \ | |
15529 `ls -d ${prefix}/lib 2>/dev/null` \ | |
15530 `ls -d /usr/local/lib 2>/dev/null` \ | |
15531 `ls -d /usr/contrib/lib 2>/dev/null` \ | |
15532 `ls -d /usr/lib 2>/dev/null` \ | |
15533 ; do | |
15534 if test -f "$i/tkConfig.sh" ; then | |
15535 ac_cv_c_tkconfig=`(cd $i; pwd)` | |
15536 break | |
15537 fi | |
15538 done | |
15539 fi | |
15540 # check in a few other private locations | |
15541 if test x"${ac_cv_c_tkconfig}" = x ; then | |
15542 for i in \ | |
15543 ${srcdir}/../tk \ | |
15544 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ | |
15545 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \ | |
15546 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do | |
15547 if test -f "$i/$platDir/tkConfig.sh" ; then | |
15548 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)` | |
15549 break | |
15550 fi | |
15551 done | |
15552 fi | |
15553 | |
15554 fi | |
15555 | |
15556 | |
15557 if test x"${ac_cv_c_tkconfig}" = x ; then | |
15558 TK_BIN_DIR="# no Tk configs found" | |
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk conf
iguration definitions" >&5 | |
15560 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;} | |
15561 else | |
15562 no_tk= | |
15563 TK_BIN_DIR=${ac_cv_c_tkconfig} | |
15564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}
/tkConfig.sh" >&5 | |
15565 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; } | |
15566 fi | |
15567 fi | |
15568 | |
15569 | |
15570 if test -z "${no_tcl}" -a -z "${no_tk}"; then | |
15571 | |
15572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN
_DIR}/tclConfig.sh" >&5 | |
15573 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; } | |
15574 | |
15575 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then | |
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5 | |
15577 $as_echo "loading" >&6; } | |
15578 . ${TCL_BIN_DIR}/tclConfig.sh | |
15579 else | |
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BI
N_DIR}/tclConfig.sh" >&5 | |
15581 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; } | |
15582 fi | |
15583 | |
15584 # eval is required to do the TCL_DBGX substitution | |
15585 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" | |
15586 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" | |
15587 | |
15588 # If the TCL_BIN_DIR is the build directory (not the install directory), | |
15589 # then set the common variable name to the value of the build variables. | |
15590 # For example, the variable TCL_LIB_SPEC will be set to the value | |
15591 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC | |
15592 # instead of TCL_BUILD_LIB_SPEC since it will work with both an | |
15593 # installed and uninstalled version of Tcl. | |
15594 if test -f "${TCL_BIN_DIR}/Makefile" ; then | |
15595 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC} | |
15596 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC} | |
15597 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH} | |
15598 elif test "`uname -s`" = "Darwin"; then | |
15599 # If Tcl was built as a framework, attempt to use the libraries | |
15600 # from the framework at the given location so that linking works | |
15601 # against Tcl.framework installed in an arbitary location. | |
15602 case ${TCL_DEFS} in | |
15603 *TCL_FRAMEWORK*) | |
15604 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then | |
15605 for i in "`cd ${TCL_BIN_DIR}; pwd`" \ | |
15606 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do | |
15607 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework";
then | |
15608 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_
FILE}" | |
15609 break | |
15610 fi | |
15611 done | |
15612 fi | |
15613 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then | |
15614 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}" | |
15615 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}" | |
15616 fi | |
15617 ;; | |
15618 esac | |
15619 fi | |
15620 | |
15621 # eval is required to do the TCL_DBGX substitution | |
15622 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" | |
15623 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" | |
15624 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" | |
15625 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" | |
15626 | |
15627 | |
15628 | |
15629 | |
15630 | |
15631 | |
15632 | |
15633 | |
15634 | |
15635 | |
15636 | |
15637 | |
15638 | |
15639 | |
15640 | |
15641 # Check for in-tree tcl | |
15642 here=`pwd` | |
15643 cd ${srcdir}/.. | |
15644 topdir=`pwd` | |
15645 cd ${here} | |
15646 | |
15647 intree="no" | |
15648 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then | |
15649 intree="yes" | |
15650 fi | |
15651 | |
15652 # Find Tcl private headers | |
15653 if test x"${intree}" = xno; then | |
15654 | |
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5 | |
15656 $as_echo_n "checking for Tcl private headers... " >&6; } | |
15657 private_dir="" | |
15658 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//` | |
15659 if test -f ${dir}/tclInt.h ; then | |
15660 private_dir=${dir} | |
15661 fi | |
15662 | |
15663 if test x"${private_dir}" = x; then | |
15664 as_fn_error "could not find private Tcl headers" "$LINENO" 5 | |
15665 else | |
15666 TCL_PRIVATE_INCLUDE="-I${private_dir}" | |
15667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5 | |
15668 $as_echo "${private_dir}" >&6; } | |
15669 fi | |
15670 | |
15671 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}" | |
15672 TCL_LIBRARY="${TCL_LIB_SPEC}" | |
15673 TCL_DEPS="" | |
15674 else | |
15675 # If building tcl in the same src tree, private headers | |
15676 # are not needed, but we need to be sure to use the right | |
15677 # headers library | |
15678 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic" | |
15679 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}" | |
15680 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}" | |
15681 fi | |
15682 | |
15683 | |
15684 | |
15685 | |
15686 | |
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_
DIR}/tkConfig.sh" >&5 | |
15688 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; } | |
15689 | |
15690 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then | |
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5 | |
15692 $as_echo "loading" >&6; } | |
15693 . ${TK_BIN_DIR}/tkConfig.sh | |
15694 else | |
15695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN
_DIR}/tkConfig.sh" >&5 | |
15696 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; } | |
15697 fi | |
15698 | |
15699 # eval is required to do the TK_DBGX substitution | |
15700 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\"" | |
15701 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\"" | |
15702 | |
15703 # If the TK_BIN_DIR is the build directory (not the install directory), | |
15704 # then set the common variable name to the value of the build variables. | |
15705 # For example, the variable TK_LIB_SPEC will be set to the value | |
15706 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC | |
15707 # instead of TK_BUILD_LIB_SPEC since it will work with both an | |
15708 # installed and uninstalled version of Tcl. | |
15709 if test -f "${TK_BIN_DIR}/Makefile" ; then | |
15710 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC} | |
15711 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC} | |
15712 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH} | |
15713 elif test "`uname -s`" = "Darwin"; then | |
15714 # If Tk was built as a framework, attempt to use the libraries | |
15715 # from the framework at the given location so that linking works | |
15716 # against Tk.framework installed in an arbitary location. | |
15717 case ${TK_DEFS} in | |
15718 *TK_FRAMEWORK*) | |
15719 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then | |
15720 for i in "`cd ${TK_BIN_DIR}; pwd`" \ | |
15721 "`cd ${TK_BIN_DIR}/../..; pwd`"; do | |
15722 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework";
then | |
15723 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FI
LE}" | |
15724 break | |
15725 fi | |
15726 done | |
15727 fi | |
15728 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then | |
15729 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}" | |
15730 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}" | |
15731 fi | |
15732 ;; | |
15733 esac | |
15734 fi | |
15735 | |
15736 # eval is required to do the TK_DBGX substitution | |
15737 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\"" | |
15738 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\"" | |
15739 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\"" | |
15740 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\"" | |
15741 | |
15742 | |
15743 | |
15744 | |
15745 | |
15746 | |
15747 | |
15748 | |
15749 | |
15750 | |
15751 | |
15752 | |
15753 | |
15754 | |
15755 # Check for in-tree Tk | |
15756 intree="no" | |
15757 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then | |
15758 intree="yes" | |
15759 fi | |
15760 | |
15761 # Find Tk private headers | |
15762 if test x"${intree}" = xno; then | |
15763 | |
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5 | |
15765 $as_echo_n "checking for Tk private headers... " >&6; } | |
15766 private_dir="" | |
15767 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//` | |
15768 if test -f ${dir}/tkInt.h; then | |
15769 private_dir=${dir} | |
15770 fi | |
15771 | |
15772 if test x"${private_dir}" = x; then | |
15773 as_fn_error "could not find Tk private headers" "$LINENO" 5 | |
15774 else | |
15775 TK_PRIVATE_INCLUDE="-I${private_dir}" | |
15776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5 | |
15777 $as_echo "${private_dir}" >&6; } | |
15778 fi | |
15779 | |
15780 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}" | |
15781 TK_LIBRARY=${TK_LIB_SPEC} | |
15782 TK_DEPS="" | |
15783 else | |
15784 TK_INCLUDE="-I${TK_SRC_DIR}/generic" | |
15785 TK_LIBRARY="${TK_BUILD_LIB_SPEC}" | |
15786 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}" | |
15787 fi | |
15788 | |
15789 | |
15790 | |
15791 | |
15792 | |
15793 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)" | |
15794 | |
15795 # Include some libraries that Tcl and Tk want. | |
15796 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)' | |
15797 # Yes, the ordering seems wrong here. But it isn't. | |
15798 # TK_LIBS is the list of libraries that need to be linked | |
15799 # after Tcl/Tk. Note that this isn't put into LIBS. If it | |
15800 # were in LIBS then any link tests after this point would | |
15801 # try to include things like `$(LIBGUI)', which wouldn't work. | |
15802 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}" | |
15803 | |
15804 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)" | |
15805 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)" | |
15806 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)" | |
15807 CONFIG_ALL="${CONFIG_ALL} all-gdbtk" | |
15808 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk" | |
15809 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk" | |
15810 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk" | |
15811 | |
15812 if test x$gdb_cv_os_cygwin = xyes; then | |
15813 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32" | |
15814 WIN32LDAPP="-Wl,--subsystem,console" | |
15815 CONFIG_OBS="${CONFIG_OBS} gdbres.o" | |
15816 fi | |
15817 | |
15818 subdirs="$subdirs gdbtk" | |
15819 | |
15820 fi | |
15821 fi | |
15822 | |
15823 | |
15824 | |
15825 | |
15826 | |
15827 | |
15828 | |
15829 | |
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 | |
15831 $as_echo_n "checking for X... " >&6; } | |
15832 | |
15833 | |
15834 # Check whether --with-x was given. | |
15835 if test "${with_x+set}" = set; then : | |
15836 withval=$with_x; | |
15837 fi | |
15838 | |
15839 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
15840 if test "x$with_x" = xno; then | |
15841 # The user explicitly disabled X. | |
15842 have_x=disabled | |
15843 else | |
15844 case $x_includes,$x_libraries in #( | |
15845 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;;
#( | |
15846 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : | |
15847 $as_echo_n "(cached) " >&6 | |
15848 else | |
15849 # One or both of the vars are not set, and there is no cached value. | |
15850 ac_x_includes=no ac_x_libraries=no | |
15851 rm -f -r conftest.dir | |
15852 if mkdir conftest.dir; then | |
15853 cd conftest.dir | |
15854 cat >Imakefile <<'_ACEOF' | |
15855 incroot: | |
15856 @echo incroot='${INCROOT}' | |
15857 usrlibdir: | |
15858 @echo usrlibdir='${USRLIBDIR}' | |
15859 libdir: | |
15860 @echo libdir='${LIBDIR}' | |
15861 _ACEOF | |
15862 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; the
n | |
15863 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
15864 for ac_var in incroot usrlibdir libdir; do | |
15865 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_v
ar=//p'\`" | |
15866 done | 11694 done |
15867 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | 11695 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
15868 for ac_extension in a so sl dylib la dll; do | 11696 |
15869 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && | 11697 # We check with `-c' and `-o' for the sake of the "dashmstdout" |
15870 » test -f "$ac_im_libdir/libX11.$ac_extension"; then | 11698 # mode. It turns out that the SunPro C++ compiler does not properly |
15871 » ac_im_usrlibdir=$ac_im_libdir; break | 11699 # handle `-M -o', and we need to detect this. Also, some Intel |
| 11700 # versions had trouble with output in subdirs |
| 11701 am__obj=sub/conftest.${OBJEXT-o} |
| 11702 am__minus_obj="-o $am__obj" |
| 11703 case $depmode in |
| 11704 gcc) |
| 11705 # This depmode causes a compiler race in universal mode. |
| 11706 test "$am__universal" = false || continue |
| 11707 ;; |
| 11708 nosideeffect) |
| 11709 # after this tag, mechanisms are not by side-effect, so they'll |
| 11710 # only be used when explicitly requested |
| 11711 if test "x$enable_dependency_tracking" = xyes; then |
| 11712 » continue |
| 11713 else |
| 11714 » break |
15872 fi | 11715 fi |
15873 done | 11716 ;; |
15874 # Screen out bogus values from the imake configuration. They are | 11717 msvisualcpp | msvcmsys) |
15875 # bogus both because they are the default anyway, and because | 11718 # This compiler won't grok `-c -o', but also, the minuso test has |
15876 # using them would break gcc on systems where it needs fixed includes. | 11719 # not run yet. These depmodes are late enough in the game, and |
15877 case $ac_im_incroot in | 11720 # so weak that their functioning should not be impacted. |
15878 » /usr/include) ac_x_includes= ;; | 11721 am__obj=conftest.${OBJEXT-o} |
15879 » *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | 11722 am__minus_obj= |
| 11723 ;; |
| 11724 none) break ;; |
15880 esac | 11725 esac |
15881 case $ac_im_usrlibdir in | 11726 if depmode=$depmode \ |
15882 » /usr/lib | /usr/lib64 | /lib | /lib64) ;; | 11727 source=sub/conftest.c object=$am__obj \ |
15883 » *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | 11728 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
15884 esac | 11729 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
15885 fi | 11730 >/dev/null 2>conftest.err && |
15886 cd .. | 11731 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
15887 rm -f -r conftest.dir | 11732 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
15888 fi | 11733 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
15889 | 11734 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
15890 # Standard set of common directories for X headers. | 11735 # icc doesn't choke on unknown options, it will just issue warnings |
15891 # Check X11 before X11Rn because it is often a symlink to the current release. | 11736 # or remarks (even with -Werror). So we grep stderr for any message |
15892 ac_x_header_dirs=' | 11737 # that says an option was ignored or not supported. |
15893 /usr/X11/include | 11738 # When given -MP, icc 7.0 and 7.1 complain thusly: |
15894 /usr/X11R7/include | 11739 # icc: Command line warning: ignoring option '-M'; no argument required |
15895 /usr/X11R6/include | 11740 # The diagnosis changed in icc 8.0: |
15896 /usr/X11R5/include | 11741 # icc: Command line remark: option '-MP' not supported |
15897 /usr/X11R4/include | 11742 if (grep 'ignoring option' conftest.err || |
15898 | 11743 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
15899 /usr/include/X11 | 11744 am_cv_CC_dependencies_compiler_type=$depmode |
15900 /usr/include/X11R7 | 11745 break |
15901 /usr/include/X11R6 | 11746 fi |
15902 /usr/include/X11R5 | |
15903 /usr/include/X11R4 | |
15904 | |
15905 /usr/local/X11/include | |
15906 /usr/local/X11R7/include | |
15907 /usr/local/X11R6/include | |
15908 /usr/local/X11R5/include | |
15909 /usr/local/X11R4/include | |
15910 | |
15911 /usr/local/include/X11 | |
15912 /usr/local/include/X11R7 | |
15913 /usr/local/include/X11R6 | |
15914 /usr/local/include/X11R5 | |
15915 /usr/local/include/X11R4 | |
15916 | |
15917 /usr/X386/include | |
15918 /usr/x386/include | |
15919 /usr/XFree86/include/X11 | |
15920 | |
15921 /usr/include | |
15922 /usr/local/include | |
15923 /usr/unsupported/include | |
15924 /usr/athena/include | |
15925 /usr/local/x11r5/include | |
15926 /usr/lpp/Xamples/include | |
15927 | |
15928 /usr/openwin/include | |
15929 /usr/openwin/share/include' | |
15930 | |
15931 if test "$ac_x_includes" = no; then | |
15932 # Guess where to find include files, by looking for Xlib.h. | |
15933 # First, try using that file with no special directory specified. | |
15934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15935 /* end confdefs.h. */ | |
15936 #include <X11/Xlib.h> | |
15937 _ACEOF | |
15938 if ac_fn_c_try_cpp "$LINENO"; then : | |
15939 # We can compile using X headers with no special include directory. | |
15940 ac_x_includes= | |
15941 else | |
15942 for ac_dir in $ac_x_header_dirs; do | |
15943 if test -r "$ac_dir/X11/Xlib.h"; then | |
15944 ac_x_includes=$ac_dir | |
15945 break | |
15946 fi | |
15947 done | |
15948 fi | |
15949 rm -f conftest.err conftest.$ac_ext | |
15950 fi # $ac_x_includes = no | |
15951 | |
15952 if test "$ac_x_libraries" = no; then | |
15953 # Check for the libraries. | |
15954 # See if we find them without any special options. | |
15955 # Don't add to $LIBS permanently. | |
15956 ac_save_LIBS=$LIBS | |
15957 LIBS="-lX11 $LIBS" | |
15958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15959 /* end confdefs.h. */ | |
15960 #include <X11/Xlib.h> | |
15961 int | |
15962 main () | |
15963 { | |
15964 XrmInitialize () | |
15965 ; | |
15966 return 0; | |
15967 } | |
15968 _ACEOF | |
15969 if ac_fn_c_try_link "$LINENO"; then : | |
15970 LIBS=$ac_save_LIBS | |
15971 # We can link X programs with no special library path. | |
15972 ac_x_libraries= | |
15973 else | |
15974 LIBS=$ac_save_LIBS | |
15975 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g
` | |
15976 do | |
15977 # Don't even attempt the hair of trying to link an X program! | |
15978 for ac_extension in a so sl dylib la dll; do | |
15979 if test -r "$ac_dir/libX11.$ac_extension"; then | |
15980 ac_x_libraries=$ac_dir | |
15981 break 2 | |
15982 fi | 11747 fi |
15983 done | 11748 done |
| 11749 |
| 11750 cd .. |
| 11751 rm -rf conftest.dir |
| 11752 else |
| 11753 am_cv_CC_dependencies_compiler_type=none |
| 11754 fi |
| 11755 |
| 11756 fi |
| 11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler
_type" >&5 |
| 11758 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
| 11759 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 11760 |
| 11761 if |
| 11762 test "x$enable_dependency_tracking" != xno \ |
| 11763 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 11764 am__fastdepCC_TRUE= |
| 11765 am__fastdepCC_FALSE='#' |
| 11766 else |
| 11767 am__fastdepCC_TRUE='#' |
| 11768 am__fastdepCC_FALSE= |
| 11769 fi |
| 11770 |
| 11771 |
| 11772 |
| 11773 |
| 11774 # --------------------- # |
| 11775 # Checks for programs. # |
| 11776 # --------------------- # |
| 11777 |
| 11778 |
| 11779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
| 11780 $as_echo_n "checking whether ln -s works... " >&6; } |
| 11781 LN_S=$as_ln_s |
| 11782 if test "$LN_S" = "ln -s"; then |
| 11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11784 $as_echo "yes" >&6; } |
| 11785 else |
| 11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
| 11787 $as_echo "no, using $LN_S" >&6; } |
| 11788 fi |
| 11789 |
| 11790 if test -n "$ac_tool_prefix"; then |
| 11791 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program
name with args. |
| 11792 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 11793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11794 $as_echo_n "checking for $ac_word... " >&6; } |
| 11795 if test "${ac_cv_prog_RANLIB+set}" = set; then : |
| 11796 $as_echo_n "(cached) " >&6 |
| 11797 else |
| 11798 if test -n "$RANLIB"; then |
| 11799 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 11800 else |
| 11801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11802 for as_dir in $PATH |
| 11803 do |
| 11804 IFS=$as_save_IFS |
| 11805 test -z "$as_dir" && as_dir=. |
| 11806 for ac_exec_ext in '' $ac_executable_extensions; do |
| 11807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then |
| 11808 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 11809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 |
| 11810 break 2 |
| 11811 fi |
15984 done | 11812 done |
15985 fi | 11813 done |
15986 rm -f core conftest.err conftest.$ac_objext \ | 11814 IFS=$as_save_IFS |
15987 conftest$ac_exeext conftest.$ac_ext | 11815 |
15988 fi # $ac_x_libraries = no | 11816 fi |
15989 | 11817 fi |
15990 case $ac_x_includes,$ac_x_libraries in #( | 11818 RANLIB=$ac_cv_prog_RANLIB |
15991 no,* | *,no | *\'*) | 11819 if test -n "$RANLIB"; then |
15992 # Didn't find X, or a directory has "'" in its name. | 11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
15993 ac_cv_have_x="have_x=no";; #( | 11821 $as_echo "$RANLIB" >&6; } |
15994 *) | 11822 else |
15995 # Record where we found X for the cache. | 11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15996 ac_cv_have_x="have_x=yes\ | 11824 $as_echo "no" >&6; } |
15997 » ac_x_includes='$ac_x_includes'\ | 11825 fi |
15998 » ac_x_libraries='$ac_x_libraries'" | 11826 |
| 11827 |
| 11828 fi |
| 11829 if test -z "$ac_cv_prog_RANLIB"; then |
| 11830 ac_ct_RANLIB=$RANLIB |
| 11831 # Extract the first word of "ranlib", so it can be a program name with args. |
| 11832 set dummy ranlib; ac_word=$2 |
| 11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11834 $as_echo_n "checking for $ac_word... " >&6; } |
| 11835 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : |
| 11836 $as_echo_n "(cached) " >&6 |
| 11837 else |
| 11838 if test -n "$ac_ct_RANLIB"; then |
| 11839 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 11840 else |
| 11841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11842 for as_dir in $PATH |
| 11843 do |
| 11844 IFS=$as_save_IFS |
| 11845 test -z "$as_dir" && as_dir=. |
| 11846 for ac_exec_ext in '' $ac_executable_extensions; do |
| 11847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then |
| 11848 ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 11849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 |
| 11850 break 2 |
| 11851 fi |
| 11852 done |
| 11853 done |
| 11854 IFS=$as_save_IFS |
| 11855 |
| 11856 fi |
| 11857 fi |
| 11858 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 11859 if test -n "$ac_ct_RANLIB"; then |
| 11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 11861 $as_echo "$ac_ct_RANLIB" >&6; } |
| 11862 else |
| 11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11864 $as_echo "no" >&6; } |
| 11865 fi |
| 11866 |
| 11867 if test "x$ac_ct_RANLIB" = x; then |
| 11868 RANLIB=":" |
| 11869 else |
| 11870 case $cross_compiling:$ac_tool_warned in |
| 11871 yes:) |
| 11872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed
with host triplet" >&5 |
| 11873 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2
;} |
| 11874 ac_tool_warned=yes ;; |
15999 esac | 11875 esac |
16000 fi | 11876 RANLIB=$ac_ct_RANLIB |
16001 ;; #( | 11877 fi |
16002 *) have_x=yes;; | 11878 else |
16003 esac | 11879 RANLIB="$ac_cv_prog_RANLIB" |
16004 eval "$ac_cv_have_x" | 11880 fi |
16005 fi # $with_x != no | 11881 |
16006 | 11882 |
16007 if test "$have_x" != yes; then | 11883 if test -n "$ac_tool_prefix"; then |
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 | 11884 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name
with args. |
16009 $as_echo "$have_x" >&6; } | 11885 set dummy ${ac_tool_prefix}ar; ac_word=$2 |
16010 no_x=yes | 11886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16011 else | 11887 $as_echo_n "checking for $ac_word... " >&6; } |
16012 # If each of the values was on the command line, it overrides each guess. | 11888 if test "${ac_cv_prog_AR+set}" = set; then : |
16013 test "x$x_includes" = xNONE && x_includes=$ac_x_includes | 11889 $as_echo_n "(cached) " >&6 |
16014 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | 11890 else |
16015 # Update the cache value to reflect the command line values. | 11891 if test -n "$AR"; then |
16016 ac_cv_have_x="have_x=yes\ | 11892 ac_cv_prog_AR="$AR" # Let the user override the test. |
16017 » ac_x_includes='$x_includes'\ | 11893 else |
16018 » ac_x_libraries='$x_libraries'" | 11894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, heade
rs $x_includes" >&5 | 11895 for as_dir in $PATH |
16020 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } | 11896 do |
16021 fi | 11897 IFS=$as_save_IFS |
16022 | 11898 test -z "$as_dir" && as_dir=. |
16023 | 11899 for ac_exec_ext in '' $ac_executable_extensions; do |
16024 # Unlike the sim directory, whether a simulator is linked is controlled by | 11900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then |
16025 # presence of a gdb_sim definition in the target configure.tgt entry. | 11901 ac_cv_prog_AR="${ac_tool_prefix}ar" |
16026 # This code just checks for a few cases where we'd like to ignore those | 11902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 |
16027 # definitions, even when they're present in the '.mt' file. These cases | 11903 break 2 |
16028 # are when --disable-sim is specified, or if the simulator directory is | 11904 fi |
16029 # not part of the source tree. | 11905 done |
16030 # | 11906 done |
16031 # Check whether --enable-sim was given. | 11907 IFS=$as_save_IFS |
16032 if test "${enable_sim+set}" = set; then : | 11908 |
16033 enableval=$enable_sim; echo "enable_sim = $enable_sim"; | 11909 fi |
16034 echo "enableval = ${enableval}"; | 11910 fi |
16035 case "${enableval}" in | 11911 AR=$ac_cv_prog_AR |
16036 yes) ignore_sim=false ;; | 11912 if test -n "$AR"; then |
16037 no) ignore_sim=true ;; | 11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
16038 *) ignore_sim=false ;; | 11914 $as_echo "$AR" >&6; } |
16039 esac | 11915 else |
16040 else | 11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16041 ignore_sim=false | 11917 $as_echo "no" >&6; } |
16042 fi | 11918 fi |
16043 | 11919 |
16044 | 11920 |
16045 if test ! -d "${srcdir}/../sim"; then | 11921 fi |
16046 ignore_sim=true | 11922 if test -z "$ac_cv_prog_AR"; then |
16047 fi | 11923 ac_ct_AR=$AR |
16048 | 11924 # Extract the first word of "ar", so it can be a program name with args. |
16049 SIM= | 11925 set dummy ar; ac_word=$2 |
16050 SIM_OBS= | 11926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16051 if test "${ignore_sim}" = "false"; then | 11927 $as_echo_n "checking for $ac_word... " >&6; } |
16052 if test x"${gdb_sim}" != x ; then | 11928 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : |
16053 SIM="${gdb_sim}" | 11929 $as_echo_n "(cached) " >&6 |
16054 SIM_OBS="remote-sim.o" | 11930 else |
16055 | 11931 if test -n "$ac_ct_AR"; then |
16056 $as_echo "#define WITH_SIM 1" >>confdefs.h | 11932 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
16057 | 11933 else |
16058 fi | 11934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16059 fi | 11935 for as_dir in $PATH |
16060 | 11936 do |
16061 | 11937 IFS=$as_save_IFS |
16062 | 11938 test -z "$as_dir" && as_dir=. |
16063 | 11939 for ac_exec_ext in '' $ac_executable_extensions; do |
16064 | 11940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then |
16065 | 11941 ac_cv_prog_ac_ct_AR="ar" |
16066 | 11942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 |
16067 | 11943 break 2 |
16068 | 11944 fi |
16069 | 11945 done |
16070 | 11946 done |
16071 | 11947 IFS=$as_save_IFS |
16072 | 11948 |
16073 | 11949 fi |
16074 # List of host floatformats. | 11950 fi |
16075 | 11951 ac_ct_AR=$ac_cv_prog_ac_ct_AR |
16076 cat >>confdefs.h <<_ACEOF | 11952 if test -n "$ac_ct_AR"; then |
16077 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format | 11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
16078 _ACEOF | 11954 $as_echo "$ac_ct_AR" >&6; } |
16079 | 11955 else |
16080 | 11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16081 cat >>confdefs.h <<_ACEOF | 11957 $as_echo "no" >&6; } |
16082 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format | 11958 fi |
16083 _ACEOF | 11959 |
16084 | 11960 if test "x$ac_ct_AR" = x; then |
16085 | 11961 AR="" |
16086 cat >>confdefs.h <<_ACEOF | 11962 else |
16087 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format | 11963 case $cross_compiling:$ac_tool_warned in |
16088 _ACEOF | 11964 yes:) |
16089 | 11965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed
with host triplet" >&5 |
16090 | 11966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2
;} |
16091 # target_subdir is used by the testsuite to find the target libraries. | 11967 ac_tool_warned=yes ;; |
16092 target_subdir= | |
16093 if test "${host}" != "${target}"; then | |
16094 target_subdir="${target_alias}/" | |
16095 fi | |
16096 | |
16097 | |
16098 frags= | |
16099 if test "${gdb_native}" = "yes"; then | |
16100 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh | |
16101 if test ! -f ${host_makefile_frag}; then | |
16102 as_fn_error "\"*** Gdb does not support native target ${host}\"" "$LINENO" 5 | |
16103 fi | |
16104 frags="$frags $host_makefile_frag" | |
16105 else | |
16106 host_makefile_frag=/dev/null | |
16107 fi | |
16108 | |
16109 | |
16110 | |
16111 | |
16112 if test "${gdb_native}" = "yes"; then | |
16113 # We pick this up from the host configuration file (.mh) because we | |
16114 # do not have a native configuration Makefile fragment. | |
16115 nativefile=`sed -n ' | |
16116 s/NAT_FILE[ » ]*=[ » ]*\([^ »]*\)/\1/p | |
16117 ' ${host_makefile_frag}` | |
16118 fi | |
16119 | |
16120 | |
16121 if test x"${gdb_osabi}" != x ; then | |
16122 | |
16123 cat >>confdefs.h <<_ACEOF | |
16124 #define GDB_OSABI_DEFAULT $gdb_osabi | |
16125 _ACEOF | |
16126 | |
16127 fi | |
16128 | |
16129 # Enable multi-ice-gdb-server. | |
16130 # Check whether --enable-multi-ice was given. | |
16131 if test "${enable_multi_ice+set}" = set; then : | |
16132 enableval=$enable_multi_ice; case $enableval in | |
16133 yes | no) | |
16134 ;; | |
16135 *) as_fn_error "bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;; | |
16136 esac | |
16137 fi | |
16138 | |
16139 if test "x$enable_multi_ice" = xyes; then | |
16140 subdirs="$subdirs multi-ice" | |
16141 | |
16142 fi | |
16143 | |
16144 # Check whether --enable-gdbserver was given. | |
16145 if test "${enable_gdbserver+set}" = set; then : | |
16146 enableval=$enable_gdbserver; case "${enableval}" in | |
16147 yes| no|auto) ;; | |
16148 *) as_fn_error "bad value ${enableval} for --enable-gdbserver option" "$LINENO
" 5 ;; | |
16149 esac | 11968 esac |
16150 else | 11969 AR=$ac_ct_AR |
16151 enable_gdbserver=auto | 11970 fi |
16152 fi | 11971 else |
16153 | 11972 AR="$ac_cv_prog_AR" |
16154 | 11973 fi |
16155 # We only build gdbserver automatically in a native configuration, and | 11974 |
16156 # only if the user did not explicitly disable its build. | 11975 |
16157 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then | 11976 # ---------------------- # |
16158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is support
ed on this host" >&5 | 11977 # Checks for libraries. # |
16159 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; } | 11978 # ---------------------- # |
16160 if test "x$build_gdbserver" = xyes; then | 11979 |
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 11980 ac_config_files="$ac_config_files Makefile import/Makefile" |
16162 $as_echo "yes" >&6; } | |
16163 subdirs="$subdirs gdbserver" | |
16164 | |
16165 gdbserver_build_enabled=yes | |
16166 else | |
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16168 $as_echo "no" >&6; } | |
16169 fi | |
16170 fi | |
16171 | |
16172 # If the user explicitly request the gdbserver to be built, verify that | |
16173 # we were in fact able to enable it. | |
16174 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then | |
16175 as_fn_error "Automatic gdbserver build is not supported for this configuration
" "$LINENO" 5 | |
16176 fi | |
16177 | |
16178 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link | |
16179 # to an empty version. | |
16180 | |
16181 files= | |
16182 links= | |
16183 | |
16184 rm -f nm.h | |
16185 if test "${nativefile}" != ""; then | |
16186 case "${nativefile}" in | |
16187 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;; | |
16188 * ) GDB_NM_FILE="${nativefile}" | |
16189 esac | |
16190 files="${files} ${GDB_NM_FILE}" | |
16191 links="${links} nm.h" | |
16192 | |
16193 cat >>confdefs.h <<_ACEOF | |
16194 #define GDB_NM_FILE "${GDB_NM_FILE}" | |
16195 _ACEOF | |
16196 | |
16197 fi | |
16198 | |
16199 | |
16200 ac_sources="$files" | |
16201 ac_dests="$links" | |
16202 while test -n "$ac_sources"; do | |
16203 set $ac_dests; ac_dest=$1; shift; ac_dests=$* | |
16204 set $ac_sources; ac_source=$1; shift; ac_sources=$* | |
16205 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source" | |
16206 done | |
16207 ac_config_links="$ac_config_links $ac_config_links_1" | |
16208 | |
16209 | |
16210 | |
16211 | |
16212 | |
16213 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h | |
16214 | |
16215 | |
16216 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in doc/Makefile gnul
ib/Makefile data-directory/Makefile" | |
16217 | 11981 |
16218 ac_config_commands="$ac_config_commands default" | 11982 ac_config_commands="$ac_config_commands default" |
16219 | 11983 |
16220 cat >confcache <<\_ACEOF | 11984 cat >confcache <<\_ACEOF |
16221 # This file is a shell script that caches the results of configure | 11985 # This file is a shell script that caches the results of configure |
16222 # tests run on this system so they can be shared between configure | 11986 # tests run on this system so they can be shared between configure |
16223 # scripts and configure runs, see configure's option --config-cache. | 11987 # scripts and configure runs, see configure's option --config-cache. |
16224 # It is not useful on other systems. If it contains results you don't | 11988 # It is not useful on other systems. If it contains results you don't |
16225 # want to keep, you may remove or edit it. | 11989 # want to keep, you may remove or edit it. |
16226 # | 11990 # |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16311 done | 12075 done |
16312 LIBOBJS=$ac_libobjs | 12076 LIBOBJS=$ac_libobjs |
16313 | 12077 |
16314 LTLIBOBJS=$ac_ltlibobjs | 12078 LTLIBOBJS=$ac_ltlibobjs |
16315 | 12079 |
16316 | 12080 |
16317 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | 12081 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
16318 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. | 12082 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. |
16319 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 12083 Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
16320 fi | 12084 fi |
16321 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then | |
16322 as_fn_error "conditional \"GMAKE\" was never defined. | |
16323 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16324 fi | |
16325 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then | 12085 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then |
16326 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined. | 12086 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined. |
16327 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 12087 Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
16328 fi | 12088 fi |
| 12089 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FAL
SE}"; then |
| 12090 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined. |
| 12091 Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 12092 fi |
| 12093 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_F
ALSE}"; then |
| 12094 as_fn_error "conditional \"GL_GENERATE_FNMATCH_H\" was never defined. |
| 12095 Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 12096 fi |
| 12097 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FAL
SE}"; then |
| 12098 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined. |
| 12099 Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 12100 fi |
| 12101 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_F
ALSE}"; then |
| 12102 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined. |
| 12103 Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 12104 fi |
| 12105 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FAL
SE}"; then |
| 12106 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined. |
| 12107 Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 12108 fi |
16329 | 12109 |
16330 gl_libobjs= | 12110 gl_libobjs= |
16331 gl_ltlibobjs= | 12111 gl_ltlibobjs= |
16332 if test -n "$gl_LIBOBJS"; then | 12112 if test -n "$gl_LIBOBJS"; then |
16333 # Remove the extension. | 12113 # Remove the extension. |
16334 sed_drop_objext='s/\.o$//;s/\.obj$//' | 12114 sed_drop_objext='s/\.o$//;s/\.obj$//' |
16335 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_obj
ext" | sort | uniq`; do | 12115 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_obj
ext" | sort | uniq`; do |
16336 gl_libobjs="$gl_libobjs $i.$ac_objext" | 12116 gl_libobjs="$gl_libobjs $i.$ac_objext" |
16337 gl_ltlibobjs="$gl_ltlibobjs $i.lo" | 12117 gl_ltlibobjs="$gl_ltlibobjs $i.lo" |
16338 done | 12118 done |
(...skipping 29 matching lines...) Expand all Loading... |
16368 fi | 12148 fi |
16369 if test -n "$EXEEXT"; then | 12149 if test -n "$EXEEXT"; then |
16370 am__EXEEXT_TRUE= | 12150 am__EXEEXT_TRUE= |
16371 am__EXEEXT_FALSE='#' | 12151 am__EXEEXT_FALSE='#' |
16372 else | 12152 else |
16373 am__EXEEXT_TRUE='#' | 12153 am__EXEEXT_TRUE='#' |
16374 am__EXEEXT_FALSE= | 12154 am__EXEEXT_FALSE= |
16375 fi | 12155 fi |
16376 | 12156 |
16377 | 12157 |
16378 | |
16379 : ${CONFIG_STATUS=./config.status} | 12158 : ${CONFIG_STATUS=./config.status} |
16380 ac_write_fail=0 | 12159 ac_write_fail=0 |
16381 ac_clean_files_save=$ac_clean_files | 12160 ac_clean_files_save=$ac_clean_files |
16382 ac_clean_files="$ac_clean_files $CONFIG_STATUS" | 12161 ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | 12162 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
16384 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | 12163 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
16385 as_write_fail=0 | 12164 as_write_fail=0 |
16386 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | 12165 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
16387 #! $SHELL | 12166 #! $SHELL |
16388 # Generated by $as_me. | 12167 # Generated by $as_me. |
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16803 | 12582 |
16804 case $ac_config_headers in *" | 12583 case $ac_config_headers in *" |
16805 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | 12584 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
16806 esac | 12585 esac |
16807 | 12586 |
16808 | 12587 |
16809 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 12588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
16810 # Files that config.status was made for. | 12589 # Files that config.status was made for. |
16811 config_files="$ac_config_files" | 12590 config_files="$ac_config_files" |
16812 config_headers="$ac_config_headers" | 12591 config_headers="$ac_config_headers" |
16813 config_links="$ac_config_links" | |
16814 config_commands="$ac_config_commands" | 12592 config_commands="$ac_config_commands" |
16815 | 12593 |
16816 _ACEOF | 12594 _ACEOF |
16817 | 12595 |
16818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 12596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16819 ac_cs_usage="\ | 12597 ac_cs_usage="\ |
16820 \`$as_me' instantiates files and other configuration actions | 12598 \`$as_me' instantiates files and other configuration actions |
16821 from templates according to the current configuration. Unless the files | 12599 from templates according to the current configuration. Unless the files |
16822 and actions are specified as TAGs, all are instantiated by default. | 12600 and actions are specified as TAGs, all are instantiated by default. |
16823 | 12601 |
16824 Usage: $0 [OPTION]... [TAG]... | 12602 Usage: $0 [OPTION]... [TAG]... |
16825 | 12603 |
16826 -h, --help print this help, then exit | 12604 -h, --help print this help, then exit |
16827 -V, --version print version number and configuration settings, then exit | 12605 -V, --version print version number and configuration settings, then exit |
16828 -q, --quiet, --silent | 12606 -q, --quiet, --silent |
16829 do not print progress messages | 12607 do not print progress messages |
16830 -d, --debug don't remove temporary files | 12608 -d, --debug don't remove temporary files |
16831 --recheck update $as_me by reconfiguring in the same conditions | 12609 --recheck update $as_me by reconfiguring in the same conditions |
16832 --file=FILE[:TEMPLATE] | 12610 --file=FILE[:TEMPLATE] |
16833 instantiate the configuration file FILE | 12611 instantiate the configuration file FILE |
16834 --header=FILE[:TEMPLATE] | 12612 --header=FILE[:TEMPLATE] |
16835 instantiate the configuration header FILE | 12613 instantiate the configuration header FILE |
16836 | 12614 |
16837 Configuration files: | 12615 Configuration files: |
16838 $config_files | 12616 $config_files |
16839 | 12617 |
16840 Configuration headers: | 12618 Configuration headers: |
16841 $config_headers | 12619 $config_headers |
16842 | 12620 |
16843 Configuration links: | |
16844 $config_links | |
16845 | |
16846 Configuration commands: | 12621 Configuration commands: |
16847 $config_commands | 12622 $config_commands |
16848 | 12623 |
16849 Report bugs to the package provider." | 12624 Report bugs to the package provider." |
16850 | 12625 |
16851 _ACEOF | 12626 _ACEOF |
16852 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 12627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
16853 ac_cs_version="\\ | 12628 ac_cs_version="\\ |
16854 config.status | 12629 config.status |
16855 configured by $0, generated by GNU Autoconf 2.64, | 12630 configured by $0, generated by GNU Autoconf 2.64, |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16955 ## Running $as_me. ## | 12730 ## Running $as_me. ## |
16956 _ASBOX | 12731 _ASBOX |
16957 $as_echo "$ac_log" | 12732 $as_echo "$ac_log" |
16958 } >&5 | 12733 } >&5 |
16959 | 12734 |
16960 _ACEOF | 12735 _ACEOF |
16961 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 12736 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
16962 # | 12737 # |
16963 # INIT-COMMANDS | 12738 # INIT-COMMANDS |
16964 # | 12739 # |
16965 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
16966 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | 12740 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
16967 | 12741 |
16968 _ACEOF | 12742 _ACEOF |
16969 | 12743 |
16970 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 12744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16971 | 12745 |
16972 # Handling of arguments. | 12746 # Handling of arguments. |
16973 for ac_config_target in $ac_config_targets | 12747 for ac_config_target in $ac_config_targets |
16974 do | 12748 do |
16975 case $ac_config_target in | 12749 case $ac_config_target in |
16976 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | 12750 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; |
16977 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;; | |
16978 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | 12751 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
16979 "jit-reader.h") CONFIG_FILES="$CONFIG_FILES jit-reader.h:jit-reader.in" ;; | |
16980 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;; | |
16981 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | 12752 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
16982 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;; | 12753 "import/Makefile") CONFIG_FILES="$CONFIG_FILES import/Makefile" ;; |
16983 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
16984 "gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;; | |
16985 "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefi
le" ;; | |
16986 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | 12754 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
16987 | 12755 |
16988 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | 12756 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
16989 esac | 12757 esac |
16990 done | 12758 done |
16991 | 12759 |
16992 | 12760 |
16993 # If the user did not use the arguments to specify the items to instantiate, | 12761 # If the user did not use the arguments to specify the items to instantiate, |
16994 # then the envvar interface is used. Set only those that are not. | 12762 # then the envvar interface is used. Set only those that are not. |
16995 # We use the long form for the default assignment because of an extremely | 12763 # We use the long form for the default assignment because of an extremely |
16996 # bizarre bug on SunOS 4.1.3. | 12764 # bizarre bug on SunOS 4.1.3. |
16997 if $ac_need_defaults; then | 12765 if $ac_need_defaults; then |
16998 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | 12766 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
16999 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | 12767 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
17000 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links | |
17001 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | 12768 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
17002 fi | 12769 fi |
17003 | 12770 |
17004 # Have a temporary directory for convenience. Make it in the build tree | 12771 # Have a temporary directory for convenience. Make it in the build tree |
17005 # simply because there is no reason against having it here, and in addition, | 12772 # simply because there is no reason against having it here, and in addition, |
17006 # creating and moving files from /tmp can sometimes cause problems. | 12773 # creating and moving files from /tmp can sometimes cause problems. |
17007 # Hook for its removal unless debugging. | 12774 # Hook for its removal unless debugging. |
17008 # Note that there is a small window in which the directory will not be cleaned: | 12775 # Note that there is a small window in which the directory will not be cleaned: |
17009 # after its creation but before its name has been assigned to `$tmp'. | 12776 # after its creation but before its name has been assigned to `$tmp'. |
17010 $debug || | 12777 $debug || |
(...skipping 13 matching lines...) Expand all Loading... |
17024 { | 12791 { |
17025 tmp=./conf$$-$RANDOM | 12792 tmp=./conf$$-$RANDOM |
17026 (umask 077 && mkdir "$tmp") | 12793 (umask 077 && mkdir "$tmp") |
17027 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | 12794 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 |
17028 | 12795 |
17029 # Set up the scripts for CONFIG_FILES section. | 12796 # Set up the scripts for CONFIG_FILES section. |
17030 # No need to generate them if there are no CONFIG_FILES. | 12797 # No need to generate them if there are no CONFIG_FILES. |
17031 # This happens for instance with `./config.status config.h'. | 12798 # This happens for instance with `./config.status config.h'. |
17032 if test -n "$CONFIG_FILES"; then | 12799 if test -n "$CONFIG_FILES"; then |
17033 | 12800 |
17034 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | 12801 |
17035 ac_cs_awk_getline=: | |
17036 ac_cs_awk_pipe_init= | |
17037 ac_cs_awk_read_file=' | |
17038 while ((getline aline < (F[key])) > 0) | |
17039 » print(aline) | |
17040 close(F[key])' | |
17041 ac_cs_awk_pipe_fini= | |
17042 else | |
17043 ac_cs_awk_getline=false | |
17044 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
17045 ac_cs_awk_read_file=' | |
17046 print "|#_!!_#|" | |
17047 print "cat " F[key] " &&" | |
17048 '$ac_cs_awk_pipe_init | |
17049 # The final `:' finishes the AND list. | |
17050 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
17051 fi | |
17052 ac_cr=`echo X | tr X '\015'` | 12802 ac_cr=`echo X | tr X '\015'` |
17053 # On cygwin, bash can eat \r inside `` if the user requested igncr. | 12803 # On cygwin, bash can eat \r inside `` if the user requested igncr. |
17054 # But we know of no other shell where ac_cr would be empty at this | 12804 # But we know of no other shell where ac_cr would be empty at this |
17055 # point, so we can use a bashism as a fallback. | 12805 # point, so we can use a bashism as a fallback. |
17056 if test "x$ac_cr" = x; then | 12806 if test "x$ac_cr" = x; then |
17057 eval ac_cr=\$\'\\r\' | 12807 eval ac_cr=\$\'\\r\' |
17058 fi | 12808 fi |
17059 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | 12809 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
17060 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | 12810 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
17061 ac_cs_awk_cr='\r' | 12811 ac_cs_awk_cr='\r' |
17062 else | 12812 else |
17063 ac_cs_awk_cr=$ac_cr | 12813 ac_cs_awk_cr=$ac_cr |
17064 fi | 12814 fi |
17065 | 12815 |
17066 echo 'BEGIN {' >"$tmp/subs1.awk" && | 12816 echo 'BEGIN {' >"$tmp/subs1.awk" && |
17067 _ACEOF | 12817 _ACEOF |
17068 | 12818 |
17069 # Create commands to substitute file output variables. | |
17070 { | |
17071 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && | |
17072 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && | |
17073 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && | |
17074 echo "_ACAWK" && | |
17075 echo "_ACEOF" | |
17076 } >conf$$files.sh && | |
17077 . ./conf$$files.sh || | |
17078 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
17079 rm -f conf$$files.sh | |
17080 | 12819 |
17081 { | 12820 { |
17082 echo "cat >conf$$subs.awk <<_ACEOF" && | 12821 echo "cat >conf$$subs.awk <<_ACEOF" && |
17083 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | 12822 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
17084 echo "_ACEOF" | 12823 echo "_ACEOF" |
17085 } >conf$$subs.sh || | 12824 } >conf$$subs.sh || |
17086 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | 12825 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
17087 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | 12826 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
17088 ac_delim='%!_!# ' | 12827 ac_delim='%!_!# ' |
17089 for ac_last_try in false false false false false :; do | 12828 for ac_last_try in false false false false false :; do |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
17146 N | 12885 N |
17147 s/\n// | 12886 s/\n// |
17148 } | 12887 } |
17149 ' >>$CONFIG_STATUS || ac_write_fail=1 | 12888 ' >>$CONFIG_STATUS || ac_write_fail=1 |
17150 rm -f conf$$subs.awk | 12889 rm -f conf$$subs.awk |
17151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 12890 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
17152 _ACAWK | 12891 _ACAWK |
17153 cat >>"\$tmp/subs1.awk" <<_ACAWK && | 12892 cat >>"\$tmp/subs1.awk" <<_ACAWK && |
17154 for (key in S) S_is_set[key] = 1 | 12893 for (key in S) S_is_set[key] = 1 |
17155 FS = "" | 12894 FS = "" |
17156 \$ac_cs_awk_pipe_init | 12895 |
17157 } | 12896 } |
17158 { | 12897 { |
17159 line = $ 0 | 12898 line = $ 0 |
17160 nfields = split(line, field, "@") | 12899 nfields = split(line, field, "@") |
17161 substed = 0 | 12900 substed = 0 |
17162 len = length(field[1]) | 12901 len = length(field[1]) |
17163 for (i = 2; i < nfields; i++) { | 12902 for (i = 2; i < nfields; i++) { |
17164 key = field[i] | 12903 key = field[i] |
17165 keylen = length(key) | 12904 keylen = length(key) |
17166 if (S_is_set[key]) { | 12905 if (S_is_set[key]) { |
17167 value = S[key] | 12906 value = S[key] |
17168 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | 12907 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
17169 len += length(value) + length(field[++i]) | 12908 len += length(value) + length(field[++i]) |
17170 substed = 1 | 12909 substed = 1 |
17171 } else | 12910 } else |
17172 len += 1 + keylen | 12911 len += 1 + keylen |
17173 } | 12912 } |
17174 if (nfields == 3 && !substed) { | 12913 |
17175 key = field[2] | |
17176 if (F[key] != "" && line ~ /^[» ]*@.*@[» ]*$/) { | |
17177 \$ac_cs_awk_read_file | |
17178 next | |
17179 } | |
17180 } | |
17181 print line | 12914 print line |
17182 } | 12915 } |
17183 \$ac_cs_awk_pipe_fini | 12916 |
17184 _ACAWK | 12917 _ACAWK |
17185 _ACEOF | 12918 _ACEOF |
17186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 12919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
17187 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | 12920 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
17188 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | 12921 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
17189 else | 12922 else |
17190 cat | 12923 cat |
17191 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | 12924 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
17192 || as_fn_error "could not setup config files machinery" "$LINENO" 5 | 12925 || as_fn_error "could not setup config files machinery" "$LINENO" 5 |
17193 _ACEOF | 12926 _ACEOF |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
17312 } | 13045 } |
17313 } | 13046 } |
17314 { print } | 13047 { print } |
17315 _ACAWK | 13048 _ACAWK |
17316 _ACEOF | 13049 _ACEOF |
17317 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 13050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
17318 as_fn_error "could not setup config headers machinery" "$LINENO" 5 | 13051 as_fn_error "could not setup config headers machinery" "$LINENO" 5 |
17319 fi # test -n "$CONFIG_HEADERS" | 13052 fi # test -n "$CONFIG_HEADERS" |
17320 | 13053 |
17321 | 13054 |
17322 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG
_COMMANDS" | 13055 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
17323 shift | 13056 shift |
17324 for ac_tag | 13057 for ac_tag |
17325 do | 13058 do |
17326 case $ac_tag in | 13059 case $ac_tag in |
17327 :[FHLC]) ac_mode=$ac_tag; continue;; | 13060 :[FHLC]) ac_mode=$ac_tag; continue;; |
17328 esac | 13061 esac |
17329 case $ac_mode$ac_tag in | 13062 case $ac_mode$ac_tag in |
17330 :[FHL]*:*);; | 13063 :[FHL]*:*);; |
17331 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | 13064 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; |
17332 :[FH]-) ac_tag=-:-;; | 13065 :[FH]-) ac_tag=-:-;; |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
17512 s&@abs_srcdir@&$ac_abs_srcdir&;t t | 13245 s&@abs_srcdir@&$ac_abs_srcdir&;t t |
17513 s&@top_srcdir@&$ac_top_srcdir&;t t | 13246 s&@top_srcdir@&$ac_top_srcdir&;t t |
17514 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | 13247 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
17515 s&@builddir@&$ac_builddir&;t t | 13248 s&@builddir@&$ac_builddir&;t t |
17516 s&@abs_builddir@&$ac_abs_builddir&;t t | 13249 s&@abs_builddir@&$ac_abs_builddir&;t t |
17517 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | 13250 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
17518 s&@INSTALL@&$ac_INSTALL&;t t | 13251 s&@INSTALL@&$ac_INSTALL&;t t |
17519 s&@MKDIR_P@&$ac_MKDIR_P&;t t | 13252 s&@MKDIR_P@&$ac_MKDIR_P&;t t |
17520 $ac_datarootdir_hack | 13253 $ac_datarootdir_hack |
17521 " | 13254 " |
17522 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | 13255 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/ou
t \ |
17523 if $ac_cs_awk_getline; then | |
17524 $AWK -f "$tmp/subs.awk" | |
17525 else | |
17526 $AWK -f "$tmp/subs.awk" | $SHELL | |
17527 fi >$tmp/out \ | |
17528 || as_fn_error "could not create $ac_file" "$LINENO" 5 | 13256 || as_fn_error "could not create $ac_file" "$LINENO" 5 |
17529 | 13257 |
17530 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | 13258 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
17531 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | 13259 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
17532 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"
; } && | 13260 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"
; } && |
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a referenc
e to the variable \`datarootdir' | 13261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a referenc
e to the variable \`datarootdir' |
17534 which seems to be undefined. Please make sure it is defined." >&5 | 13262 which seems to be undefined. Please make sure it is defined." >&5 |
17535 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datar
ootdir' | 13263 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datar
ootdir' |
17536 which seems to be undefined. Please make sure it is defined." >&2;} | 13264 which seems to be undefined. Please make sure it is defined." >&2;} |
17537 | 13265 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
17593 /^X\(\/\/\)$/{ | 13321 /^X\(\/\/\)$/{ |
17594 s//\1/ | 13322 s//\1/ |
17595 q | 13323 q |
17596 } | 13324 } |
17597 /^X\(\/\).*/{ | 13325 /^X\(\/\).*/{ |
17598 s//\1/ | 13326 s//\1/ |
17599 q | 13327 q |
17600 } | 13328 } |
17601 s/.*/./; q'`/stamp-h$_am_stamp_count | 13329 s/.*/./; q'`/stamp-h$_am_stamp_count |
17602 ;; | 13330 ;; |
17603 :L) | |
17604 # | |
17605 # CONFIG_LINK | |
17606 # | |
17607 | 13331 |
17608 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then | |
17609 : | |
17610 else | |
17611 # Prefer the file from the source tree if names are identical. | |
17612 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then | |
17613 ac_source=$srcdir/$ac_source | |
17614 fi | |
17615 | |
17616 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5 | |
17617 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;} | |
17618 | |
17619 if test ! -r "$ac_source"; then | |
17620 as_fn_error "$ac_source: file not found" "$LINENO" 5 | |
17621 fi | |
17622 rm -f "$ac_file" | |
17623 | |
17624 # Try a relative symlink, then a hard link, then a copy. | |
17625 case $srcdir in | |
17626 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;; | |
17627 *) ac_rel_source=$ac_top_build_prefix$ac_source ;; | |
17628 esac | |
17629 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null || | |
17630 ln "$ac_source" "$ac_file" 2>/dev/null || | |
17631 cp -p "$ac_source" "$ac_file" || | |
17632 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5 | |
17633 fi | |
17634 ;; | |
17635 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | 13332 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
17636 $as_echo "$as_me: executing $ac_file commands" >&6;} | 13333 $as_echo "$as_me: executing $ac_file commands" >&6;} |
17637 ;; | 13334 ;; |
17638 esac | 13335 esac |
17639 | 13336 |
17640 | 13337 |
17641 case $ac_file$ac_mode in | 13338 case $ac_file$ac_mode in |
17642 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;; | |
17643 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | 13339 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
17644 # Autoconf 2.62 quotes --file arguments for eval, but not when files | 13340 # Autoconf 2.62 quotes --file arguments for eval, but not when files |
17645 # are listed without --file. Let's play safe and only enable the eval | 13341 # are listed without --file. Let's play safe and only enable the eval |
17646 # if we detect the quoting. | 13342 # if we detect the quoting. |
17647 case $CONFIG_FILES in | 13343 case $CONFIG_FILES in |
17648 *\'*) eval set x "$CONFIG_FILES" ;; | 13344 *\'*) eval set x "$CONFIG_FILES" ;; |
17649 *) set x $CONFIG_FILES ;; | 13345 *) set x $CONFIG_FILES ;; |
17650 esac | 13346 esac |
17651 shift | 13347 shift |
17652 for mf | 13348 for mf |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
17767 ac_config_status_args= | 13463 ac_config_status_args= |
17768 test "$silent" = yes && | 13464 test "$silent" = yes && |
17769 ac_config_status_args="$ac_config_status_args --quiet" | 13465 ac_config_status_args="$ac_config_status_args --quiet" |
17770 exec 5>/dev/null | 13466 exec 5>/dev/null |
17771 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | 13467 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
17772 exec 5>>config.log | 13468 exec 5>>config.log |
17773 # Use ||, not &&, to avoid exiting from the if with $? = 1, which | 13469 # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
17774 # would make configure fail if this is the last instruction. | 13470 # would make configure fail if this is the last instruction. |
17775 $ac_cs_success || as_fn_exit $? | 13471 $ac_cs_success || as_fn_exit $? |
17776 fi | 13472 fi |
17777 | |
17778 # | |
17779 # CONFIG_SUBDIRS section. | |
17780 # | |
17781 if test "$no_recursion" != yes; then | |
17782 | |
17783 # Remove --cache-file, --srcdir, and --disable-option-checking arguments | |
17784 # so they do not pile up. | |
17785 ac_sub_configure_args= | |
17786 ac_prev= | |
17787 eval "set x $ac_configure_args" | |
17788 shift | |
17789 for ac_arg | |
17790 do | |
17791 if test -n "$ac_prev"; then | |
17792 ac_prev= | |
17793 continue | |
17794 fi | |
17795 case $ac_arg in | |
17796 -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
17797 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
17798 ac_prev=cache_file ;; | |
17799 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
17800 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
17801 | --c=*) | |
17802 ;; | |
17803 --config-cache | -C) | |
17804 ;; | |
17805 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
17806 ac_prev=srcdir ;; | |
17807 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
17808 ;; | |
17809 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
17810 ac_prev=prefix ;; | |
17811 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
17812 ;; | |
17813 --disable-option-checking) | |
17814 ;; | |
17815 *) | |
17816 case $ac_arg in | |
17817 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
17818 esac | |
17819 as_fn_append ac_sub_configure_args " '$ac_arg'" ;; | |
17820 esac | |
17821 done | |
17822 | |
17823 # Always prepend --prefix to ensure using the same prefix | |
17824 # in subdir configurations. | |
17825 ac_arg="--prefix=$prefix" | |
17826 case $ac_arg in | |
17827 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
17828 esac | |
17829 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" | |
17830 | |
17831 # Pass --silent | |
17832 if test "$silent" = yes; then | |
17833 ac_sub_configure_args="--silent $ac_sub_configure_args" | |
17834 fi | |
17835 | |
17836 # Always prepend --disable-option-checking to silence warnings, since | |
17837 # different subdirs can have different --enable and --with options. | |
17838 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" | |
17839 | |
17840 ac_popdir=`pwd` | |
17841 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
17842 | |
17843 # Do not complain, so a configure script can configure whichever | |
17844 # parts of a large source tree are present. | |
17845 test -d "$srcdir/$ac_dir" || continue | |
17846 | |
17847 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" | |
17848 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 | |
17849 $as_echo "$ac_msg" >&6 | |
17850 as_dir="$ac_dir"; as_fn_mkdir_p | |
17851 ac_builddir=. | |
17852 | |
17853 case "$ac_dir" in | |
17854 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
17855 *) | |
17856 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
17857 # A ".." for each directory in $ac_dir_suffix. | |
17858 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
17859 case $ac_top_builddir_sub in | |
17860 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
17861 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
17862 esac ;; | |
17863 esac | |
17864 ac_abs_top_builddir=$ac_pwd | |
17865 ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
17866 # for backward compatibility: | |
17867 ac_top_builddir=$ac_top_build_prefix | |
17868 | |
17869 case $srcdir in | |
17870 .) # We are building in place. | |
17871 ac_srcdir=. | |
17872 ac_top_srcdir=$ac_top_builddir_sub | |
17873 ac_abs_top_srcdir=$ac_pwd ;; | |
17874 [\\/]* | ?:[\\/]* ) # Absolute name. | |
17875 ac_srcdir=$srcdir$ac_dir_suffix; | |
17876 ac_top_srcdir=$srcdir | |
17877 ac_abs_top_srcdir=$srcdir ;; | |
17878 *) # Relative name. | |
17879 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
17880 ac_top_srcdir=$ac_top_build_prefix$srcdir | |
17881 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
17882 esac | |
17883 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
17884 | |
17885 | |
17886 cd "$ac_dir" | |
17887 | |
17888 # Check for guested configure; otherwise get Cygnus style configure. | |
17889 if test -f "$ac_srcdir/configure.gnu"; then | |
17890 ac_sub_configure=$ac_srcdir/configure.gnu | |
17891 elif test -f "$ac_srcdir/configure"; then | |
17892 ac_sub_configure=$ac_srcdir/configure | |
17893 elif test -f "$ac_srcdir/configure.in"; then | |
17894 # This should be Cygnus configure. | |
17895 ac_sub_configure=$ac_aux_dir/configure | |
17896 else | |
17897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration informa
tion is in $ac_dir" >&5 | |
17898 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
17899 ac_sub_configure= | |
17900 fi | |
17901 | |
17902 # The recursion is here. | |
17903 if test -n "$ac_sub_configure"; then | |
17904 # Make the cache file name correct relative to the subdirectory. | |
17905 case $cache_file in | |
17906 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
17907 *) # Relative name. | |
17908 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | |
17909 esac | |
17910 | |
17911 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure
$ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
17912 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cach
e-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
17913 # The eval makes quoting arguments work. | |
17914 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ | |
17915 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
17916 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 | |
17917 fi | |
17918 | |
17919 cd "$ac_popdir" | |
17920 done | |
17921 fi | |
17922 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | 13473 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_un
recognized_opts" >&5 | 13474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_un
recognized_opts" >&5 |
17924 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | 13475 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
17925 fi | 13476 fi |
17926 | 13477 |
17927 | 13478 |
17928 exit 0 | 13479 exit 0 |
OLD | NEW |