No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

configure.ac 1.3 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # $Id: configure.ac 253 2004-08-09 20:08:52Z sam $
  2. AC_INIT(src/main.c)
  3. AC_PREREQ(2.50)
  4. AC_CONFIG_AUX_DIR(autotools)
  5. AC_CANONICAL_SYSTEM
  6. AM_INIT_AUTOMAKE(pwntcha, 0.1)
  7. AM_CONFIG_HEADER(config.h)
  8. AC_PROG_CC
  9. AM_PROG_CC_C_O
  10. AC_PROG_CXX
  11. AC_STDC_HEADERS
  12. AC_C_CONST
  13. AC_C_INLINE
  14. AC_TYPE_SIZE_T
  15. AC_CHECK_FUNCS(getopt_long)
  16. # Use OpenCV?
  17. ac_cv_my_have_opencv="no"
  18. save_CPPFLAGS="${CPPFLAGS}"
  19. AC_PATH_PROG(OPENCV_CONFIG, opencv-config, no)
  20. if test "${OPENCV_CONFIG}" != "no"; then
  21. CPPFLAGS="${CPPFLAGS} `opencv-config --cflags`"
  22. fi
  23. AC_CHECK_HEADERS(cv.h,
  24. [ac_cv_my_have_opencv="yes"],
  25. [ac_cv_my_have_opencv="no"])
  26. CPPFLAGS="${save_CPPFLAGS}"
  27. AM_CONDITIONAL(USE_OPENCV, test "${ac_cv_my_have_opencv}" = "yes")
  28. # Use Imlib2?
  29. ac_cv_my_have_imlib2="no"
  30. save_CPPFLAGS="${CPPFLAGS}"
  31. AC_PATH_PROG(IMLIB2_CONFIG, imlib2-config, no)
  32. if test "${IMLIB2_CONFIG}" != "no"; then
  33. CPPFLAGS="${CPPFLAGS} `imlib2-config --cflags` -DX_DISPLAY_MISSING=1"
  34. fi
  35. AC_CHECK_HEADERS(Imlib2.h,
  36. [ac_cv_my_have_imlib2="yes"],
  37. [ac_cv_my_have_imlib2="no"])
  38. CPPFLAGS="${save_CPPFLAGS}"
  39. AM_CONDITIONAL(USE_IMLIB2, test "${ac_cv_my_have_imlib2}" = "yes")
  40. if test "${ac_cv_my_have_imlib2}" = "no" -a "${ac_cv_my_have_opencv}" = "no"; then
  41. AC_MSG_ERROR([[cannot find Imlib2 or OpenCV, please install one of them]])
  42. fi
  43. AC_OUTPUT([
  44. Makefile
  45. src/Makefile
  46. ])