AC_PREREQ(2.59) AC_INIT([pcudimserver], [1.0.4], [Jochen Klein ]) AC_SUBST([RPM_RELEASE],[1]) AC_SUBST([LIB_VERSION],[0:0:0]) AC_CANONICAL_SYSTEM AM_INIT_AUTOMAKE() AC_PROG_CC AC_PROG_CXX AM_PROG_LIBTOOL AC_PROG_LIBTOOL dnl ARM root fs dnl ----------- if test "$with_rootfs" = "no" ; then AC_MSG_WARN([No root filesystem given, trying without]) elif test "$with_rootfs" = "yes" ; then AC_MSG_WARN([No root filesystem given, trying without]) else CPPFLAGS="-I$with_rootfs/usr/local/include $CPPFLAGS" CPPFLAGS="-I$with_rootfs/usr/local/include/dim $CPPFLAGS" CPPFLAGS="-I$with_rootfs/usr/include $CPPFLAGS" CPPFLAGS="-I$with_rootfs/usr/include/dim $CPPFLAGS" LDFLAGS="-L$with_rootfs/usr/local/lib -L$with_rootfs/usr/lib $LIBS" fi CFLAGS="-rdynamic $CPPFLAGS" AC_CHECK_LIB(pthread,main,,AC_MSG_ERROR([Can't find pthreads library])) AC_CHECK_LIB(dim,main,,AC_MSG_ERROR([Can't find DIM library])) AC_CONFIG_FILES([Makefile]) AC_CONFIG_FILES([ipkg/control]) AC_OUTPUT