Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/GAP/pkg/float/m4/   (Algebra von RWTH Aachen Version 4.15.1©)  Datei vom 26.7.2025 mit Größe 2 kB image not shown  

Quelle  ac_check_mpc.m4   Sprache: Shell

 
# check for mpc library
# sets MPC_CPPFLAGS, MPC_LDFLAGS and MPC_LIBS,
# and MPC=yes/no

AC_DEFUN([AC_CHECK_MPC],[
temp_LIBS="$LIBS"
temp_CPPFLAGS="$CPPFLAGS"
temp_LDFLAGS="$LDFLAGS"
MPC=unknown

AC_ARG_WITH([mpc],
 [AS_HELP_STRING([--with-mpc=<location>],
   [Location at which the MPC library was installed.
    If the argument is omitted, the library is assumed to be reachable
    under the standard search path (/usr, /usr/local,...).  Otherwise
    you must give the <path> to the directory which contains the
    library.])],
 [if test "$withval" = no; then
    MPC=no
  elif test "$withval" = yes; then
    MPC=yes
  else
    MPC=yes
    MPC_CPPFLAGS="-I$withval/include"
    MPC_LDFLAGS="-L$withval/lib"
  fi],
  [AS_IF([command -v brew >/dev/null 2>&1],[
    withval=$(brew --prefix)
    MPC_CPPFLAGS="-I$withval/include"
    MPC_LDFLAGS="-L$withval/lib"
  ])]
)

AC_ARG_WITH([mpc-include],
 [AS_HELP_STRING([--with-mpc-include=<location>],
   [Location at which the mpc include files were installed.])],
 [MPC=yes
  MPC_CPPFLAGS="-I$withval"]
)

AC_ARG_WITH([mpc-lib],
 [AS_HELP_STRING([--with-mpc-lib=<location>],
   [Location at which the mpc library files were installed.])],
 [MPC=yes
  MPC_LDFLAGS="-L$withval"]
)

if test "$MPC" != no; then

if test "$MPC" != unknown &&test "$MPFR" = no; then
    AC_MSG_ERROR([Cannot have MPC without having MPFR too.])
fi

MPC_LIBS="-lmpc"

AC_LANG_PUSH([C])
temp_status=true
CPPFLAGS="$CPPFLAGS $MPC_CPPFLAGS $MPFR_CPPFLAGS"
AC_CHECK_HEADER(mpc.h,,[temp_status=false],[#include <mpfr.h>])
LDFLAGS="$LDFLAGS $MPC_LDFLAGS $MPFR_LDFLAGS"
AC_CHECK_LIB(mpc,mpc_sqrt,,[temp_status=false])
AC_LANG_POP([C])

if test "$temp_status" = false; then
    if test "$MPC" = yes; then
        AC_MSG_ERROR([library mpc not found. Using --with-mpc, specify its location, or "no" to disable it.])
    else
        MPC=no
    fi
else
    MPC=yes
fi

fi

CPPFLAGS="$temp_CPPFLAGS"
LDFLAGS="$temp_LDFLAGS"
LIBS="$temp_LIBS"

if test "$MPC" != no; then
    AC_DEFINE([USE_MPC],1,[use MPC library])
fi
AC_SUBST(MPC_CPPFLAGS)
AC_SUBST(MPC_LDFLAGS)
AC_SUBST(MPC_LIBS)
AM_CONDITIONAL([WITH_MPC_IS_YES],[test x"$MPC" != xno])
])

91%


¤ Dauer der Verarbeitung: 0.1 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung ist noch experimentell.