AC_CHECK_LIB(g2, main, [g2=true], [g2=false])
wxwin=false
AC_CHECK_LIB(wx_gtk, main, [wxwin=true; wx_gtk=true; AC_DEFINE(HAVE_WXWINDOWS)])
AC_CHECK_LIB(g2, main, [g2=true], [g2=false])
wxwin=false
AC_CHECK_LIB(wx_gtk, main, [wxwin=true; wx_gtk=true; AC_DEFINE(HAVE_WXWINDOWS)])
AC_CHECK_LIB(hdf5, main, [hdf5=true], [hdf5=false], -lz)
AC_CHECK_LIB(fftw, fftw_one, [fttw=true; AC_DEFINE(HAVE_FFTW)], [fftw=false])
if test "$zlib" = "true" ; then
AC_CHECK_LIB(hdf5, main, [hdf5=true], [hdf5=false], -lz)
AC_CHECK_LIB(fftw, fftw_one, [fttw=true; AC_DEFINE(HAVE_FFTW)], [fftw=false])
if test "$zlib" = "true" ; then
- AC_CHECK_LIB(png, png_check_sig, [png=true ; AC_DEFINE(HAVE_PNG)], [png=false])
+ AC_CHECK_LIB(png, main, [png=true ; AC_DEFINE(HAVE_PNG)], [png=false])
if test "${OSTYPE}" = "cygwin" ; then
getopt_long=false
else
AC_CHECK_FUNC(getopt_long, [ getopt_long=true ], [ getopt_long=false ])
fi
if test "${OSTYPE}" = "cygwin" ; then
getopt_long=false
else
AC_CHECK_FUNC(getopt_long, [ getopt_long=true ], [ getopt_long=false ])
fi
AC_DEFINE(HAVE_GETOPT_LONG)
ctlibs_base="$ctlibs_base -lgetopt"
LDFLAGS="$LDFLAGS -L../getopt"
AC_DEFINE(HAVE_GETOPT_LONG)
ctlibs_base="$ctlibs_base -lgetopt"
LDFLAGS="$LDFLAGS -L../getopt"
dnl whether X should be supported.
AM_CONDITIONAL(NO_X, test "x$no_x" = "xyes")
dnl whether X should be supported.
AM_CONDITIONAL(NO_X, test "x$no_x" = "xyes")
- wxcflags=`$wxconfig --cflags`
+ if test "$wx_gtk" = "true" ; then
+ wxcflags=`$wxconfig --cflags`
+ wxlibs=`$wxconfig --libs`
+ else
+ wxcflags="-D__WXMSW__ -D__WIN32__ -D__GNUWIN32__"
+ wxlibs="-lwx -lglui -ljpeg -lxpm -lzlib -ltiff"
+ fi
ctlibs_graphics="$ctlibs_graphics $wxlibs"
AM_CONDITIONAL(HAVE_WXWINDOWS, test 1==1 )
fi
ctlibs_graphics="$ctlibs_graphics $wxlibs"
AM_CONDITIONAL(HAVE_WXWINDOWS, test 1==1 )
fi