configure.ac
changeset 1903 f3d24016dad5
parent 1671 3c82a0d9e0e7
child 1905 b0b3fa857d72
equal deleted inserted replaced
31:6f82928e0ad2 32:f8630c066ac5
    21 
    21 
    22 dnl Checks for libraries.
    22 dnl Checks for libraries.
    23 LX_CHECK_GLPK
    23 LX_CHECK_GLPK
    24 LX_CHECK_CPLEX
    24 LX_CHECK_CPLEX
    25 
    25 
    26 LX_ENABLE_DOC
    26 dnl Enable/disable installing the documentation
    27 LX_ENABLE_GUI
    27 AC_ARG_ENABLE([doc],
       
    28 AS_HELP_STRING([--enable-doc@<:@=yes|no|full@:>@], [build the documentation (full enables internal documentation too) @<:@default=yes@:>@])
       
    29 AS_HELP_STRING([--disable-doc], [do not build the documentation]),
       
    30               [], [enable_doc=yes])
       
    31 
       
    32 AC_MSG_CHECKING([whether to build the documention])
       
    33 case "$enable_doc" in
       
    34   yes)
       
    35     DOXYGEN_INTERNAL_DOCS=NO
       
    36     AC_MSG_RESULT([yes])
       
    37     ;;
       
    38   full)
       
    39     DOXYGEN_INTERNAL_DOCS=YES
       
    40     AC_MSG_RESULT([full])
       
    41     ;;
       
    42   no)
       
    43     DOXYGEN_INTERNAL_DOCS=NO
       
    44     AC_MSG_RESULT([no])
       
    45     ;;
       
    46   *)
       
    47     AC_MSG_ERROR([bad value $enable_doc for option --enable-doc])
       
    48     ;;
       
    49 esac
       
    50 AC_SUBST(DOXYGEN_INTERNAL_DOCS)
       
    51 AM_CONDITIONAL([WANT_DOC], [test x"$enable_doc" != x"no"])
       
    52 
       
    53 dnl Disable/enable building the GUI
       
    54 AC_ARG_ENABLE([gui],
       
    55 AS_HELP_STRING([--enable-gui], [build the GUI])
       
    56 AS_HELP_STRING([--disable-gui], [do not build the GUI @<:@default@:>@]),
       
    57               [], [enable_gui=no])
       
    58 AC_MSG_CHECKING([whether to build the GUI])
       
    59 if test x"$enable_gui" != x"no"; then
       
    60   AC_MSG_RESULT([yes])
       
    61 else
       
    62   AC_MSG_RESULT([no])
       
    63 fi
       
    64 if test x"$enable_gui" != x"no"; then
       
    65   PKG_CHECK_MODULES([GTK], [libgnomecanvasmm-2.6 >= 2.6.0])
       
    66 fi
       
    67 AM_CONDITIONAL([WANT_GUI], [test x"$enable_gui" != x"no"])
       
    68 
       
    69 dnl Disable/enable building the demo programs
       
    70 AC_ARG_ENABLE([demo],
       
    71 AS_HELP_STRING([--enable-demo], [build the demo programs])
       
    72 AS_HELP_STRING([--disable-demo], [do not build the demo programs @<:@default@:>@]),
       
    73               [], [enable_demo=no])
       
    74 AC_MSG_CHECKING([whether to build the demo programs])
       
    75 if test x"$enable_demo" != x"no"; then
       
    76   AC_MSG_RESULT([yes])
       
    77 else
       
    78   AC_MSG_RESULT([no])
       
    79 fi
       
    80 AM_CONDITIONAL([WANT_DEMO], [test x"$enable_demo" != x"no"])
       
    81 
       
    82 dnl Disable/enable building the benchmarks
       
    83 AC_ARG_ENABLE([benchmark],
       
    84 AS_HELP_STRING([--enable-benchmark], [build the benchmarks])
       
    85 AS_HELP_STRING([--disable-benchmark], [do not build the benchmarks @<:@default@:>@]),
       
    86               [], [enable_benchmark=no])
       
    87 AC_MSG_CHECKING([whether to build the benchmarks])
       
    88 if test x"$enable_benchmark" != x"no"; then
       
    89   AC_MSG_RESULT([yes])
       
    90 else
       
    91   AC_MSG_RESULT([no])
       
    92 fi
       
    93 AM_CONDITIONAL([WANT_BENCHMARK], [test x"$enable_benchmark" != x"no"])
       
    94 
       
    95 dnl Checks for header files.
       
    96 AC_CHECK_HEADERS(limits.h sys/time.h sys/times.h unistd.h)
    28 
    97 
    29 dnl Checks for header files.
    98 dnl Checks for header files.
    30 AC_CHECK_HEADERS(limits.h sys/time.h sys/times.h unistd.h)
    99 AC_CHECK_HEADERS(limits.h sys/time.h sys/times.h unistd.h)
    31 
   100 
    32 dnl Checks for typedefs, structures, and compiler characteristics.
   101 dnl Checks for typedefs, structures, and compiler characteristics.
    50 lemon/lemon.pc
   119 lemon/lemon.pc
    51 benchmark/Makefile
   120 benchmark/Makefile
    52 demo/Makefile
   121 demo/Makefile
    53 test/Makefile
   122 test/Makefile
    54 gui/Makefile
   123 gui/Makefile
    55 gui/icons/Makefile
       
    56 ])
   124 ])
    57 
   125 
    58 AC_OUTPUT
   126 AC_OUTPUT
    59 
   127 
    60 echo
   128 echo
    66 echo C++ compiles flags............ : $CXXFLAGS
   134 echo C++ compiles flags............ : $CXXFLAGS
    67 echo
   135 echo
    68 echo GLPK support.................. : $lx_glpk_found
   136 echo GLPK support.................. : $lx_glpk_found
    69 echo CPLEX support................. : $lx_cplex_found
   137 echo CPLEX support................. : $lx_cplex_found
    70 echo
   138 echo
       
   139 echo build benchmarks.............. : $enable_benchmark
       
   140 echo build demo programs........... : $enable_demo
    71 echo build GUI..................... : $enable_gui
   141 echo build GUI..................... : $enable_gui
    72 echo
   142 echo
    73 echo The packace will be installed in
   143 echo The packace will be installed in
    74 echo -n '  '
   144 echo -n '  '
    75 echo $prefix.
   145 echo $prefix.