dnl Test for libmikmod, and define LIBMIKMOD_CFLAGS, LIBMIKMOD_LIBS and
dnl LIBMIKMOD_LDADD
dnl
-AC_DEFUN(AM_PATH_LIBMIKMOD,
+AC_DEFUN([AM_PATH_LIBMIKMOD],
[dnl
dnl Get the cflags and libraries from the libmikmod-config script
dnl
-AC_ARG_WITH(libmikmod-prefix,[ --with-libmikmod-prefix=PFX Prefix where libmikmod is installed (optional)],
- libmikmod_config_prefix="$withval", libmikmod_config_prefix="")
-AC_ARG_WITH(libmikmod-exec-prefix,[ --with-libmikmod-exec-prefix=PFX Exec prefix where libmikmod is installed (optional)],
- libmikmod_config_exec_prefix="$withval", libmikmod_config_exec_prefix="")
+AC_ARG_WITH(libmikmod-prefix,
+ AC_HELP_STRING([--with-libmikmod-prefix=PFX],
+ [prefix where libmikmod is installed (optional)]),
+ libmikmod_config_prefix="$withval", libmikmod_config_prefix="")
+
+AC_ARG_WITH(libmikmod-exec-prefix,
+ AC_HELP_STRING([--with-libmikmod-exec-prefix=PFX],
+ [exec prefix where libmikmod is installed (optional)]),
+ libmikmod_config_exec_prefix="$withval", libmikmod_config_exec_prefix="")
+
AC_ARG_ENABLE(libmikmodtest,
AC_HELP_STRING([--disable-libmikmodtest],
[Do not try to compile and run a test libmikmod program]),
#include <mikmod.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
char* my_strdup (char *str)
{
(libmikmod_minor_version != LIBMIKMOD_VERSION_MINOR) ||
(libmikmod_micro_version != LIBMIKMOD_REVISION))
{
- printf("*** libmikmod header files (version %d.%d.%d) do not match\n",
+ printf("*** libmikmod header files (version %ld.%ld.%ld) do not match\n",
LIBMIKMOD_VERSION_MAJOR, LIBMIKMOD_VERSION_MINOR, LIBMIKMOD_REVISION);
printf("*** library (version %d.%d.%d)\n",
libmikmod_major_version, libmikmod_minor_version, libmikmod_micro_version);