configure.ac

changeset 2244
7231c3f80615
parent 2238
5c09203ada0f
child 2330
024bcf19f46b
equal deleted inserted replaced
2243:b729698ee186 2244:7231c3f80615
57 for i in $STATIC_PRPLS ; do 57 for i in $STATIC_PRPLS ; do
58 STATIC_LINK_LIBS="$STATIC_LINK_LIBS protocols/$i/lib$i.a" 58 STATIC_LINK_LIBS="$STATIC_LINK_LIBS protocols/$i/lib$i.a"
59 extern_init="$extern_init extern void ${i}_init(struct prpl *);" 59 extern_init="$extern_init extern void ${i}_init(struct prpl *);"
60 load_proto="$load_proto load_protocol(${i}_init, sizeof(struct prpl));" 60 load_proto="$load_proto load_protocol(${i}_init, sizeof(struct prpl));"
61 case $i in 61 case $i in
62 icq) AM_CONDITIONAL(STATIC_ICQ, true) ;; 62 icq) static_icq=yes ;;
63 irc) AM_CONDITIONAL(STATIC_IRC, true) ;; 63 irc) static_irc=yes ;;
64 jabber) AM_CONDITIONAL(STATIC_JABBER, true) ;; 64 jabber) static_jabber=yes ;;
65 msn) AM_CONDITIONAL(STATIC_MSN, true) ;; 65 msn) static_msn=yes ;;
66 napster) AM_CONDITIONAL(STATIC_NAPSTER, true) ;; 66 napster) static_napster=yes ;;
67 oscar) AM_CONDITIONAL(STATIC_OSCAR, true) ;; 67 oscar) static_oscar=yes ;;
68 toc) AM_CONDITIONAL(STATIC_TOC, true) ;; 68 toc) static_toc=yes ;;
69 yahoo) AM_CONDITIONAL(STATIC_YAHOO, true) ;; 69 yahoo) static_yahoo=yes ;;
70 zephyr) AM_CONDITIONAL(STATIC_ZEPHYR, true) ;; 70 zephyr) static_zephyr=yes ;;
71 *) echo "Invalid static protocol $i!!" ; exit ;; 71 *) echo "Invalid static protocol $i!!" ; exit ;;
72 esac 72 esac
73 done 73 done
74 AM_CONDITIONAL(STATIC_ICQ, test "x$static_icq" = "xyes")
75 AM_CONDITIONAL(STATIC_IRC, test "x$static_irc" = "xyes")
76 AM_CONDITIONAL(STATIC_JABBER, test "x$static_jabber" = "xyes")
77 AM_CONDITIONAL(STATIC_MSN, test "x$static_msn" = "xyes")
78 AM_CONDITIONAL(STATIC_NAPSTER, test "x$static_napster" = "xyes")
79 AM_CONDITIONAL(STATIC_OSCAR, test "x$static_oscar" = "xyes")
80 AM_CONDITIONAL(STATIC_TOC, test "x$static_toc" = "xyes")
81 AM_CONDITIONAL(STATIC_YAHOO, test "x$static_yahoo" = "xyes")
82 AM_CONDITIONAL(STATIC_ZEPHYR, test "x$static_zephyr" = "xyes")
74 AC_SUBST(STATIC_LINK_LIBS) 83 AC_SUBST(STATIC_LINK_LIBS)
75 AC_DEFINE_UNQUOTED(STATIC_PROTO_INIT, $extern_init void static_proto_init() { $load_proto }) 84 AC_DEFINE_UNQUOTED(STATIC_PROTO_INIT, $extern_init void static_proto_init() { $load_proto })
76 85
77 AC_ARG_ENABLE(gnome, [ --disable-gnome compile without Gnome bits],,enable_gnome=yes) 86 AC_ARG_ENABLE(gnome, [ --disable-gnome compile without Gnome bits],,enable_gnome=yes)
78 AC_ARG_ENABLE(pixbuf, [ --disable-pixbuf compile without GdkPixbuf (needed for Buddy Icons)],,enable_pixbuf=yes) 87 AC_ARG_ENABLE(pixbuf, [ --disable-pixbuf compile without GdkPixbuf (needed for Buddy Icons)],,enable_pixbuf=yes)

mercurial