comparison configure.ac @ 9905:3547fd2af609

[gaim-migrate @ 10797] (15:09:36) shx: I've got a doubt... what am I considered in Gaim? a crazy patch writer? (15:10:06) LSchiere: of course (15:10:09) LSchiere: are you not on the list? (15:10:23) LSchiere: mmm. you aren't. that needs to be fixed committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Sat, 28 Aug 2004 19:09:38 +0000
parents 0d0e60f5964a
children f8e395a054e2
comparison
equal deleted inserted replaced
9904:ec60a5bee587 9905:3547fd2af609
42 42
43 dnl Checks for header files. 43 dnl Checks for header files.
44 AC_HEADER_STDC 44 AC_HEADER_STDC
45 AC_HEADER_SYS_WAIT 45 AC_HEADER_SYS_WAIT
46 AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h locale.h signal.h stdint.h) 46 AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h locale.h signal.h stdint.h)
47
48 dnl Check for SILC includes
49 AC_ARG_WITH(silc-includes, [ --with-silc-includes=DIR
50 Compile the SILC plugin against includes in DIR ], [ac_silc_includes="$withval"], [ac_silc_includes="no"])
51 SILC_INCLUDES=""
52 if test "$ac_silc_includes" != "no"; then
53 SILC_INCLUDES="-I$ac_silc_includes"
54 fi
55 CPPFLAGS_save="$CPPFLAGS"
56 CPPFLAGS="$CPPFLAGS $SILC_INCLUDES"
57 AC_CHECK_HEADER(silcincludes.h, [silcincludes=yes])
58 CPPFLAGS="$CPPFLAGS_save"
59 AC_SUBST(SILC_INCLUDES)
60 47
61 dnl Checks for typedefs, structures, and compiler characteristics. 48 dnl Checks for typedefs, structures, and compiler characteristics.
62 AC_C_CONST 49 AC_C_CONST
63 AC_STRUCT_TM 50 AC_STRUCT_TM
64 51
107 AC_MSG_RESULT(int) 94 AC_MSG_RESULT(int)
108 AC_DEFINE(socklen_t, int, [socklen_t size]) 95 AC_DEFINE(socklen_t, int, [socklen_t size])
109 ]) 96 ])
110 ]) 97 ])
111 98
112 dnl check for SILC client libraries 99 dnl Check for SILC client includes and libraries
100 AC_ARG_WITH(silc-includes, [ --with-silc-includes=DIR
101 Compile the SILC plugin against includes in DIR ], [ac_silc_includes="$withval"], [ac_silc_includes="no"])
113 AC_ARG_WITH(silc-libs, [ --with-silc-libs=DIR Compile the SILC plugin against the SILC libs in DIR], [ac_silc_libs="$withval"], [ac_silc_libs="no"]) 102 AC_ARG_WITH(silc-libs, [ --with-silc-libs=DIR Compile the SILC plugin against the SILC libs in DIR], [ac_silc_libs="$withval"], [ac_silc_libs="no"])
103 SILC_CFLAGS=""
114 SILC_LIBS="" 104 SILC_LIBS=""
115 if test "$ac_silc_libs" != "no"; then 105 if test -n "$with_silc_includes" || test -n "$with_silc_libs"; then
116 SILC_LIBS="-L$ac_silc_libs" 106 silc_manual_check="yes"
117 fi 107 else
118 SILC_LIBS="$SILC_LIBS -lsilc -lsilcclient -lpthread -ldl" 108 silc_manual_check="no"
119 AC_CHECK_LIB(silcclient, silc_client_init, [silcclient=yes], , $SILC_LIBS) 109 fi
110 if test "x$silc_manual_check" = "xno"; then
111 PKG_CHECK_MODULES(SILC, silc, [
112 have_silc="yes"
113 silcincludes="yes"
114 silcclient="yes"
115 ], have_silc="no")
116 else
117 if test "$ac_silc_includes" != "no"; then
118 SILC_CFLAGS="-I$ac_silc_includes"
119 fi
120 CPPFLAGS_save="$CPPFLAGS"
121 CPPFLAGS="$CPPFLAGS $SILC_CFLAGS"
122 AC_CHECK_HEADER(silcincludes.h, [silcincludes=yes])
123 CPPFLAGS="$CPPFLAGS_save"
124
125 if test "$ac_silc_libs" != "no"; then
126 SILC_LIBS="-L$ac_silc_libs"
127 fi
128 SILC_LIBS="$SILC_LIBS -lsilc -lsilcclient -lpthread -ldl"
129 AC_CHECK_LIB(silcclient, silc_client_init, [silcclient=yes], , $SILC_LIBS)
130 fi
120 AC_SUBST(SILC_LIBS) 131 AC_SUBST(SILC_LIBS)
132 AC_SUBST(SILC_CFLAGS)
121 133
122 AC_ARG_ENABLE(distrib,,,enable_distrib=no) 134 AC_ARG_ENABLE(distrib,,,enable_distrib=no)
123 AM_CONDITIONAL(DISTRIB, test "x$enable_distrib" = "xyes") 135 AM_CONDITIONAL(DISTRIB, test "x$enable_distrib" = "xyes")
124 AC_ARG_ENABLE(prpls, [ --disable-prpls don't build dynamic protocol plugins],,enable_prpls=yes) 136 AC_ARG_ENABLE(prpls, [ --disable-prpls don't build dynamic protocol plugins],,enable_prpls=yes)
125 DYNAMIC_PRPLS=all 137 DYNAMIC_PRPLS=all