configure.in 1.14 KB
Newer Older
1 2
# Process this file with autoconf to produce a configure script.
AC_INIT(streplace)
3
AM_INIT_AUTOMAKE(mp3check,0.8.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 40 41 42 43 44 45 46 47
AC_CONFIG_SRCDIR(mp3check.cc)
AM_CONFIG_HEADER(config.h)

# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AC_PROG_INSTALL

# Checks for libraries.

# Checks for header files.
AC_HEADER_DIRENT
AC_HEADER_STDC
AC_CHECK_HEADERS([fcntl.h float.h limits.h stdlib.h string.h sys/ioctl.h termios.h unistd.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_UID_T
AC_C_INLINE
AC_C_BIGENDIAN
AC_TYPE_MODE_T
AC_TYPE_OFF_T
AC_TYPE_SIZE_T
AC_CHECK_MEMBERS([struct stat.st_rdev])

# Checks for library functions.
AC_FUNC_ERROR_AT_LINE
AC_PROG_GCC_TRADITIONAL
AC_FUNC_LSTAT
AC_FUNC_MEMCMP
AC_FUNC_MMAP
AC_FUNC_STAT
AC_FUNC_STRTOD
AC_FUNC_VPRINTF
AC_CHECK_FUNCS([asprintf ftruncate memmove memset munmap strchr strdup strerror strrchr strtol strtoul])

AC_CONFIG_FILES([Makefile])
AC_OUTPUT
 
echo "========================================================================"
echo "Now type"
echo "    make"
echo or
echo '    make CXXFLAGS="-Wall -W -g"'
48
echo '    make CXXFLAGS="-Wall -W -Woverloaded-virtual -Wsynth -Wsign-promo -g"'