Changeset 739 for trunk/configure.ac


Ignore:
Timestamp:
Dec 17, 2008, 5:39:47 PM (13 years ago)
Author:
Peter Johansson
Message:

fixes #363. Correct AM_CONDITIONAL. Added a warning when configure is run with --enable-debug and help2man is not found. Also added a warning if a bogus man page is created. As before there is a dist-hook preventing that bogus man page is not distributed, however, now the dist-hook is triggered on the AM_CONDITIONAL rather than checking that if the man page is ok. This implies that help2man is required to create a dist also if the man page does exist.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r738 r739  
    7171AC_PROG_SED
    7272AC_PATH_PROG([HELP2MAN], [help2man], [no])
    73 AM_CONDITIONAL([HAVE_HELP2MAN], [test "$help2man" != "no"])
     73AM_CONDITIONAL([HAVE_HELP2MAN], [test x$help2man != xno])
    7474AC_CHECK_PROG([GNUPLOT],[gnuplot],[ok])
    7575
     
    8888AC_ARG_ENABLE(debug,
    8989  [AS_HELP_STRING([--enable-debug],[turn on debug options and code])],
    90   [SD_CXXFLAGS="$SD_CXXFLAGS -g -O"],
     90  [SD_CXXFLAGS="$SD_CXXFLAGS -g -O";
     91  if test x$help2man = xno; then
     92    AC_MSG_WARN(m4_text_wrap(m4_normalize([
     93      `help2man' is missing on your system.  You will not be
     94      able to create the man page. A sound man page should be
     95      included in a distribution, and since you will not able
     96      to create a complete distribution `make dist' will fail.
     97      ]),[                   ],
     98         [                             ], 79))
     99  fi],
    91100  [SD_CPPFLAGS="-DNDEBUG" SD_CXXFLAGS="$SD_CXXFLAGS -O3"])
    92101
Note: See TracChangeset for help on using the changeset viewer.