⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 configure.ac

📁 math library from gnu
💻 AC
📖 第 1 页 / 共 2 页
字号:
dnl Process this file with autoconf to produce a configure script.AC_INIT([gsl],[1.12])AC_CONFIG_SRCDIR(gsl_math.h)AM_INIT_AUTOMAKE([gnu no-dependencies])AC_CONFIG_HEADERS([config.h])AM_MAINTAINER_MODEdnl Library versioning (current:revision:age)dnl See the libtool manual for an explanation of the numbersdnldnl gsl-1.0    libgsl 0:0:0  libgslcblas 0:0:0dnl gsl-1.1    libgsl 1:0:1  libgslcblas 0:0:0dnl gsl-1.1.1  libgsl 2:0:2  libgslcblas 0:0:0dnl gsl-1.2    libgsl 3:0:3  libgslcblas 0:0:0dnl gsl-1.3    libgsl 4:0:4  libgslcblas 0:0:0dnl gsl-1.4    libgsl 5:0:5  libgslcblas 0:0:0dnl gsl-1.5    libgsl 6:0:6  libgslcblas 0:0:0dnl gsl-1.6    libgsl 7:0:7  libgslcblas 0:0:0dnl gsl-1.7    libgsl 8:0:8  libgslcblas 0:0:0dnl gsl-1.8    libgsl 9:0:9  libgslcblas 0:0:0dnl gsl-1.9    libgsl 10:0:10 libgslcblas 0:0:0 dnl gsl-1.10   libgsl 10:0:10 (*) libgslcblas 0:0:0 dnl gsl-1.11   libgsl 12:0:12  libgslcblas 0:0:0 dnl gsl-1.12   libgsl 13:0:13  libgslcblas 0:0:0 dnl dnl (*) There was an error on this release.  Firstly, the versioningdnl numbers were not updated.  Secondly, 2 functions were removed, butdnl the age not reset--this should have been 11:0:0.  However thesednl functions were not documented and are regarded as internal, so wednl will assume 11:0:11.dnldnl How to update library version numberdnl ====================================dnl dnl C: increment if the interface has additions, changes, removals.dnldnl R: increment any time the source changes; set to 0 if youdnl incremented CURRENTdnldnl A: increment if any interfaces have been added; set to 0 if anydnl interfaces have been removed. removal has precedence over adding,dnl so set to 0 if both happened.dnlGSL_CURRENT=13GSL_REVISION=0GSL_AGE=13dnlCBLAS_CURRENT=0CBLAS_REVISION=0CBLAS_AGE=0GSL_LT_VERSION="${GSL_CURRENT}:${GSL_REVISION}:${GSL_AGE}"AC_SUBST(GSL_LT_VERSION)GSL_LT_CBLAS_VERSION="${CBLAS_CURRENT}:${CBLAS_REVISION}:${CBLAS_AGE}"AC_SUBST(GSL_LT_CBLAS_VERSION)case "$VERSION" in    *+)        ;;    *)        AC_DEFINE(RELEASED,[],[Defined if this is an official release])        ;;esacdnl things required by automakednl AC_ARG_PROGRAMAC_PROG_MAKE_SETdnl Check for which system.AC_CANONICAL_HOSTdnl Checks for programs.AC_LANG(C)AC_PROG_CCAC_PROG_CPPAC_PROG_INSTALLAC_PROG_LN_SAC_PROG_LIBTOOLdnl Check compiler featuresAC_TYPE_SIZE_Tdnl AC_C_CONSTAC_C_VOLATILEAC_C_INLINEAC_C_CHAR_UNSIGNEDGSL_CFLAGS="-I$includedir"GSL_LIBS="-L$libdir -lgsl"AC_SUBST(GSL_CFLAGS)AC_SUBST(GSL_LIBS)dnl Check for "extern inline", using a modified version of the testdnl for AC_C_INLINE from acspecific.mtdnlAC_CACHE_CHECK([for GNU-style extern inline], ac_cv_c_extern_inline,[ac_cv_c_extern_inline=noAC_COMPILE_IFELSE([AC_LANG_PROGRAM([[extern $ac_cv_c_inline double foo(double x);extern $ac_cv_c_inline double foo(double x) { return x + 1.0 ; } ;double foo (double x) { return x + 1.0 ; };]], [[  foo(1.0)  ]])],[ac_cv_c_extern_inline="yes"],[])])if test "$ac_cv_c_extern_inline" != no ; then   AC_DEFINE(HAVE_INLINE,[],[Define if you have inline])else   AC_CACHE_CHECK([for C99-style inline], ac_cv_c_c99inline,   [ac_cv_c_c99inline=no   AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#ifdef __GNUC_STDC_INLINE__   inline double foo(double x);   inline double foo(double x) { return x + 1.0 ; };   #endif]],    [[  foo(1.0)  ]])],[ac_cv_c_c99inline="yes"],[])   ])   if test "$ac_cv_c_c99inline" != no ; then      AC_DEFINE(HAVE_INLINE,[],[Define if you have inline])   fifidnl Checks for header files.AC_CHECK_HEADERS(ieeefp.h)dnl Checks for typedefs, structures, and compiler characteristics.case "$host_os" in     *mingw*)	MINGW=true	;;esacAM_CONDITIONAL(MINGW32_HOST, test "$MINGW" = "true")dnl Checks for library functions.dnl AC_FUNC_ALLOCAAC_FUNC_VPRINTFdnl strcasecmp, strerror, xmalloc, xrealloc, probably others should be added.dnl removed strerror from this list, it's hardcoded in the err/ directorydnl Any functions which appear in this list of functions should be provideddnl in the utils/ directorydnl xmalloc is not used, removed (bjg)AC_REPLACE_FUNCS(memcpy memmove strdup strtol strtoul)AC_CACHE_CHECK(for EXIT_SUCCESS and EXIT_FAILURE,ac_cv_decl_exit_success_and_failure,AC_EGREP_CPP(yes,[#include <stdlib.h>#ifdef EXIT_SUCCESSyes#endif], ac_cv_decl_exit_success_and_failure=yes,ac_cv_decl_exit_success_and_failure=no))if test "$ac_cv_decl_exit_success_and_failure" = yes ; then  AC_DEFINE(HAVE_EXIT_SUCCESS_AND_FAILURE,1,[Defined if you have ansi EXIT_SUCCESS and EXIT_FAILURE in stdlib.h])fi ;dnl Use alternate libm if specified by userif test "x$LIBS" = "x" ; then  AC_CHECK_LIB(m, cos)fidnl Remember to put a definition in acconfig.h for each of theseAC_CHECK_DECLS(feenableexcept,,,[#define _GNU_SOURCE 1#include <fenv.h>]) AC_CHECK_DECLS(fesettrapenable,,,[#define _GNU_SOURCE 1#include <fenv.h>]) AC_CHECK_DECLS(hypot,,,[#include <math.h>]) AC_CHECK_DECLS(expm1,,,[#include <math.h>])AC_CHECK_DECLS(acosh,,,[#include <math.h>])AC_CHECK_DECLS(asinh,,,[#include <math.h>])AC_CHECK_DECLS(atanh,,,[#include <math.h>])AC_CHECK_DECLS(ldexp,,,[#include <math.h>])AC_CHECK_DECLS(frexp,,,[#include <math.h>])AC_CHECK_DECLS(isinf,,,[#include <math.h>])AC_CHECK_DECLS(isfinite,,,[#include <math.h>])AC_CHECK_DECLS(finite,,,[#include <math.h>#if HAVE_IEEEFP_H#include <ieeefp.h>#endif])AC_CHECK_DECLS(isnan,,,[#include <math.h>])dnl OpenBSD has a broken implementation of log1p.case "$host" in    *-*-*openbsd*)       AC_MSG_RESULT([avoiding OpenBSD system log1p - using gsl version])       ;;    *)        AC_CHECK_DECLS(log1p,,,[#include <math.h>])       ;;esacAC_CACHE_CHECK([for long double stdio], ac_cv_func_printf_longdouble,[AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdlib.h>#include <stdio.h>int main (void) { const char * s = "5678.25"; long double x = 1.234 ; fprintf(stderr,"%Lg\n",x) ; sscanf(s, "%Lg", &x);if (x == 5678.25) {exit (0);} else {exit(1); };}]])],[ac_cv_func_printf_longdouble="yes"],[ac_cv_func_printf_longdouble="no"],[ac_cv_func_printf_longdouble="no"])])if test "$ac_cv_func_printf_longdouble" != no; then  AC_DEFINE(HAVE_PRINTF_LONGDOUBLE,1,[Define this if printf can handle %Lf for long double])fiAC_CACHE_CHECK([for extended floating point registers],ac_cv_c_extended_fp,[case "$host" in    *sparc*-*-*)        ac_cv_c_extended_fp=no        ;;         *powerpc*-*-*)        ac_cv_c_extended_fp=no        ;;          *hppa*-*-*)        ac_cv_c_extended_fp=no        ;;          *alpha*-*-*)        ac_cv_c_extended_fp=no        ;;          *68k*-*-*)        ac_cv_c_extended_fp=yes        ;;          *86-*-*)        ac_cv_c_extended_fp=yes        ;;          x86_64-*-*)        ac_cv_c_extended_fp=yes        ;;          *)         ac_cv_c_extended_fp=unknown        ;;esac])if test $ac_cv_c_extended_fp != "no" ; then    AC_DEFINE(HAVE_EXTENDED_PRECISION_REGISTERS,1,[Defined on architectures with excess floating-point precision])fiAC_CACHE_CHECK([for IEEE arithmetic interface type], ac_cv_c_ieee_interface,[case "$host" in    sparc-*-linux*)         ac_cv_c_ieee_interface=gnusparc        ;;    m68k-*-linux*)         ac_cv_c_ieee_interface=gnum68k        ;;    powerpc-*-linux*)         ac_cv_c_ieee_interface=gnuppc        ;;    *86-*-gnu | *86_64-*-gnu | *86-*-linux* | *86_64-*-linux*)         ac_cv_c_ieee_interface=gnux86        ;;    *-*-sunos4*)         ac_cv_c_ieee_interface=sunos4        ;;    *-*-solaris*)         ac_cv_c_ieee_interface=solaris        ;;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -