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 40 41 42 43 44
|
dnl Process this file with autoconf to produce a configure script.
AC_INIT(id3ed.cc)
dnl automake is ridiculously overboard for a prog this small
dnl AM_INIT_AUTOMAKE(id3ed, 1.6)
AC_CONFIG_HEADER(config.h)
AC_LANG_CPLUSPLUS
dnl Checks for programs.
AC_PROG_CXX
AC_PROG_INSTALL
dnl Checks for libraries.
have_term_stuff=no
AC_CHECK_LIB(curses, tputs)
if test "$ac_cv_lib_curses_tputs" = "yes"; then
have_term_stuff=yes
fi
if test "$have_term_stuff" != "yes"; then
AC_CHECK_LIB(termcap, tputs)
if test "$ac_cv_lib_termcap_tputs" = "yes"; then
have_term_stuff=yes
fi
fi
if test "$have_term_stuff" = "yes"; then
AC_CHECK_LIB(readline, readline)
AC_CHECK_LIB(history, add_history)
fi
dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(fcntl.h unistd.h)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_OFF_T
dnl Checks for library functions.
AC_CHECK_FUNCS(strerror strtol snprintf)
AC_OUTPUT(Makefile)
|