dnl CDPATH=
AC_INIT(src/ctsim.cpp)
-AM_INIT_AUTOMAKE(ctsim,3.0.1)
+AM_INIT_AUTOMAKE(ctsim,3.1.0)
AM_CONFIG_HEADER(config.h)
dnl Checks for programs.
AC_MSG_RESULT([no])
fi
+
+dnl Set CTN path
+AC_ARG_WITH(ctn,
+[ --with-ctn[=PATH] Set path of CTN DICOM library ],
+[ if test "$withval" != "no" ; then
+ tryctndir=$withval
+ fi ]
+)
+
+if test "$withval" != "no" ; then
+ if test "$prefix" != "NONE" ; then
+ tryctndir="$tryctndir $prefix"
+ fi
+
+ AC_MSG_CHECKING([for CTN DICOM installation])
+ for testctndir in "." $tryctndir /usr/local /usr/local/ctn /usr /usr/ctn /opt /opt/ctn ; do
+ if test -f "$testctndir/lib/libctn.a" ; then
+ if test "$testctndir" != "/usr"; then
+ LDFLAGS="$LDFLAGS -L$testctndir/lib"
+ CFLAGS="$CFLAGS -I$testctndir/include"
+ fi
+ ctndir="$testctndir"
+ ctn="true"
+ AC_DEFINE(HAVE_CTN_DICOM)
+ break
+ fi
+ done
+ AC_MSG_RESULT($ctndir)
+else
+ AC_MSG_RESULT([no])
+fi
+
+
+
AC_MSG_CHECKING([for web access])
dnl Set cgi-bin directory
AC_ARG_WITH(cgibin-dir, [ --with-cgibin-dir=PATH Set path of CGI binaries directory ],
if test "$fftw" = "true" ; then
ctlibs_tools="$ctlibs_tools -lrfftw -lfftw"
fi
+if test "$ctn" = "true"; then
+ ctlibs_tools="$ctlibs_tools -lctn"
+fi
dnl Check for dmalloc
AC_CHECK_LIB(dmallocxx, main, [dmallocxx=true], [dmallocxx=false])