X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=configure.in;h=ecd8610f40dab4626df6bf3cf52249b519c3ce2c;hb=c5171b1bac474eb90f7a78247864eb3696022f7c;hp=3026c1dba73a2fdc87fc9a8b11b5fedf3f4503ee;hpb=86ec55fc238f0dbfb59bad565fd60f7311afafc1;p=ctsim.git diff --git a/configure.in b/configure.in index 3026c1d..ecd8610 100644 --- a/configure.in +++ b/configure.in @@ -4,7 +4,7 @@ dnl Must reset CDPATH so that bash's cd does not print to stdout dnl CDPATH= AC_INIT(src/ctsim.cpp) -AM_INIT_AUTOMAKE(ctsim,3.1.0) +AM_INIT_AUTOMAKE(ctsim,3.5.0) AM_CONFIG_HEADER(config.h) dnl Checks for programs. @@ -39,11 +39,11 @@ AC_CHECK_LIB(m, sin) AC_CHECK_LIB(curses, main, [curses=true], [curses=false]) AC_CHECK_LIB(ncurses, main, [ncurses=true], [ncurses=false]) AC_CHECK_LIB(g2, main, [g2=true], [g2=false]) -AC_CHECK_LIB(readline, main, [readline=true; AC_DEFINE(HAVE_READLINE)], [readline=false]) +AC_CHECK_LIB(readline, main, [readline=true; AC_DEFINE(HAVE_READLINE)], [readline=false], [-lcurses]) AC_CHECK_LIB(ncurses, main, [ncurses=true; AC_DEFINE(HAVE_NCURSES)], [ncurses=false]) AC_CHECK_LIB(curses, main, [curses=true; AC_DEFINE(HAVE_CURSES)], [curses=false]) wxwin=false -AC_CHECK_LIB(wx_gtk, main, [wxwin=true; wx_gtk=true; AC_DEFINE(HAVE_WXWINDOWS)]) +AC_CHECK_LIB(wx_gtk-2.2, main, [wxwin=true; wx_gtk=true; AC_DEFINE(HAVE_WXWINDOWS)]) 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]) @@ -344,25 +344,22 @@ LDFLAGS="$LDFLAGS -L/usr/local/lib" AC_MSG_CHECKING([for X]) if test "$no_x" != "yes" ; then - AC_DEFINE(HAVE_SGP) - AM_CONDITIONAL(HAVE_SGP, test 1==1) AC_DEFINE(HAVE_X11) LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib" ctlib_graphics="$ctlibs_base -lctgraphics" AC_MSG_RESULT(yes) - if test "$g2" = "true" ; then - ctlib_graphics="$ctlib_graphics -lg2" - AC_DEFINE(HAVE_G2) - fi ctlib_graphics="$ctlib_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS" if test "$libgl" = "true" ; then - ctlib_graphics="$ctlib_graphics -lwx_gtk_gl -lglut -lGL -lGLU" + ctlib_graphics="$ctlib_graphics -lglut -lGL -lGLU" + if test "$wxwin" = "true" ; then + ctlib_graphics="$ctlib_graphics -lwx_gtk_gl-2.2" + fi fi -else if test "$wxwin" = "true" ; then AC_DEFINE(HAVE_SGP) AM_CONDITIONAL(HAVE_SGP, test 1==1) fi +else AC_MSG_RESULT(no) fi @@ -420,7 +417,7 @@ esac], [useefence=false; AC_MSG_RESULT(no)]) if test "$efence" = "true" -a "$useefence" = "true" ; then - ctlibs_tools="$ctlibs_tools -ldefence" + ctlibs_tools="$ctlibs_tools -lefence" AC_DEFINE(HAVE_EFENCE) AC_MSG_RESULT(Using efence) fi @@ -454,4 +451,4 @@ fi CXXFLAGS="$CFLAGS" -AC_OUTPUT(Makefile libctgraphics/Makefile libctsupport/Makefile libctsim/Makefile Makefile man/Makefile doc/Makefile cgi-bin/ctsim.cgi cgi-bin/Makefile html/simulate.html html/Makefile include/Makefile getopt/Makefile tools/sample-ctsim.sh cgi-bin/ctsim.conf tools/Makefile src/Makefile) +AC_OUTPUT(Makefile libctgraphics/Makefile libctsupport/Makefile libctsim/Makefile Makefile man/Makefile doc/Makefile cgi-bin/ctsim.cgi cgi-bin/Makefile html/simulate.html html/Makefile include/Makefile getopt/Makefile tools/sample-ctsim.sh cgi-bin/ctsim.conf tools/Makefile src/Makefile helical/Makefile helical/sample-helical.sh)