AC_INIT([CalcServer], [1.8], []) AM_INIT_AUTOMAKE([no-define]) LT_INIT AC_PROG_CC AM_SANITY_CHECK AC_PROG_F77(gfortran) AC_SEARCH_LIBS([sqrt], [m]) # rpc functionality was dropped from some flavors of linux; # tirpc provides the same API PKG_CHECK_MODULES(TIRPC, libtirpc, [AC_MSG_NOTICE(libtirpc will be used in place of the traditional rpc)], [AC_MSG_NOTICE(libtirpc was not found and this is not a problem unless); AC_MSG_NOTICE(you are using a system that has no traditional rpc.)]) CPPFLAGS="${CPPFLAGS} ${TIRPC_CFLAGS}" LIBS="${LIBS} ${TIRPC_LIBS}" AC_CONFIG_FILES(Makefile \ startCalcServer \ src/Makefile \ calc9.1/Makefile \ init.d/calcserver \ systemd/calcserver.service \ data/Makefile ) AC_OUTPUT()