
dnl AC_INIT(configure.in)

AC_INIT(src/powersoftplus.cpp)
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(powersoftplus, 0.1.8)
AC_PREFIX_DEFAULT(/usr/local)

test "$prefix" = NONE && prefix=/usr/local

CFLAGS=${CFLAGS-"-O"}
CXXFLAGS=${CXXFLAGS-"-O"}

CONFIG_PATH='/etc/psplus'
RC_PATH='/etc/rc.d/init.d'
PIX_PATH='${prefix}/share/psplus'
APP_PATHNAME='${prefix}/bin'
SHM_PATHNAME='${prefix}/bin/powersoftplus'

AC_LANG_CPLUSPLUS
AC_PROG_CXX
AM_PROG_LIBTOOL

eval tmppath=${CONFIG_PATH}
AC_DEFINE_UNQUOTED(CONFIG_PATH, "$tmppath", [Path for config files])
eval tmppath=${RC_PATH}
AC_DEFINE_UNQUOTED(RC_PATH, "$tmppath", [Path for script files])
eval tmppath=${PIX_PATH}
AC_DEFINE_UNQUOTED(PIX_PATH, "$tmppath", [Path for pixmap files])
eval tmppath=${SHM_PATHNAME}
AC_DEFINE_UNQUOTED(SHM_PATHNAME, "$tmppath", [Path for shared memory key])
eval tmppath=${APP_PATHNAME}
AC_DEFINE_UNQUOTED(APP_PATHNAME, "$tmppath", [Main application path])

AC_SUBST(CONFIG_PATH)
AC_SUBST(RC_PATH)
AC_SUBST(PIX_PATH)
AC_SUBST(SHM_PATHNAME)
AC_SUBST(APP_PATHNAME)

AC_OUTPUT(Makefile src/Makefile conf/Makefile pix/Makefile scripts/powersoftplus scripts/Makefile libftdi/Makefile)

