File: configure.in

package info (click to toggle)
dbmix 0.9.8-6.3
  • links: PTS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, sid, stretch
  • size: 2,896 kB
  • sloc: ansic: 12,309; sh: 11,418; makefile: 153
file content (139 lines) | stat: -rw-r--r-- 3,328 bytes parent folder | download | duplicates (3)
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
AC_INIT(dbfsd_src/dbfsd.c)

AM_CONFIG_HEADER(config.h)

AM_INIT_AUTOMAKE(DBMix, 0.9.8)

AM_MAINTAINER_MODE

AC_PROG_CC
AC_ISC_POSIX
AM_PROG_LIBTOOL


AC_ARG_PROGRAM
AC_HEADER_STDC

AC_CHECK_HEADER(pthread.h,,AC_MSG_ERROR([*** POSIX thread support not installed - please install first ***]))

AM_PATH_GLIB_2_0(2.0.0,,AC_MSG_ERROR([*** GLIB >= 2.0.0 not installed - please install first ***]))
AM_PATH_GTK_2_0(2.0.0,,AC_MSG_ERROR([*** GTK+ >= 2.0.0 not installed - please install first ***]))



echo ""
AC_CHECK_LIB(FunkyMusic.so,white_boys, , [
echo "Warning: You may not have enough white boys to play your funky music.
         Please obtain additional funky white boys."
])
echo ""

AC_ARG_ENABLE(debug,[  --enable-debug          enable dbmix debug options (optional)],,debug_enable=yes)

if test "x$debug_enable" = "x$yes"
then
	DBMIX_DEBUG="-DDBMIX_DEBUG -g -Wall"
else

	DBMIX_DEBUG=
fi


AC_SUBST(DBMIX_DEBUG)


AC_ARG_ENABLE(exmixer,[  --enable-exmixer        enable exmixer support (optional)],,exmixer_enable=yes)

if test "x$exmixer_enable" = "x$yes"
then
	EXMIXER_FLAGS="-DEXT_MIXER"
else
	EXMIXER_FLAGS=
fi


AC_SUBST(EXMIXER_FLAGS)




AC_SUBST(VISUALIZATION_PLUGIN_DIR)
AC_SUBST(GENERAL_PLUGIN_DIR)
dnl Used in Makefile.am, but never defined. WTF?
AC_SUBST(PTHREAD_LIBS)
AC_SUBST(POSIX_LIBS)
AC_SUBST(VM_LIBS)
AC_SUBST(DGA_LIBS)


AC_OUTPUT([
Makefile
include/Makefile
dbaudiolib/Makefile
dbfsd_src/Makefile
xmms_plugin/Makefile
dbmixer/Makefile
dbplaylist/Makefile
])



echo ""
echo "============================="
echo "DBMix Configure Options:"
echo ""

echo "xmms output plugin directory: $XMMS_OUTPUT_PLUGIN_DIR"

if test "x$exmixer_enable" = "x$yes"
then
echo "exmixer support ... ON"
else
echo "exmixer support ... OFF"
fi

if test "x$debug_enable" = "x$yes"
then
echo "debug options   ... ON"
else
echo "debug options   ... OFF"
fi

echo ""
echo "=============================" 

exit 0

echo ""
echo "********************************************************************"
echo " READ THIS READ THIS READ THIS READ THIS READ THIS READ THIS READ"
echo " READ THIS READ THIS READ THIS READ THIS READ THIS READ THIS READ"
echo "
Please read the README file to learn how to use dbmix.

Please make sure your LD_LIBRARY_PATH contains the installation 
path for dbaudiolib, otherwise you will receive the following error 
at runtime:

libdbaudiolib.so.0: cannot open shared object file: No such file or directory

This path will most probably be /usr/local/lib, or /usr/lib.

If you have not installed dbmix before, you may get the following error 
during the make process:

gcc -O2 -o dbcat -L/usr/lib -L/usr/X11R6/lib -lgtk ... etc ...
/usr/bin/ld: cannot find -ldbaudiolib
collect2: ld returned 1 exit status
make[2]: *** [dbcat] Error 1
make[2]: Leaving directory \`/home/futant/DBMix-0.9.7-2/dbfsd_src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory \`/home/futant/DBMix-0.9.7-2'
make: *** [all-recursive-am] Error 2 

If this error occurs, cd to the dbaudiolib, make install, then cd back 
to the main dbmix directory and do a global make install for the package.
"
echo " READ THIS READ THIS READ THIS READ THIS READ THIS READ THIS READ"
echo " READ THIS READ THIS READ THIS READ THIS READ THIS READ THIS READ"
echo "********************************************************************"