+if test "x$no_x" != "xyes" ; then
+ AC_DEFINE(HAVE_INTERACTIVE_GRAPHICS)
+ AM_CONDITIONAL(HAVE_INTERACTIVE_GRAPHICS, test 1==1)
+ LDFLAGS="$LDFLAGS -L../libezplot -L../libgraph"
+ ctlibs_base="$ctlibs_base -lezplot -lgraph"
+fi
+
+dnl Setting projet libraries and includes
+LDFLAGS="$LDFLAGS -L../libkmath -L../libk -L../libcio -L../libir"
+ctlibs_base="$ctlibs_base -lkmath -lk -lcio"
+if test -n "$pngdir" ; then
+ ctlibs_base="$ctlibs_base -lpng"
+fi
+if test "$zlib" = "true" ; then
+ ctlibs_base="$ctlibs_base -lz"
+fi
+ctlibs="-lir $ctlibs_base"
+
+AC_SUBST(ctlibs)
+
+if test -n "$lamdir" ; then
+ ctlamlibs="-lir_lam $ctlibs_base"
+ lamprograms="ctrec-lam phm2sdf-lam phm2rs-lam"
+ AC_SUBST(lamprograms)
+ AC_SUBST(ctlamlibs)
+fi