]> jfr.im git - solanum.git/blobdiff - libratbox/configure.ac
Add endian test to autoconf and convert crypt to use it.
[solanum.git] / libratbox / configure.ac
index 599e1f78026f39932d1dde93c282936704144a9d..d50095c5e03b30b2b349ae540c344ee55d1bb7aa 100644 (file)
@@ -40,6 +40,7 @@ AM_MAINTAINER_MODE
 AC_ISC_POSIX
 AC_C_INLINE
 AC_C_CONST
+AC_C_BIGENDIAN
 AC_PROG_MAKE_SET
 AC_PROG_INSTALL
 AC_PATH_PROG(AUTOMAKE, automake)
@@ -200,25 +201,6 @@ AC_CHECK_TYPES([struct sockaddr_storage],[
        ])
                 
 
-save_LIBS=$LIBS
-AC_SEARCH_LIBS(crypt, [crypt descrypt],,)
-LIBS=$save_LIBS
-
-CRYPT_LIB=$ac_cv_search_crypt
-
-if test "$CRYPT_LIB" = "none required"; then
-       unset CRYPT_LIB
-elif test "$CRYPT_LIB" = no; then
-       need_crypt=yes;
-       AC_DEFINE(NEED_CRYPT, 1, [Define if your system needs crypt.])
-       unset CRYPT_LIB
-fi
-
-AM_CONDITIONAL([NEED_CRYPT], [test x"$need_crypt" = "xyes"])
-
-
-AC_SUBST(CRYPT_LIB)
-
 dnl Check for stdarg.h - if we cant find it, halt configure
 AC_CHECK_HEADER(stdarg.h, , [AC_MSG_ERROR([** stdarg.h could not be found - libratbox will not compile without it **])])