208 | | # # |
---|
209 | | # # Check if the environment can actually compile c-files by checking for a |
---|
210 | | # # header shipped with gcc. |
---|
211 | | # # |
---|
212 | | # if not conf.CheckHeader( "stdio.h", language="C" ): |
---|
213 | | # print "It seems as if stdio.h is missing. This probably means that your build environment is broken, please make sure you have a working c-compiler and libstdc installed and usable." |
---|
214 | | # Exit( 1 ) |
---|
215 | | # # |
---|
216 | | # # ... and do the same with a c++-header. Because some distributions have |
---|
217 | | # # distinct packages for gcc and g++. |
---|
218 | | # # |
---|
219 | | # if not conf.CheckHeader( "iostream", language="C++" ): |
---|
220 | | # print "It seems as if iostream is missing. This probably means that your build environment is broken, please make sure you have a working c++-compiler installed and usable." |
---|
221 | | # Exit( 1 ) |
---|
222 | | |
---|
227 | | print "It seems as if your system isn't even able to compile any C-/C++-programs. Probably you don't have gcc and g++ installed. Compiling a package from source without a working compiler is very hard to do, please install the needed packages (Hint: on *ubuntu you need both gcc- and g++-packages installed)." |
---|
| 212 | print "\nIt seems as if your system isn't even able to compile any C-/C++-programs. Probably you don't have gcc and g++ installed. Compiling a package from source without a working compiler is very hard to do, please install the needed packages.\nHint: on *ubuntu you need both gcc- and g++-packages installed, easiest solution is to install build-essential which depends on gcc and g++." |
---|
| 213 | Exit( 1 ) |
---|
| 214 | |
---|
| 215 | # Check for pkg-config before using pkg-config to check for other dependencies. |
---|
| 216 | if not conf.CheckForPKGConfig(): |
---|
| 217 | print "\nThe program 'pkg-config' could not be found.\nEither you have to install the corresponding package first or make sure that PATH points to the right directions." |
---|