1 | AC_INIT(art_misc.h) |
---|
2 | AM_CONFIG_HEADER(config.h) |
---|
3 | |
---|
4 | LIBART_MAJOR_VERSION=2 |
---|
5 | LIBART_MINOR_VERSION=3 |
---|
6 | LIBART_MICRO_VERSION=17 |
---|
7 | LIBART_VERSION=$LIBART_MAJOR_VERSION.$LIBART_MINOR_VERSION.$LIBART_MICRO_VERSION |
---|
8 | LIBART_VERSION_INFO=`expr $LIBART_MAJOR_VERSION + $LIBART_MINOR_VERSION`:$LIBART_MICRO_VERSION:$LIBART_MINOR_VERSION |
---|
9 | |
---|
10 | AC_SUBST(LIBART_MAJOR_VERSION) |
---|
11 | AC_SUBST(LIBART_MINOR_VERSION) |
---|
12 | AC_SUBST(LIBART_MICRO_VERSION) |
---|
13 | AC_SUBST(LIBART_VERSION) |
---|
14 | AC_SUBST(LIBART_VERSION_INFO) |
---|
15 | |
---|
16 | VERSION=$LIBART_VERSION |
---|
17 | |
---|
18 | AM_INIT_AUTOMAKE(libart_lgpl, $VERSION) |
---|
19 | |
---|
20 | AC_ARG_ENABLE(ansi, [ --enable-ansi turn on strict ansi [default=no]], |
---|
21 | , enable_ansi=no) |
---|
22 | |
---|
23 | AC_PROG_CC |
---|
24 | AC_PROG_CPP |
---|
25 | AC_LIBTOOL_WIN32_DLL |
---|
26 | AM_PROG_LIBTOOL |
---|
27 | |
---|
28 | AM_MAINTAINER_MODE |
---|
29 | |
---|
30 | AC_MSG_CHECKING([for Win32]) |
---|
31 | case "$host" in |
---|
32 | *-*-mingw*) |
---|
33 | os_win32=yes |
---|
34 | ;; |
---|
35 | *) |
---|
36 | os_win32=no |
---|
37 | ;; |
---|
38 | esac |
---|
39 | AC_MSG_RESULT([$os_win32]) |
---|
40 | AM_CONDITIONAL(OS_WIN32, test "$os_win32" = "yes") |
---|
41 | |
---|
42 | if test "$os_win32" = "yes"; then |
---|
43 | AC_CHECK_PROG(ms_librarian, lib.exe, yes, no) |
---|
44 | fi |
---|
45 | AM_CONDITIONAL(MS_LIB_AVAILABLE, test x$ms_librarian = xyes) |
---|
46 | |
---|
47 | changequote(,)dnl |
---|
48 | if test "x$GCC" = "xyes"; then |
---|
49 | case " $CFLAGS " in |
---|
50 | *[\ \ ]-Wall[\ \ ]*) ;; |
---|
51 | *) CFLAGS="$CFLAGS -Wall" ;; |
---|
52 | esac |
---|
53 | |
---|
54 | case " $CFLAGS " in |
---|
55 | *[\ \ ]-Wmissing-prototypes[\ \ ]*) ;; |
---|
56 | *) CFLAGS="$CFLAGS -Wmissing-prototypes" ;; |
---|
57 | esac |
---|
58 | |
---|
59 | if test "x$enable_ansi" = "xyes"; then |
---|
60 | case " $CFLAGS " in |
---|
61 | *[\ \ ]-ansi[\ \ ]*) ;; |
---|
62 | *) CFLAGS="$CFLAGS -ansi" ;; |
---|
63 | esac |
---|
64 | |
---|
65 | case " $CFLAGS " in |
---|
66 | *[\ \ ]-pedantic[\ \ ]*) ;; |
---|
67 | *) CFLAGS="$CFLAGS -pedantic" ;; |
---|
68 | esac |
---|
69 | fi |
---|
70 | fi |
---|
71 | changequote([,])dnl |
---|
72 | |
---|
73 | AC_FUNC_ALLOCA |
---|
74 | |
---|
75 | LIBART_LIBDIR='-L${libdir}' |
---|
76 | LIBART_INCLUDEDIR='-I${includedir}' |
---|
77 | LIBART_LIBS='-lart_lgpl' |
---|
78 | |
---|
79 | AC_SUBST(LIBART_LIBDIR) |
---|
80 | AC_SUBST(LIBART_INCLUDEDIR) |
---|
81 | AC_SUBST(LIBART_LIBS) |
---|
82 | |
---|
83 | AC_C_BIGENDIAN |
---|
84 | |
---|
85 | AC_OUTPUT([ |
---|
86 | libart-features.h |
---|
87 | Makefile |
---|
88 | libart-config |
---|
89 | libart-2.0.pc |
---|
90 | libart-2.0-uninstalled.pc |
---|
91 | libart-zip], [case "$CONFIG_FILES" in *libart-config*) chmod +x libart-config;; esac]) |
---|