Line | |
---|
1 | # $Id$ |
---|
2 | |
---|
3 | AC_INIT(libpipi, 0.0) |
---|
4 | AC_CONFIG_AUX_DIR(.auto) |
---|
5 | AM_INIT_AUTOMAKE([no-define tar-ustar]) |
---|
6 | AM_MAINTAINER_MODE |
---|
7 | |
---|
8 | AM_CONFIG_HEADER(config.h) |
---|
9 | |
---|
10 | AM_PROG_CC_C_O |
---|
11 | AC_PROG_CPP |
---|
12 | |
---|
13 | LT_MAJOR="0" |
---|
14 | LT_MINOR="99" |
---|
15 | LT_MICRO="13" |
---|
16 | AC_SUBST(LT_MAJOR) |
---|
17 | AC_SUBST(LT_MINOR) |
---|
18 | AC_SUBST(LT_MICRO) |
---|
19 | LT_VERSION="$LT_MAJOR:$LT_MINOR:$LT_MICRO" |
---|
20 | AC_SUBST(LT_VERSION) |
---|
21 | AC_LIBTOOL_WIN32_DLL |
---|
22 | AM_PROG_LIBTOOL |
---|
23 | AC_LIBTOOL_CXX |
---|
24 | |
---|
25 | AC_C_CONST |
---|
26 | AC_C_INLINE |
---|
27 | |
---|
28 | AC_ARG_ENABLE(imlib2, |
---|
29 | [ --enable-imlib2 Imlib2 graphics support (autodetected)]) |
---|
30 | |
---|
31 | AC_CHECK_HEADERS(stdio.h stdarg.h inttypes.h endian.h stdint.h) |
---|
32 | |
---|
33 | # Optimizations |
---|
34 | CFLAGS="${CFLAGS} -g -O2 -fno-strength-reduce -fomit-frame-pointer" |
---|
35 | # Code qui fait des warnings == code de porc == deux baffes dans ta gueule |
---|
36 | CFLAGS="${CFLAGS} -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare" |
---|
37 | |
---|
38 | # Use Imlib2? |
---|
39 | if test "${enable_imlib2}" != "no"; then |
---|
40 | IMLIB2="no" |
---|
41 | PKG_CHECK_MODULES(IMLIB2, imlib2, [IMLIB2="yes"], [AC_MSG_RESULT(no)]) |
---|
42 | if test "${IMLIB2}" != "no"; then |
---|
43 | AC_DEFINE(USE_IMLIB2, 1, Define to 1 to use Imlib2) |
---|
44 | fi |
---|
45 | fi |
---|
46 | |
---|
47 | AC_CONFIG_FILES([ |
---|
48 | Makefile |
---|
49 | pipi/Makefile |
---|
50 | genethumb/Makefile |
---|
51 | ]) |
---|
52 | AC_CONFIG_FILES([ |
---|
53 | pipi/pipi.pc |
---|
54 | ]) |
---|
55 | |
---|
56 | AC_OUTPUT |
---|
57 | |
---|
Note: See
TracBrowser
for help on using the repository browser.