# $Id$ AC_INIT(libpipi, 0.0) AC_CONFIG_AUX_DIR(.auto) AM_INIT_AUTOMAKE([no-define tar-ustar]) AM_MAINTAINER_MODE AM_CONFIG_HEADER(config.h) AM_PROG_CC_C_O AC_PROG_CPP LT_MAJOR="0" LT_MINOR="99" LT_MICRO="13" AC_SUBST(LT_MAJOR) AC_SUBST(LT_MINOR) AC_SUBST(LT_MICRO) LT_VERSION="$LT_MAJOR:$LT_MINOR:$LT_MICRO" AC_SUBST(LT_VERSION) AC_LIBTOOL_WIN32_DLL AM_PROG_LIBTOOL AC_LIBTOOL_CXX AC_C_CONST AC_C_INLINE AC_ARG_ENABLE(imlib2, [ --enable-imlib2 Imlib2 graphics support (autodetected)]) AC_CHECK_HEADERS(stdio.h stdarg.h inttypes.h endian.h stdint.h) # Optimizations CFLAGS="${CFLAGS} -g -O2 -fno-strength-reduce -fomit-frame-pointer" # 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" # Use Imlib2? if test "${enable_imlib2}" != "no"; then IMLIB2="no" PKG_CHECK_MODULES(IMLIB2, imlib2, [IMLIB2="yes"], [AC_MSG_RESULT(no)]) if test "${IMLIB2}" != "no"; then AC_DEFINE(USE_IMLIB2, 1, Define to 1 to use Imlib2) fi fi AC_CONFIG_FILES([ Makefile pipi/Makefile genethumb/Makefile ]) AC_CONFIG_FILES([ pipi/pipi.pc ]) AC_OUTPUT