forked from abrasive/shairport
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.in
30 lines (24 loc) · 943 Bytes
/
configure.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_INIT([shairport.c], [1.2.1], [http://trac.xbmc.org])
AM_INIT_AUTOMAKE(libshairport, 1.2.1)
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])
# library version info
# NOTE: this is not the same as the library's release number
LIBSHAIRPORT_INTERFACE=2
LIBSHAIRPORT_REVISION=0
LIBSHAIRPORT_AGE=0
LIBSHAIRPORT_LIBTOOL_VERSION=$LIBSHAIRPORT_INTERFACE:$LIBSHAIRPORT_REVISION:$LIBSHAIRPORT_MINOR
AC_PROG_CC
AC_PROG_LIBTOOL
# Checks for libraries.
AC_CHECK_LIB([m], [main])
AC_CHECK_LIB([ssl], [main],, AC_MSG_ERROR($missing_library))
AC_CHECK_LIB([crypto], [main],, AC_MSG_ERROR($missing_library))
AC_CHECK_LIB([pthread], [main],, AC_MSG_ERROR($missing_library))
# Checks for headers
AC_CHECK_HEADER([ao/ao.h],, AC_MSG_ERROR($missing_library))
AC_SUBST(LIBSHAIRPORT_LIBTOOL_VERSION)
AC_CONFIG_FILES(Makefile src/Makefile libshairport.pc)
AC_OUTPUT