-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
24 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,32 @@ | ||
dnl Process this file with autoconf to produce a configure script. | ||
AC_INIT([rtp2httpd],[1.0]) | ||
AC_CONFIG_SRCDIR([src/rtp2httpd.c]) | ||
# -*- Autoconf -*- | ||
# Process this file with autoconf to produce a configure script. | ||
|
||
AC_PREREQ([2.69]) | ||
AC_INIT([rtp2httpd], [1.0], [[email protected]]) | ||
AC_CONFIG_SRCDIR([src/rtp2httpd.h]) | ||
AC_CONFIG_HEADERS([src/config.h]) | ||
AM_INIT_AUTOMAKE | ||
AM_CONFIG_HEADER(src/config.h) | ||
|
||
dnl Checks for programs. | ||
# Checks for programs. | ||
AC_PROG_CC | ||
AC_USE_SYSTEM_EXTENSIONS([_GNU_SOURCE]) | ||
AC_CHECK_HEADERS(stdio.h stdlib.h sys/types.h sys/socket.h netdb.h \ | ||
stdarg.h errno.h sys/select.h fcntl.h string.h signal.h \ | ||
sys/wait.h strings.h netinet/in.h arpa/inet.h, , | ||
AC_MSG_ERROR(Cannot find all required headers)) | ||
|
||
AC_CHECK_FUNCS(getopt_long getaddrinfo getnameinfo strndup, , | ||
AC_MSG_ERROR(Required functions missing)) | ||
# Checks for libraries. | ||
|
||
# Config location for code to default to | ||
CONFFILE_DIR=$sysconfdir | ||
CONFFILE_DIR=`( | ||
test "$prefix" = NONE && prefix=$ac_default_prefix | ||
test "$exec_prefix" = NONE && exec_prefix=${prefix} | ||
eval echo "$CONFFILE_DIR" | ||
)` | ||
AC_DEFINE_UNQUOTED(CONFPATH, "$CONFFILE_DIR", system config directory) | ||
# Checks for header files. | ||
AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h stdlib.h string.h strings.h sys/socket.h unistd.h]) | ||
|
||
AC_CONFIG_FILES([Makefile src/Makefile]) | ||
# Checks for typedefs, structures, and compiler characteristics. | ||
AC_C_INLINE | ||
AC_TYPE_PID_T | ||
AC_TYPE_SIZE_T | ||
AC_TYPE_UINT16_T | ||
AC_TYPE_UINT8_T | ||
|
||
AC_OUTPUT | ||
# Checks for library functions. | ||
AC_FUNC_FORK | ||
AC_FUNC_MALLOC | ||
AC_CHECK_FUNCS([memmove memset select socket strcasecmp strdup strerror strndup getopt_long getaddrinfo getnameinfo]) | ||
|
||
echo -e "\nAll done. Run make now." | ||
AC_CONFIG_FILES([Makefile | ||
src/Makefile]) | ||
AC_OUTPUT |