hello,
recently, i've been trying to build flint from source. this issue is present with both flint 3.1.2 and flint 3.1.3. after running the bootstrap script, ./configure fails to detect gmp.h:
...
checking for gmp.h... no
configure: error: Could not find gmp.h
this error originates from line 165 of acinclude.m4. config.log has:
configure:5763: checking for gmp.h
configure:5763: gcc -c -I/usr/local/include conftest.c >&5
configure:5763: $? = 0
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "FLINT"
| #define PACKAGE_TARNAME "flint"
| #define PACKAGE_VERSION "3.1.3"
| #define PACKAGE_STRING "FLINT 3.1.3"
| #define PACKAGE_BUGREPORT "
https://github.com/flintlib/flint/issues/"
| #define PACKAGE_URL "
https://flintlib.org/"
| #ifndef __cplusplus
| #define inline
| #endif
| /* end confdefs.h. */
| #include <stddef.h>
| #ifdef HAVE_STDIO_H
| # include <stdio.h>
| #endif
| #ifdef HAVE_STDLIB_H
| # include <stdlib.h>
| #endif
| #ifdef HAVE_STRING_H
| # include <string.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <gmp.h>
configure:5763: result: no
configure:5768: error: Could not find gmp.h
both gmp.h and gmpxx.h are present in /usr/local/include and the error persists even when specifying --with-gmp=/usr/local or building gmp into its own install directory and using that for --with-gmp. can anyone provide any insight into this error, or should i file a bug report?