/usr/bin/pnetcdf-config is in pnetcdf-bin 1.9.0-2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 | #! /bin/sh
#
# Copyright (C) 2016, Northwestern University and Argonne National Laboratory
# See COPYRIGHT notice in top-level directory.
#
# This forms the basis for the pnetcdf-config utility, which tells you
# various things about the PnetCDF installation. This code was based on
# file nc-config.in from netCDF distribution.
#
# $Id$
#
# src/utils/pnetcdf-config. Generated from pnetcdf-config.in by configure.
prefix=/usr
exec_prefix=/usr
libdir="${prefix}/lib/x86_64-linux-gnu"
includedir="${prefix}/include"
# Preprocessing:
FC_DEFINE="-D"
CPP="/usr/bin/mpicc -E"
debug_mode="0"
CPPFLAGS="-Wdate-time -D_FORTIFY_SOURCE=2"
if test "x$debug_mode@" = x1 ; then
if test "x$CPPFLAGS" = x ; then
CPPFLAGS="-DPNETCDF_DEBUG"
else
CPPFLAGS="$CPPFLAGS -DPNETCDF_DEBUG"
fi
fi
# Compilation:
MPICC="/usr/bin/mpicc"
MPICXX="/usr/bin/mpicxx"
MPIF77="/usr/bin/mpif77"
MPIF90="/usr/bin/mpif90"
# debugging and optimization options for compiling and linking
CFLAGS="-g -O2 -fdebug-prefix-map=/build/pnetcdf-iIyKNf/pnetcdf-1.9.0=. -fstack-protector-strong -Wformat -Werror=format-security"
CXXFLAGS="-g -O2 -fdebug-prefix-map=/build/pnetcdf-iIyKNf/pnetcdf-1.9.0=. -fstack-protector-strong -Wformat -Werror=format-security"
FFLAGS="-g -O2 -fdebug-prefix-map=/build/pnetcdf-iIyKNf/pnetcdf-1.9.0=. -fstack-protector-strong"
FCFLAGS="-g -O2 -fdebug-prefix-map=/build/pnetcdf-iIyKNf/pnetcdf-1.9.0=. -fstack-protector-strong"
# Linking:
FLIBS="@FLIBS@"
FCLIBS=" -L/usr//lib -L/usr/lib/x86_64-linux-gnu/openmpi/lib -L/usr/lib/gcc/x86_64-linux-gnu/7 -L/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/7/../../.. -lmpi_usempif08 -lmpi_usempi_ignore_tkr -lmpi_mpifh -lmpi -lgfortran -lm -lquadmath -lpthread"
FLDFLAGS="@FLDFLAGS@"
LDFLAGS="-Wl,-Bsymbolic-functions -Wl,-z,relro"
LIBS=""
version="parallel-netcdf 1.9.0"
CC=${MPICC}
F77=${MPIF77}
F90=${MPIF90}
has_fortran="yes"
has_cxx="yes"
enable_erange_fill="1"
enable_subfiling="0"
enable_large_req=""
enable_null_byte_header_padding=""
enable_relax_coord_bound="0"
is_bigendian="no"
enable_in_place_swap="yes"
config_date=""
release_date="19 Dec 2017"
usage()
{
cat <<EOF
Usage: pnetcdf-config [OPTION]
Available values for OPTION include:
--help display this help message and exit
--all display all options
--cc C compiler
--cflags C compiler flags
--cppflags C pre-processor flags
--has-c++ whether C++ API is installed
--c++ C++ compiler
--cxxflags C++ compiler flags
--has-fortran whether Fortran API is installed
--f77 Fortran 77 compiler
--fflags Fortran 77 compiler flags
--fppflags Fortran pre-processor flags
--fc Fortran 9x compiler
--fcflags Fortran 9x compiler flags
--ldflags Linker options
--libs Libraries used to build PnetCDF
--relax-coord-bound Whether using a relaxed coordinate boundary check
--in-place-swap Whether using buffer in-place Endianness byte swap
--erange-fill Whether using fill values for NC_ERANGE error
--subfiling Whether subfiling is enabled or disabled
--large-req Whether to allow single large (>2GiB) MPI-IO requests
--null-byte-header-padding Whether to check null-byte padding in header
--debug Whether PnetCDF is built with debug mode
--prefix Install prefix
--includedir Include directory
--libdir Library directory
--version Library version
--release-date Date of PnetCDF source was released
--config-date Date of PnetCDF library was configured
EOF
exit $1
}
all()
{
echo
echo "This $version has been built with the following features: "
echo
echo " --cc -> $MPICC"
echo " --cflags -> $CFLAGS"
echo " --cppflags -> $CPPFLAGS"
echo " --ldflags -> $LDFLAGS"
echo " --libs -> $LIBS"
echo
echo " --has-c++ -> $has_cxx"
if test "x$has_cxx" = xyes ; then
echo " --cxx -> $MPICXX"
echo " --cxxflags -> $CXXFLAGS"
fi
echo
echo " --has-fortran -> $has_fortran"
if test "x$has_fortran" = xyes ; then
echo " --f77 -> $MPIF77"
echo " --fflags -> $FFLAGS"
echo
echo " --fc -> $MPIF90"
echo " --fcflags -> $FCFLAGS"
# echo " --fclibs -> $FCLIBS"
fi
echo
if test "x$enable_relax_coord_bound" = x1; then
echo " --relax-coord-bound -> enabled"
else
echo " --relax-coord-bound -> disabled"
fi
if test "x$is_bigendian" = xno && (test "x$enable_in_place_swap" = xno) ; then
echo " --in-place-swap -> disabled"
else
echo " --in-place-swap -> enabled"
fi
if test "x$enable_erange_fill" = x0; then
echo " --erange-fill -> disabled"
else
echo " --erange-fill -> enabled"
fi
if test "x$enable_subfiling" = x1; then
echo " --subfiling -> enabled"
else
echo " --subfiling -> disabled"
fi
if test "x$enable_large_req" = x1; then
echo " --large-req -> enabled"
else
echo " --large-req -> disabled"
fi
if test "x$enable_null_byte_header_padding" = x1; then
echo " --null-byte-header-padding -> enabled"
else
echo " --null-byte-header-padding -> disabled"
fi
if test "x$debug_mode" = x1; then
echo " --debug -> enabled"
else
echo " --debug -> disabled"
fi
echo
echo " --prefix -> $prefix"
echo " --includedir -> $includedir"
echo " --libdir -> $libdir"
echo " --version -> $version"
echo " --release-date -> $release_date"
echo " --config-date -> $config_date"
}
if test $# -eq 0; then
usage 1
fi
while test $# -gt 0; do
case "$1" in
# this deals with options in the style
# --option=value and extracts the value part
# [not currently used]
-*=*) value=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
*) value= ;;
esac
case "$1" in
--help)
usage 0
;;
--all)
all
;;
--cc)
echo "$MPICC" | sed -e 's/^[ \t]*//'
;;
--cflags)
echo "$CFLAGS" | sed -e 's/^[ \t]*//'
;;
--cppflags)
echo "$CPPFLAGS" | sed -e 's/^[ \t]*//'
;;
--prefix)
echo "$prefix" | sed -e 's/^[ \t]*//'
;;
--includedir)
echo "$includedir" | sed -e 's/^[ \t]*//'
;;
--libdir)
echo "$libdir" | sed -e 's/^[ \t]*//'
;;
--ldflags)
echo "$LDFLAGS" | sed -e 's/^[ \t]*//'
;;
--libs)
echo "$LIBS" | sed -e 's/^[ \t]*//'
;;
--version)
echo "$version" | sed -e 's/^[ \t]*//'
;;
--has-c++)
echo "$has_cxx" | sed -e 's/^[ \t]*//'
;;
--cxx)
echo "$MPICXX" | sed -e 's/^[ \t]*//'
;;
--cxxflags)
echo "$CXXFLAGS" | sed -e 's/^[ \t]*//'
;;
--has-fortran)
echo "$has_fortran" | sed -e 's/^[ \t]*//'
;;
--f77)
echo "$MPIF77" | sed -e 's/^[ \t]*//'
;;
--fflags)
echo "$FFLAGS" | sed -e 's/^[ \t]*//'
;;
--fc)
echo "$MPIF90" | sed -e 's/^[ \t]*//'
;;
--fcflags)
echo "$FCFLAGS" | sed -e 's/^[ \t]*//'
;;
# --fclibs)
# echo "$FCLIBS" | sed -e 's/^[ \t]*//'
# ;;
--relax-coord-bound)
if test "x$enable_relax_coord_bound" = x1; then
echo "enabled"
else
echo "disabled"
fi
;;
--in-place-swap)
if test "x$is_bigendian" = xno && (test "x$enable_in_place_swap" = xno) ; then
echo "disabled"
else
echo "enabled"
fi
;;
--erange-fill)
if test "x${enable_erange_fill}" = xno; then
echo "disabled"
else
echo "enabled"
fi
;;
--subfiling)
if test "x$enable_subfiling" = x1; then
echo "enabled"
else
echo "disabled"
fi
;;
--large-req)
if test "x$enable_large_req" = x1; then
echo "enabled"
else
echo "disabled"
fi
;;
--null-byte-header-padding)
if test "x$enable_null_byte_header_padding" = x1; then
echo "enabled"
else
echo "disabled"
fi
;;
--debug)
if test "x$debug_mode" = x1; then
echo "enabled"
else
echo "disabled"
fi
;;
--release-date)
echo "$release_date"
;;
--config-date)
echo "$config_date"
;;
*)
echo "unknown option: $1"
usage 1
;;
esac
shift
done
exit 0
|