configure.ac
changeset 63 1113f6d12c0c
parent 55 9bd0d6e0c279
child 64 761622e5ed4c
equal deleted inserted replaced
7:c2faeb9a102b 8:9a0d913fa9f7
    24 AC_PROG_CXXCPP
    24 AC_PROG_CXXCPP
    25 AC_PROG_INSTALL
    25 AC_PROG_INSTALL
    26 AC_DISABLE_SHARED
    26 AC_DISABLE_SHARED
    27 AC_PROG_LIBTOOL
    27 AC_PROG_LIBTOOL
    28 
    28 
       
    29 AC_CHECK_PROG([doxygen_found],[doxygen],[yes],[no])
       
    30 
    29 if test x"$lx_cmdline_cxxflags_set" != x"set" -a "$GXX" = yes; then
    31 if test x"$lx_cmdline_cxxflags_set" != x"set" -a "$GXX" = yes; then
    30   CXXFLAGS="$CXXFLAGS -Wall -W -Wall -W -Wunused -Wformat=2 -Wctor-dtor-privacy -Wnon-virtual-dtor -Wno-char-subscripts -Wwrite-strings -Wno-char-subscripts -Wreturn-type -Wcast-qual -Wcast-align -Wsign-promo -Woverloaded-virtual -Woverloaded-virtual -ansi -fno-strict-aliasing -Wold-style-cast -Wno-unknown-pragmas"
    32   CXXFLAGS="$CXXFLAGS -Wall -W -Wall -W -Wunused -Wformat=2 -Wctor-dtor-privacy -Wnon-virtual-dtor -Wno-char-subscripts -Wwrite-strings -Wno-char-subscripts -Wreturn-type -Wcast-qual -Wcast-align -Wsign-promo -Woverloaded-virtual -Woverloaded-virtual -ansi -fno-strict-aliasing -Wold-style-cast -Wno-unknown-pragmas"
    31 fi
    33 fi
    32 
       
    33 AC_CHECK_PROG([doxygen_found],[doxygen],[yes],[no])
       
    34 
    34 
    35 dnl Checks for libraries.
    35 dnl Checks for libraries.
    36 LX_CHECK_GLPK
    36 LX_CHECK_GLPK
    37 LX_CHECK_CPLEX
    37 LX_CHECK_CPLEX
    38 LX_CHECK_SOPLEX
    38 LX_CHECK_SOPLEX
    39 
       
    40 dnl Enable/disable installing the documentation
       
    41 AC_ARG_ENABLE([doc],
       
    42 AS_HELP_STRING([--enable-doc@<:@=yes|no|full@:>@], [build the documentation (full enables internal documentation too) @<:@default=yes@:>@])
       
    43 AS_HELP_STRING([--disable-doc], [do not build the documentation]),
       
    44               [], [enable_doc=yes])
       
    45 
       
    46 AC_MSG_CHECKING([whether to build the documention])
       
    47 case "$enable_doc" in
       
    48   yes)
       
    49     DOXYGEN_INTERNAL_DOCS=NO
       
    50     AC_MSG_RESULT([yes])
       
    51     ;;
       
    52   full)
       
    53     DOXYGEN_INTERNAL_DOCS=YES
       
    54     AC_MSG_RESULT([full])
       
    55     ;;
       
    56   no)
       
    57     DOXYGEN_INTERNAL_DOCS=NO
       
    58     AC_MSG_RESULT([no])
       
    59     ;;
       
    60   *)
       
    61     AC_MSG_ERROR([bad value $enable_doc for option --enable-doc])
       
    62     ;;
       
    63 esac
       
    64 AC_SUBST(DOXYGEN_INTERNAL_DOCS)
       
    65 AM_CONDITIONAL([WANT_DOC], [test x"$enable_doc" != x"no"])
       
    66 
    39 
    67 dnl Disable/enable building the demo programs
    40 dnl Disable/enable building the demo programs
    68 AC_ARG_ENABLE([demo],
    41 AC_ARG_ENABLE([demo],
    69 AS_HELP_STRING([--enable-demo], [build the demo programs])
    42 AS_HELP_STRING([--enable-demo], [build the demo programs])
    70 AS_HELP_STRING([--disable-demo], [do not build the demo programs @<:@default@:>@]),
    43 AS_HELP_STRING([--disable-demo], [do not build the demo programs @<:@default@:>@]),
   143 echo
   116 echo
   144 echo The packace will be installed in
   117 echo The packace will be installed in
   145 echo -n '  '
   118 echo -n '  '
   146 echo $prefix.
   119 echo $prefix.
   147 echo
   120 echo
   148 echo The documentation will be installed in
       
   149 echo -n '  '
       
   150 eval echo ${datadir}/doc/$PACKAGE.
       
   151 echo
       
   152 echo '*********************************************************************'
   121 echo '*********************************************************************'
   153 
   122 
   154 echo
   123 echo
   155 echo Configure complete, now type \'make\' and then \'make install\'.
   124 echo Configure complete, now type \'make\' and then \'make install\'.
   156 echo
   125 echo