This file is indexed.

/usr/include/smbios/config/auto_link.hpp is in libsmbios-dev 2.3.0-0ubuntu1.

This file is owned by root:root, with mode 0o644.

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
/* vim:expandtab:autoindent:tabstop=4:shiftwidth=4:filetype=c:cindent: 
 */
/*
 * Copyright (C) 2005 Dell Inc.
 *  by Michael Brown <Michael_E_Brown@dell.com>
 * Licensed under the Open Software License version 2.1 
 * 
 * Alternatively, you can redistribute it and/or modify 
 * it under the terms of the GNU General Public License as published 
 * by the Free Software Foundation; either version 2 of the License, 
 * or (at your option) any later version.

 * This program is distributed in the hope that it will be useful, but 
 * WITHOUT ANY WARRANTY; without even the implied warranty of 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
 * See the GNU General Public License for more details.
 */

/* safe to include in C headers */

#ifndef LIBSMBIOS_AUTO_LINK_H_INCLUDED
#define LIBSMBIOS_AUTO_LINK_H_INCLUDED

#ifdef __cplusplus
#  ifndef LIBSMBIOS_CONFIG_H
#     include "smbios/config.hpp"
#  endif
#elif defined(_MSC_VER) && !defined(__MWERKS__) && !defined(__EDG_VERSION__)
/*
 * C language compatability (no, honestly)
 */
#  define BOOST_MSVC _MSC_VER
#  define BOOST_STRINGIZE(X) BOOST_DO_STRINGIZE(X)
#  define BOOST_DO_STRINGIZE(X) #X
#endif

#if (defined(LIBSMBIOS_PLATFORM_WIN32) || defined(LIBSMBIOS_PLATFORM_WIN64)) && defined(_MSC_VER)
// The rest of the code in this file is used to automatically select which 
// version libsmbios library to link to.

// libsmbios-vc6        // single-thread  (DLL)     (non-debug)     XXX
// libsmbios-vc6-mt     // multi-thread   (DLL)     (non-debug)     mt-dll
// libsmbios-vc6-gd     // single-thread  (DLL)     (debug)         XXX
// libsmbios-vc6-mt-gd  // multi-thread   (DLL)     (debug)         d-mt-dll
// libsmbios-vc6-s      // single-thread  (non-DLL) (non-debug)     st
// libsmbios-vc6-mt-s   // multi-thread   (non-DLL) (non-debug)     mt
// libsmbios-vc6-sgd    // single-thread  (non-DLL) (debug)         d-st
// libsmbios-vc6-mt-sgd // multi-thread   (non-DLL) (debug)         d-mt



#if !defined(LIBSMBIOS_ALL_NO_LIB) && !defined(LIBSMBIOS_SOURCE)


#if defined(LIBSMBIOS_ALL_DYN_LINK)
#   define LIBSMBIOS_DYN_LINK
#endif

// ==============================
//
// select toolset if not defined already:
//
#ifndef LIBSMBIOS_LIB_TOOLSET
#if defined(LIBSMBIOS_MSVC) && (LIBSMBIOS_MSVC == 1200)

   // vc6:
#  define LIBSMBIOS_LIB_TOOLSET "vc6"

#elif defined(LIBSMBIOS_MSVC) && (LIBSMBIOS_MSVC == 1300)

   // vc7:
#  define LIBSMBIOS_LIB_TOOLSET "vc7"

#elif defined(LIBSMBIOS_MSVC) && (LIBSMBIOS_MSVC == 1310)

   // vc71:
#  define LIBSMBIOS_LIB_TOOLSET "vc71"

#elif defined(LIBSMBIOS_MSVC) && (LIBSMBIOS_MSVC >= 1400)

   // vc80:
#  define LIBSMBIOS_LIB_TOOLSET "vc80"
#endif
#endif


// ==============================
//
// select linkage opt:
//
#if (defined(_DLL) || defined(_RTLDLL)) && defined(LIBSMBIOS_DYN_LINK)
#  define LIBSMBIOS_LIB_PREFIX
#elif defined(LIBSMBIOS_DYN_LINK)
#  error "Mixing a dll boost library with a static runtime is a really bad idea..."
#else
#  define LIBSMBIOS_LIB_PREFIX "lib"
#endif


// ==============================
//
// select thread opt:
//
#if defined(_MT) || defined(__MT__)
#  define LIBSMBIOS_LIB_THREAD_OPT "-mt"
#else
#  define LIBSMBIOS_LIB_THREAD_OPT
#endif

// ==============================
//
// select runtime opt:
//
#if defined(_MSC_VER) || defined(__MWERKS__)
#  ifdef _DLL
#     if (defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION)) && (defined(_STLP_OWN_IOSTREAMS) || defined(__STL_OWN_IOSTREAMS))

#        if defined(_DEBUG) && (defined(__STL_DEBUG) || defined(_STLP_DEBUG))
#            define LIBSMBIOS_LIB_RT_OPT "-gdp"
#        elif defined(_DEBUG)
#            define LIBSMBIOS_LIB_RT_OPT "-gdp"
#            pragma message("warning: STLPort debug versions are built with /D_STLP_DEBUG=1")
#            error "Build options aren't compatible with pre-built libraries"
#        else
#            define LIBSMBIOS_LIB_RT_OPT "-p"
#        endif

#     elif defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION)

#        if defined(_DEBUG) && (defined(__STL_DEBUG) || defined(_STLP_DEBUG))
#            define LIBSMBIOS_LIB_RT_OPT "-gdpn"
#        elif defined(_DEBUG)
#            define LIBSMBIOS_LIB_RT_OPT "-gdpn"
#            pragma message("warning: STLPort debug versions are built with /D_STLP_DEBUG=1")
#            error "Build options aren't compatible with pre-built libraries"
#        else
#            define LIBSMBIOS_LIB_RT_OPT "-pn"
#        endif

#     else

#        if defined(_DEBUG)
#            define LIBSMBIOS_LIB_RT_OPT "-gd"
#        else
#            define LIBSMBIOS_LIB_RT_OPT
#        endif

#     endif
#  else

#     if (defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION)) && (defined(_STLP_OWN_IOSTREAMS) || defined(__STL_OWN_IOSTREAMS))

#        if defined(_DEBUG) && (defined(__STL_DEBUG) || defined(_STLP_DEBUG))
#            define LIBSMBIOS_LIB_RT_OPT "-sgdp"
#        elif defined(_DEBUG)
#             define LIBSMBIOS_LIB_RT_OPT "-sgdp"
#            pragma message("warning: STLPort debug versions are built with /D_STLP_DEBUG=1")
#            error "Build options aren't compatible with pre-built libraries"
#        else
#            define LIBSMBIOS_LIB_RT_OPT "-sp"
#        endif

#     elif defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION)

#        if defined(_DEBUG) && (defined(__STL_DEBUG) || defined(_STLP_DEBUG))
#            define LIBSMBIOS_LIB_RT_OPT "-sgdpn"
#        elif defined(_DEBUG)
#             define LIBSMBIOS_LIB_RT_OPT "-sgdpn"
#            pragma message("warning: STLPort debug versions are built with /D_STLP_DEBUG=1")
#            error "Build options aren't compatible with pre-built libraries"
#        else
#            define LIBSMBIOS_LIB_RT_OPT "-spn"
#        endif

#     else

#        if defined(_DEBUG)
#             define LIBSMBIOS_LIB_RT_OPT "-sgd"
#        else
#            define LIBSMBIOS_LIB_RT_OPT "-s"
#        endif

#     endif

#  endif
#endif

#define LIBSMBIOS_LIB_NAME smbios

#ifndef LIBSMBIOS_AUTO_LINK_NOMANGLE
#   pragma comment(lib, LIBSMBIOS_LIB_PREFIX LIBSMBIOS_STRINGIZE(LIBSMBIOS_LIB_NAME) "-" LIBSMBIOS_LIB_TOOLSET LIBSMBIOS_LIB_THREAD_OPT LIBSMBIOS_LIB_RT_OPT ".lib" )
#   ifdef LIBSMBIOS_LIB_DIAGNOSTIC
#       pragma message ("Automatically Linking to lib file: " LIBSMBIOS_LIB_PREFIX LIBSMBIOS_STRINGIZE(LIBSMBIOS_LIB_NAME) "-" LIBSMBIOS_LIB_TOOLSET LIBSMBIOS_LIB_THREAD_OPT LIBSMBIOS_LIB_RT_OPT ".lib")
#   endif
#   if defined(LIBSMBIOS_NEED_SMBIOSXML)
#       undef LIBSMBIOS_LIB_NAME
#       define LIBSMBIOS_LIB_NAME smbiosxml
#       pragma comment(lib, LIBSMBIOS_LIB_PREFIX LIBSMBIOS_STRINGIZE(LIBSMBIOS_LIB_NAME) "-" LIBSMBIOS_LIB_TOOLSET LIBSMBIOS_LIB_THREAD_OPT LIBSMBIOS_LIB_RT_OPT ".lib" )
#       ifdef LIBSMBIOS_LIB_DIAGNOSTIC
#           pragma message ("Automatically Linking to lib file: " LIBSMBIOS_LIB_PREFIX LIBSMBIOS_STRINGIZE(LIBSMBIOS_LIB_NAME) "-" LIBSMBIOS_LIB_TOOLSET LIBSMBIOS_LIB_THREAD_OPT LIBSMBIOS_LIB_RT_OPT ".lib")
#       endif
#   endif
#else
#   pragma comment(lib, LIBSMBIOS_STRINGIZE(LIBSMBIOS_LIB_NAME) ".lib" )
#   ifdef LIBSMBIOS_LIB_DIAGNOSTIC
#       pragma message ("Automatically Linking to lib file: " LIBSMBIOS_STRINGIZE(LIBSMBIOS_LIB_NAME) ".lib")
#   endif
#   if defined(LIBSMBIOS_NEED_SMBIOSXML)
#       undef LIBSMBIOS_LIB_NAME
#       define LIBSMBIOS_LIB_NAME smbiosxml
#       pragma comment(lib, LIBSMBIOS_STRINGIZE(LIBSMBIOS_LIB_NAME) ".lib" )
#       ifdef LIBSMBIOS_LIB_DIAGNOSTIC
#           pragma message ("Automatically Linking to lib file: " LIBSMBIOS_STRINGIZE(LIBSMBIOS_LIB_NAME) ".lib")
#       endif
#   endif
#endif

// automatic linking for xerces, if we are using XML
#if defined(LIBSMBIOS_NEED_SMBIOSXML)
#   undef LIBSMBIOS_LIB_NAME
#   if !defined(_MT) && !defined(__MT__) 
#       error("Xerces DLLs are only distributed as (debug|non-debug) x (multithreaded|multithreaded DLL). Your runtime code-generation must be set to either of these configurations.")
#   endif

#   if (defined(_DLL) || defined(_RTLDLL)) 
#       if defined(_DEBUG)
#           define LIBSMBIOS_LIB_NAME xerces-c_2D
#       else
#           define LIBSMBIOS_LIB_NAME xerces-c_2
#       endif
#   else
#       if defined(_DEBUG)
#           define LIBSMBIOS_LIB_NAME Xerces-c_static_2D
#       else
#           define LIBSMBIOS_LIB_NAME Xerces-c_static_2
#       endif
#   endif
#   pragma comment(lib, LIBSMBIOS_STRINGIZE(LIBSMBIOS_LIB_NAME) ".lib" )
#   ifdef LIBSMBIOS_LIB_DIAGNOSTIC
#       pragma message ("Automatically Linking to lib file: " LIBSMBIOS_STRINGIZE(LIBSMBIOS_LIB_NAME) ".lib")
#   endif
#endif

//  //#include <config/auto_link.hpp>
#endif /* !LIBSMBIOS_ALL_NO_LIB && ! LIBSMBIOS_SOURCE */
#endif /* LIBSMBIOS_PLATFORM_WIN32 */

#ifdef LIBSMBIOS_LIB_PREFIX
#  undef LIBSMBIOS_LIB_PREFIX
#endif
#if defined(LIBSMBIOS_LIB_NAME)
#  undef LIBSMBIOS_LIB_NAME
#endif
#if defined(LIBSMBIOS_LIB_TOOLSET)
#  undef LIBSMBIOS_LIB_TOOLSET
#endif
#if defined(LIBSMBIOS_LIB_THREAD_OPT)
#  undef LIBSMBIOS_LIB_THREAD_OPT
#endif
#if defined(LIBSMBIOS_LIB_RT_OPT)
#  undef LIBSMBIOS_LIB_RT_OPT
#endif
#if defined(LIBSMBIOS_LIB_LINK_OPT)
#  undef LIBSMBIOS_LIB_LINK_OPT
#endif
#if defined(LIBSMBIOS_LIB_DEBUG_OPT)
#  undef LIBSMBIOS_LIB_DEBUG_OPT
#endif
#if defined(LIBSMBIOS_DYN_LINK)
#  undef LIBSMBIOS_DYN_LINK
#endif
#if defined(LIBSMBIOS_AUTO_LINK_NOMANGLE)
#  undef LIBSMBIOS_AUTO_LINK_NOMANGLE
#endif

#endif /* AUTO_LINK_H */