configure.ac
changeset 2105 6e687c525503
parent 2068 6936f130bba2
child 2108 f2c532541730
equal deleted inserted replaced
39:fe33ebe028d4 40:8864950622dc
    14 AC_PROG_CXX
    14 AC_PROG_CXX
    15 AC_PROG_CXXCPP
    15 AC_PROG_CXXCPP
    16 AC_PROG_INSTALL
    16 AC_PROG_INSTALL
    17 AC_DISABLE_SHARED
    17 AC_DISABLE_SHARED
    18 AC_PROG_LIBTOOL
    18 AC_PROG_LIBTOOL
    19 
       
    20 dnl i18n
       
    21 AM_GNU_GETTEXT_VERSION([0.14.2])
       
    22 AM_GNU_GETTEXT([external])
       
    23 
    19 
    24 if test x"$lx_cmdline_cxxflags_set" != x"set" -a "$GXX" = yes; then
    20 if test x"$lx_cmdline_cxxflags_set" != x"set" -a "$GXX" = yes; then
    25   CXXFLAGS="$CXXFLAGS -Wall -W"
    21   CXXFLAGS="$CXXFLAGS -Wall -W"
    26 fi
    22 fi
    27 
    23 
    55     AC_MSG_ERROR([bad value $enable_doc for option --enable-doc])
    51     AC_MSG_ERROR([bad value $enable_doc for option --enable-doc])
    56     ;;
    52     ;;
    57 esac
    53 esac
    58 AC_SUBST(DOXYGEN_INTERNAL_DOCS)
    54 AC_SUBST(DOXYGEN_INTERNAL_DOCS)
    59 AM_CONDITIONAL([WANT_DOC], [test x"$enable_doc" != x"no"])
    55 AM_CONDITIONAL([WANT_DOC], [test x"$enable_doc" != x"no"])
    60 
       
    61 dnl Disable/enable building the GUI
       
    62 AC_ARG_ENABLE([gui],
       
    63 AS_HELP_STRING([--enable-gui], [build the GUI])
       
    64 AS_HELP_STRING([--disable-gui], [do not build the GUI @<:@default@:>@]),
       
    65               [], [enable_gui=no])
       
    66 AC_MSG_CHECKING([whether to build the GUI])
       
    67 if test x"$enable_gui" != x"no"; then
       
    68   AC_MSG_RESULT([yes])
       
    69 else
       
    70   AC_MSG_RESULT([no])
       
    71 fi
       
    72 if test x"$enable_gui" != x"no"; then
       
    73   PKG_CHECK_MODULES([GTK], [libgnomecanvasmm-2.6 >= 2.6.0 gtkmm-2.4 >= 2.6])
       
    74 fi
       
    75 AM_CONDITIONAL([WANT_GUI], [test x"$enable_gui" != x"no"])
       
    76 
    56 
    77 dnl Disable/enable building the demo programs
    57 dnl Disable/enable building the demo programs
    78 AC_ARG_ENABLE([demo],
    58 AC_ARG_ENABLE([demo],
    79 AS_HELP_STRING([--enable-demo], [build the demo programs])
    59 AS_HELP_STRING([--enable-demo], [build the demo programs])
    80 AS_HELP_STRING([--disable-demo], [do not build the demo programs @<:@default@:>@]),
    60 AS_HELP_STRING([--disable-demo], [do not build the demo programs @<:@default@:>@]),
   123 lemon/Makefile
   103 lemon/Makefile
   124 lemon/lemon.pc
   104 lemon/lemon.pc
   125 benchmark/Makefile
   105 benchmark/Makefile
   126 demo/Makefile
   106 demo/Makefile
   127 test/Makefile
   107 test/Makefile
   128 gui/Makefile
       
   129 po/Makefile.in
       
   130 m4/Makefile
       
   131 ])
   108 ])
   132 
   109 
   133 AC_OUTPUT
   110 AC_OUTPUT
   134 
   111 
   135 echo
   112 echo
   143 echo GLPK support.................. : $lx_glpk_found
   120 echo GLPK support.................. : $lx_glpk_found
   144 echo CPLEX support................. : $lx_cplex_found
   121 echo CPLEX support................. : $lx_cplex_found
   145 echo
   122 echo
   146 echo build benchmarks.............. : $enable_benchmark
   123 echo build benchmarks.............. : $enable_benchmark
   147 echo build demo programs........... : $enable_demo
   124 echo build demo programs........... : $enable_demo
   148 echo build GUI..................... : $enable_gui
       
   149 echo
   125 echo
   150 echo The packace will be installed in
   126 echo The packace will be installed in
   151 echo -n '  '
   127 echo -n '  '
   152 echo $prefix.
   128 echo $prefix.
   153 echo
   129 echo