AC_HEADER_DIRENT
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
+AC_HEADER_STDBOOL
AC_CHECK_HEADERS([arpa/inet.h ctype.h fcntl.h limits.h netdb.h netinet/in.h \
stdlib.h string.h sys/socket.h sys/time.h sys/timeb.h sys/un.h \
sys/ipc.h unistd.h utime.h stddef.h],
[], [AC_MSG_ERROR([$ac_header not found])])
-
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_INLINE
AC_TYPE_SIZE_T
AC_HEADER_TIME
AC_STRUCT_TM
+AC_TYPE_INT8_T
AC_TYPE_INT16_T
AC_TYPE_INT32_T
AC_TYPE_INT64_T
AC_CHECK_FUNCS([atexit dup2 memchr memmove memset \
regcomp select strchr strdup strerror strstr strtol uname \
fchdir gettimeofday localtime_r munmap strcasecmp strcspn \
- strncasecmp strrchr strspn alarm mkdir rmdir], [],
+ strncasecmp strrchr strspn alarm mkdir inet_ntoa socket], [],
[AC_MSG_ERROR([function not found, cannot live without it])])
cmdline_dir="cmdline"
wma_common wmadec_filter buffer_tree
"
-executables="server recv filter audioc write client afh audiod"
+executables="recv filter audioc write client afh audiod"
recv_cmdline_objs="add_cmdline(recv http_recv dccp_recv udp_recv)"
AC_CHECK_HEADER(osl.h, [], have_osl=no)
AC_CHECK_LIB([osl], [osl_open_table], [], have_osl=no)
if test "$have_osl" = "no"; then
- AC_MSG_ERROR([libosl not found, download it at
+ AC_MSG_WARN([libosl not found, can not build para_server.
+Download libosl at
http://systemlinux.org/~maan/osl
or execute
git clone git://git.tuebingen.mpg.de/osl
])
+else
+ extras="$extras server"
+ executables="$executables server"
+ AC_SUBST(osl_cppflags)
+ server_ldflags="$server_ldflags -L$with_osl_libs"
fi
-AC_SUBST(osl_cppflags)
-server_ldflags="$server_ldflags -L$with_osl_libs"
CPPFLAGS="$OLD_CPPFLAGS"
LDFLAGS="$OLD_LDFLAGS"
LIBS="$OLD_LIBS"
AC_DEFINE_UNQUOTED(SERVER_AUDIO_FORMATS, "$server_audio_formats",
[formats supported by para_server and para_afh])
-
AC_SUBST(executables, add_para($executables))
recv_objs="$recv_cmdline_objs $recv_errlist_objs"