From: Panu Matilainen Date: Wed, 23 Dec 2009 10:25:32 +0000 (+0200) Subject: Dont bother checking for functions we dont use X-Git-Tag: rpm-4.9.0-beta1~1079 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5c31864598a169bbf0609635f162bc089ea3ccda;p=platform%2Fupstream%2Frpm.git Dont bother checking for functions we dont use - some of this stuff was used in 4.4.x but not anymore - additionally we dont even use getdomainnname(), check for gethostname() instead --- diff --git a/configure.ac b/configure.ac index a33a9c5..87a5b9d 100644 --- a/configure.ac +++ b/configure.ac @@ -210,23 +210,11 @@ dnl dnl Checks for libraries. -AC_CHECK_FUNC(setreuid, [], [ - AC_CHECK_LIB(ucb, setreuid, [if echo $LIBS | grep -- -lucb >/dev/null ;then :; else LIBS="$LIBS -lc -lucb" USEUCB=y;fi]) -]) - -AC_CHECK_FUNC(rand, [], [ - AC_CHECK_LIB(rand, rand, []) -]) - -AC_CHECK_FUNC(getdomainname, [], [ - AC_CHECK_LIB(nsl, getdomainname) -]) -AC_CHECK_FUNC(socket, [], [ - AC_CHECK_LIB(socket, socket) +AC_CHECK_FUNC(gethostname, [], [ + AC_CHECK_LIB(nsl, gethostname) ]) AC_CHECK_HEADERS(error.h) -AC_CHECK_FUNCS(error) AC_CHECK_HEADERS(poll.h) @@ -565,7 +553,6 @@ dnl point, but should offer good performance improvements, check after dnl 4.4.2.1... dnl AC_FUNC_MMAP -AC_CHECK_FUNCS(getaddrinfo getnameinfo inet_aton) AC_CHECK_FUNCS(mtrace) AC_CHECK_FUNCS(strndup strerror) diff --git a/system.h b/system.h index f87d4dd..a4864d2 100644 --- a/system.h +++ b/system.h @@ -90,7 +90,7 @@ char * stpncpy(char * dest, const char * src, size_t n); extern int errno; #endif -#if HAVE_ERROR && HAVE_ERROR_H +#if HAVE_ERROR_H #include #endif