configure.ac 742 B

12345678910111213141516171819202122232425262728293031323334
  1. # -*- Autoconf -*-
  2. # Process this file with autoconf to produce a configure script.
  3. AC_PREREQ([2.69])
  4. AC_INIT([uncc], [1.0], [mooigraph@gmail.com])
  5. AC_CONFIG_SRCDIR([src/main.c])
  6. AC_CONFIG_HEADERS([config.h])
  7. AM_INIT_AUTOMAKE
  8. CFLAGS="$CFLAGS -Wall -Wextra -pedantic"
  9. # Checks for programs.
  10. AC_PROG_CC
  11. AC_PROG_MAKE_SET
  12. # Checks for libraries.
  13. # FIXME: Replace `main' with a function in `-lm':
  14. AC_CHECK_LIB([m], [main])
  15. # Checks for header files.
  16. # Checks for typedefs, structures, and compiler characteristics.
  17. # Checks for library functions.
  18. # final compiler settings
  19. AC_SUBST(PACKAGE_CFLAGS)
  20. AC_SUBST(WARNING_CFLAGS)
  21. AC_CONFIG_FILES([Makefile
  22. src/Makefile])
  23. AC_OUTPUT