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
|
dnl Process this file with autoconf to produce a configure script.
AC_INIT([id3tool], [1.2a])
AC_CONFIG_SRCDIR([Makefile.in])
AM_INIT_AUTOMAKE(-Wall foreign)
AC_CONFIG_HEADERS([config.h])
dnl Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
dnl Checks for libraries.
dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(unistd.h)
dnl Checks for typedefs, structures, and compiler characteristics.
dnl Checks for library functions.
AC_CHECK_FUNCS(strdup,,
[AC_DEFINE([strdup(x)],[my_strdup(x)],[Provide our own replacement of strdup()])]
)
AC_CHECK_FUNCS(strcasecmp,,
[AC_CHECK_FUNCS(stricmp,
[AC_DEFINE([strcasecmp(x,y)],[stricmp(x,y)],[Replace strcasecmp() with stricmp()])],
[AC_DEFINE(strcasecmp(x,y),strcmp(x,y),[Replace strcasecmp() with strcmp()])])]
)
AC_CHECK_FUNCS(getopt_long)
AH_BOTTOM([
#ifndef HAVE_STRDUP
extern char * my_strdup (char *strin);
#endif
#include "bsd_getopt.h"
])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
|