Mercurial > pidgin-twitter
annotate configure.in @ 116:dd27aeead474
fix reversed logic
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Wed, 16 Jul 2008 19:33:45 +0900 |
parents | 7d0dd0e1dbd0 |
children | bac987852e66 |
rev | line source |
---|---|
0 | 1 # -*- Autoconf -*- |
2 # Process this file with autoconf to produce a configure script. | |
3 | |
4 AC_PREREQ(2.59) | |
57
8e1c8afac4dd
- adaptation for $prefix. now configure go along with fakeroot etc.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
3
diff
changeset
|
5 AC_INIT(pidgin-twitter, 0.6.0, yaz@honeyplanet.jp) |
0 | 6 AC_CONFIG_SRCDIR([pidgin-twitter.c]) |
7 | |
8 # Checks for programs. | |
9 AC_PROG_CC | |
10 | |
11 # Checks for libraries. | |
1 | 12 PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.14.0], , [ |
0 | 13 AC_MSG_RESULT(no) |
14 AC_MSG_ERROR([ | |
15 | |
1 | 16 You must have glib >= 2.14.0 development headers installed to build. |
0 | 17 ])]) |
1 | 18 |
19 GLIB_CFLAGS=`pkg-config --cflags glib-2.0 2> /dev/null` | |
20 GLIB_LIBS=`pkg-config --libs glib-2.0 2> /dev/null` | |
21 GLIB_LIB_DIR=`pkg-config --variable=lib_dir glib-2.0 2> /dev/null` | |
22 AC_SUBST(GLIB_CFLAGS) | |
23 AC_SUBST(GLIB_LIBS) | |
24 AC_SUBST(GLIB_LIB_DIR) | |
0 | 25 |
26 PKG_CHECK_MODULES(PIDGIN, [pidgin >= 2.0.0], , [ | |
27 AC_MSG_RESULT(no) | |
28 AC_MSG_ERROR([ | |
29 | |
30 You must have pidgin >= 2.0.0 development headers installed to build. | |
31 ])]) | |
32 PIDGIN_CFLAGS=`pkg-config --cflags pidgin 2> /dev/null` | |
33 PIDGIN_LIBS=`pkg-config --libs pidgin 2> /dev/null` | |
57
8e1c8afac4dd
- adaptation for $prefix. now configure go along with fakeroot etc.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
3
diff
changeset
|
34 if test x"$prefix" = x"NONE" ; then |
8e1c8afac4dd
- adaptation for $prefix. now configure go along with fakeroot etc.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
3
diff
changeset
|
35 PIDGIN_PREFIX=`pkg-config --variable=prefix pidgin 2> /dev/null` |
8e1c8afac4dd
- adaptation for $prefix. now configure go along with fakeroot etc.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
3
diff
changeset
|
36 else |
8e1c8afac4dd
- adaptation for $prefix. now configure go along with fakeroot etc.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
3
diff
changeset
|
37 PIDGIN_PREFIX=$prefix |
8e1c8afac4dd
- adaptation for $prefix. now configure go along with fakeroot etc.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
3
diff
changeset
|
38 fi |
0 | 39 AC_SUBST(PIDGIN_CFLAGS) |
40 AC_SUBST(PIDGIN_LIBS) | |
57
8e1c8afac4dd
- adaptation for $prefix. now configure go along with fakeroot etc.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
3
diff
changeset
|
41 AC_SUBST(PIDGIN_PREFIX) |
0 | 42 |
115
7d0dd0e1dbd0
very preliminary twitter API get status feature.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
57
diff
changeset
|
43 PKG_CHECK_MODULES(GLIB, [libxml-2.0 >= 2.6.27], , [ |
7d0dd0e1dbd0
very preliminary twitter API get status feature.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
57
diff
changeset
|
44 AC_MSG_RESULT(no) |
7d0dd0e1dbd0
very preliminary twitter API get status feature.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
57
diff
changeset
|
45 AC_MSG_ERROR([ |
7d0dd0e1dbd0
very preliminary twitter API get status feature.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
57
diff
changeset
|
46 |
7d0dd0e1dbd0
very preliminary twitter API get status feature.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
57
diff
changeset
|
47 You must have libxml2 >= 2.6.27 installed to build. |
7d0dd0e1dbd0
very preliminary twitter API get status feature.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
57
diff
changeset
|
48 ])]) |
7d0dd0e1dbd0
very preliminary twitter API get status feature.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
57
diff
changeset
|
49 |
7d0dd0e1dbd0
very preliminary twitter API get status feature.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
57
diff
changeset
|
50 XML_CFLAGS=`pkg-config --cflags libxml-2.0 2> /dev/null` |
7d0dd0e1dbd0
very preliminary twitter API get status feature.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
57
diff
changeset
|
51 XML_LIBS=`pkg-config --libs libxml-2.0 2> /dev/null` |
7d0dd0e1dbd0
very preliminary twitter API get status feature.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
57
diff
changeset
|
52 XML_LIB_DIR=`pkg-config --variable=lib_dir libxml-2.0 2> /dev/null` |
7d0dd0e1dbd0
very preliminary twitter API get status feature.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
57
diff
changeset
|
53 AC_SUBST(XML_CFLAGS) |
7d0dd0e1dbd0
very preliminary twitter API get status feature.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
57
diff
changeset
|
54 AC_SUBST(XML_LIBS) |
7d0dd0e1dbd0
very preliminary twitter API get status feature.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
57
diff
changeset
|
55 AC_SUBST(XML_LIB_DIR) |
7d0dd0e1dbd0
very preliminary twitter API get status feature.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
57
diff
changeset
|
56 |
0 | 57 # Checks for header files. |
58 AC_HEADER_STDC | |
59 AC_CHECK_HEADERS([stdlib.h string.h]) | |
60 | |
61 # Checks for typedefs, structures, and compiler characteristics. | |
62 AC_C_CONST | |
63 | |
64 # Checks for library functions. | |
65 AC_CHECK_FUNCS([strstr]) | |
66 | |
67 #AC_CONFIG_FILES([Makefile]) | |
68 AC_OUTPUT(Makefile) |