X-Git-Url: https://code.delx.au/pulseaudio/blobdiff_plain/91d802582362e0d81f291cd4955b278a85528e51..ed01e1adb52c804bc43a4ba7b5a7060071a60030:/configure.ac diff --git a/configure.ac b/configure.ac index 42bee9a8..89fcb062 100644 --- a/configure.ac +++ b/configure.ac @@ -5,6 +5,9 @@ # This file is part of PulseAudio. # +# Copyright 2004-2006 Lennart Poettering +# Copyright 2006-2007 Pierre Ossman for Cendio AB +# # PulseAudio is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation; either version 2 of the License, or @@ -23,7 +26,7 @@ AC_PREREQ(2.57) m4_define(PA_MAJOR, [0]) m4_define(PA_MINOR, [9]) -m4_define(PA_MICRO, [5]) +m4_define(PA_MICRO, [6]) AC_INIT([pulseaudio], PA_MAJOR.PA_MINOR.PA_MICRO,[mzcbylcnhqvb (at) 0pointer (dot) de]) AC_CONFIG_SRCDIR([src/daemon/main.c]) @@ -36,12 +39,14 @@ AC_SUBST(PACKAGE_URL, [http://0pointer.de/lennart/projects/pulseaudio/]) AC_SUBST(PA_API_VERSION, 10) AC_SUBST(PA_PROTOCOL_VERSION, 10) -AC_SUBST(LIBPULSE_VERSION_INFO, [1:0:1]) -AC_SUBST(LIBPULSECORE_VERSION_INFO, [2:0:0]) +AC_SUBST(LIBPULSE_VERSION_INFO, [2:0:2]) +AC_SUBST(LIBPULSECORE_VERSION_INFO, [3:0:0]) AC_SUBST(LIBPULSE_SIMPLE_VERSION_INFO, [0:0:0]) AC_SUBST(LIBPULSE_BROWSE_VERSION_INFO, [1:0:1]) AC_SUBST(LIBPULSE_MAINLOOP_GLIB_VERSION_INFO, [0:2:0]) +AC_CANONICAL_HOST + if type -p stow > /dev/null && test -d /usr/local/stow ; then AC_MSG_NOTICE([*** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} ***]) ac_default_prefix="/usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION}" @@ -62,6 +67,7 @@ esac # CC AC_PROG_CC +AM_PROG_CC_C_O AC_PROG_GCC_TRADITIONAL AC_GNU_SOURCE @@ -143,9 +149,18 @@ AC_HEADER_STDC # POSIX AC_CHECK_HEADERS([arpa/inet.h glob.h grp.h netdb.h netinet/in.h \ - netinet/in_systm.h netinet/ip.h netinet/tcp.h pwd.h sched.h \ + netinet/in_systm.h netinet/tcp.h pwd.h sched.h \ sys/mman.h sys/resource.h sys/select.h sys/socket.h sys/wait.h \ syslog.h]) +AC_CHECK_HEADERS([netinet/ip.h], [], [], + [#include + #if HAVE_NETINET_IN_H + # include + #endif + #if HAVE_NETINET_IN_SYSTM_H + # include + #endif + ]) AC_CHECK_HEADERS([regex.h], [HAVE_REGEX=1], [HAVE_REGEX=0]) AC_CHECK_HEADERS([sys/un.h], [HAVE_AF_UNIX=1], [HAVE_AF_UNIX=0]) @@ -326,11 +341,10 @@ AC_CHECK_HEADERS([atomic_ops.h], [], [ AC_MSG_ERROR([*** libatomic-ops headers not found]) ]) -AC_SEARCH_LIBS([AO_spin], [atomic_ops], [], [ -AC_MSG_ERROR([*** libatomic-ops library file not found]) -]) - - +# Win32 does not need the lib and breaks horribly if we try to include it +if test "x$os_is_win32" != "x1" ; then + LIBS="$LIBS -latomic_ops" +fi #### OSS support (optional) #### @@ -699,7 +713,7 @@ AC_DEFINE_UNQUOTED(PA_SYSTEM_GROUP,"$PA_SYSTEM_GROUP", [Group for the PulseAudio AC_ARG_WITH(realtime_group,AS_HELP_STRING([--with-realtime-group=],[Group for users that are allowed to start the PulseAudio daemon with realtime scheduling (realtime)])) if test -z "$with_realtime_group" ; then - PA_REALTIME_GROUP=realtime + PA_REALTIME_GROUP=pulse-rt else PA_REALTIME_GROUP=$with_realtime_group fi