Changeset 16109b3


Ignore:
Timestamp:
Jun 3, 2006, 10:34:42 PM (18 years ago)
Author:
Paul Brossier <piem@altern.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
cf34922
Parents:
6ff2870
Message:

make configure.ac more readable
make configure.ac more readable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    r6ff2870 r16109b3  
    11dnl Process this file with autoconf to produce a configure script
    22
     3dnl Init autoconf
    34AC_INIT(src/aubio.h)
    45
    5 dnl package version
     6dnl Package name and version
     7PACKAGE=aubio
    68. $srcdir/VERSION
    79AUBIO_VERSION=${AUBIO_MAJOR_VERSION}.${AUBIO_MINOR_VERSION}.${AUBIO_PATCH_VERSION}${AUBIO_VERSION_STATUS}
    810VERSION=${AUBIO_VERSION}
    9 PACKAGE=aubio
    10 
    11 dnl shared library version
     11
     12dnl Shared library version
    1213LIBAUBIO_LT_CURRENT=2
    1314LIBAUBIO_LT_REVISION=0
     
    1617AC_SUBST(SHARED_VERSION_INFO)
    1718
     19dnl Init automake
    1820AM_INIT_AUTOMAKE(${PACKAGE}, ${VERSION})
     21
     22dnl Maintainer mode
    1923AM_MAINTAINER_MODE
    2024
    21 AC_PREFIX_DEFAULT(/usr)
    22 
    23 dnl enable optimization
     25dnl Guess the host
     26AC_CANONICAL_HOST
     27
     28dnl Default optimization
    2429CFLAGS="$CFLAGS -O2"
    2530
    26 dnl Check for debug
     31dnl Enable debugging (no)
    2732AC_ARG_ENABLE(debug,
    2833  [  --enable-debug[[=value]]   compile with debug [[default=no]]],
     
    3540fi
    3641
    37 dnl
     42dnl Enable full warnings (yes)
    3843AC_ARG_ENABLE(warnme,
    3944  [  --enable-warnme[[=value]]   compile with all -W [[default=yes]]],
     
    4449  CFLAGS="$CFLAGS -Wall -Wextra -Werror -Wmissing-prototypes -Wmissing-declarations -Wno-unused-parameter"
    4550fi
    46 
    47 
    48 dnl Guess the host
    49 AC_CANONICAL_HOST
    5051
    5152dnl Check for programs
     
    9091AC_CHECK_HEADERS(fftw3.h  ,,AC_MSG_ERROR([Ouch! missing fftw3.h header]))
    9192
     93dnl Check for __VAR_ARGS__ support
    9294AC_CACHE_CHECK(for C99 __VA_ARGS__ macro,
    9395    ac_cv_varargs_macros,
     
    107109fi
    108110
    109 
    110 dnl check for pkg-config
     111dnl Check for pkg-config
    111112AC_PATH_PROG(PKG_CONFIG,pkg-config,no)
    112113
    113 PKG_CHECK_MODULES(SNDLIB,     sndfile >= 1.0.4,       SNDLIB_SUPPORT=1)
     114PKG_CHECK_MODULES(SNDLIB,     sndfile >= 1.0.4,       SNDLIB_SUPPORT=1)
    114115PKG_CHECK_MODULES(SAMPLERATE, samplerate  >= 0.0.15,  SAMPLERATE_SUPPORT=1)
    115116
     
    118119fi
    119120
    120 
    121 dnl Check for optional libraries
     121dnl Check for fftw3 (required)
    122122AC_ARG_ENABLE(fftw3f,
    123123  AC_HELP_STRING([--enable-fftw3f],[compile with fftw3f [[default=auto]]]),
     
    125125  with_fftw3f="yes")
    126126if test "$with_fftw3f" = "yes"; then
    127         PKG_CHECK_MODULES(FFTWLIB,    fftw3f >= 3.0.0,     FFTW3F_SUPPORT=1, FFTW3F_SUPPORT=0)
    128 else
    129         PKG_CHECK_MODULES(FFTWLIB,    fftw3  >= 3.0.0,      FFTW3_SUPPORT=1)
     127  PKG_CHECK_MODULES(FFTWLIB,    fftw3f >= 3.0.0,     FFTW3F_SUPPORT=1, FFTW3F_SUPPORT=0)
     128else
     129  PKG_CHECK_MODULES(FFTWLIB,    fftw3  >= 3.0.0,     FFTW3_SUPPORT=1)
    130130fi
    131131if test "${FFTW3F_SUPPORT}" = "0"; then
    132         PKG_CHECK_MODULES(FFTWLIB,    fftw3  >= 3.0.0,      FFTW3_SUPPORT=1)
     132  PKG_CHECK_MODULES(FFTWLIB,    fftw3  >= 3.0.0,     FFTW3_SUPPORT=1)
    133133fi
    134134if test "${FFTW3_SUPPORT}" = "1"; then
     
    139139fi
    140140
     141dnl Enable jack support (auto)
    141142AC_ARG_ENABLE(jack,
    142143  AC_HELP_STRING([--enable-jack],[compile with jack [[default=auto]]]),
     
    145146if test "$with_jack" = "yes"
    146147then
    147         PKG_CHECK_MODULES(JACK,       jack  >= 0.15.0,        JACK_SUPPORT=1, JACK_SUPPORT=0)
    148         if test "${JACK_SUPPORT}" = "1"; then
    149           AC_DEFINE(JACK_SUPPORT,1,[Define to enable jack support])
    150         fi
    151 fi
    152 
     148  PKG_CHECK_MODULES(JACK,       jack  >= 0.15.0,     JACK_SUPPORT=1, JACK_SUPPORT=0)
     149  if test "${JACK_SUPPORT}" = "1"; then
     150    AC_DEFINE(JACK_SUPPORT,1,[Define to enable jack support])
     151  fi
     152fi
     153
     154dnl Enable alsa support (auto)
    153155AC_ARG_ENABLE(alsa,
    154156  AC_HELP_STRING([--enable-alsa],[compile with alsa [[default=auto]]]),
     
    157159if test "$with_alsa" = "yes"
    158160then
    159         if test "$with_jack" = "yes"
    160         then
    161         PKG_CHECK_MODULES(ALSA,       alsa >= 0.0.9,          ALSA_SUPPORT=1, ALSA_SUPPORT=0)
    162         if test "${ALSA_SUPPORT}" = "1"; then
    163           AC_DEFINE(ALSA_SUPPORT,1,[Define to enable alsa support])
    164         fi
    165         else
    166         AC_MSG_WARN([Disabling alsa as jack was not found])
    167         fi
    168 fi
    169 
     161  if test "$with_jack" = "yes"
     162  then
     163    PKG_CHECK_MODULES(ALSA,      alsa >= 0.0.9,      ALSA_SUPPORT=1, ALSA_SUPPORT=0)
     164    if test "${ALSA_SUPPORT}" = "1"; then
     165      AC_DEFINE(ALSA_SUPPORT,1,[Define to enable alsa support])
     166    fi
     167  else
     168    AC_MSG_WARN([Disabling alsa as jack was not found])
     169  fi
     170fi
     171
     172dnl Enable ladcca support (obsolete)
    170173AC_ARG_ENABLE(ladcca,
    171174  AC_HELP_STRING([--enable-ladcca],[compile with ladcca [[default=no]]]),
     
    174177if test "$with_ladcca" = "yes"
    175178then
    176         PKG_CHECK_MODULES(LADCCA,       ladcca-1.0 >= 0.4.0,          LADCCA_SUPPORT=1)
    177         if test "${LADCCA_SUPPORT}" = "1"; then
    178           AC_DEFINE(LADCCA_SUPPORT,1,[Define to enable ladcca support])
    179         fi
     179  PKG_CHECK_MODULES(LADCCA,   ladcca-1.0 >= 0.4.0,   LADCCA_SUPPORT=1)
     180  if test "${LADCCA_SUPPORT}" = "1"; then
     181    AC_DEFINE(LADCCA_SUPPORT,1,[Define to enable ladcca support])
     182  fi
    180183fi
    181184 
     185dnl Enable unit tests
    182186AC_ARG_ENABLE(testprogs,
    183187  AC_HELP_STRING([--enable-testprogs],[compile test programs [[default=no]]]),
     
    186190AM_CONDITIONAL(COMPILE_TESTS,test "${with_testprogs}" != "no")
    187191
    188 dnl Check for optional programs
    189 
     192dnl Check for swig and python
    190193dnl should check for swig version and python headers
    191194AC_PATH_PROG(SWIG,swig,no)
     
    193196AM_PATH_PYTHON
    194197AM_CONDITIONAL(PYTHONFOUND, test "${PYTHON}" != "no")
    195 
     198#
    196199#if PYTHONFOUND
    197200case "${host_os}" in
     
    204207  ;;
    205208esac
    206 
     209#
    207210AC_SUBST(SWCFLAGS)
    208211AC_SUBST(SWLDFLAGS)
    209212
     213dnl Check for docbook-to-man
    210214AC_PATH_PROG(DOCBOOK_TO_MAN,docbook-to-man,no)
    211215AM_CONDITIONAL(DOCBOOKFOUND, test "${DOCBOOK_TO_MAN}" != "no")
    212216
     217dnl Check for Puredata
    213218AC_CHECK_HEADER(m_pd.h,PUREDATA=y,AC_MSG_WARN([Puredata header not found.]))
    214219AM_CONDITIONAL(PUREDATAFOUND, test "${PUREDATA}" = "y")
    215220
     221dnl Create Makefiles
    216222AC_OUTPUT([
    217                 Makefile
    218                 src/Makefile
    219                 ext/Makefile
    220                 examples/Makefile
    221                 examples/tests/Makefile
    222                 sounds/Makefile
    223                 swig/Makefile
    224                 python/Makefile
    225                 python/aubio/Makefile
    226                 plugins/Makefile
    227                 plugins/audacity/Makefile
    228                 plugins/audacity/plug-ins/Makefile
    229                 plugins/wavesurfer/Makefile
    230                 plugins/puredata/Makefile
    231                 doc/Makefile
    232         ])
    233 
     223    Makefile
     224    src/Makefile
     225    ext/Makefile
     226    examples/Makefile
     227    examples/tests/Makefile
     228    sounds/Makefile
     229    swig/Makefile
     230    python/Makefile
     231    python/aubio/Makefile
     232    plugins/Makefile
     233    plugins/audacity/Makefile
     234    plugins/audacity/plug-ins/Makefile
     235    plugins/wavesurfer/Makefile
     236    plugins/puredata/Makefile
     237    doc/Makefile
     238  ])
     239
     240dnl Print summary
    234241echo
    235242echo "**************************************************************"
Note: See TracChangeset for help on using the changeset viewer.