Ignore:
Timestamp:
May 27, 2009, 9:09:42 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update 3.2 branch to 3.2.8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.2.x/source/configure.in

    r228 r232  
    12791279#################################################
    12801280# Check whether struct stat has timestamps with sub-second resolution.
    1281 # At least IRIX and Solaris have these.
     1281# At least IRIX and Solaris have these.  FREEBSD does as well,
     1282# but with different members
    12821283#
    12831284# We check that
     
    12881289# "struct timespec" or "timespec_t". Linux doesn't have timespec_t, so we
    12891290# prefer struct timespec.
     1291AC_CACHE_CHECK([whether struct stat has timespec timestamps],
     1292    samba_cv_stat_timespec_hires,
     1293      [
     1294      AC_TRY_COMPILE(
     1295          [
     1296#if TIME_WITH_SYS_TIME
     1297# include <sys/time.h>
     1298# include <time.h>
     1299#else
     1300# if HAVE_SYS_TIME_H
     1301#  include <sys/time.h>
     1302# else
     1303#  include <time.h>
     1304# endif
     1305#endif
     1306#ifdef HAVE_SYS_STAT_H
     1307#include <sys/stat.h>
     1308#endif
     1309          ],
     1310          [
     1311          struct timespec t;
     1312          struct stat s = {0};
     1313          t = s.st_mtimespec;
     1314          t = s.st_ctimespec;
     1315          t = s.st_atimespec;
     1316        ],
     1317      samba_cv_stat_timespec_hires=yes, samba_cv_stat_timespec_hires=no)
     1318      ])
     1319
     1320if test x"$samba_cv_stat_timespec_hires" = x"yes" ; then
     1321    AC_DEFINE(HAVE_STAT_ST_MTIMESPEC, 1, [whether struct stat contains st_mtimepec])
     1322    AC_DEFINE(HAVE_STAT_ST_ATIMESPEC, 1, [whether struct stat contains st_atimespec])
     1323    AC_DEFINE(HAVE_STAT_ST_CTIMESPEC, 1, [whether struct stat contains st_ctimespec])
     1324    AC_DEFINE(HAVE_STAT_HIRES_TIMESTAMPS, 1, [whether struct stat has sub-second timestamps])
     1325fi
     1326
     1327
    12901328
    12911329AC_CACHE_CHECK([whether struct stat has sub-second timestamps], samba_cv_stat_hires,
     
    13281366fi
    13291367
    1330 AC_CACHE_CHECK([whether struct stat has sub-second timestamps without struct timespec], samba_cv_stat_hires_notimespec,
     1368AC_CACHE_CHECK([whether struct stat has sub-second timestamps without struct timespec suffixed nsec], samba_cv_stat_hires_notimespec,
    13311369    [
    13321370        AC_TRY_COMPILE(
     
    13561394                t.tv_nsec = s.st_atimensec;
    13571395            ],
    1358             samba_cv_stat_hires=yes, samba_cv_stat_hires=no)
     1396            samba_cv_stat_hires_notimespec=yes, samba_cv_stat_hires_notimespec=no)
    13591397    ])
    13601398
     
    13641402    AC_DEFINE(HAVE_STAT_ST_CTIMENSEC, 1, [whether struct stat contains st_ctimensec])
    13651403    AC_DEFINE(HAVE_STAT_HIRES_TIMESTAMPS, 1,
    1366             [whether struct stat has sub-second timestamps without struct timespec])
     1404            [whether struct stat has sub-second timestamps without struct timespec suffixed nsec])
     1405fi
     1406
     1407dnl AIX stype sub-second timestamps:
     1408AC_CACHE_CHECK([whether struct stat has sub-second timestamps without struct timespec suffixed _n], samba_cv_stat_hires_notimespec_n,
     1409    [
     1410        AC_TRY_COMPILE(
     1411            [
     1412#if TIME_WITH_SYS_TIME
     1413# include <sys/time.h>
     1414# include <time.h>
     1415#else
     1416# if HAVE_SYS_TIME_H
     1417#  include <sys/time.h>
     1418# else
     1419#  include <time.h>
     1420# endif
     1421#endif
     1422#ifdef HAVE_SYS_STAT_H
     1423#include <sys/stat.h>
     1424#endif
     1425            ],
     1426            [
     1427                struct timespec t;
     1428                struct stat s = {0};
     1429                t.tv_sec = s.st_mtime;
     1430                t.tv_nsec = s.st_mtime_n;
     1431                t.tv_sec = s.st_ctime;
     1432                t.tv_nsec = s.st_ctime_n;
     1433                t.tv_sec = s.st_atime;
     1434                t.tv_nsec = s.st_atime_n;
     1435            ],
     1436            samba_cv_stat_hires_notimespec_n=yes, samba_cv_stat_hires_notimespec_n=no)
     1437    ])
     1438
     1439if test x"$samba_cv_stat_hires_notimespec_n" = x"yes" ; then
     1440    AC_DEFINE(HAVE_STAT_ST_MTIME_N, 1, [whether struct stat contains st_mtime_n])
     1441    AC_DEFINE(HAVE_STAT_ST_ATIME_N, 1, [whether struct stat contains st_atime_n])
     1442    AC_DEFINE(HAVE_STAT_ST_CTIME_N, 1, [whether struct stat contains st_ctime_n])
     1443    AC_DEFINE(HAVE_STAT_HIRES_TIMESTAMPS, 1,
     1444            [whether struct stat has sub-second timestamps without struct timespec suffixed _n])
     1445fi
     1446
     1447dnl Tru64 has _micro_second_ resolution:
     1448AC_CACHE_CHECK([whether struct stat has sub-second timestamps in st_uXtime], samba_cv_stat_hires_uxtime,
     1449    [
     1450        AC_TRY_COMPILE(
     1451            [
     1452#if TIME_WITH_SYS_TIME
     1453# include <sys/time.h>
     1454# include <time.h>
     1455#else
     1456# if HAVE_SYS_TIME_H
     1457#  include <sys/time.h>
     1458# else
     1459#  include <time.h>
     1460# endif
     1461#endif
     1462#ifdef HAVE_SYS_STAT_H
     1463#include <sys/stat.h>
     1464#endif
     1465            ],
     1466            [
     1467                struct timespec t;
     1468                struct stat s = {0};
     1469                t.tv_sec = s.st_mtime;
     1470                t.tv_nsec = s.st_umtime * 1000;
     1471                t.tv_sec = s.st_ctime;
     1472                t.tv_nsec = s.st_uctime * 1000;
     1473                t.tv_sec = s.st_atime;
     1474                t.tv_nsec = s.st_uatime * 1000;
     1475            ],
     1476            samba_cv_stat_hires_uxtime=yes, samba_cv_stat_hires_uxtime=no)
     1477    ])
     1478
     1479if test x"$samba_cv_stat_hires_uxtime" = x"yes" ; then
     1480    AC_DEFINE(HAVE_STAT_ST_UMTIME, 1, [whether struct stat contains st_umtime])
     1481    AC_DEFINE(HAVE_STAT_ST_UATIME, 1, [whether struct stat contains st_uatime])
     1482    AC_DEFINE(HAVE_STAT_ST_UCTIME, 1, [whether struct stat contains st_uctime])
     1483    AC_DEFINE(HAVE_STAT_HIRES_TIMESTAMPS, 1,
     1484            [whether struct stat has sub-second timestamps in st_uXtime])
    13671485fi
    13681486
     
    13901508                t = s.st_birthtimespec;
    13911509            ],
    1392             samba_cv_stat_st_birthtimespec=yes, samba_cv_stat_birthtimespec=no)
     1510            samba_cv_stat_st_birthtimespec=yes, samba_cv_stat_st_birthtimespec=no)
    13931511    ])
    13941512
     
    14201538                t.tv_nsec = s.st_birthtimensec;
    14211539            ],
    1422             samba_cv_stat_st_birthtimensec=yes, samba_cv_stat_birthtimensec=no)
     1540            samba_cv_stat_st_birthtimensec=yes, samba_cv_stat_st_birthtimensec=no)
    14231541    ])
    14241542
     
    14501568                t = s.st_birthtime;
    14511569            ],
    1452             samba_cv_stat_st_birthtime=yes, samba_cv_stat_birthtime=no)
     1570            samba_cv_stat_st_birthtime=yes, samba_cv_stat_st_birthtime=no)
    14531571    ])
    14541572
     
    59006018    AC_CHECK_LIB_EXT(dns_sd, DNSSD_LIBS, DNSServiceRegister)
    59016019    if test x"$ac_cv_func_DNSServiceRegister" != x"yes" -a \
    5902             x"$ac_cv_lib_ext_DNSServiceRegister" != x"yes"; then
     6020            x"$ac_cv_lib_ext_dns_sd_DNSServiceRegister" != x"yes"; then
    59036021        have_dnssd_support=no
    59046022    fi
Note: See TracChangeset for help on using the changeset viewer.