Browse Source

* Added a better math library detection

git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3016 92316355-f0b4-4df1-b90c-862c8a59935f
remotes/tiles
jylam 16 years ago
parent
commit
4e3d941147
2 changed files with 7 additions and 1 deletions
  1. +5
    -0
      configure.ac
  2. +2
    -1
      src/Makefile.am

+ 5
- 0
configure.ac View File

@@ -87,6 +87,9 @@ CFLAGS="${CFLAGS} -g -O2 -fno-strength-reduce -fomit-frame-pointer"
# Code qui fait des warnings == code de porc == deux baffes dans ta gueule # Code qui fait des warnings == code de porc == deux baffes dans ta gueule
CFLAGS="${CFLAGS} -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare" CFLAGS="${CFLAGS} -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare"



AC_CHECK_LIB(m, sin, MATH_LIBS="${MATH_LIBS} -lm")

# Use DevIL? # Use DevIL?
#AC_CHECK_HEADERS(IL/il.h, #AC_CHECK_HEADERS(IL/il.h,
# [ac_cv_my_have_il="yes"], # [ac_cv_my_have_il="yes"],
@@ -169,6 +172,8 @@ if test "${ac_cv_my_have_il}" = "no" -a "${ac_cv_my_have_ole}" = "no" -a "${ac_c
AC_MSG_ERROR([[cannot find DevIL, OLE, SDL_Image, Imlib2, Cocoa, or OpenCV, please install one of them]]) AC_MSG_ERROR([[cannot find DevIL, OLE, SDL_Image, Imlib2, Cocoa, or OpenCV, please install one of them]])
fi fi


AC_SUBST(MATH_LIBS)

# Build pipi-sharp? # Build pipi-sharp?
AC_PATH_PROG(GMCS, gmcs, no) AC_PATH_PROG(GMCS, gmcs, no)
AM_CONDITIONAL(USE_CSHARP, test "${GMCS}" != "no") AM_CONDITIONAL(USE_CSHARP, test "${GMCS}" != "no")


+ 2
- 1
src/Makefile.am View File

@@ -5,5 +5,6 @@ AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/pipi -I../pipi
bin_PROGRAMS = pipi bin_PROGRAMS = pipi


pipi_SOURCES = pipi.c $(GETOPT) pipi_SOURCES = pipi.c $(GETOPT)
pipi_LDADD = ../pipi/libpipi.la $(GETOPT_LIBS)
pipi_LDADD = ../pipi/libpipi.la $(GETOPT_LIBS) @MATH_LIBS@




Loading…
Cancel
Save