[Kst] kdeextragear-2/kst

George Staikos staikos at kde.org
Thu Mar 17 17:04:37 CET 2005


CVS commit by staikos: 

fix the netcdf plugin - missing C++ lib


  M +3 -3      configure.in.in   1.47


--- kdeextragear-2/kst/configure.in.in  #1.46:1.47
@@ -79,14 +79,14 @@
 all_includes_save="$all_includes"
 all_includes="$all_includes $ac_netcdf_includes"
-KDE_CHECK_HEADER(netcdf.h, AC_DEFINE(HAVE_NETCDF_H, 1, [If we have NetCDF headers]) have_netcdf_h=yes NETCDFINCLUDES="$ac_netcdf_includes", , )
+KDE_CHECK_HEADER(netcdfcpp.h, AC_DEFINE(HAVE_NETCDFCPP_H, 1, [If we have NetCDF CPP headers]) have_netcdfcpp_h=yes NETCDFINCLUDES="$ac_netcdf_includes", , )
 all_includes="$all_includes_save"
 
 ldflags_save="$LDFLAGS"
 LDFLAGS="$LDFLAGS $ac_netcdf_libraries"
-KDE_CHECK_LIB(netcdf, nc_open, NETCDFLIBS="$ac_netcdf_libraries -lnetcdf $NETCDFLIBS", , )
+KDE_CHECK_LIB(netcdf, nc_open, NETCDFLIBS="$ac_netcdf_libraries -lnetcdf -lnetcdf_c++ $NETCDFLIBS", , )
 LDFLAGS="$ldflags_save"
 
 if test $ac_cv_lib_netcdf_nc_open = yes; then
-  if test $have_netcdf_h = yes; then
+  if test $have_netcdfcpp_h = yes; then
     AC_SUBST(NETCDFLIBS)
     AC_SUBST(NETCDFINCLUDES)




More information about the Kst mailing list