Skip to content

Commit

Permalink
Remove some unused configure checks
Browse files Browse the repository at this point in the history
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
  • Loading branch information
asalkeld committed May 28, 2012
1 parent 70a9623 commit 847741c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 30 deletions.
2 changes: 1 addition & 1 deletion check
Expand Up @@ -129,7 +129,7 @@ check_mac() {
echo "======================="
ORIG_CFLAGS=$CFLAGS
export CFLAGS="$CFLAGS -DDISABLE_POSIX_THREAD_PROCESS_SHARED"
check "ac_cv_supports_sysv_mq=no ac_cv_supports_posix_mq=no ac_cv_func_clock_gettime=no ac_cv_func_epoll_create1=no ac_cv_func_epoll_create=no ac_cv_link_attribute_section=no"
check "ac_cv_func_clock_gettime=no ac_cv_func_epoll_create1=no ac_cv_func_epoll_create=no ac_cv_link_attribute_section=no"
export CFLAGS=$ORIG_CFLAGS

}
Expand Down
30 changes: 1 addition & 29 deletions configure.ac
Expand Up @@ -129,7 +129,7 @@ AC_CHECK_HEADERS([arpa/inet.h link.h fcntl.h inttypes.h limits.h netinet/in.h st
dlfcn.h time.h sys/time.h stdlib.h string.h strings.h sys/types.h sys/stat.h \
sys/param.h sys/socket.h sys/time.h sys/poll.h sys/epoll.h sys/uio.h sys/event.h \
sys/sockio.h sys/un.h sys/resource.h syslog.h errno.h unistd.h sys/mman.h \
sys/sem.h sys/ipc.h sys/msg.h mqueue.h netdb.h])
sys/sem.h sys/ipc.h sys/msg.h netdb.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_UID_T
Expand Down Expand Up @@ -249,8 +249,6 @@ fi
# THIS SECTION MUST DIE!
CP=cp
LIB_RT=-lrt
supports_sysv_mq="yes"
supports_posix_mq="yes"
AC_MSG_CHECKING([for os in ${host_os}])
case "$host_os" in
*linux*)
Expand All @@ -263,8 +261,6 @@ case "$host_os" in
[Compiling for Darwin platform])
CP=rsync
LIB_RT=
supports_sysv_mq="no"
supports_posix_mq="no"
ac_cv_link_attribute_section=no
dnl Attribute section appears to work here but fails later with:
dnl cc1: error in backend: Global variable 'descriptor.4902' has an invalid section specifier '__verbose': mach-o section specifier requires a segment and section separated by a comma
Expand Down Expand Up @@ -298,8 +294,6 @@ case "$host_os" in
*solaris*)
AC_DEFINE_UNQUOTED([QB_SOLARIS], [1],
[Compiling for Solaris platform])
AC_DEFINE_UNQUOTED([TS_CLASS], [1],
[Prevent being scheduled RR])
CP=rsync
AC_MSG_RESULT([Solaris])
;;
Expand Down Expand Up @@ -453,28 +447,6 @@ if test "x${enable_slow_tests}" = xyes ; then
fi
AM_CONDITIONAL(HAVE_SLOW_TESTS, [test "x${enable_slow_tests}" = xyes])

if test -n "$ac_cv_supports_sysv_mq"; then
supports_sysv_mq=$ac_cv_supports_sysv_mq
fi
if test "x${supports_sysv_mq}" = xyes ; then
AC_DEFINE([HAVE_SYSV_MQ], [1],
[have sysv message queues])
PACKAGE_FEATURES="$PACKAGE_FEATURES sysv_mq"
AC_MSG_NOTICE([Enabling SYSV Message Queues])
fi
AM_CONDITIONAL(HAVE_SYSV_MQ, [test "x${supports_sysv_mq}" = xyes])

if test -n "$ac_cv_supports_posix_mq"; then
supports_posix_mq=$ac_cv_supports_posix_mq
fi
if test "x${supports_posix_mq}" = xyes ; then
AC_DEFINE([HAVE_POSIX_MQ], [1],
[have posix message queues])
PACKAGE_FEATURES="$PACKAGE_FEATURES posix_mq"
AC_MSG_NOTICE([Enabling POSIX Message Queues])
fi
AM_CONDITIONAL(HAVE_POSIX_MQ, [test "x${supports_posix_mq}" = xyes])

# --- callsite sections ---
if test "x${GCC}" = xyes; then
AC_MSG_CHECKING([whether GCC supports __attribute__((section())])
Expand Down

0 comments on commit 847741c

Please sign in to comment.