-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
39 lines (31 loc) · 1.03 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
AC_PREREQ([2.59])
AC_INIT([WifiPortal], [1.0], [hectorta1989@outlook.com])
AM_INIT_AUTOMAKE([subdir-objects])
AC_CONFIG_HEADER([config.h])
AC_CONFIG_FILES([Makefile])
AM_INIT_AUTOMAKE
AC_PROG_CC
AM_PROG_CC_C_O
AC_LANG([C])
#PKG_CHECK_MODULES([libjson_c], [json-c])
AM_CONDITIONAL([WITH_SSL], [false])
AC_ARG_WITH([ssl],
[AS_HELP_STRING([--with-ssl],
[enable ssl support for wai @<:@default=check@:>@])],
[],
[with_ssl=check])
SSL=
AS_IF([test "x$with_ssl" != xno],
[AC_CHECK_LIB([ssl], [SSL_CTX_new],
[AC_SUBST([LIBSSL], ["-lssl -lcrypto"])
AC_DEFINE([HAVE_LIBSSL], [1],
[Define if you have libssl])
]
AM_CONDITIONAL([WITH_SSL], [true]),
[if test "x$with_ssl" != xcheck; then
AC_MSG_FAILURE(
[--with-ssl was given, but test for ssl failed])
fi
])])
AC_SEARCH_LIBS([pthread_mutex_lock], [pthread])
AC_OUTPUT