dnl Process this file with autoconf to produce a configure script. AC_INIT(src/ppd.c) AM_INIT_AUTOMAKE(libppd,0.10) AC_LANG_C AM_CONFIG_HEADER(config.h) # -Wshadow doesn't work with glib WARNS="" AC_ARG_ENABLE(debug, [ --enable-debug turn on debugging (assumes gcc/gdb) [default=no]],WARNS="-W -Wall -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -O0 -ggdb3",AC_DEFINE(NDEBUG)) AC_SUBST(WARNS) dnl Checks for programs. AC_PROG_CC AC_PROG_CXX AM_PROG_LIBTOOL AM_PATH_GLIB(1.2.0,[],[ AC_MSG_ERROR(You must have glib installed to compile libppd) ]) dnl Checks for libraries. dnl AC_CHECK_LIB(efence,malloc) dnl Checks for header files. AC_HEADER_STDC dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST dnl Checks for library functions. AC_CHECK_FUNCS(strdup) AC_CHECK_FUNCS(strcasecmp) AC_CHECK_FUNCS(strncasecmp) AC_CHECK_FUNCS(snprintf) AC_CHECK_FUNCS(vsnprintf) dnl loads in the magic pixie dust for the m4 files TESTSCRIPTS=`cd src/tests && echo *.m4 | sed "s/m4/sh/g"` AC_SUBST(TESTSCRIPTS) AC_OUTPUT(Makefile src/Makefile src/tests/Makefile doc/Makefile libppd.spec)