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 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
#
# Check for one project file
#
AC_PREREQ([2.67])
AC_INIT([dxflib], [3.26.4], [])
AC_CONFIG_SRCDIR([src/dl_exception.h])
AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects])
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
AC_PROG_LIBTOOL
PRODUCT=dxflib
#
# check cannonical system name
#
AC_CANONICAL_HOST
case "$host" in
*-linux-gnu ) AC_DEFINE(LINUX) ;;
*-aix* ) AC_DEFINE(AIX) ;;
* ) AC_DEFINE(UNIX) ;;
esac
#
# check C compiler, preprocesor, etc.
#
AC_PROG_CC
AC_PROG_CPP
AC_PROG_CXX
AC_PROG_INSTALL
AC_CHECK_PROG(FIND, find, find, :)
AC_CHECK_PROG(MAKEDEPEND, makedepend, makedepend, :)
#
# Try to locate the X Window System include files and libraries
# and add /usr/local to include and lib path and add -lm (for testing)
#
AC_PATH_XTRA
CFLAGS="$CFLAGS $X_CFLAGS"
LDFLAGS="$LDFLAGS $X_LIBS -L/usr/local/lib"
#
# Declare variables which we want substituted in the Makefile.in's
#
AC_HEADER_STDC
AC_CHECK_HEADERS(limits.h)
#
# finally create makefiles using Makefile.in
#
echo
AC_OUTPUT(Makefile dxflib.pc)
echo
echo "Run 'make depend' to create dependencies."
echo
|