+
+# Check whether --with-ctn or --without-ctn was given.
+if test "${with_ctn+set}" = set; then
+ withval="$with_ctn"
+ if test "$withval" != "no" ; then
+ tryctndir=$withval
+ fi
+
+fi
+
+
+if test "$withval" != "no" ; then
+ if test "$prefix" != "NONE" ; then
+ tryctndir="$tryctndir $prefix"
+ fi
+
+ echo $ac_n "checking for CTN DICOM installation""... $ac_c" 1>&6
+echo "configure:3353: checking for CTN DICOM installation" >&5
+ 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"
+ cat >> confdefs.h <<\EOF
+#define HAVE_CTN_DICOM 1
+EOF
+
+ break
+ fi
+ done
+ echo "$ac_t""$ctndir" 1>&6
+else
+ echo "$ac_t""no" 1>&6
+fi
+
+
+