diff options
author | Jamie Bullock <jamie@postlude.co.uk> | 2007-09-05 17:44:23 +0000 |
---|---|---|
committer | Jamie Bullock <jamie@postlude.co.uk> | 2007-09-05 17:44:23 +0000 |
commit | 9146b4aa6c60da029791138a9859b2bde9f83fd9 (patch) | |
tree | deed2461f91858cf9d6985fa138f15ddfdf19007 /configure.in | |
parent | 56deb2426bf484eb62d265bbc23f2136d8fcfadd (diff) | |
download | LibXtract-9146b4aa6c60da029791138a9859b2bde9f83fd9.tar.gz LibXtract-9146b4aa6c60da029791138a9859b2bde9f83fd9.tar.bz2 LibXtract-9146b4aa6c60da029791138a9859b2bde9f83fd9.zip |
Updated README and minor buld tweaks for OS X (That will probably break the Linux build (sigh)).
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 47 |
1 files changed, 26 insertions, 21 deletions
diff --git a/configure.in b/configure.in index 5518067..61e94d5 100644 --- a/configure.in +++ b/configure.in @@ -98,21 +98,6 @@ AC_ARG_WITH(python, AM_CONDITIONAL(BUILD_PYTHON, test "x${with_python}" = 'xtrue') -dnl Are we building with fftw? -if [[ "$fft" = "true" ]] ; then - LDFLAGS="$LDFLAGS -lfftw3f" - AC_DEFINE([BUILD_FFT], [1], [Build the fft functions]) - AC_CHECK_HEADER(fftw3.h, [have_fftw3_hdr=yes ], [ - have_pd_hdr=no - echo - echo "no fftw3.h header found. try with option --with-fftw3-dir=/path/to/fftw3/header" - echo - exit - ]) -fi - -AM_CONDITIONAL(BUILD_FFT, test "x${fft}" = 'xtrue') - dnl are we building the simpletest example if [[ "$simpletest" = "true" ]] ; then @@ -166,12 +151,16 @@ fi if [[ "$with_java" = "true" ]] ; then AC_PROG_JAVAC - AC_JNI_INCLUDE_DIR - - for JNI_INCLUDE_DIR in $JNI_INCLUDE_DIRS - do - CFLAGS="$CFLAGS -I$JNI_INCLUDE_DIR" - done + if test "$JAVAC" = "javac" + then + AC_JNI_INCLUDE_DIR + + + for JNI_INCLUDE_DIR in $JNI_INCLUDE_DIRS + do + CFLAGS="$CFLAGS -I$JNI_INCLUDE_DIR" + done + fi dnl AC_PROG_JAVAH dnl AC_PATH_PROG(JAVAH,javah) fi @@ -184,6 +173,22 @@ fi AM_CONDITIONAL(BUILD_SWIG, test "x${swig}" = 'xtrue') +dnl Are we building with fftw? +if [[ "$fft" = "true" ]] ; then + LDFLAGS="$LDFLAGS -lfftw3f" + AC_DEFINE([BUILD_FFT], [1], [Build the fft functions]) + AC_CHECK_HEADER(fftw3.h, [have_fftw3_hdr=yes ], [ + have_pd_hdr=no + echo + echo "no fftw3.h header found. try with option --with-fftw3-dir=/path/to/fftw3/header" + echo + exit + ]) +fi + +AM_CONDITIONAL(BUILD_FFT, test "x${fft}" = 'xtrue') + + dnl ------------------------------------------ dnl ---- do some magic to gues the host opsys dnl ---- taken from libvorbis configure.in |