| 
														
															@@ -1,8 +1,8 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 # Process this file with autoconf to produce a configure script. 
														 | 
														
														 | 
														
															 # Process this file with autoconf to produce a configure script. 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-AC_INIT(RtMidi, 2.0, gary@music.mcgill.ca, rtmidi) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+AC_INIT(RtMidi, 2.0.1, gary@music.mcgill.ca, rtmidi) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 AC_CONFIG_AUX_DIR(config) 
														 | 
														
														 | 
														
															 AC_CONFIG_AUX_DIR(config) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 AC_CONFIG_SRCDIR(RtMidi.cpp) 
														 | 
														
														 | 
														
															 AC_CONFIG_SRCDIR(RtMidi.cpp) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-AC_CONFIG_FILES(rtmidi-config Makefile tests/Makefile) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+AC_CONFIG_FILES([rtmidi-config librtmidi.pc Makefile tests/Makefile]) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 # Fill GXX with something before test. 
														 | 
														
														 | 
														
															 # Fill GXX with something before test. 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 AC_SUBST( GXX, ["no"] ) 
														 | 
														
														 | 
														
															 AC_SUBST( GXX, ["no"] ) 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -26,6 +26,12 @@ AC_ARG_ENABLE(debug, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   [AC_SUBST( cppflag, [-D__RTMIDI_DEBUG__] ) AC_SUBST( cxxflag, [-g] ) AC_SUBST( object_path, [Debug] ) AC_MSG_RESULT(yes)], 
														 | 
														
														 | 
														
															   [AC_SUBST( cppflag, [-D__RTMIDI_DEBUG__] ) AC_SUBST( cxxflag, [-g] ) AC_SUBST( object_path, [Debug] ) AC_MSG_RESULT(yes)], 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   [AC_SUBST( cppflag, [] ) AC_SUBST( cxxflag, [-O3] ) AC_SUBST( object_path, [Release] ) AC_MSG_RESULT(no)]) 
														 | 
														
														 | 
														
															   [AC_SUBST( cppflag, [] ) AC_SUBST( cxxflag, [-O3] ) AC_SUBST( object_path, [Release] ) AC_MSG_RESULT(no)]) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+# Set paths if prefix is defined 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+if test x"$prefix" != x; then 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+  LIBS="$LIBS -L$prefix/lib" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+  CPPFLAGS="$CPPFLAGS -I$prefix/include" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+fi 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 # For -I and -D flags 
														 | 
														
														 | 
														
															 # For -I and -D flags 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 CPPFLAGS="$CPPFLAGS $cppflag" 
														 | 
														
														 | 
														
															 CPPFLAGS="$CPPFLAGS $cppflag" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -54,6 +60,7 @@ case $host in 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 esac 
														 | 
														
														 | 
														
															 esac 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 AC_SUBST( api, [""] ) 
														 | 
														
														 | 
														
															 AC_SUBST( api, [""] ) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+AC_SUBST( req, [""] ) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 AC_MSG_CHECKING(for MIDI API) 
														 | 
														
														 | 
														
															 AC_MSG_CHECKING(for MIDI API) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 case $host in 
														 | 
														
														 | 
														
															 case $host in 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   *-*-linux*) 
														 | 
														
														 | 
														
															   *-*-linux*) 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -65,12 +72,14 @@ case $host in 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   # Look for ALSA flag 
														 | 
														
														 | 
														
															   # Look for ALSA flag 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   AC_ARG_WITH(alsa, [  --with-alsa = choose native ALSA sequencer API support (linux only)], [ 
														 | 
														
														 | 
														
															   AC_ARG_WITH(alsa, [  --with-alsa = choose native ALSA sequencer API support (linux only)], [ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     api="$api -D__LINUX_ALSA__" 
														 | 
														
														 | 
														
															     api="$api -D__LINUX_ALSA__" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    req="$req alsa" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     AC_MSG_RESULT(using ALSA) 
														 | 
														
														 | 
														
															     AC_MSG_RESULT(using ALSA) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     AC_CHECK_LIB(asound, snd_seq_open, , AC_MSG_ERROR(ALSA support requires the asound library!))], ) 
														 | 
														
														 | 
														
															     AC_CHECK_LIB(asound, snd_seq_open, , AC_MSG_ERROR(ALSA support requires the asound library!))], ) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															   if [test "$api" == "";] then 
														 | 
														
														 | 
														
															   if [test "$api" == "";] then 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     AC_MSG_RESULT(using ALSA) 
														 | 
														
														 | 
														
															     AC_MSG_RESULT(using ALSA) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     AC_SUBST( api, [-D__LINUX_ALSA__] ) 
														 | 
														
														 | 
														
															     AC_SUBST( api, [-D__LINUX_ALSA__] ) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    req="$req alsa" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     AC_CHECK_LIB(asound, snd_seq_open, , AC_MSG_ERROR(ALSA sequencer support requires the asound library!)) 
														 | 
														
														 | 
														
															     AC_CHECK_LIB(asound, snd_seq_open, , AC_MSG_ERROR(ALSA sequencer support requires the asound library!)) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   fi 
														 | 
														
														 | 
														
															   fi 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -136,4 +145,4 @@ CPPFLAGS="$CPPFLAGS $api" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 AC_OUTPUT 
														 | 
														
														 | 
														
															 AC_OUTPUT 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															-chmod oug+x rtmidi-config 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+chmod oug+x rtmidi-config 
														 |