| 1 | dnl |
|---|
| 2 | dnl Copyright 2009 Virginia Polytechnic Institute and State University |
|---|
| 3 | dnl |
|---|
| 4 | dnl This file is part of the OSSIE AudioDevice. |
|---|
| 5 | dnl |
|---|
| 6 | dnl OSSIE AudioDevice is free software; you can redistribute it and/or modify |
|---|
| 7 | dnl it under the terms of the GNU General Public License as published by |
|---|
| 8 | dnl the Free Software Foundation; either version 2 of the License, or |
|---|
| 9 | dnl (at your option) any later version. |
|---|
| 10 | dnl |
|---|
| 11 | dnl OSSIE AudioDevice is distributed in the hope that it will be useful, |
|---|
| 12 | dnl but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 13 | dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 14 | dnl GNU General Public License for more details. |
|---|
| 15 | dnl |
|---|
| 16 | dnl You should have received a copy of the GNU General Public License |
|---|
| 17 | dnl along with OSSIE AudioDevice; if not, write to the Free Software |
|---|
| 18 | dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|---|
| 19 | dnl |
|---|
| 20 | |
|---|
| 21 | AC_INIT(AudioDevice, 0.7.3) |
|---|
| 22 | AM_INIT_AUTOMAKE |
|---|
| 23 | |
|---|
| 24 | AC_PREFIX_DEFAULT("/sdr") |
|---|
| 25 | |
|---|
| 26 | AC_PROG_CXX |
|---|
| 27 | AC_PROG_INSTALL |
|---|
| 28 | AC_PROG_MAKE_SET |
|---|
| 29 | |
|---|
| 30 | AC_HEADER_SYS_WAIT |
|---|
| 31 | |
|---|
| 32 | AC_FUNC_FORK |
|---|
| 33 | |
|---|
| 34 | AC_LANG_PUSH([C++]) |
|---|
| 35 | |
|---|
| 36 | AC_CHECK_LIB([omniORB4], [main], [], [AC_MSG_ERROR([cannot find omniORBi4 library])]) |
|---|
| 37 | AC_CHECK_LIB([omnithread], [main], [], [AC_MSG_ERROR([cannot find omnithread library])]) |
|---|
| 38 | AC_CHECK_LIB([omniDynamic4], [main], [], [AC_MSG_ERROR([cannot find omniDynamic4 library])]) |
|---|
| 39 | AC_CHECK_HEADERS([omniORB4/CORBA.h], [], [AC_MSG_ERROR([cannot find omniORB4 header files])]) |
|---|
| 40 | |
|---|
| 41 | AC_CHECK_LIB([standardInterfaces], [main], [], [AC_MSG_ERROR([cannot find standardInterfaces])]) |
|---|
| 42 | AC_CHECK_HEADERS([standardinterfaces/complexShort.h], [], [AC_MSG_ERROR([cannot find standardInterfaces header files])]) |
|---|
| 43 | |
|---|
| 44 | AC_CHECK_LIB([portaudio], [main], [], [AC_MSG_ERROR([cannot find portaudio library (try apt-get install libportaudio-dev)])]) |
|---|
| 45 | AC_CHECK_HEADERS([portaudio.h], [], [AC_MSG_ERROR([cannot find portaudio.h header (try apt-get install libportaudio-dev)])]) |
|---|
| 46 | |
|---|
| 47 | AC_LANG_POP |
|---|
| 48 | |
|---|
| 49 | export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig" |
|---|
| 50 | PKG_CHECK_MODULES(OSSIE, ossie >= 0.6.0,,exit) |
|---|
| 51 | CXXFLAGS="$CXXFLAGS $OSSIE_CFLAGS" |
|---|
| 52 | |
|---|
| 53 | IDL_FLAGS="$OSSIE_CFLAGS" |
|---|
| 54 | AC_SUBST(IDL_FLAGS) |
|---|
| 55 | |
|---|
| 56 | LIBS="$LIBS $OSSIE_LIBS -lportaudio" |
|---|
| 57 | |
|---|
| 58 | AC_SUBST(SI_PATH) |
|---|
| 59 | |
|---|
| 60 | AC_CONFIG_FILES(Makefile) |
|---|
| 61 | |
|---|
| 62 | AC_OUTPUT |
|---|