From a9f4599bf9727bb98c4ad82c11d7dcb48f25eeb9 Mon Sep 17 00:00:00 2001 From: Juanjo Garcia-Ripoll Date: Sun, 6 Oct 2013 21:47:06 +0200 Subject: [PATCH] Remove further autoconf tests that are not essential in GMP --- src/gmp/configure | 127 +------------------------------------------ src/gmp/configure.in | 34 +----------- 2 files changed, 3 insertions(+), 158 deletions(-) diff --git a/src/gmp/configure b/src/gmp/configure index 0f5d4fc87..b35f3f3ad 100755 --- a/src/gmp/configure +++ b/src/gmp/configure @@ -24415,7 +24415,7 @@ fi # inttypes.h, stdint.h, unistd.h and sys/types.h are already in the autoconf # default tests # -for ac_header in fcntl.h float.h invent.h langinfo.h locale.h nl_types.h sys/attributes.h sys/iograph.h sys/mman.h sys/param.h sys/processor.h sys/pstat.h sys/sysinfo.h sys/syssgi.h sys/systemcfg.h sys/time.h sys/times.h +for ac_header in float.h langinfo.h locale.h nl_types.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" @@ -24429,68 +24429,8 @@ fi done -# On SunOS, sys/resource.h needs sys/time.h (for struct timeval) -for ac_header in sys/resource.h -do : - ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "#if TIME_WITH_SYS_TIME -# include -# include -#else -# if HAVE_SYS_TIME_H -# include -# else -# include -# endif -#endif -" -if test "x$ac_cv_header_sys_resource_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_SYS_RESOURCE_H 1 -_ACEOF - -fi - -done - - -# On NetBSD and OpenBSD, sys/sysctl.h needs sys/param.h for various constants -for ac_header in sys/sysctl.h -do : - ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if HAVE_SYS_PARAM_H -# include -#endif -" -if test "x$ac_cv_header_sys_sysctl_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_SYS_SYSCTL_H 1 -_ACEOF - -fi - -done - - -# On OSF 4.0, must have for ulong_t -for ac_header in machine/hal_sysinfo.h -do : - ac_fn_c_check_header_compile "$LINENO" "machine/hal_sysinfo.h" "ac_cv_header_machine_hal_sysinfo_h" "#if HAVE_SYS_SYSINFO_H -# include -#endif -" -if test "x$ac_cv_header_machine_hal_sysinfo_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_MACHINE_HAL_SYSINFO_H 1 -_ACEOF - -fi - -done - - # Reasons for testing: -# optarg - not declared in mingw # fgetc, fscanf, ungetc, vfprintf - not declared in SunOS 4 -# sys_errlist, sys_nerr - not declared in SunOS 4 # # optarg should be in unistd.h and the rest in stdio.h, both of which are # in the autoconf default includes. @@ -24498,36 +24438,6 @@ done # sys_errlist and sys_nerr are supposed to be in on SunOS according # to the man page (but aren't), in glibc they're in stdio.h. # -ac_fn_c_check_decl "$LINENO" "fgetc" "ac_cv_have_decl_fgetc" "$ac_includes_default" -if test "x$ac_cv_have_decl_fgetc" = xyes; then : - ac_have_decl=1 -else - ac_have_decl=0 -fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FGETC $ac_have_decl -_ACEOF -ac_fn_c_check_decl "$LINENO" "fscanf" "ac_cv_have_decl_fscanf" "$ac_includes_default" -if test "x$ac_cv_have_decl_fscanf" = xyes; then : - ac_have_decl=1 -else - ac_have_decl=0 -fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FSCANF $ac_have_decl -_ACEOF -ac_fn_c_check_decl "$LINENO" "optarg" "ac_cv_have_decl_optarg" "$ac_includes_default" -if test "x$ac_cv_have_decl_optarg" = xyes; then : - ac_have_decl=1 -else - ac_have_decl=0 -fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_OPTARG $ac_have_decl -_ACEOF ac_fn_c_check_decl "$LINENO" "ungetc" "ac_cv_have_decl_ungetc" "$ac_includes_default" if test "x$ac_cv_have_decl_ungetc" = xyes; then : ac_have_decl=1 @@ -24538,41 +24448,6 @@ fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UNGETC $ac_have_decl _ACEOF -ac_fn_c_check_decl "$LINENO" "vfprintf" "ac_cv_have_decl_vfprintf" "$ac_includes_default" -if test "x$ac_cv_have_decl_vfprintf" = xyes; then : - ac_have_decl=1 -else - ac_have_decl=0 -fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_VFPRINTF $ac_have_decl -_ACEOF - -ac_fn_c_check_decl "$LINENO" "sys_errlist" "ac_cv_have_decl_sys_errlist" "#include -#include -" -if test "x$ac_cv_have_decl_sys_errlist" = xyes; then : - ac_have_decl=1 -else - ac_have_decl=0 -fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_SYS_ERRLIST $ac_have_decl -_ACEOF -ac_fn_c_check_decl "$LINENO" "sys_nerr" "ac_cv_have_decl_sys_nerr" "#include -#include -" -if test "x$ac_cv_have_decl_sys_nerr" = xyes; then : - ac_have_decl=1 -else - ac_have_decl=0 -fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_SYS_NERR $ac_have_decl -_ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 diff --git a/src/gmp/configure.in b/src/gmp/configure.in index 3d4ffadf5..682445ddd 100644 --- a/src/gmp/configure.in +++ b/src/gmp/configure.in @@ -2189,37 +2189,10 @@ AC_HEADER_TIME # inttypes.h, stdint.h, unistd.h and sys/types.h are already in the autoconf # default tests # -AC_CHECK_HEADERS(fcntl.h float.h invent.h langinfo.h locale.h nl_types.h sys/attributes.h sys/iograph.h sys/mman.h sys/param.h sys/processor.h sys/pstat.h sys/sysinfo.h sys/syssgi.h sys/systemcfg.h sys/time.h sys/times.h) - -# On SunOS, sys/resource.h needs sys/time.h (for struct timeval) -AC_CHECK_HEADERS(sys/resource.h,,, -[#if TIME_WITH_SYS_TIME -# include -# include -#else -# if HAVE_SYS_TIME_H -# include -# else -# include -# endif -#endif]) - -# On NetBSD and OpenBSD, sys/sysctl.h needs sys/param.h for various constants -AC_CHECK_HEADERS(sys/sysctl.h,,, -[#if HAVE_SYS_PARAM_H -# include -#endif]) - -# On OSF 4.0, must have for ulong_t -AC_CHECK_HEADERS(machine/hal_sysinfo.h,,, -[#if HAVE_SYS_SYSINFO_H -# include -#endif]) +AC_CHECK_HEADERS(float.h langinfo.h locale.h nl_types.h) # Reasons for testing: -# optarg - not declared in mingw # fgetc, fscanf, ungetc, vfprintf - not declared in SunOS 4 -# sys_errlist, sys_nerr - not declared in SunOS 4 # # optarg should be in unistd.h and the rest in stdio.h, both of which are # in the autoconf default includes. @@ -2227,10 +2200,7 @@ AC_CHECK_HEADERS(machine/hal_sysinfo.h,,, # sys_errlist and sys_nerr are supposed to be in on SunOS according # to the man page (but aren't), in glibc they're in stdio.h. # -AC_CHECK_DECLS([fgetc, fscanf, optarg, ungetc, vfprintf]) -AC_CHECK_DECLS([sys_errlist, sys_nerr], , , -[#include -#include ]) +AC_CHECK_DECLS([ungetc]) AC_TYPE_SIGNAL