X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=configure.in;h=9e071f6900491e284615613e76190c09f3702e23;hb=a65971e957a117618b33070897f11a4116f38e1f;hp=88722def7e014c7b7b3f76bf7ba30f5c7645f39f;hpb=134461a6b28beafafdececf7b1f90f4211b56f6b;p=ctsim.git diff --git a/configure.in b/configure.in index 88722de..9e071f6 100644 --- a/configure.in +++ b/configure.in @@ -48,6 +48,7 @@ AC_CHECK_LIB(wx, main, [wxwin=true; wx_msw=true; AC_DEFINE(HAVE_WXWINDOWS)]) AC_CHECK_LIB(hdf5, main, [hdf5=true], [hdf5=false], -lz) AC_CHECK_LIB(fftw, fftw_one, [fftw=true; AC_DEFINE(HAVE_FFTW)], [fftw=false]) AC_CHECK_LIB(GL, main, [libgl=true], [libgl=false]) +AC_CHECK_LIB(pthread, main, [pthread=true], [pthread=false]) if test "$zlib" = "true" ; then AC_CHECK_LIB(png, main, [png=true ; AC_DEFINE(HAVE_PNG)], [png=false]) @@ -131,6 +132,10 @@ fi AC_MSG_RESULT(no) +if test "${pthread}" = "true" ; then + AC_ADD_GCC_CFLAGS([-pthread]) +fi + AC_ADD_GCC_CFLAGS([-Wall]) AC_MSG_CHECKING(whether to enable verbose warnings) AC_ARG_ENABLE(verbose-warnings,