26 AC_PROG_RANLIB |
26 AC_PROG_RANLIB |
27 dnl Try to find GNU install |
27 dnl Try to find GNU install |
28 AC_CHECK_PROG(INSTALL, ginstall, ginstall) |
28 AC_CHECK_PROG(INSTALL, ginstall, ginstall) |
29 AC_CHECK_PROG(INSTALL, install, install) |
29 AC_CHECK_PROG(INSTALL, install, install) |
30 AC_CHECK_PROG(TAR, tar, tar) |
30 AC_CHECK_PROG(TAR, tar, tar) |
|
31 |
31 |
32 |
32 # |
33 # |
33 # Libraries for mbsePi-apps |
34 # Libraries for mbsePi-apps |
34 # |
35 # |
35 AC_CHECK_LIB(mosquitto,mosquitto_lib_init,result=yes,result=no) |
36 AC_CHECK_LIB(mosquitto,mosquitto_lib_init,result=yes,result=no) |
89 CFLAGS="-O -g -Wall -Wshadow -Wwrite-strings -Wstrict-prototypes -Winline" |
90 CFLAGS="-O -g -Wall -Wshadow -Wwrite-strings -Wstrict-prototypes -Winline" |
90 else |
91 else |
91 CFLAGS="-g -O2 -fomit-frame-pointer -fno-strict-aliasing -Wall -Wshadow -Wwrite-strings -Wstrict-prototypes -Winline" |
92 CFLAGS="-g -O2 -fomit-frame-pointer -fno-strict-aliasing -Wall -Wshadow -Wwrite-strings -Wstrict-prototypes -Winline" |
92 fi |
93 fi |
93 LIBS="$LIBS -lm" |
94 LIBS="$LIBS -lm" |
|
95 |
|
96 AC_CHECK_DECLS(gettid,result=yes,result=no) |
|
97 if test "$result" = "yes"; then |
|
98 AC_DEFINE(HAVE_GETTID) |
|
99 fi |
94 |
100 |
95 |
101 |
96 AC_CHECK_LIB(xml2,xmlParseFile,result=yes,result=no) |
102 AC_CHECK_LIB(xml2,xmlParseFile,result=yes,result=no) |
97 if test "$result" = "yes"; then |
103 if test "$result" = "yes"; then |
98 LIBS="$LIBS -lxml2" |
104 LIBS="$LIBS -lxml2" |