dnl Process this file with autoconf to produce a configure script. AC_INIT(Makefile.am) LIB3DS_MAJOR_VERSION=1 LIB3DS_MINOR_VERSION=3 LIB3DS_MICRO_VERSION=0 LIB3DS_VERSION=$LIB3DS_MAJOR_VERSION.$LIB3DS_MINOR_VERSION.$LIB3DS_MICRO_VERSION AC_SUBST(LIB3DS_MAJOR_VERSION) AC_SUBST(LIB3DS_MINOR_VERSION) AC_SUBST(LIB3DS_MICRO_VERSION) AC_SUBST(LIB3DS_VERSION) AM_CONFIG_HEADER(config.h) AM_INIT_AUTOMAKE(lib3ds, $LIB3DS_VERSION) AC_PROG_CC AC_PROG_LIBTOOL AC_MSG_CHECKING([for debugging mode]) AC_ARG_ENABLE(debug-mode, [ --enable-debug-mode enable debugging mode], [ LIB3DS_DEBUG_MODE=yes ] ) if test "$LIB3DS_DEBUG_MODE" = yes; then AC_MSG_RESULT(yes) CFLAGS="$CFLAGS -D_DEBUG" else AC_MSG_RESULT(no) fi AC_OUTPUT([ \ lib3ds-config \ lib3ds-config.1 \ Makefile \ lib3ds/Makefile \ tools/Makefile \ tools/3dsdump.1 \ lib3ds.spec \ 3ds-utils.spec \ ],[chmod a+x lib3ds-config])