configure.in
changeset 494 4f4caf04bcd1
parent 489 08eaf23a2284
child 495 b4d178cd982d
     1.1 --- a/configure.in	Thu Jan 13 19:04:57 2011 -0800
     1.2 +++ b/configure.in	Tue Jan 18 11:07:36 2011 -0800
     1.3 @@ -358,10 +358,18 @@
     1.4                  use_music_native_midi=yes
     1.5                  EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit -Wl,-framework,CoreServices"
     1.6                  ;;
     1.7 +            *-*-haiku*)
     1.8 +                use_music_native_midi=yes_cpp
     1.9 +                EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmidi" 
    1.10 +                ;;
    1.11          esac
    1.12          if test x$use_music_native_midi = xyes; then
    1.13              EXTRA_CFLAGS="$EXTRA_CFLAGS -DUSE_NATIVE_MIDI -I\$(srcdir)/native_midi"
    1.14              SOURCES="$SOURCES $srcdir/native_midi/*.c"
    1.15 +        elif test x$use_music_native_midi = xyes_cpp; then
    1.16 +            EXTRA_CFLAGS="$EXTRA_CFLAGS -DUSE_NATIVE_MIDI -I\$(srcdir)/native_midi"
    1.17 +            SOURCES="$SOURCES $srcdir/native_midi/*.c"
    1.18 +            SOURCES_CXX="$SOURCES_CXX $srcdir/native_midi/*.cpp"
    1.19          fi
    1.20      fi
    1.21      AC_ARG_ENABLE([music-native-midi-gpl],
    1.22 @@ -596,6 +604,15 @@
    1.23  $(objects)/\2.lo: \1/\2.c\\
    1.24  	\$(LIBTOOL) --mode=compile \$(CC) \$(CFLAGS) \$(EXTRA_CFLAGS) '"$DEPENDENCY_TRACKING_OPTIONS"' -c \$< -o \$@,g'`
    1.25  
    1.26 +OBJECTS_CXX=`echo $SOURCES_CXX`
    1.27 +DEPENDS_CXX=`echo $SOURCES_CXX`
    1.28 +OBJECTS_CXX=`echo "$OBJECTS_CXX" | sed 's,[[^ ]]*/\([[^ ]]*\)\.cpp,$(objects)/\1.lo,g'`
    1.29 +DEPENDS_CXX=`echo "$DEPENDS_CXX" | sed 's,\([[^ ]]*\)/\([[^ ]]*\)\.cpp,\\
    1.30 +$(objects)/\2.lo: \1/\2.cpp\\
    1.31 +	\$(LIBTOOL) --mode=compile \$(CXX) \$(CFLAGS) \$(EXTRA_CFLAGS) '"$DEPENDENCY_TRACKING_OPTIONS"' -c \$< -o \$@,g'`
    1.32 +OBJECTS="$OBJECTS $OBJECTS_CXX"
    1.33 +DEPENDS="$DEPENDS $DEPENDS_CXX"
    1.34 +
    1.35  VERSION_OBJECTS=`echo $VERSION_SOURCES`
    1.36  VERSION_DEPENDS=`echo $VERSION_SOURCES`
    1.37  VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.rc,$(objects)/\1.o,g'`