Branch: Tag:

2014-04-23

2014-04-23 11:58:18 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Gmp: Complain louder when gmp is missing.

In some obscure cicumstances Gmp's configure can find a libgmp/gmp.h
combination that the C-code doesn't like. Make sure to complain
rather than to silently compile an empty Gmp module.

20:   #endif /* HAVE_GMP_H && HAVE_LIBGMP */   #endif /* HAVE_GMP2_GMP_H && HAVE_LIBGMP2 */    - #if defined(USE_GMP) || defined(USE_GMP2) + #if !defined(USE_GMP) && !defined(USE_GMP2)    -  + #error "Gmp is required to build Pike!" +  + #else +    #include "my_gmp.h"      #include "interpret.h"