OSDN Git Service

pack -> .bz2
[android-x86/external-alsa-utils.git] / configure.in
1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT(alsamixer/alsamixer.c)
3 AC_PREFIX_DEFAULT(/usr)
4 AM_INIT_AUTOMAKE(alsa-utils, 0.5.3)
5
6 dnl Checks for programs.
7 AC_PROG_CC
8 dnl AC_PROG_CXX
9 AC_PROG_INSTALL
10 AC_PROG_LN_S
11 AC_PROG_YACC
12 AM_PROG_LEX
13 AM_PATH_ALSA(0.1.1)
14
15 dnl Checks for header files.
16 AC_HEADER_STDC
17 AC_CHECK_LIB(ncurses, initscr, 
18              [ CURSESINC='<ncurses.h>'; CURSESLIB='-lncurses'; ], [ 
19         AC_CHECK_LIB(curses, initscr, 
20                      [ CURSESINC='<curses.h>'; CURSESLIB='-lcurses'; ])
21 ])
22
23 AC_SUBST(CURSESINC)
24 AC_SUBST(CURSESLIB)
25
26 dnl Check for Gtk+
27 dnl AM_PATH_GTK(1.0.1)
28 dnl CFLAGS="$CFLAGS $GTK_CFLAGS"
29
30 AM_CONFIG_HEADER(include/aconfig.h)
31
32 dnl Checks for typedefs, structures, and compiler characteristics.
33 AC_C_CONST
34 AC_C_INLINE
35 AC_HEADER_TIME
36
37 dnl Checks for library functions.
38 AC_PROG_GCC_TRADITIONAL
39
40 SAVE_UTIL_VERSION
41
42 AC_OUTPUT(Makefile alsactl/Makefile alsamixer/Makefile amixer/Makefile aplay/Makefile \
43           include/Makefile utils/Makefile utils/alsa-utils.spec \
44           seq/Makefile seq/aconnect/Makefile seq/aseqnet/Makefile)