From: Jennifer A. <jm...@co...> - 2008-07-24 19:11:37
|
Dear All, I am finally getting around to working on the build environment. I need help!!! I have changed the expected directory structure of $supplibs/include/ so now GrADS will look for subdirectories for each library. This led to me editing configure.in, acinclude.m4, and src/Makefile.am. I am using the latest opengrads src (2.0.a2.oga.1) as a guide. My approach is to update things slowly, making sure they work before updating the next. So, the dynamic-supplib-detection is not in yet. One thing that is not working is adding the proper include directory for netcdf.h when compiling grads and gradsdap. This is done with a variable called nc_include, which is set in configure.in: use_nc=no if test "$with_nc" != "no" ; then echo "Checking netcdf support..." GA_CHECK_NC([use_nc=yes], {}) fi if test $use_nc = "yes" ; then nc_include = "-I\$(supp_include_dir)/netcdf" AC_SUBST(nc_include) GA_SET_LIB_VAR(nc_libs, [netcdf udunits]) AC_SUBST(nc_libs) AC_DEFINE(USESDF, 1, [Enable netcdf]) echo "+ netcdf enabled" else AC_DEFINE(USESDF, 0, [Enable netcdf]) echo "- netcdf disabled" fi I put the nc_include variable in src/Makefile.am like this: COMPILE_C = $(COMPILE) $(nc_include) -DUSEDAP=0 -DUSEGADODS=0 But after running ./bootstrap and ./configure, nc_include is empty in the Makefile. Here I grep for it in the top level, and the directories below: > grep nc_include * Makefile:nc_include = Makefile.in:nc_include = @nc_include@ config.log:nc_include='' config.status:s,@nc_include@,,;t t configure:ac_subst_vars='SHELL <....snipped...> nc_include <...snipped...> configure: nc_include = "-I\$(supp_include_dir)/netcdf" configure:s,@nc_include@,$nc_include,;t t configure.in: nc_include = "-I\$(supp_include_dir)/netcdf" configure.in: AC_SUBST(nc_include) > grep nc_include */* autom4te.cache/output.0:ac_subst_vars='SHELL <....snipped...> nc_include <...snipped...> autom4te.cache/output.0: nc_include = "-I\$(supp_include_dir)/netcdf" autom4te.cache/output.0:s,@nc_include@,$nc_include,;t t autom4te.cache/traces.0:m4trace:configure.in:358: -1- AC_SUBST ([nc_include]) src/Makefile:nc_include = src/Makefile:COMPILE_C = $(COMPILE) $(nc_include) -DUSEDAP=0 - DUSEGADODS=0 src/Makefile.am:COMPILE_C = $(COMPILE) $(nc_include) -DUSEDAP=0 - DUSEGADODS=0 src/Makefile.in:nc_include = @nc_include@ src/Makefile.in:COMPILE_C = $(COMPILE) $(nc_include) -DUSEDAP=0 - DUSEGADODS=0 What am I doing wrong? Jennifer -- Jennifer M. Adams IGES/COLA 4041 Powder Mill Road, Suite 302 Calverton, MD 20705 jm...@co... |