pike.git / src / modules / Image / configure.in

version» Context lines:

pike.git/src/modules/Image/configure.in:1:   AC_INIT(image.c)   AC_CONFIG_HEADER(image_machine.h)      AC_SET_MAKE      AC_MODULE_INIT()      AC_FUNC_MMAP    - AC_CHECK_HEADERS(math.h sys/fcntl.h fcntl.h stdlib.h netinet/in.h winsock.h winsock2.h) + AC_CHECK_HEADERS(sys/fcntl.h fcntl.h netinet/in.h winsock.h winsock2.h)      AC_CHECK_LIB(m, abs, [], [])      # Do we have nasm?   AC_SUBST(ASSEMBLY_OBJECTS)   ASSEMBLY_OBJECTS=""   AC_MSG_CHECKING( [if nasm can be used] )      if test "x$with_machine_code" = "xno" ; then    AC_MSG_RESULT(no)
pike.git/src/modules/Image/configure.in:43:   fi      # Perform this test by hand since Sun cc fails otherwise.   AC_MSG_CHECKING([for fabs in -lm])   AC_CACHE_VAL(pike_cv_lib_m_fabs,   [    OLDLIBS="$LIBS"    LIBS="-lm $LIBS"    AC_TRY_LINK(    [ - #ifdef HAVE_MATH_H +    #include <math.h> - #else /* !HAVE_MATH_H */ -  double fabs(double); - #endif /* HAVE_MATH_H */ +     ],[    double foo = fabs(1.0);    ],[pike_cv_lib_m_fabs=yes],[pike_cv_lib_m_fabs=no])    LIBS="$OLDLIBS"   ])   if test "x$pike_cv_lib_m_fabs" = "xyes"; then    AC_MSG_RESULT(yes)    AC_DEFINE(HAVE_LIBM)    LIBS="-lm $LIBS"   else