/[svn]/linuxsampler/trunk/configure.ac
ViewVC logotype

Annotation of /linuxsampler/trunk/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log


Revision 53 - (hide annotations) (download)
Mon Apr 26 17:15:51 2004 UTC (19 years, 10 months ago) by schoenebeck
Original Path: linuxsampler/trunk/configure.in
File size: 2748 byte(s)
* completely restructured source tree
* implemented multi channel support
* implemented instrument manager, which controls sharing of instruments
  between multiple sampler engines / sampler channels
* created abstract classes 'AudioOutputDevice' and 'MidiInputDevice' for
  convenient implementation of further audio output driver and MIDI input
  driver for LinuxSampler
* implemented following LSCP commands: 'SET CHANNEL MIDI INPUT TYPE',
  'LOAD ENGINE', 'GET CHANNELS', 'ADD CHANNEL', 'REMOVE CHANNEL',
  'SET CHANNEL AUDIO OUTPUT TYPE'
* temporarily removed all command line options
* LSCP server is now launched by default

1 schoenebeck 9 AC_INIT(configure.in)
2 schoenebeck 12 AC_C_BIGENDIAN
3 schoenebeck 9 AC_CANONICAL_SYSTEM
4    
5 schoenebeck 18
6     echo -n "checking whether x86 architecture... "
7 schoenebeck 9 def_arch_x86=0
8     case $target_cpu in
9     "i386" | "i486" | "i586" | "i686" | "i786")
10     echo "yes"
11     def_arch_x86=1;;
12     *)
13     echo "no";;
14     esac
15     AC_DEFINE_UNQUOTED(ARCH_X86,$def_arch_x86,[Define to 1 if you build for x86 architecture.])
16    
17 schoenebeck 18
18     AC_CHECK_HEADER(alsa/asoundlib.h,
19     AC_CHECK_LIB(asound, main,
20     have_alsa="true"
21     ,
22     have_alsa="false"
23     )
24     ,
25     have_alsa="false"
26     )
27     if test "$have_alsa" = "false"; then
28     echo "Alsa not installed!"
29     echo "Sorry, LinuxSampler only supports Alsa sound drivers at the moment!"
30     exit -1;
31     fi
32    
33    
34     echo -n "checking Alsa version... "
35     AC_LANG_SAVE
36     AC_LANG_C
37     AC_TRY_RUN([
38     #include <alsa/asoundlib.h>
39     void main(void) {
40     /* ensure backward compatibility */
41     #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
42     #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
43     #endif
44     exit(SND_LIB_MAJOR);
45     }
46     ],
47     alsa_major=0,
48     alsa_major=$?,
49     alsa_major=0
50     )
51     AC_TRY_RUN([
52     #include <alsa/asoundlib.h>
53     void main(void) {
54     /* ensure backward compatibility */
55     #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
56     #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
57     #endif
58     exit(SND_LIB_MINOR);
59     }
60     ],
61     alsa_minor=0,
62     alsa_minor=$?,
63     alsa_minor=0
64     )
65     AC_TRY_RUN([
66     #include <alsa/asoundlib.h>
67     void main(void) {
68     /* ensure backward compatibility */
69     #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
70     #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
71     #endif
72     exit(SND_LIB_SUBMINOR);
73     }
74     ],
75     alsa_subminor=0,
76     alsa_subminor=$?,
77     alsa_subminor=0
78     )
79     AC_LANG_RESTORE
80     echo "$alsa_major.$alsa_minor.$alsa_subminor";
81     AC_DEFINE_UNQUOTED(ALSA_MAJOR,$alsa_major,[Define to the major version number of your Alsa installation.])
82     AC_DEFINE_UNQUOTED(ALSA_MINOR,$alsa_minor,[Define to the minor version number of your Alsa installation.])
83     AC_DEFINE_UNQUOTED(ALSA_SUBMINOR,$alsa_subminor,[Define to the subminor version number of your Alsa installation.])
84    
85    
86 schoenebeck 31 # JACK
87     PKG_CHECK_MODULES(JACK, jack, HAVE_JACK=true, HAVE_JACK=false)
88     AC_SUBST(JACK_LIBS)
89     AC_SUBST(JACK_CFLAGS)
90 schoenebeck 33 if test $HAVE_JACK = false; then
91     HAVE_JACK=0;
92     else
93     HAVE_JACK=1;
94     fi
95 schoenebeck 31 AC_DEFINE_UNQUOTED(HAVE_JACK,$HAVE_JACK,[Define to 1 if you have JACK installed.])
96    
97    
98 schoenebeck 9 AM_CONFIG_HEADER(config.h)
99     AM_INIT_AUTOMAKE(linuxsampler, 0.1)
100    
101     AC_LANG_CPLUSPLUS
102     AC_PROG_CXX
103     AM_PROG_LIBTOOL
104    
105 schoenebeck 53 AC_OUTPUT(Makefile src/Makefile src/network/Makefile src/engines/Makefile src/engines/gig/Makefile src/engines/common/Makefile src/common/Makefile src/audiodriver/Makefile src/mididriver/Makefile src/lib/Makefile src/lib/fileloader/Makefile src/lib/fileloader/libgig/Makefile)

  ViewVC Help
Powered by ViewVC