configure.ac

changeset 675
825210ba2707
parent 673
0c084b876a2c
child 691
cfe13185fd02
equal deleted inserted replaced
674:6cabc02f4c8d 675:825210ba2707
1 dnl Process this file with autoconf to produce a configure script. 1 dnl Process this file with autoconf to produce a configure script.
2 2
3 AC_INIT(thermferm/thermferm.c) 3 AC_INIT(thermferm/thermferm.c)
4 AM_CONFIG_HEADER(config.h) 4 AM_CONFIG_HEADER(config.h)
5 SUBDIRS="thermferm brewpanel tools" 5 SUBDIRS="thermferm brewpanel tools www"
6 AC_SUBST(SUBDIRS) 6 AC_SUBST(SUBDIRS)
7 7
8 dnl General settings 8 dnl General settings
9 dnl After changeing the version number, run autoconf! 9 dnl After changeing the version number, run autoconf!
10 PACKAGE="mbsePi-apps" 10 PACKAGE="mbsePi-apps"
57 LIBS="$LIBS -ljson-c" 57 LIBS="$LIBS -ljson-c"
58 AC_CHECK_HEADERS(json-c/json.h) 58 AC_CHECK_HEADERS(json-c/json.h)
59 else 59 else
60 AC_MSG_ERROR(json-c not found) 60 AC_MSG_ERROR(json-c not found)
61 fi 61 fi
62
63 AC_CHECK_LIB(websockets,lws_create_context,result=yes,result=no)
64 if test "$result" = "yes"; then
65 LIBS="$LIBS -lwebsockets"
66 AC_CHECK_HEADERS(libwebsockets.h)
67 else
68 AC_MSG_ERROR(libwebsockets not found)
69 fi
70
62 71
63 # 72 #
64 # Additional commandline switches 73 # Additional commandline switches
65 # 74 #
66 AC_ARG_ENABLE(experiment, [ --enable-experiment Compile experimental code], [ experiment=$enableval ], [ experiment=no ]) 75 AC_ARG_ENABLE(experiment, [ --enable-experiment Compile experimental code], [ experiment=$enableval ], [ experiment=no ])
154 AC_SUBST(SDL_LIBS) 163 AC_SUBST(SDL_LIBS)
155 164
156 165
157 AC_OUTPUT( 166 AC_OUTPUT(
158 Makefile.global 167 Makefile.global
168 www/version.php
159 ) 169 )
160 170
161 AC_MSG_RESULT([ 171 AC_MSG_RESULT([
162 -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=- 172 -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-
163 173

mercurial