update to enable compiling for Linus and Cygwin
This commit is contained in:
parent
f37927c8f4
commit
bda31a2042
|
|
@ -26,6 +26,10 @@ http://gareus.org/oss/spicesound/start
|
|||
|
||||
A complete package for Windows is available at
|
||||
http://ngspice.sourceforge.net/download.html#wav .
|
||||
Test on Linux and macOS will follow.
|
||||
|
||||
For Linux you have to install libsamplerate and libsndfile and their development headers.
|
||||
./compile_linux.sh will then compile and install ngspice with *.wav capability.
|
||||
|
||||
Test on macOS will follow.
|
||||
|
||||
|
||||
|
|
|
|||
11
configure.ac
11
configure.ac
|
|
@ -822,6 +822,17 @@ if test "x$with_fftw3" != xno; then
|
|||
LIBS="$LIBS -lfftw3"])
|
||||
fi
|
||||
|
||||
AC_CHECK_HEADERS([sndfile.h])
|
||||
AC_CHECK_LIB([sndfile], [sf_command],
|
||||
[AC_DEFINE([HAVE_LIBSNDFILE], [], [Have libsndfile])
|
||||
LIBS="$LIBS -lsndfile"])
|
||||
|
||||
AC_CHECK_HEADERS([samplerate.h])
|
||||
AC_CHECK_LIB([samplerate], [src_process],
|
||||
[AC_DEFINE([HAVE_LIBSAMPLERATE], [], [Have libsamplerate])
|
||||
LIBS="$LIBS -lsamplerate"])
|
||||
|
||||
|
||||
# Check for a few mathematical functions:
|
||||
AC_CHECK_FUNCS([erfc logb scalb scalbn asinh acosh atanh finite])
|
||||
# According POSIX we should look for macros first
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "..\src\misc\getopt_bsd.h"
|
||||
#include "../misc/getopt_bsd.h"
|
||||
#include <sndfile.h>
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
|
|
|
|||
Loading…
Reference in New Issue