~s-cecilio/lenmus/v5.3

« back to all changes in this revision

Viewing changes to m4/portmidi.m4

  • Committer: cecilios
  • Date: 2011-08-18 15:04:04 UTC
  • Revision ID: svn-v4:2587a929-2f0e-0410-ae78-fe6f687d5efe:branches/TRY-5.0:688
cleaning and commit recent work

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
AC_DEFUN([AX_PATH_PORTMIDI],
2
 
[
3
 
        AC_ARG_WITH(portmidi-prefix,
4
 
                AC_HELP_STRING([--with-portmidi-prefix=PREFIX],[Prefix where PortMidi was installed.]),
5
 
                [_portmidi_prefix="$withval"],[_portmidi_prefix="/usr"])
6
 
 
7
 
        AC_MSG_CHECKING(for PortMidi compatible library)
8
 
 
9
 
        if test -e "${_portmidi_prefix}/lib/libportmidi.so" -a -e "${_portmidi_prefix}/lib/libporttime.so"
10
 
        then
11
 
                AC_MSG_RESULT([yes])
12
 
#               AC_CHECK_LIB(porttime, main)
13
 
#               AC_CHECK_LIB(portmidi, main)
14
 
        else
15
 
                AC_MSG_RESULT([no])
16
 
                AC_MSG_ERROR([cannot find PortMidi])
17
 
        fi
18
 
 
19
 
        PORTMIDI_CFLAGS=""
20
 
        PORTMIDI_LDFLAGS="-L${_portmidi_prefix}/lib -lportmidi -lporttime"
21
 
        AC_SUBST(PORTMIDI_CFLAGS)
22
 
        AC_SUBST(PORTMIDI_LDFLAGS)
23
 
 
24
 
        unset _portmidi_prefix
25
 
])dnl