Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 

54 righe
1.6 KiB

  1. # $Id: configure.ac 98 2006-09-22 16:27:37Z sam $
  2. AC_INIT(cacamoo, 0.0)
  3. AC_PREREQ(2.50)
  4. AC_CONFIG_SRCDIR(src/main.c)
  5. AC_CONFIG_AUX_DIR(.auto)
  6. AC_CANONICAL_SYSTEM
  7. AM_INIT_AUTOMAKE(cacamoo, 0.0)
  8. AM_CONFIG_HEADER(config.h)
  9. AM_PROG_CC_C_O
  10. AC_PROG_CPP
  11. dnl AC_PROG_EGREP only exists in autoconf 2.54+, so we use AC_EGREP_CPP right
  12. dnl now otherwise it might be set in an obscure if statement. Same thing for
  13. dnl PKG_PROG_PKG_CONFIG which needs to be called first.
  14. AC_EGREP_CPP(yes, foo)
  15. PKG_PROG_PKG_CONFIG()
  16. dnl Don't let pkg-config fuck our cross-compilation environment
  17. m4_pattern_allow([^PKG_CONFIG_LIBDIR$])
  18. if test "$build" != "$host" -a "${PKG_CONFIG_LIBDIR}" = ""; then
  19. export PKG_CONFIG_LIBDIR=/dev/null
  20. fi
  21. AC_CHECK_HEADERS(getopt.h)
  22. AC_CHECK_FUNCS(getopt_long,
  23. [AC_DEFINE(HAVE_GETOPT_LONG, 1, Define to 1 if you have the `getopt_long' function.)],
  24. [AC_CHECK_LIB(gnugetopt, getopt_long,
  25. [AC_DEFINE(HAVE_GETOPT_LONG, 1, Define to 1 if you have the `getopt_long' function.)
  26. GETOPT_LIBS="${GETOPT_LIBS} -lgnugetopt"])])
  27. AC_SUBST(GETOPT_LIBS)
  28. CACA="no"
  29. PKG_CHECK_MODULES(CACA, caca >= 0.99.beta15,
  30. [CACA="yes"],
  31. [AC_MSG_RESULT(no)
  32. AC_MSG_ERROR([you need libcaca version 0.99.beta15 or later])])
  33. # Optimizations
  34. CFLAGS="${CFLAGS} -g -O2 -fno-strength-reduce -fomit-frame-pointer"
  35. # Code qui fait des warnings == code de porc == deux baffes dans ta gueule
  36. CFLAGS="${CFLAGS} -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare"
  37. AC_OUTPUT([
  38. Makefile
  39. src/Makefile
  40. data/Makefile
  41. ])