source: trunk/third/gnome-media/configure.in @ 17496

Revision 17496, 4.0 KB checked in by ghudson, 23 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r17495, which included commits to RCS files with non-trunk default branches.
Line 
1AC_INIT(gmix)
2
3AM_CONFIG_HEADER(config.h)
4AM_INIT_AUTOMAKE(gnome-media, 1.2.3)
5AM_MAINTAINER_MODE
6AM_PROG_XML_I18N_TOOLS
7
8AM_ACLOCAL_INCLUDE(macros)
9
10AC_PROG_CC
11AC_ISC_POSIX
12
13GNOME_INIT
14GNOME_COMPILE_WARNINGS
15
16dnl Checks for programs.
17AC_PROG_INSTALL
18AC_PROG_LN_S
19AC_PROG_MAKE_SET
20
21dnl Look for some version of curses (keeping AM_'s out of curses.m4)
22AC_CHECK_CURSES
23AM_CONDITIONAL(HAS_CURSES, test "$has_curses" = true)
24
25dnl Utility conditional
26AM_CONDITIONAL(FALSE, test x = y)
27
28dnl Checks for header files.
29AC_HEADER_STDC
30AC_CHECK_HEADERS(fcntl.h limits.h malloc.h strings.h sys/ioctl.h unistd.h)
31
32dnl Checks for typedefs, structures, and compiler characteristics.
33AC_C_CONST
34AC_C_INLINE
35AC_TYPE_OFF_T
36AC_TYPE_SIZE_T
37
38dnl Checks for library functions.
39AC_FUNC_ALLOCA
40AC_PROG_GCC_TRADITIONAL
41AC_FUNC_MMAP
42AC_CHECK_FUNCS(getcwd getwd putenv strdup strerror)
43AM_PROG_LIBTOOL
44
45dnl
46dnl Check for esound library
47dnl
48AM_PATH_ESD(0.2.7, we_have_esd=true)
49if test -n "$we_have_esd"; then
50AC_DEFINE(HAVE_ESD)
51fi
52
53dnl
54dnl Check for ScrollKeeper
55dnl
56AC_PATH_PROG(SCROLLKEEPER_CONFIG, scrollkeeper-config,no)
57if test x$SCROLLKEEPER_CONFIG = xno; then
58  AC_MSG_ERROR(Couldn't find scrollkeeper-config, please install the scrollkeeper package)
59fi
60
61dnl
62dnl ALSA
63dnl
64AC_ARG_ENABLE(alsa,
65[  --enable-alsa=[no/yes]      Enable support for ALSA sound library],,enable_alsa=no)
66AC_CHECK_HEADERS(sys/asoundlib.h)
67if test "x$enable_alsa" = "xyes"; then
68    if test "${ac_cv_header_sys_asoundlib_h}" == "yes"; then
69        AC_DEFINE(ALSA)
70    else
71        enable_alsa="no";
72    fi
73fi
74
75ALL_LINGUAS="az ca cs da de el en_GB es et fi fr ga gl hu it ja ko lt nl no pl pt pt_BR ro ru sk sl sv tr uk zh_TW.Big5 zh_CN.GB2312"
76AM_GNU_GETTEXT
77
78AC_SUBST(CFLAGS)
79AC_SUBST(CPPFLAGS)
80AC_SUBST(LDFLAGS)
81
82dnl
83dnl vu-meter
84dnl
85PROGRAMS_VUMETER=""
86if test -n "$we_have_esd"; then
87PROGRAMS_VUMETER="vu-meter"
88fi
89AC_SUBST(PROGRAMS_VUMETER)
90
91dnl
92dnl gmix
93dnl
94PROGRAMS_GMIX=""
95GMIX_LIBS=""
96AC_CHECK_HEADERS(soundcard.h linux/soundcard.h sys/soundcard.h)
97AC_CHECK_HEADERS(machine/soundcard.h)
98if test "x$enable_alsa" = "xyes"; then
99    PROGRAMS_GMIX=gmix
100    GMIX_LIBS="-lasound"
101elif test "${ac_cv_header_sys_soundcard_h}" = "yes" || \
102     test "${ac_cv_header_soundcard_h}" = "yes" || \
103     test "${ac_cv_header_linux_soundcard_h}" = "yes" || \
104     test "${ac_cv_header_machine_soundcard_h}" = "yes"; then
105    PROGRAMS_GMIX=gmix
106fi
107AC_SUBST(PROGRAMS_GMIX)
108AC_SUBST(GMIX_LIBS)
109
110
111dnl
112dnl cddbslave
113dnl
114GNOME_GHTTP_CHECK
115if test -n "`echo x$GHTTP_LIB | grep ghttp`"; then
116  AC_DEFINE(WITH_LIBGHTTP)
117else
118  GHTTP_LIB=
119fi
120
121dnl find the mailer for use with the submission helper
122dnl This code is from the gnome-bug script.  It should work for most systems
123AC_MSG_CHECKING(for the MTA)
124if test -f /usr/sbin/sendmail; then
125  MAIL_TRANSFER_AGENT="/usr/sbin/sendmail -t"
126elif test -f /usr/lib/sendmail; then
127  MAIL_TRANSFER_AGENT="/usr/lib/sendmail -t"
128else
129  MAIL_TRANSFER_AGENT="rmail "
130fi
131AC_DEFINE_UNQUOTED(MAIL_TRANSFER_AGENT, "$MAIL_TRANSFER_AGENT")
132AC_MSG_RESULT($MAIL_TRANSFER_AGENT)
133
134dnl
135dnl Everything OK for tcd?
136dnl
137PROGRAMS_TCD=""
138AC_CHECK_HEADERS(linux/cdrom.h,[PROGRAMS_TCD=tcd])
139AC_CHECK_HEADERS(linux/ucdrom.h)
140AC_CHECK_HEADERS(sys/cdio.h,[PROGRAMS_TCD=tcd])
141AC_CHECK_HEADERS(sun/dkio.h,[PROGRAMS_TCD=tcd])
142
143AC_MSG_CHECKING([whether to use cd changer support (Linux 2.1.x headers required)])
144AC_EGREP_CPP(answer_affirmatively,
145[#include <linux/cdrom.h>
146 #ifdef CDROM_CHANGER_NSLOTS
147        answer_affirmatively
148 #endif
149], cd_changer=yes, cd_changer=no)
150if test "$cd_changer" = "yes"; then
151        USE_CD_CHANGER="-DTCD_CHANGER_ENABLED"
152fi
153AC_MSG_RESULT("$cd_changer")
154
155AC_SUBST(USE_CD_CHANGER)
156AC_SUBST(PROGRAMS_TCD)
157
158dnl
159dnl grecord
160dnl
161PROGRAMS_GRECORD="grecord"
162AC_SUBST(PROGRAMS_GRECORD)
163
164AC_OUTPUT([
165gnome-media.spec
166Makefile
167po/Makefile.in
168gmix/Makefile
169gmix/doc/Makefile
170gmix/doc/C/Makefile
171gmix/doc/it/Makefile
172vu-meter/Makefile
173macros/Makefile
174intl/Makefile
175tcd/Makefile
176tcd/icons/Makefile
177tcd/doc/Makefile
178tcd/doc/C/Makefile
179cddbslave/Makefile
180grecord/Makefile
181grecord/src/Makefile
182omf-install/Makefile
183version.h])
Note: See TracBrowser for help on using the repository browser.