2 # Process this file with autoconf to produce a configure script.
5 AC_INIT([shairplay], [0.9.0], [juhovh@iki.fi])
6 AC_CONFIG_MACRO_DIR([m4])
7 AC_CONFIG_SRCDIR([src/shairplay.c])
8 AC_CONFIG_HEADER([config.h])
9 AM_INIT_AUTOMAKE([foreign])
11 # Checks for programs.
16 # Checks for libraries.
20 # Checks for header files.
23 # Checks for typedefs, structures, and compiler characteristics.
25 # Checks for library functions.
26 AC_CHECK_LIB([socket],[connect])
27 AC_CHECK_LIB([pthread],[pthread_create])
30 # Custom check for os, similar to webkit
31 AC_MSG_CHECKING([for native Win32])
40 AC_MSG_RESULT([$os_win32])
55 gnu* | linux* | k*bsd*-gnu)
64 AM_CONDITIONAL([OS_WIN32],[test "$os_win32" = "yes"])
65 AM_CONDITIONAL([OS_UNIX],[test "$os_win32" = "no"])
66 AM_CONDITIONAL([OS_LINUX],[test "$os_linux" = "yes"])
67 AM_CONDITIONAL([OS_GNU],[test "$os_gnu" = "yes"])
68 AM_CONDITIONAL([OS_FREEBSD],[test "$os_freebsd" = "yes"])
70 # Custom check for libao
71 PKG_CHECK_MODULES([libao], [ao >= 1.1.0], [have_libao=1], [have_libao=0])
72 AM_CONDITIONAL([HAVE_LIBAO], [test "$have_libao" -eq 1])
81 [src/lib/alac/Makefile]
82 [src/lib/crypto/Makefile]