diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2010-12-30 05:04:04 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2010-12-30 05:04:04 +0100 |
commit | e465a280b562cf0ed4ab136e240437f6574189f8 (patch) | |
tree | ceb1f90df5dd15630c98f28b418aa1c475836799 /configure.ac | |
download | virtualosc-e465a280b562cf0ed4ab136e240437f6574189f8.tar.gz |
old Virtual OSC Controller project exported from SVN working copy
unfortunately the repository is long gone, so is its history
working and tested for:
* POSIX/gcc (Linux, Windows Cygwin, OS/2 EMX)
* Open Watcom C (native OS/2 and Windows)
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..fc0fea9 --- /dev/null +++ b/configure.ac @@ -0,0 +1,60 @@ +# -*- Autoconf -*- +# Process this file with autoconf to produce a configure script. + +AC_PREREQ(2.61) +AC_INIT([Virtual OSC Controller], [dev]) +AM_INIT_AUTOMAKE +AC_CONFIG_SRCDIR([src/controller.c]) +AC_CONFIG_HEADERS([config.h]) + +# Checks for programs. +AC_PROG_CC(gcc cc owcc) +AC_PROG_CC_C_O +AC_PROG_CC_C99 +AC_PROG_INSTALL +AC_PROG_LIBTOOL + +# Checks for libraries. +AC_CHECK_LIB(expat, XML_ParserCreate, , [ + AC_MSG_ERROR([Required libexpat is missing!]) +]) + +# libSDL depends on sdl-config script +AC_CHECK_PROG(SDL_CONFIG, sdl-config, sdl-config) +if test x$SDL_CONFIG = x; then + AC_MSG_ERROR([Required sdl-config script is missing! libSDL cannot be configured.]) +fi + +CFLAGS="$CFLAGS `$SDL_CONFIG --cflags`" +LIBS="$LIBS `$SDL_CONFIG --libs`" +AC_DEFINE(HAVE_LIBSDL, , [We've got libSDL]) + +# Checks for header files. +AC_HEADER_STDC +AC_CHECK_HEADERS([arpa/inet.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/select.h unistd.h]) + +AC_CHECK_HEADERS([expat.h], , [ + AC_MSG_ERROR([Required libexpat headers are missing!]) +]) + +# Checks for typedefs, structures, and compiler characteristics. +AC_C_CONST +AC_C_INLINE +AC_TYPE_SIZE_T +AC_CHECK_TYPE(in_addr_t, [ + AC_DEFINE([HAVE_IN_ADDR_T], , [netinet/in.h defines in_addr_t type]) +], , [ + #include <netinet/in.h> +]) + +# Checks for library functions. +AC_FUNC_MALLOC +AC_FUNC_REALLOC +AC_CHECK_FUNCS([atexit gethostbyname memset socket strcasecmp strchr strdup strrchr strtoul]) + +# Arbitrary defines +AC_DEFINE([OSC_NOBUNDLES], , [Don't include OSC bundle support in OSC-client.c]) + +AC_CONFIG_FILES([Makefile src/Makefile]) +AC_OUTPUT + |