| 1 |
dnl Process this file with autoconf to produce a configure script. |
|---|
| 2 |
AC_INIT() |
|---|
| 3 |
|
|---|
| 4 |
AM_INIT_AUTOMAKE(aube, 0.30.2) |
|---|
| 5 |
|
|---|
| 6 |
dnl Specify a header configuration file |
|---|
| 7 |
AM_CONFIG_HEADER(config.h) |
|---|
| 8 |
|
|---|
| 9 |
dnl Initialize libtool |
|---|
| 10 |
AM_PROG_LIBTOOL |
|---|
| 11 |
|
|---|
| 12 |
dnl Initialize maintainer mode |
|---|
| 13 |
AM_MAINTAINER_MODE |
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
dnl Checks for programs. |
|---|
| 17 |
AC_PROG_CC |
|---|
| 18 |
AC_PROG_INSTALL |
|---|
| 19 |
AC_PROG_CPP |
|---|
| 20 |
AC_PROG_MAKE_SET |
|---|
| 21 |
|
|---|
| 22 |
ALL_LINGUAS="" |
|---|
| 23 |
AM_GNU_GETTEXT([external]) |
|---|
| 24 |
|
|---|
| 25 |
dnl Checks for libraries |
|---|
| 26 |
PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.0, |
|---|
| 27 |
HAVE_LIBSNDFILE="yes", HAVE_LIBSNDFILE="no") |
|---|
| 28 |
|
|---|
| 29 |
if test "x$HAVE_LIBSNDFILE" = xyes ; then |
|---|
| 30 |
AC_DEFINE([HAVE_LIBSNDFILE], [], [Define if we have libsndfile.]) |
|---|
| 31 |
AC_SUBST(SNDFILE_LIBS) |
|---|
| 32 |
fi |
|---|
| 33 |
|
|---|
| 34 |
PKG_CHECK_MODULES(GTK, gtk+-2.0) |
|---|
| 35 |
AC_SUBST(GTK_CFLAGS) |
|---|
| 36 |
AC_SUBST(GTK_LIBS) |
|---|
| 37 |
|
|---|
| 38 |
|
|---|
| 39 |
dnl Test for libXpm |
|---|
| 40 |
AC_CHECK_LIB(Xpm, XpmReadFileToXpmImage) |
|---|
| 41 |
|
|---|
| 42 |
dnl Checks for header files. |
|---|
| 43 |
AC_HEADER_STDC |
|---|
| 44 |
AC_CHECK_HEADERS(fcntl.h strings.h sys/ioctl.h unistd.h) |
|---|
| 45 |
|
|---|
| 46 |
dnl Checks for typedefs, structures, and compiler characteristics. |
|---|
| 47 |
AC_TYPE_SIZE_T |
|---|
| 48 |
|
|---|
| 49 |
dnl Checks for library functions. |
|---|
| 50 |
AC_PROG_GCC_TRADITIONAL |
|---|
| 51 |
|
|---|
| 52 |
AC_ARG_ENABLE(gcc-werror, |
|---|
| 53 |
AC_HELP_STRING([--enable-gcc-werror], [enable -Werror in all Makefiles])) |
|---|
| 54 |
|
|---|
| 55 |
dnl Use -Wall if we have gcc. |
|---|
| 56 |
if test "x$ac_cv_prog_gcc" = xyes ; then |
|---|
| 57 |
CFLAGS="$CFLAGS -Wall" |
|---|
| 58 |
|
|---|
| 59 |
if test x$enable_gcc_werror = "xyes" ; then |
|---|
| 60 |
CFLAGS="$CFLAGS -Werror" |
|---|
| 61 |
fi |
|---|
| 62 |
|
|---|
| 63 |
fi |
|---|
| 64 |
|
|---|
| 65 |
SHAVE_INIT([shave]) |
|---|
| 66 |
|
|---|
| 67 |
AC_OUTPUT( |
|---|
| 68 |
Makefile |
|---|
| 69 |
m4/Makefile |
|---|
| 70 |
po/Makefile.in |
|---|
| 71 |
shave/shave |
|---|
| 72 |
shave/shave-libtool |
|---|
| 73 |
src/Makefile |
|---|
| 74 |
src/modules/Makefile |
|---|
| 75 |
src/tdb/Makefile |
|---|
| 76 |
) |
|---|