~ubuntu-branches/ubuntu/vivid/ctdb/vivid-proposed

« back to all changes in this revision

Viewing changes to lib/replace/strptime.m4

  • Committer: Bazaar Package Importer
  • Author(s): Mathieu Parent
  • Date: 2008-04-26 15:21:27 UTC
  • Revision ID: james.westby@ubuntu.com-20080426152127-58mv5ojv5q362ise
Tags: upstream-1.0.34+git200804242206
ImportĀ upstreamĀ versionĀ 1.0.34+git200804242206

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
AC_CACHE_CHECK([whether strptime is available and works],libreplace_cv_STRPTIME_OK,[
 
2
        AC_TRY_RUN([
 
3
                #define LIBREPLACE_CONFIGURE_TEST_STRPTIME
 
4
                #include "$libreplacedir/test/strptime.c"
 
5
                ],
 
6
                [libreplace_cv_STRPTIME_OK=yes],
 
7
                [libreplace_cv_STRPTIME_OK=no],
 
8
                [libreplace_cv_STRPTIME_OK="assuming not"])
 
9
])
 
10
if test x"$libreplace_cv_STRPTIME_OK" != x"yes"; then
 
11
        AC_DEFINE(REPLACE_STRPTIME,1,[Whether strptime should be replaced])
 
12
        LIBREPLACEOBJ="${LIBREPLACEOBJ} strptime.o"
 
13
fi