summaryrefslogtreecommitdiffstats
path: root/kdat/ConfigureChecks.cmake
blob: 89facde5dbd69e3a9976d98b14add0c1fd98a201 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#################################################
#
#  Improvements and feedback are welcome
#
#  This file is released under GPL >= 3
#
#################################################

check_cxx_source_compiles("
    #include <sys/mtio.h>
    int main() {
      struct mtget tapeStatus;
      return GMT_EOF ( tapeStatus.mt_gstat );
    }"
    HAVE_MTGET_GSTAT
)
if( NOT HAVE_MTGET_GSTAT )
    tde_message_fatal( "It is required to build kdat, but mtget does not contain mt_gstat." )
endif( )