[Kst] kdeextragear-2/kst

George Staikos staikos at kde.org
Tue Aug 3 06:04:00 CEST 2004


CVS commit by staikos: 

enable compilation of the CDF plugin


  M +18 -0     configure.in.in   1.27
  M +6 -1      kst/datasources/Makefile.am   1.11


--- kdeextragear-2/kst/configure.in.in  #1.26:1.27
@@ -6,4 +6,5 @@
 
 
+# PIOLIB Test
 KDE_CHECK_HEADER(HL2_PIOLIB/PIOLib.h, AC_DEFINE(HAVE_PIOLIB_H, 1, [If we have piolib headers]) have_piolib_h=yes, , )
 
@@ -19,4 +20,21 @@
 AM_CONDITIONAL(include_piolib, test -n "$PIOLIBS")
 
+
+# CDF Test
+KDE_CHECK_HEADER(cdf.h, AC_DEFINE(HAVE_CDF_H, 1, [If we have CDF headers]) have_cdf_h=yes, , )
+
+KDE_CHECK_LIB(cdf, CDFlib, CDFLIBS="-lcdf $CDFLIBS", , )
+
+if test $ac_cv_lib_cdf_CDFlib = yes; then
+  if test $have_cdf_h = yes; then
+    AC_SUBST(CDF)
+    AC_DEFINE(KST_HAVE_CDF, 1, [If we have the CDF libraries.])
+  fi
+fi
+
+AM_CONDITIONAL(include_cdf, test -n "$CDF")
+
+
+# GSL Tests
 GSL_LIBS="-lgsl -lgslcblas -lm"
 AC_SUBST(GSL_LIBS)

--- kdeextragear-2/kst/kst/datasources/Makefile.am  #1.10:1.11
@@ -7,3 +7,8 @@
 endif
 
-SUBDIRS=ascii dirfile frame indirect $(PIOLIB_SUBDIR) $(FITSIO_SUBDIR)
+if include_cdf
+CDF_SUBDIR=cdf
+endif
+
+SUBDIRS=ascii dirfile frame indirect $(PIOLIB_SUBDIR) $(FITSIO_SUBDIR) $(CDF_SUBDIR)
+





More information about the Kst mailing list