Changeset 3515 for libpipi


Ignore:
Timestamp:
May 25, 2009, 2:16:13 AM (11 years ago)
Author:
Sam Hocevar
Message:

Look for the awesome CGAL library at configure stage.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpipi/trunk/configure.ac

    r3346 r3515  
    219219PKG_CHECK_MODULES([LIBSWSCALE], [libswscale], [:], [ac_cv_my_have_ffmpeg=no])
    220220AM_CONDITIONAL(USE_FFMPEG, test "${ac_cv_my_have_ffmpeg}" = "yes")
     221
     222# Build CGAL stuff?
     223ac_cv_my_have_cgal="no"
     224AC_LANG_PUSH(C++)
     225AC_CHECK_HEADERS(CGAL/version.h,
     226 [ac_cv_my_have_cgal="yes"],
     227 [ac_cv_my_have_cgal="no"])
     228AC_LANG_POP(C++)
     229if test "${ac_cv_my_have_cgal}" != "no"; then
     230  AC_DEFINE(USE_CGAL, 1, Define to 1 to use CGAL)
     231fi
     232AM_CONDITIONAL(USE_CGAL, test "${ac_cv_my_have_cgal}" = "yes")
    221233
    222234# Build The Pimp?
Note: See TracChangeset for help on using the changeset viewer.