]> arthur.barton.de Git - ngircd-alex.git/blobdiff - configure.ng
Update Xcode project for latest Xcode version (10.0)
[ngircd-alex.git] / configure.ng
index 5f85a4dd5913fdc66dc29e67b34b161ddb83d6f9..57ae8bb8e66d1aba58cb84ac0fd136c4b2558fe1 100644 (file)
@@ -154,15 +154,30 @@ AC_HEADER_TIME
 
 # Required header files
 AC_CHECK_HEADERS([ \
-       fcntl.h netdb.h netinet/in.h stdlib.h string.h \
-       strings.h sys/socket.h sys/time.h unistd.h \
+               fcntl.h \
+               netdb.h \
+               netinet/in.h \
+               stdlib.h \
+               string.h \
+               strings.h \
+               sys/socket.h \
+               sys/time.h \
+               sys/types.h \
+               unistd.h \
        ],,AC_MSG_ERROR([required C header missing!]))
 
 # Optional header files
 AC_CHECK_HEADERS_ONCE([ \
-       arpa/inet.h inttypes.h malloc.h netinet/in_systm.h netinet/ip.h \
-       stdbool.h stddef.h stdint.h varargs.h \
-       ])
+       arpa/inet.h \
+       inttypes.h \
+       malloc.h \
+       netinet/in_systm.h \
+       netinet/ip.h \
+       stdbool.h \
+       stddef.h \
+       stdint.h \
+       varargs.h \
+])
 
 # -- Datatypes --
 
@@ -212,17 +227,49 @@ AC_FUNC_STRFTIME
 
 # Required functions
 AC_CHECK_FUNCS([ \
-       alarm dup2 endpwent gethostbyaddr gethostbyname gethostname \
-       gettimeofday inet_ntoa memmove memset setsid socket strcasecmp \
-       strchr strcspn strerror strncasecmp strrchr strspn strstr \
+               alarm \
+               dup2 \
+               endpwent \
+               gethostbyaddr \
+               gethostbyname \
+               gethostname \
+               gettimeofday \
+               inet_ntoa \
+               memmove \
+               memset \
+               setsid \
+               socket \
+               strcasecmp \
+               strchr \
+               strcspn \
+               strerror \
+               strncasecmp \
+               strrchr \
+               strspn \
+               strstr \
        ],,
        AC_MSG_ERROR([required function missing!]))
 
 # Optional functions
 AC_CHECK_FUNCS_ONCE([
-       arc4random arc4random_stir gai_strerror getnameinfo inet_aton \
-       sigaction sigprocmask snprintf vsnprintf strdup strndup strlcpy strlcat \
-       strtok_r unsetenv waitpid])
+       arc4random \
+       arc4random_stir \
+       gai_strerror \
+       getnameinfo \
+       inet_aton \
+       setgroups \
+       sigaction \
+       sigprocmask \
+       snprintf \
+       strdup \
+       strlcat \
+       strlcpy \
+       strndup \
+       strtok_r \
+       unsetenv \
+       vsnprintf \
+       waitpid \
+])
 
 WORKING_GETADDRINFO
 
@@ -418,8 +465,8 @@ AC_ARG_WITH(openssl,
                                LDFLAGS="-L$withval/lib $LDFLAGS"
                        fi
                        AC_CHECK_LIB(crypto, BIO_s_mem)
-                       AC_CHECK_LIB(ssl, SSL_library_init)
-                       AC_CHECK_FUNCS(SSL_library_init, x_ssl_openssl=yes,
+                       AC_CHECK_LIB(ssl, SSL_new)
+                       AC_CHECK_FUNCS(SSL_new, x_ssl_openssl=yes,
                                AC_MSG_ERROR([Can't enable openssl])
                        )
                fi