comparison configure.in @ 8730:bf899f54d530

use new macro names
author David J. MacKenzie <djm@gnu.org>
date Tue, 13 Sep 1994 15:46:47 +0000
parents d9d6f7419e2e
children 12b4d106cc47
comparison
equal deleted inserted replaced
8729:d9d6f7419e2e 8730:bf899f54d530
760 #### Choose a compiler. 760 #### Choose a compiler.
761 test -n "$CC" && cc_specified=yes 761 test -n "$CC" && cc_specified=yes
762 762
763 case ${with_gcc} in 763 case ${with_gcc} in
764 "yes" ) CC="gcc" GCC=yes ;; 764 "yes" ) CC="gcc" GCC=yes ;;
765 "no" ) test -z "$CC" && CC=cc ;; 765 "no" ) : ${CC=cc} ;;
766 * ) AC_PROG_CC 766 * ) AC_PROG_CC
767 esac 767 esac
768 768
769 # On Suns, sometimes $CPP names a directory. 769 # On Suns, sometimes $CPP names a directory.
770 if test -n "$CPP" && test -d "$CPP"; then 770 if test -n "$CPP" && test -d "$CPP"; then
801 #### Some other nice autoconf tests. If you add a test here which 801 #### Some other nice autoconf tests. If you add a test here which
802 #### should make an entry in src/config.h, don't forget to add an 802 #### should make an entry in src/config.h, don't forget to add an
803 #### #undef clause to src/config.h.in for autoconf to modify. 803 #### #undef clause to src/config.h.in for autoconf to modify.
804 804
805 dnl checks for programs 805 dnl checks for programs
806 AC_LN_S 806 AC_PROG_LN_S
807 AC_PROG_CPP 807 AC_PROG_CPP
808 AC_PROG_INSTALL 808 AC_PROG_INSTALL
809 AC_PROG_YACC 809 AC_PROG_YACC
810 810
811 dnl checks for header files 811 dnl checks for header files
812 AC_HAVE_HEADERS(sys/timeb.h sys/time.h unistd.h) 812 AC_CHECK_HEADERS(sys/timeb.h sys/time.h unistd.h)
813 AC_STDC_HEADERS 813 AC_HEADER_STDC
814 AC_TIME_WITH_SYS_TIME 814 AC_HEADER_TIME
815 AC_SYS_SIGLIST_DECLARED 815 AC_DECL_SYS_SIGLIST
816 816
817 dnl checks for typedefs 817 dnl checks for typedefs
818 AC_RETSIGTYPE 818 AC_TYPE_SIGNAL
819 819
820 dnl checks for structure members 820 dnl checks for structure members
821 AC_STRUCT_TM 821 AC_STRUCT_TM
822 AC_TIMEZONE 822 AC_STRUCT_TIMEZONE
823 823
824 dnl checks for compiler characteristics 824 dnl checks for compiler characteristics
825 AC_CONST 825 AC_C_CONST
826 826
827 dnl check for Make feature 827 dnl check for Make feature
828 AC_SET_MAKE 828 AC_PROG_MAKE_SET
829 829
830 dnl checks for operating system services 830 dnl checks for operating system services
831 AC_LONG_FILE_NAMES 831 AC_SYS_LONG_FILE_NAMES
832
833 dnl other checks for UNIX variants
834 832
835 #### Choose a window system. 833 #### Choose a window system.
836 834
837 AC_FIND_X 835 AC_PATH_X
838 if test "$no_x" = yes; then 836 if test "$no_x" = yes; then
839 window_system=none 837 window_system=none
840 else 838 else
841 window_system=x11 839 window_system=x11
842 fi 840 fi
1013 dnl FIXME replace main with a function we actually want from this library. 1011 dnl FIXME replace main with a function we actually want from this library.
1014 AC_CHECK_LIB(Xbsd, main, LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd") 1012 AC_CHECK_LIB(Xbsd, main, LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd")
1015 1013
1016 AC_MSG_CHECKING(for XFree86) 1014 AC_MSG_CHECKING(for XFree86)
1017 if test -d /usr/X386/include; then 1015 if test -d /usr/X386/include; then
1018 AC_MSG_RESULT(yes)
1019 HAVE_XFREE386=yes 1016 HAVE_XFREE386=yes
1020 test -z "${C_SWITCH_X_SITE}" && C_SWITCH_X_SITE="-I/usr/X386/include" 1017 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
1021 else 1018 else
1022 AC_MSG_RESULT(no) 1019 HAVE_XFREE386=no
1023 fi 1020 fi
1021 AC_MSG_RESULT($HAVE_XFREE386)
1024 1022
1025 # We change CFLAGS temporarily so that C_SWITCH_X_SITE gets used 1023 # We change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
1026 # for the tests that follow. 1024 # for the tests that follow.
1027 1025
1028 if test "${HAVE_X11}" = "yes"; then 1026 if test "${HAVE_X11}" = "yes"; then
1029 DEFS="$C_SWITCH_X_SITE $DEFS" 1027 DEFS="$C_SWITCH_X_SITE $DEFS"
1030 LIBS="$LD_SWITCH_X_SITE $LIBX $LIBS" 1028 LIBS="$LD_SWITCH_X_SITE $LIBX $LIBS"
1031 CFLAGS="$C_SWITCH_X_SITE $CFLAGS" 1029 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
1032 AC_HAVE_FUNCS(XrmSetDatabase XScreenResourceString \ 1030 AC_CHECK_FUNCS(XrmSetDatabase XScreenResourceString \
1033 XScreenNumberOfScreen XSetWMProtocols) 1031 XScreenNumberOfScreen XSetWMProtocols)
1034 fi 1032 fi
1035 1033
1036 if test "${USE_X_TOOLKIT}" != "none"; then 1034 if test "${USE_X_TOOLKIT}" != "none"; then
1037 AC_MSG_CHECKING(X11 toolkit version) 1035 AC_MSG_CHECKING(X11 toolkit version)
1038 AC_COMPILE_CHECK(, [#include <X11/Intrinsic.h>], 1036 AC_TRY_LINK([#include <X11/Intrinsic.h>],
1039 [#if XtSpecificationRelease < 6 1037 [#if XtSpecificationRelease < 6
1040 fail; 1038 fail;
1041 #endif 1039 #endif
1042 ], [AC_MSG_RESULT(6) 1040 ], [AC_MSG_RESULT(6)
1043 AC_DEFINE(HAVE_X11XTR6)], 1041 AC_DEFINE(HAVE_X11XTR6)],
1044 [AC_MSG_RESULT(not 6)]) 1042 [AC_MSG_RESULT(not 6)])
1045 fi 1043 fi
1046 1044
1047 # If netdb.h doesn't declare h_errno, we must declare it by hand. 1045 # If netdb.h doesn't declare h_errno, we must declare it by hand.
1048 AC_MSG_CHECKING(whether netdb declarares h_errno) 1046 AC_MSG_CHECKING(whether netdb declarares h_errno)
1049 AC_COMPILE_CHECK(, [#include <netdb.h>], 1047 AC_TRY_LINK([#include <netdb.h>],
1050 [int 1048 [int
1051 foo () 1049 foo ()
1052 { 1050 {
1053 return h_errno; 1051 return h_errno;
1054 } 1052 }
1055 ], [AC_MSG_RESULT(yes) 1053 ], [AC_MSG_RESULT(yes)
1056 AC_DEFINE(HAVE_H_ERRNO)], 1054 AC_DEFINE(HAVE_H_ERRNO)],
1057 [AC_MSG_RESULT(no)]) 1055 [AC_MSG_RESULT(no)])
1058 1056
1059 AC_ALLOCA 1057 AC_FUNC_ALLOCA
1060 1058
1061 # logb and frexp are found in -lm on most systems. 1059 # logb and frexp are found in -lm on most systems.
1062 AC_CHECK_LIB(m, logb) 1060 AC_CHECK_LIB(m, logb)
1063 AC_HAVE_FUNCS(gettimeofday gethostname dup2 rename closedir mkdir rmdir \ 1061 AC_CHECK_FUNCS(gettimeofday gethostname dup2 rename closedir mkdir rmdir \
1064 random lrand48 bcopy bcmp logb frexp fmod drem ftime res_init setsid strerror \ 1062 random lrand48 bcopy bcmp logb frexp fmod drem ftime res_init setsid strerror \
1065 fpathconf) 1063 fpathconf)
1066 1064
1067 ok_so_far=yes 1065 ok_so_far=yes
1068 AC_FUNC_CHECK(socket, , ok_so_far=no) 1066 AC_CHECK_FUNC(socket, , ok_so_far=no)
1069 if test $ok_so_far = yes; then 1067 if test $ok_so_far = yes; then
1070 AC_HEADER_CHECK(netinet/in.h, , ok_so_far=no) 1068 AC_CHECK_HEADER(netinet/in.h, , ok_so_far=no)
1071 fi 1069 fi
1072 if test $ok_so_far = yes; then 1070 if test $ok_so_far = yes; then
1073 AC_HEADER_CHECK(arpa/inet.h, , ok_so_far=no) 1071 AC_CHECK_HEADER(arpa/inet.h, , ok_so_far=no)
1074 fi 1072 fi
1075 if test $ok_so_far = yes; then 1073 if test $ok_so_far = yes; then
1076 AC_DEFINE(HAVE_INET_SOCKETS) 1074 AC_DEFINE(HAVE_INET_SOCKETS)
1077 fi 1075 fi
1078 1076