Warning, /graphics/kst-plot/config.pri is written in an unsupported language. File is not indexed.

0001 # Define if you have cfitsio - not used on unix
0002 HAVE_CFITSIO = 0
0003 # Set to 1 to disable usage of cfitsio - only for unix
0004 DISABLE_CFITSIO = 0
0005 
0006 #Define if you have dirfile getdata library version 0.4.2 or greater required. - not used on unix
0007 HAVE_DIRFILE = 0
0008 # Set to 1 to disable usage of dirfile - only for unix
0009 DISABLE_DIRFILE = 0
0010 
0011 #Define if you have the gsl library installed - not used on unix
0012 HAVE_GSL = 0
0013 # Set to 1 to disable usage of gsl - only for unix
0014 DISABLE_GSL = 0
0015 
0016 
0017 defineTest(LibExists) {
0018   lib = $$ARGS
0019 
0020 unix { 
0021   !mac {
0022   contains(lib, gsl) {
0023     contains(DISABLE_GSL, 1) {
0024       # Overridden, do not check.
0025       return(false)
0026     }
0027   }
0028   contains(lib, cfitsio) {
0029     contains(DISABLE_CFITSIO, 1) {
0030       # Overridden, do not check.
0031       return(false)
0032     }
0033   }
0034   contains(lib, getdata) {
0035     contains(DISABLE_DIRFILE, 1) {
0036       # Overridden, do not check.
0037       return(false)
0038     }
0039   }
0040   PKGCONFIGRESULT = $$system(pkg-config --libs $$lib)
0041   !contains(PKGCONFIGRESULT, -l$$lib) {
0042     message(Could not find $$lib disabling associated features)
0043     return(false)
0044   }
0045   message(Found $$lib at $$PKGCONFIGRESULT)
0046   return(true)
0047 } }
0048 
0049 
0050 contains(lib, gsl) {
0051   GSLDIR = $$(GSLDIR)
0052   win32:!isEmpty(GSLDIR) {
0053     return(true)
0054   }
0055   !win32:contains(HAVE_GSL, 1) {
0056     return(true)
0057   }
0058   return(false)
0059 }
0060 
0061 contains(lib, cfitsio) {
0062   contains(HAVE_CFITSIO, 1) {
0063     return(true)
0064   }
0065   return(false)
0066 }
0067 
0068 contains(lib, getdata) {
0069   !win32:contains(HAVE_DIRFILE, 1) {
0070     return(true)
0071   }
0072   GETDATADIR = $$(GETDATADIR)
0073   win32:!isEmpty(GETDATADIR) {
0074     return(true)
0075   }
0076   macx:!isEmpty(GETDATADIR) {
0077     return(true)
0078   }
0079   return(false)
0080 }
0081 
0082 contains(lib, netcdf) {
0083   NETCDFDIR = $$(NETCDFDIR)
0084   win32:!isEmpty(NETCDFDIR) {
0085     return(true)
0086   }
0087   !win32:contains(HAVE_NETCDFDIR, 1) {
0088     return(true)
0089   }
0090   return(false)
0091 }
0092 
0093 
0094 }
0095 
0096 
0097 defineReplace(pkginclude) {
0098     PKGCONFIG_INCLUDE_DIR = $$system(pkg-config --variable includedir $$1)
0099     message(Using $$1 headers in $$PKGCONFIG_INCLUDE_DIR)
0100     return($$PKGCONFIG_INCLUDE_DIR)
0101 }
0102