-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
44 lines (30 loc) · 915 Bytes
/
configure.ac
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
31
32
33
34
35
36
37
38
39
40
41
42
43
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
#AC_PREREQ([2.69])
AC_INIT([transtreamproxy], [2.2.0], [kos@dev3])
AM_INIT_AUTOMAKE([transtreamproxy], [2.2.0])
#AC_CONFIG_SRCDIR([main.cpp])
AC_CONFIG_HEADERS([config.h])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AC_USE_SYSTEM_EXTENSIONS
AC_SYS_LARGEFILE
# Checks for programs.
AC_PROG_CC
AC_PROG_CXX
AC_CONFIG_MACRO_DIR([m4])
AC_CHECK_LIB(pthread, pthread_create)
PTHREAD_LIBS=-lpthread
AC_SUBST(PTHREAD_LIBS)
AC_CHECK_LIB(rt, shm_open)
RT_LIBS=-lrt
AC_SUBST(RT_LIBS)
WARN_CFLAGS=-Wno-unused-result
AC_SUBST(WARN_CFLAGS)
# Checks for libraries.
AC_SUBST(PLATFORM)
# Checks for header files.
AC_SUBST(INCPATH)
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
AC_CONFIG_FILES([Makefile src/Makefile])
AC_OUTPUT