Add --is-parallel option and output to nc-config
It is useful to be able to determine whether the netcdf library has parallel capabilities enabled.  Currently can look at netcdf_meta.h, but would be useful be able to get information from nc-config since that is how most other options settings are displayed.
@@ -80,6 +80,12 @@ else
has_szlib="yes"
fi
+has_parallel="@USE_PARALLEL@"
+if [ -z $has_parallel ]; then
+ has_parallel="no"
+else
+ has_parallel="yes"
+fi
version="@PACKAGE@ @VERSION@"
@@ -141,6 +147,7 @@ Available values for OPTION include:
--has-logging whether logging is enabled with --enable-logging.
--has-pnetcdf whether parallel-netcdf (a.k.a. pnetcdf) was used in build
--has-szlib whether szlib is included in build
+ --has-parallel whether has parallel IO support via hdf5 and/or pnetcdf
--libs library linking information for netcdf
--prefix Install prefix
--includedir Include directory
@@ -217,6 +224,7 @@ fi
echo " --has-logging-> $has_logging"
echo " --has-pnetcdf-> $has_pnetcdf"
echo " --has-szlib -> $has_szlib"
+ echo " --has-parallel-> $has_parallel"
echo
echo " --prefix -> $prefix"
echo " --includedir-> $includedir"
@@ -296,6 +304,10 @@ while test $# -gt 0; do
echo $has_szlib
;;
+ --has-parallel)
+ echo $has_parallel
+ ;;
+
--libs)
echo $libs
;;
