Changeset 540 for trunk/configure.ac


Ignore:
Timestamp:
Dec 29, 2007, 3:40:23 AM (14 years ago)
Author:
Peter Johansson
Message:

fixes automatic update of revision and copyright year in --version output. Options --version and --verbose can no be combined to get a slightly more detailed description.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r519 r540  
    122122AC_SEARCH_LIBS([svn_client_log3],[svn_client-1],,svn_found="no")
    123123
     124
     125# check if svnversion is installed
     126have_svnversion="yes"
     127AC_PATH_PROG(SVNVERSION, svnversion, have_svnversion="no")
     128
     129wc_found="no";
     130if (test `$SVNVERSION -n '.'` != "exported"); then
     131   wc_found="yes";
     132fi
     133AC_CHECK_FILE("lib/subversion_info.h", info_found="yes", info_found="no")   
     134
     135# devel version should have svn WC and SVNVERSION installed
     136AM_CONDITIONAL(HAVE_SVN_WC, test "$wc_found" = "yes" )
     137
     138
    124139AC_CONFIG_FILES([Makefile
    125140                bin/Makefile
     
    133148# used to trigger exit before creation of output
    134149all_reqs_ok="true"
     150
     151#
     152if (test "$info_found" = "no" && test "$wc_found" = "no") ; then
     153   AC_MSG_WARN([Cannot find sources (lib/subverion_info.h).])
     154   if (test "$svnversion" = "no") ; then
     155     AC_MSG_WARN([If you grabbed the source from the subversion repository,
     156     the file will be generated automatically. However, svnversion cannot
     157     be found and therefore the file cannot be generated. Please install
     158     svnversion and make sure it is in your search path.])
     159   else
     160     AC_MSG_WARN([If you grabbed the source from the subversion repository,
     161     the file will be generated automatically. However, the output from
     162     svnversion was incorrect. Either your installation of svnversion is
     163     is not healthy or there is something wrong with the repository.])
     164   fi
     165   all_reqs_ok="false"
     166fi
    135167
    136168# Non-existing APR is fatal -- sub-sequent compilation will fail.
Note: See TracChangeset for help on using the changeset viewer.