This file is indexed.

/usr/bin/adios_config is in libadios-bin 1.13.0-1.

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
#!/bin/bash
#
# Print compiler/linker flags to use ADIOS
# Version based on pkg-config, works with Multiarch.
#  - Alastair McKinstry, <mckinstry@debian.org>
#  Last Updated: 2016-08-29


ADIOS_DIR=/usr

function Usage () {
    echo "`basename $0` [-d | -c | -l] [-f] [-r] [-s] [-v]
Arguments
   -d   Print base directory for ADIOS install
   -c   Print compiler flags for C/C++, using ADIOS write/read methods
   -l   Print linker flags for C/C++, using ADIOS write/read methods
   -f   Print above flags for Fortran90
   -r   Print above flags for using ADIOS read library only.
   -s   Print above flags for using ADIOS in a sequential code (no MPI). 
   -v   Print version of the installed package
Notes
   - Multiple options of d,c,l are enabled. In such a case, the output is
     a list of FLAG=flags, where FLAG is one of (DIR, CFLAGS, LDFLAGS)
   - If none of d,c,l are given, all of them is printed
   - If none of f,r,s are given, flags for C/C++, using ADIOS write/read 
     methods are printed
"
}

# default
PRINT_DIR=no
PRINT_CFLAGS=no
PRINT_LDFLAGS=no
OPT_FORTRAN=no
OPT_READ=no
OPT_SEQ=no
NFLAGS_ASKED=0

while getopts ":dclfrsvh" Option
do          
  case $Option in               
        d) PRINT_DIR=yes; let "NFLAGS_ASKED=NFLAGS_ASKED+1";;
        c) PRINT_CFLAGS=yes; let "NFLAGS_ASKED=NFLAGS_ASKED+1";;
        l) PRINT_LDFLAGS=yes; let "NFLAGS_ASKED=NFLAGS_ASKED+1";;
        f) OPT_FORTRAN=yes;;
        r) OPT_READ=yes;;
        s) OPT_SEQ=yes;;
        v) echo "$VERSIONSTRING"; exit 0;;
        h) Usage; exit 0;;
        *) echo "Invalid option -$Option."; Usage; exit 255;;   # DEFAULT
  esac
done
shift $(($OPTIND - 1))

if [ $NFLAGS_ASKED == 0 ]; then
    NFLAGS_ASKED=3;
    PRINT_DIR=yes
    PRINT_CFLAGS=yes
    PRINT_LDFLAGS=yes
fi

#if [ "$OPT_SEQ" == "yes" ]; then
#    OPT_READ=yes
#fi

# Print requested values
if [ "$PRINT_DIR" == "yes" ]; then
    if [ $NFLAGS_ASKED -gt 1 ]; then
        echo -n "DIR="
    fi
    echo $ADIOS_DIR
fi

if [ "$PRINT_CFLAGS" == "yes" ]; then
    if [ "$OPT_READ" == "yes" ]; then
        if [ "$OPT_SEQ" == "yes" ]; then
            CFLAGS=`pkg-config adios --variable ADIOSREAD_SEQ_INC`
        else
            CFLAGS=`pkg-config adios --variable ADIOSREAD_INC`
        fi 
    else
        if [ "$OPT_SEQ" == "yes" ]; then
            CFLAGS=`pkg-config adiso --variable ADIOS_SEQ_INC`
        else
            CFLAGS=`pkg-config adios --variable ADIOS_INC`
        fi 
    fi
    if [ $NFLAGS_ASKED -gt 1 ]; then
        echo -n "CFLAGS="
    fi
    echo $CFLAGS
fi

if [ "$PRINT_LDFLAGS" == "yes" ]; then
    if [ "$OPT_SEQ" == "yes" ]; then
        if [ "$OPT_READ" == "yes" ]; then
            # ADIOSREAD + SEQ
            if [ "$OPT_FORTRAN" == "yes" ]; then
                LDFLAGS=`pkg-config adios --variable ADIOSREAD_SEQ_FLIB`
            else
                LDFLAGS=`pkg-config adios --variable ADIOSREAD_SEQ_CLIB`
            fi
        else  # ADIOS + SEQ
            if [ "$OPT_FORTRAN" == "yes" ]; then
                #LDFLAGS="$ADIOS_SEQ_FLIB"
                LDFLAGS="There is no Fortran library of ADIOS for sequential codes"
            else
                LDFLAGS=`pkg-config adios --variable ADIOS_SEQ_CLIB`
            fi
        fi
    elif [ "$OPT_READ" == "yes" ]; then
        # ADIOSREAD + parallel code
        if [ "$OPT_FORTRAN" == "yes" ]; then
            LDFLAGS=`pkg-config adios --variable ADIOSREAD_FLIB`
        else
            LDFLAGS=`pkg-config adios --variable ADIOSREAD_CLIB`
        fi
    else 
        # ADIOS + parallel code
        if [ "$OPT_FORTRAN" == "yes" ]; then
            LDFLAGS=`pkg-config adios --variable ADIOS_FLIB`
        else
            LDFLAGS=`pkg-config adios --variable ADIOS_CLIB`
        fi
    fi 
    if [ $NFLAGS_ASKED -gt 1 ]; then
        echo -n "LDFLAGS="
    fi
    echo $LDFLAGS
fi