File: configure.in

package info (click to toggle)
splay 0.9.5.2-14
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster, sid, stretch, trixie
  • size: 848 kB
  • ctags: 1,479
  • sloc: cpp: 7,680; sh: 330; makefile: 35
file content (52 lines) | stat: -rw-r--r-- 1,174 bytes parent folder | download | duplicates (2)
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
44
45
46
47
48
49
50
51
52
dnl Process this file with autoconf to produce a configure script.
AC_INIT(apps/splay.cc)
AM_INIT_AUTOMAKE(splay, 0.9.5.2)
AC_SUBST(XSPLAY)

dnl Checks for programs.
AC_PROG_AWK
AC_PROG_CC
AC_PROG_CXX
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_RANLIB

AC_LANG(C++)

dnl Checks for libraries.
AC_CHECK_LIB([tag], [main], [AC_CHECK_HEADERS([taglib/tag.h],
    [AC_DEFINE([TAGLIB], [1], [Define to 1 for taglib])]
    [LIBTAG=1]
	[LIBS="$LIBS -ltag"]
    )])

if test ! "$LIBTAG" = 1; then
    AC_CHECK_LIB([id3], [ID3Tag_New])
fi
AC_CHECK_LIB(m, cos)
AC_CHECK_LIB(pthread,main,INCLUDEPTHREAD=1)
AC_CHECK_LIB(qt, main,XSPLAY=xsplay)

if test "$INCLUDEPTHREAD" = 1; then
	LIBS="$LIBS -lpthread"
AC_DEFINE(PTHREADEDMPEG)
AC_DEFINE(_REENTRANT)
AC_CHECK_HEADERS(pthread.h pthread/mit/pthread.h)
fi

dnl Checks for header files.
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS(fcntl.h malloc.h sys/ioctl.h unistd.h)

dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_BIGENDIAN
AC_TYPE_PID_T

dnl Checks for library functions.
AC_PROG_GCC_TRADITIONAL
AC_TYPE_SIGNAL
AC_CHECK_FUNCS(socket strdup strstr)

AC_OUTPUT(apps/Makefile  Makefile libs/Makefile)