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.
15 # Checks for libraries.
17 # Checks for header files.
20 # Checks for typedefs, structures, and compiler characteristics.
22 # Checks for library functions.
26 # Custom check for os, similar to webkit
27 AC_MSG_CHECKING([for native Win32])
36 AC_MSG_RESULT([$os_win32])
51 gnu* | linux* | k*bsd*-gnu)
60 AM_CONDITIONAL([OS_WIN32],[test "$os_win32" = "yes"])
61 AM_CONDITIONAL([OS_UNIX],[test "$os_win32" = "no"])
62 AM_CONDITIONAL([OS_LINUX],[test "$os_linux" = "yes"])
63 AM_CONDITIONAL([OS_GNU],[test "$os_gnu" = "yes"])
64 AM_CONDITIONAL([OS_FREEBSD],[test "$os_freebsd" = "yes"])
66 # Custom check for libao
67 PKG_CHECK_MODULES([libao], [ao >= 1.1.0], [HAVE_LIBAO=1], [HAVE_LIBAO=0])
68 AM_CONDITIONAL([USE_LIBAO], [test "$HAVE_LIBAO" -eq 1])
77 [src/lib/alac/Makefile]
78 [src/lib/crypto/Makefile]