COIN-OR::LEMON - Graph Library

source: lemon-0.x/config/misc.m4 @ 1463:e8d27c74bd3b

Last change on this file since 1463:e8d27c74bd3b was 1404:17c80cb3754b, checked in by Akos Ladanyi, 20 years ago

added directory and check for the GUI

File size: 1.3 KB
RevLine 
[1370]1AC_DEFUN([LX_ENABLE_DOCS],
2[
3  AC_ARG_ENABLE([docs],
4AS_HELP_STRING([--enable-docs@<:@=yes|no|full@:>@], [build the documentation (full enables internal documentation too) @<:@default=yes@:>@])
5AS_HELP_STRING([--disable-docs], [do not build the documentation]),
6         [], [enable_docs=yes])
7
8  AC_MSG_CHECKING([whether to build the documention])
9  case "$enable_docs" in
10    yes)
11      DOXYGEN_INTERNAL_DOCS=NO
12      AC_MSG_RESULT([yes])
13      ;;
14    full)
15      DOXYGEN_INTERNAL_DOCS=YES
16      AC_MSG_RESULT([full])
17      ;;
18    no)
19      DOXYGEN_INTERNAL_DOCS=NO
20      AC_MSG_RESULT([no])
21      ;;
22    *)
23      AC_MSG_ERROR([bad value $enable_docs for option --enable-docs])
24      ;;
25  esac
26  AC_SUBST(DOXYGEN_INTERNAL_DOCS)
27  AM_CONDITIONAL([WANT_DOCS], [test x"$enable_docs" != x"no"])
28])
[1404]29
30AC_DEFUN([LX_ENABLE_GUI],
31[
32  AC_ARG_ENABLE([gui],
33AS_HELP_STRING([--enable-gui], [build the GUI])
34AS_HELP_STRING([--disable-gui], [do not build the GUI @<:@default@:>@]),
35         [], [enable_gui=no])
36
37  AC_MSG_CHECKING([whether to build the GUI])
38  if test x"$enable_gui" != x"no"; then
39      AC_MSG_RESULT([yes])
40  else
41      AC_MSG_RESULT([no])
42  fi
43  if test x"$enable_gui" != x"no"; then
44    PKG_CHECK_MODULES([GTK], [libgnomecanvasmm-2.6 >= 2.6.0])
45  fi
46  AM_CONDITIONAL([WANT_GUI], [test x"$enable_gui" != x"no"])
47])
Note: See TracBrowser for help on using the repository browser.