use correct syntax for const_defined? to check for available sources