Ticket #145: 145_update_m4_files-rev2.patch

File 145_update_m4_files-rev2.patch, 175.3 KB (added by slavazanko, 15 years ago)

Remove autogenerated m4/*.m4 files. Some other changes for autocreate *.m4 files

  • ChangeLog

    diff --git a/ChangeLog b/ChangeLog
    index cfb459d..cf0787d 100644
    a b  
     12009-01-12 Slava Zanko <slavazanko@gmail.com> 
     2 
     3        * acinclude.m4: add mc-specific m4-definitions from some m4/*.m4 files 
     4        * m4/: remove all m4/*.m4 files 
     5        * configure.ac: remove m4 subdir 
     6        * Makefile.am: remove m4 subdir 
     7        * autogen.sh: fix for autocreate needed files 
     8 
    192009-01-11 Enrico Weigelt, metux ITS <weigelt@metux.de> 
    210 
    311        * FAQ HACKING README man/*: new HQ url 
  • Makefile.am

    diff --git a/Makefile.am b/Makefile.am
    index f7adf26..a667383 100644
    a b  
    22 
    33AUTOMAKE_OPTIONS = 1.5 
    44 
    5 SUBDIRS = intl po m4 vfs slang edit src lib doc syntax 
     5SUBDIRS = intl po vfs slang edit src lib doc syntax 
    66 
    77EXTRA_DIST = FAQ HACKING INSTALL.FAST MAINTAINERS README.QNX TODO pkginfo.in prototype.in mc.qpg mc.spec 
    88 
  • acinclude.m4

    diff --git a/acinclude.m4 b/acinclude.m4
    index f4c0e3b..5d49ff5 100644
    a b dnl Check for ext2fs undel support. 
    33dnl    Set shell variable ext2fs_undel to "yes" if we have it, 
    44dnl    "no" otherwise.  May define USE_EXT2FSLIB for cpp. 
    55dnl    Will set EXT2FS_UNDEL_LIBS to required libraries. 
    6  
    76AC_DEFUN([MC_UNDELFS_CHECKS], [ 
    87  ext2fs_undel=no 
    98  EXT2FS_UNDEL_LIBS= 
    AC_DEFUN([MC_VFS_CHECKS],[ 
    266265        esac 
    267266]) 
    268267 
     268# Obtaining file system usage information. 
     269 
     270AC_DEFUN([gl_FSUSAGE], 
     271[ 
     272  AC_LIBSOURCES([fsusage.c, fsusage.h]) 
     273 
     274  AC_CHECK_HEADERS_ONCE(sys/param.h) 
     275  AC_CHECK_HEADERS_ONCE(sys/vfs.h sys/fs_types.h) 
     276  AC_CHECK_HEADERS(sys/mount.h, [], [], 
     277    [AC_INCLUDES_DEFAULT 
     278     [#if HAVE_SYS_PARAM_H 
     279       #include <sys/param.h> 
     280      #endif]]) 
     281  gl_FILE_SYSTEM_USAGE([gl_cv_fs_space=yes], [gl_cv_fs_space=no]) 
     282  if test $gl_cv_fs_space = yes; then 
     283    AC_LIBOBJ(fsusage) 
     284    gl_PREREQ_FSUSAGE_EXTRA 
     285  fi 
     286]) 
     287 
     288# Try to determine how a program can obtain file system usage information. 
     289# If successful, define the appropriate symbol (see fsusage.c) and 
     290# execute ACTION-IF-FOUND.  Otherwise, execute ACTION-IF-NOT-FOUND. 
     291# 
     292# gl_FILE_SYSTEM_USAGE([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) 
     293 
     294AC_DEFUN([gl_FILE_SYSTEM_USAGE], 
     295[ 
     296 
     297AC_MSG_NOTICE([checking how to get file system space usage]) 
     298ac_fsusage_space=no 
     299 
     300# Perform only the link test since it seems there are no variants of the 
     301# statvfs function.  This check is more than just AC_CHECK_FUNCS(statvfs) 
     302# because that got a false positive on SCO OSR5.  Adding the declaration 
     303# of a `struct statvfs' causes this test to fail (as it should) on such 
     304# systems.  That system is reported to work fine with STAT_STATFS4 which 
     305# is what it gets when this test fails. 
     306if test $ac_fsusage_space = no; then 
     307  # SVR4 
     308  AC_CACHE_CHECK([for statvfs function (SVR4)], fu_cv_sys_stat_statvfs, 
     309                 [AC_TRY_LINK([#include <sys/types.h> 
     310#if defined __GLIBC__ && !defined __BEOS__ 
     311Do not use statvfs on systems with GNU libc, because that function stats 
     312all preceding entries in /proc/mounts, and that makes df hang if even 
     313one of the corresponding file systems is hard-mounted, but not available. 
     314statvfs in GNU libc on BeOS operates differently: it only makes a system 
     315call. 
     316#endif 
     317 
     318#ifdef __osf__ 
     319"Do not use Tru64's statvfs implementation" 
     320#endif 
     321 
     322#include <sys/statvfs.h>], 
     323                              [struct statvfs fsd; statvfs (0, &fsd);], 
     324                              fu_cv_sys_stat_statvfs=yes, 
     325                              fu_cv_sys_stat_statvfs=no)]) 
     326  if test $fu_cv_sys_stat_statvfs = yes; then 
     327    ac_fsusage_space=yes 
     328    AC_DEFINE(STAT_STATVFS, 1, 
     329              [  Define if there is a function named statvfs.  (SVR4)]) 
     330  fi 
     331fi 
     332 
     333if test $ac_fsusage_space = no; then 
     334  # DEC Alpha running OSF/1 
     335  AC_MSG_CHECKING([for 3-argument statfs function (DEC OSF/1)]) 
     336  AC_CACHE_VAL(fu_cv_sys_stat_statfs3_osf1, 
     337  [AC_TRY_RUN([ 
     338#include <sys/param.h> 
     339#include <sys/types.h> 
     340#include <sys/mount.h> 
     341  int 
     342  main () 
     343  { 
     344    struct statfs fsd; 
     345    fsd.f_fsize = 0; 
     346    return statfs (".", &fsd, sizeof (struct statfs)) != 0; 
     347  }], 
     348  fu_cv_sys_stat_statfs3_osf1=yes, 
     349  fu_cv_sys_stat_statfs3_osf1=no, 
     350  fu_cv_sys_stat_statfs3_osf1=no)]) 
     351  AC_MSG_RESULT($fu_cv_sys_stat_statfs3_osf1) 
     352  if test $fu_cv_sys_stat_statfs3_osf1 = yes; then 
     353    ac_fsusage_space=yes 
     354    AC_DEFINE(STAT_STATFS3_OSF1, 1, 
     355              [   Define if  statfs takes 3 args.  (DEC Alpha running OSF/1)]) 
     356  fi 
     357fi 
     358 
     359if test $ac_fsusage_space = no; then 
     360# AIX 
     361  AC_MSG_CHECKING([for two-argument statfs with statfs.bsize dnl 
     362member (AIX, 4.3BSD)]) 
     363  AC_CACHE_VAL(fu_cv_sys_stat_statfs2_bsize, 
     364  [AC_TRY_RUN([ 
     365#ifdef HAVE_SYS_PARAM_H 
     366#include <sys/param.h> 
     367#endif 
     368#ifdef HAVE_SYS_MOUNT_H 
     369#include <sys/mount.h> 
     370#endif 
     371#ifdef HAVE_SYS_VFS_H 
     372#include <sys/vfs.h> 
     373#endif 
     374  int 
     375  main () 
     376  { 
     377  struct statfs fsd; 
     378  fsd.f_bsize = 0; 
     379  return statfs (".", &fsd) != 0; 
     380  }], 
     381  fu_cv_sys_stat_statfs2_bsize=yes, 
     382  fu_cv_sys_stat_statfs2_bsize=no, 
     383  fu_cv_sys_stat_statfs2_bsize=no)]) 
     384  AC_MSG_RESULT($fu_cv_sys_stat_statfs2_bsize) 
     385  if test $fu_cv_sys_stat_statfs2_bsize = yes; then 
     386    ac_fsusage_space=yes 
     387    AC_DEFINE(STAT_STATFS2_BSIZE, 1, 
     388[  Define if statfs takes 2 args and struct statfs has a field named f_bsize. 
     389   (4.3BSD, SunOS 4, HP-UX, AIX PS/2)]) 
     390  fi 
     391fi 
     392 
     393if test $ac_fsusage_space = no; then 
     394# SVR3 
     395  AC_MSG_CHECKING([for four-argument statfs (AIX-3.2.5, SVR3)]) 
     396  AC_CACHE_VAL(fu_cv_sys_stat_statfs4, 
     397  [AC_TRY_RUN([#include <sys/types.h> 
     398#include <sys/statfs.h> 
     399  int 
     400  main () 
     401  { 
     402  struct statfs fsd; 
     403  return statfs (".", &fsd, sizeof fsd, 0) != 0; 
     404  }], 
     405    fu_cv_sys_stat_statfs4=yes, 
     406    fu_cv_sys_stat_statfs4=no, 
     407    fu_cv_sys_stat_statfs4=no)]) 
     408  AC_MSG_RESULT($fu_cv_sys_stat_statfs4) 
     409  if test $fu_cv_sys_stat_statfs4 = yes; then 
     410    ac_fsusage_space=yes 
     411    AC_DEFINE(STAT_STATFS4, 1, 
     412              [  Define if statfs takes 4 args.  (SVR3, Dynix, Irix, Dolphin)]) 
     413  fi 
     414fi 
     415 
     416if test $ac_fsusage_space = no; then 
     417# 4.4BSD and NetBSD 
     418  AC_MSG_CHECKING([for two-argument statfs with statfs.fsize dnl 
     419member (4.4BSD and NetBSD)]) 
     420  AC_CACHE_VAL(fu_cv_sys_stat_statfs2_fsize, 
     421  [AC_TRY_RUN([#include <sys/types.h> 
     422#ifdef HAVE_SYS_PARAM_H 
     423#include <sys/param.h> 
     424#endif 
     425#ifdef HAVE_SYS_MOUNT_H 
     426#include <sys/mount.h> 
     427#endif 
     428  int 
     429  main () 
     430  { 
     431  struct statfs fsd; 
     432  fsd.f_fsize = 0; 
     433  return statfs (".", &fsd) != 0; 
     434  }], 
     435  fu_cv_sys_stat_statfs2_fsize=yes, 
     436  fu_cv_sys_stat_statfs2_fsize=no, 
     437  fu_cv_sys_stat_statfs2_fsize=no)]) 
     438  AC_MSG_RESULT($fu_cv_sys_stat_statfs2_fsize) 
     439  if test $fu_cv_sys_stat_statfs2_fsize = yes; then 
     440    ac_fsusage_space=yes 
     441    AC_DEFINE(STAT_STATFS2_FSIZE, 1, 
     442[  Define if statfs takes 2 args and struct statfs has a field named f_fsize. 
     443   (4.4BSD, NetBSD)]) 
     444  fi 
     445fi 
     446 
     447if test $ac_fsusage_space = no; then 
     448  # Ultrix 
     449  AC_MSG_CHECKING([for two-argument statfs with struct fs_data (Ultrix)]) 
     450  AC_CACHE_VAL(fu_cv_sys_stat_fs_data, 
     451  [AC_TRY_RUN([#include <sys/types.h> 
     452#ifdef HAVE_SYS_PARAM_H 
     453#include <sys/param.h> 
     454#endif 
     455#ifdef HAVE_SYS_MOUNT_H 
     456#include <sys/mount.h> 
     457#endif 
     458#ifdef HAVE_SYS_FS_TYPES_H 
     459#include <sys/fs_types.h> 
     460#endif 
     461  int 
     462  main () 
     463  { 
     464  struct fs_data fsd; 
     465  /* Ultrix's statfs returns 1 for success, 
     466     0 for not mounted, -1 for failure.  */ 
     467  return statfs (".", &fsd) != 1; 
     468  }], 
     469  fu_cv_sys_stat_fs_data=yes, 
     470  fu_cv_sys_stat_fs_data=no, 
     471  fu_cv_sys_stat_fs_data=no)]) 
     472  AC_MSG_RESULT($fu_cv_sys_stat_fs_data) 
     473  if test $fu_cv_sys_stat_fs_data = yes; then 
     474    ac_fsusage_space=yes 
     475    AC_DEFINE(STAT_STATFS2_FS_DATA, 1, 
     476[  Define if statfs takes 2 args and the second argument has 
     477   type struct fs_data.  (Ultrix)]) 
     478  fi 
     479fi 
     480 
     481if test $ac_fsusage_space = no; then 
     482  # SVR2 
     483  AC_TRY_CPP([#include <sys/filsys.h> 
     484    ], 
     485    AC_DEFINE(STAT_READ_FILSYS, 1, 
     486      [Define if there is no specific function for reading file systems usage 
     487       information and you have the <sys/filsys.h> header file.  (SVR2)]) 
     488    ac_fsusage_space=yes) 
     489fi 
     490 
     491AS_IF([test $ac_fsusage_space = yes], [$1], [$2]) 
     492 
     493]) 
     494 
     495 
     496# Check for SunOS statfs brokenness wrt partitions 2GB and larger. 
     497# If <sys/vfs.h> exists and struct statfs has a member named f_spare, 
     498# enable the work-around code in fsusage.c. 
     499AC_DEFUN([gl_STATFS_TRUNCATES], 
     500[ 
     501  AC_MSG_CHECKING([for statfs that truncates block counts]) 
     502  AC_CACHE_VAL(fu_cv_sys_truncating_statfs, 
     503  [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ 
     504#if !defined(sun) && !defined(__sun) 
     505choke -- this is a workaround for a Sun-specific problem 
     506#endif 
     507#include <sys/types.h> 
     508#include <sys/vfs.h>]], 
     509    [[struct statfs t; long c = *(t.f_spare); 
     510      if (c) return 0;]])], 
     511    [fu_cv_sys_truncating_statfs=yes], 
     512    [fu_cv_sys_truncating_statfs=no])]) 
     513  if test $fu_cv_sys_truncating_statfs = yes; then 
     514    AC_DEFINE(STATFS_TRUNCATES_BLOCK_COUNTS, 1, 
     515      [Define if the block counts reported by statfs may be truncated to 2GB 
     516       and the correct values may be stored in the f_spare array. 
     517       (SunOS 4.1.2, 4.1.3, and 4.1.3_U1 are reported to have this problem. 
     518       SunOS 4.1.1 seems not to be affected.)]) 
     519  fi 
     520  AC_MSG_RESULT($fu_cv_sys_truncating_statfs) 
     521]) 
     522 
     523 
     524# Prerequisites of lib/fsusage.c not done by gl_FILE_SYSTEM_USAGE. 
     525AC_DEFUN([gl_PREREQ_FSUSAGE_EXTRA], 
     526[ 
     527  AC_REQUIRE([gl_AC_TYPE_UINTMAX_T]) 
     528  AC_CHECK_HEADERS(dustat.h sys/fs/s5param.h sys/filsys.h sys/statfs.h) 
     529  gl_STATFS_TRUNCATES 
     530]) 
     531 
     532AC_DEFUN([gl_FSTYPENAME], 
     533[ 
     534  AC_CHECK_MEMBERS([struct statfs.f_fstypename],,, 
     535    [ 
     536      #include <sys/types.h> 
     537      #include <sys/param.h> 
     538      #include <sys/mount.h> 
     539    ]) 
     540]) 
    269541 
    270542 
    271543dnl 
    dnl 
    274546dnl To get information about the disk, mount points, etc. 
    275547dnl 
    276548 
     549dnl From Jim Meyering. 
     550dnl 
     551dnl This is not pretty.  I've just taken the autoconf code and wrapped 
     552dnl it in an AC_DEFUN and made some other fixes. 
     553dnl 
     554 
     555# Replace Autoconf's AC_FUNC_GETMNTENT to work around a bug in Autoconf 
     556# through Autoconf 2.59.  We can remove this once we assume Autoconf 2.60 
     557# or later. 
     558AC_DEFUN([AC_FUNC_GETMNTENT], 
     559[# getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, 
     560# -lseq on Dynix/PTX, -lgen on Unixware. 
     561AC_SEARCH_LIBS(getmntent, [sun seq gen]) 
     562AC_CHECK_FUNCS(getmntent) 
     563]) 
     564 
     565# gl_LIST_MOUNTED_FILE_SYSTEMS([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) 
     566AC_DEFUN([gl_LIST_MOUNTED_FILE_SYSTEMS], 
     567  [ 
     568AC_CHECK_FUNCS(listmntent getmntinfo) 
     569AC_CHECK_HEADERS_ONCE(sys/param.h sys/statvfs.h) 
     570 
     571# We must include grp.h before ucred.h on OSF V4.0, since ucred.h uses 
     572# NGROUPS (as the array dimension for a struct member) without a definition. 
     573AC_CHECK_HEADERS(sys/ucred.h, [], [], [#include <grp.h>]) 
     574 
     575AC_CHECK_HEADERS(sys/mount.h, [], [], 
     576  [AC_INCLUDES_DEFAULT 
     577   [#if HAVE_SYS_PARAM_H 
     578     #include <sys/param.h> 
     579    #endif]]) 
     580 
     581AC_CHECK_HEADERS(mntent.h sys/fs_types.h) 
     582    getfsstat_includes="\ 
     583$ac_includes_default 
     584#if HAVE_SYS_PARAM_H 
     585# include <sys/param.h> /* needed by powerpc-apple-darwin1.3.7 */ 
     586#endif 
     587#if HAVE_SYS_UCRED_H 
     588# include <grp.h> /* needed for definition of NGROUPS */ 
     589# include <sys/ucred.h> /* needed by powerpc-apple-darwin1.3.7 */ 
     590#endif 
     591#if HAVE_SYS_MOUNT_H 
     592# include <sys/mount.h> 
     593#endif 
     594#if HAVE_SYS_FS_TYPES_H 
     595# include <sys/fs_types.h> /* needed by powerpc-apple-darwin1.3.7 */ 
     596#endif 
     597" 
     598AC_CHECK_MEMBERS([struct fsstat.f_fstypename],,,[$getfsstat_includes]) 
     599 
     600# Determine how to get the list of mounted file systems. 
     601ac_list_mounted_fs= 
     602 
     603# If the getmntent function is available but not in the standard library, 
     604# make sure LIBS contains the appropriate -l option. 
     605AC_FUNC_GETMNTENT 
     606 
     607# This test must precede the ones for getmntent because Unicos-9 is 
     608# reported to have the getmntent function, but its support is incompatible 
     609# with other getmntent implementations. 
     610 
     611# NOTE: Normally, I wouldn't use a check for system type as I've done for 
     612# `CRAY' below since that goes against the whole autoconf philosophy.  But 
     613# I think there is too great a chance that some non-Cray system has a 
     614# function named listmntent to risk the false positive. 
     615 
     616if test -z "$ac_list_mounted_fs"; then 
     617  # Cray UNICOS 9 
     618  AC_MSG_CHECKING([for listmntent of Cray/Unicos-9]) 
     619  AC_CACHE_VAL(fu_cv_sys_mounted_cray_listmntent, 
     620    [fu_cv_sys_mounted_cray_listmntent=no 
     621      AC_EGREP_CPP(yes, 
     622        [#ifdef _CRAY 
     623yes 
     624#endif 
     625        ], [test $ac_cv_func_listmntent = yes \ 
     626            && fu_cv_sys_mounted_cray_listmntent=yes] 
     627      ) 
     628    ] 
     629  ) 
     630  AC_MSG_RESULT($fu_cv_sys_mounted_cray_listmntent) 
     631  if test $fu_cv_sys_mounted_cray_listmntent = yes; then 
     632    ac_list_mounted_fs=found 
     633    AC_DEFINE(MOUNTED_LISTMNTENT, 1, 
     634      [Define if there is a function named listmntent that can be used to 
     635       list all mounted file systems.  (UNICOS)]) 
     636  fi 
     637fi 
     638 
     639if test -z "$ac_list_mounted_fs"; then 
     640  # AIX. 
     641  AC_MSG_CHECKING([for mntctl function and struct vmount]) 
     642  AC_CACHE_VAL(fu_cv_sys_mounted_vmount, 
     643  [AC_TRY_CPP([#include <fshelp.h>], 
     644    fu_cv_sys_mounted_vmount=yes, 
     645    fu_cv_sys_mounted_vmount=no)]) 
     646  AC_MSG_RESULT($fu_cv_sys_mounted_vmount) 
     647  if test $fu_cv_sys_mounted_vmount = yes; then 
     648    ac_list_mounted_fs=found 
     649    AC_DEFINE(MOUNTED_VMOUNT, 1, 
     650        [Define if there is a function named mntctl that can be used to read 
     651         the list of mounted file systems, and there is a system header file 
     652         that declares `struct vmount.'  (AIX)]) 
     653  fi 
     654fi 
     655 
     656if test $ac_cv_func_getmntent = yes; then 
     657 
     658  # This system has the getmntent function. 
     659  # Determine whether it's the one-argument variant or the two-argument one. 
     660 
     661  if test -z "$ac_list_mounted_fs"; then 
     662    # 4.3BSD, SunOS, HP-UX, Dynix, Irix 
     663    AC_MSG_CHECKING([for one-argument getmntent function]) 
     664    AC_CACHE_VAL(fu_cv_sys_mounted_getmntent1, 
     665                 [AC_TRY_COMPILE([ 
     666/* SunOS 4.1.x /usr/include/mntent.h needs this for FILE */ 
     667#include <stdio.h> 
     668 
     669#include <mntent.h> 
     670#if !defined MOUNTED 
     671# if defined _PATH_MOUNTED      /* GNU libc  */ 
     672#  define MOUNTED _PATH_MOUNTED 
     673# endif 
     674# if defined MNT_MNTTAB /* HP-UX.  */ 
     675#  define MOUNTED MNT_MNTTAB 
     676# endif 
     677# if defined MNTTABNAME /* Dynix.  */ 
     678#  define MOUNTED MNTTABNAME 
     679# endif 
     680#endif 
     681], 
     682                    [ struct mntent *mnt = 0; char *table = MOUNTED; 
     683                      if (sizeof mnt && sizeof table) return 0;], 
     684                    fu_cv_sys_mounted_getmntent1=yes, 
     685                    fu_cv_sys_mounted_getmntent1=no)]) 
     686    AC_MSG_RESULT($fu_cv_sys_mounted_getmntent1) 
     687    if test $fu_cv_sys_mounted_getmntent1 = yes; then 
     688      ac_list_mounted_fs=found 
     689      AC_DEFINE(MOUNTED_GETMNTENT1, 1, 
     690        [Define if there is a function named getmntent for reading the list 
     691         of mounted file systems, and that function takes a single argument. 
     692         (4.3BSD, SunOS, HP-UX, Dynix, Irix)]) 
     693    fi 
     694  fi 
     695 
     696  if test -z "$ac_list_mounted_fs"; then 
     697    # SVR4 
     698    AC_MSG_CHECKING([for two-argument getmntent function]) 
     699    AC_CACHE_VAL(fu_cv_sys_mounted_getmntent2, 
     700    [AC_EGREP_HEADER(getmntent, sys/mnttab.h, 
     701      fu_cv_sys_mounted_getmntent2=yes, 
     702      fu_cv_sys_mounted_getmntent2=no)]) 
     703    AC_MSG_RESULT($fu_cv_sys_mounted_getmntent2) 
     704    if test $fu_cv_sys_mounted_getmntent2 = yes; then 
     705      ac_list_mounted_fs=found 
     706      AC_DEFINE(MOUNTED_GETMNTENT2, 1, 
     707        [Define if there is a function named getmntent for reading the list of 
     708         mounted file systems, and that function takes two arguments.  (SVR4)]) 
     709      AC_CHECK_FUNCS(hasmntopt) 
     710    fi 
     711  fi 
     712 
     713fi 
     714 
     715if test -z "$ac_list_mounted_fs"; then 
     716  # DEC Alpha running OSF/1, and Apple Darwin 1.3. 
     717  # powerpc-apple-darwin1.3.7 needs sys/param.h sys/ucred.h sys/fs_types.h 
     718 
     719  AC_MSG_CHECKING([for getfsstat function]) 
     720  AC_CACHE_VAL(fu_cv_sys_mounted_getfsstat, 
     721  [AC_TRY_LINK([ 
     722#include <sys/types.h> 
     723#if HAVE_STRUCT_FSSTAT_F_FSTYPENAME 
     724# define FS_TYPE(Ent) ((Ent).f_fstypename) 
     725#else 
     726# define FS_TYPE(Ent) mnt_names[(Ent).f_type] 
     727#endif 
     728]$getfsstat_includes 
     729, 
     730  [struct statfs *stats; 
     731   int numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT); 
     732   char *t = FS_TYPE (*stats); ], 
     733    fu_cv_sys_mounted_getfsstat=yes, 
     734    fu_cv_sys_mounted_getfsstat=no)]) 
     735  AC_MSG_RESULT($fu_cv_sys_mounted_getfsstat) 
     736  if test $fu_cv_sys_mounted_getfsstat = yes; then 
     737    ac_list_mounted_fs=found 
     738    AC_DEFINE(MOUNTED_GETFSSTAT, 1, 
     739              [Define if there is a function named getfsstat for reading the 
     740               list of mounted file systems.  (DEC Alpha running OSF/1)]) 
     741  fi 
     742fi 
     743 
     744if test -z "$ac_list_mounted_fs"; then 
     745  # SVR3 
     746  AC_MSG_CHECKING([for FIXME existence of three headers]) 
     747  AC_CACHE_VAL(fu_cv_sys_mounted_fread_fstyp, 
     748    [AC_TRY_CPP([ 
     749#include <sys/statfs.h> 
     750#include <sys/fstyp.h> 
     751#include <mnttab.h>], 
     752                fu_cv_sys_mounted_fread_fstyp=yes, 
     753                fu_cv_sys_mounted_fread_fstyp=no)]) 
     754  AC_MSG_RESULT($fu_cv_sys_mounted_fread_fstyp) 
     755  if test $fu_cv_sys_mounted_fread_fstyp = yes; then 
     756    ac_list_mounted_fs=found 
     757    AC_DEFINE(MOUNTED_FREAD_FSTYP, 1, 
     758      [Define if (like SVR2) there is no specific function for reading the 
     759       list of mounted file systems, and your system has these header files: 
     760       <sys/fstyp.h> and <sys/statfs.h>.  (SVR3)]) 
     761  fi 
     762fi 
     763 
     764if test -z "$ac_list_mounted_fs"; then 
     765  # 4.4BSD and DEC OSF/1. 
     766  AC_MSG_CHECKING([for getmntinfo function]) 
     767  AC_CACHE_VAL(fu_cv_sys_mounted_getmntinfo, 
     768    [ 
     769      test "$ac_cv_func_getmntinfo" = yes \ 
     770          && fu_cv_sys_mounted_getmntinfo=yes \ 
     771          || fu_cv_sys_mounted_getmntinfo=no 
     772    ]) 
     773  AC_MSG_RESULT($fu_cv_sys_mounted_getmntinfo) 
     774  if test $fu_cv_sys_mounted_getmntinfo = yes; then 
     775    AC_MSG_CHECKING([whether getmntinfo returns statvfs structures]) 
     776    AC_CACHE_VAL(fu_cv_sys_mounted_getmntinfo2, 
     777      [ 
     778        AC_TRY_COMPILE([ 
     779#if HAVE_SYS_PARAM_H 
     780# include <sys/param.h> 
     781#endif 
     782#include <sys/types.h> 
     783#if HAVE_SYS_MOUNT_H 
     784# include <sys/mount.h> 
     785#endif 
     786#if HAVE_SYS_STATVFS_H 
     787# include <sys/statvfs.h> 
     788#endif 
     789extern int getmntinfo (struct statfs **, int); 
     790          ], [], 
     791          [fu_cv_sys_mounted_getmntinfo2=no], 
     792          [fu_cv_sys_mounted_getmntinfo2=yes]) 
     793      ]) 
     794    AC_MSG_RESULT([$fu_cv_sys_mounted_getmntinfo2]) 
     795    if test $fu_cv_sys_mounted_getmntinfo2 = no; then 
     796      ac_list_mounted_fs=found 
     797      AC_DEFINE(MOUNTED_GETMNTINFO, 1, 
     798                [Define if there is a function named getmntinfo for reading the 
     799                 list of mounted file systems and it returns an array of 
     800                 'struct statfs'.  (4.4BSD, Darwin)]) 
     801    else 
     802      ac_list_mounted_fs=found 
     803      AC_DEFINE(MOUNTED_GETMNTINFO2, 1, 
     804                [Define if there is a function named getmntinfo for reading the 
     805                 list of mounted file systems and it returns an array of 
     806                 'struct statvfs'.  (NetBSD 3.0)]) 
     807    fi 
     808  fi 
     809fi 
     810 
     811if test -z "$ac_list_mounted_fs"; then 
     812  # Ultrix 
     813  AC_MSG_CHECKING([for getmnt function]) 
     814  AC_CACHE_VAL(fu_cv_sys_mounted_getmnt, 
     815    [AC_TRY_CPP([ 
     816#include <sys/fs_types.h> 
     817#include <sys/mount.h>], 
     818                fu_cv_sys_mounted_getmnt=yes, 
     819                fu_cv_sys_mounted_getmnt=no)]) 
     820  AC_MSG_RESULT($fu_cv_sys_mounted_getmnt) 
     821  if test $fu_cv_sys_mounted_getmnt = yes; then 
     822    ac_list_mounted_fs=found 
     823    AC_DEFINE(MOUNTED_GETMNT, 1, 
     824      [Define if there is a function named getmnt for reading the list of 
     825       mounted file systems.  (Ultrix)]) 
     826  fi 
     827fi 
     828 
     829if test -z "$ac_list_mounted_fs"; then 
     830  # BeOS 
     831  AC_CHECK_FUNCS(next_dev fs_stat_dev) 
     832  AC_CHECK_HEADERS(fs_info.h) 
     833  AC_MSG_CHECKING([for BEOS mounted file system support functions]) 
     834  if test $ac_cv_header_fs_info_h = yes \ 
     835      && test $ac_cv_func_next_dev = yes \ 
     836        && test $ac_cv_func_fs_stat_dev = yes; then 
     837    fu_result=yes 
     838  else 
     839    fu_result=no 
     840  fi 
     841  AC_MSG_RESULT($fu_result) 
     842  if test $fu_result = yes; then 
     843    ac_list_mounted_fs=found 
     844    AC_DEFINE(MOUNTED_FS_STAT_DEV, 1, 
     845      [Define if there are functions named next_dev and fs_stat_dev for 
     846       reading the list of mounted file systems.  (BeOS)]) 
     847  fi 
     848fi 
     849 
     850if test -z "$ac_list_mounted_fs"; then 
     851  # SVR2 
     852  AC_MSG_CHECKING([whether it is possible to resort to fread on /etc/mnttab]) 
     853  AC_CACHE_VAL(fu_cv_sys_mounted_fread, 
     854    [AC_TRY_CPP([#include <mnttab.h>], 
     855                fu_cv_sys_mounted_fread=yes, 
     856                fu_cv_sys_mounted_fread=no)]) 
     857  AC_MSG_RESULT($fu_cv_sys_mounted_fread) 
     858  if test $fu_cv_sys_mounted_fread = yes; then 
     859    ac_list_mounted_fs=found 
     860    AC_DEFINE(MOUNTED_FREAD, 1, 
     861              [Define if there is no specific function for reading the list of 
     862               mounted file systems.  fread will be used to read /etc/mnttab. 
     863               (SVR2) ]) 
     864  fi 
     865fi 
     866 
     867if test -z "$ac_list_mounted_fs"; then 
     868  AC_MSG_ERROR([could not determine how to read list of mounted file systems]) 
     869  # FIXME -- no need to abort building the whole package 
     870  # Can't build mountlist.c or anything that needs its functions 
     871fi 
     872 
     873AS_IF([test $ac_list_mounted_fs = found], [$1], [$2]) 
     874 
     875  ]) 
     876 
     877 
    277878AC_DEFUN([AC_GET_FS_INFO], [ 
    278879    AC_CHECK_HEADERS([fcntl.h utime.h]) 
    279880 
  • autogen.sh

    diff --git a/autogen.sh b/autogen.sh
    index a2b4f92..7aabb18 100755
    a b test -f configure || \ 
    5757 
    5858# Workaround for Automake 1.5 to ensure that depcomp is distributed. 
    5959if test "`$AUTOMAKE --version|awk '{print $NF;exit}'`" = '1.5' ; then 
    60     $AUTOMAKE -a src/Makefile 
     60    $AUTOMAKE --add-missing -a src/Makefile 
    6161fi 
    62 $AUTOMAKE -a 
     62$AUTOMAKE --add-missing -a 
    6363test -f Makefile.in || \ 
    6464  { echo "automake failed to generate Makefile.in" >&2; exit 1; } 
    6565 
  • configure.ac

    diff --git a/configure.ac b/configure.ac
    index 0066dbf..ee6097c 100644
    a b src/Makefile 
    590590slang/Makefile  
    591591edit/Makefile  
    592592syntax/Makefile 
    593 m4/Makefile 
    594593lib/mc.ext 
    595594vfs/extfs/a 
    596595vfs/extfs/apt 
  • deleted file m4/Makefile.am

    diff --git a/m4/Makefile.am b/m4/Makefile.am
    deleted file mode 100644
    index 2bd2c6e..0000000
    + -  
    1 m4files = \ 
    2         codeset.m4 \ 
    3         gettext.m4 \ 
    4         glib.m4 \ 
    5         glibc2.m4 \ 
    6         glibc21.m4 \ 
    7         iconv.m4 \ 
    8         intdiv0.m4 \ 
    9         intmax.m4 \ 
    10         inttypes-pri.m4 \ 
    11         inttypes.m4 \ 
    12         inttypes_h.m4 \ 
    13         isc-posix.m4 \ 
    14         lcmessage.m4 \ 
    15         lib-ld.m4 \ 
    16         lib-link.m4 \ 
    17         lib-prefix.m4 \ 
    18         longdouble.m4 \ 
    19         longlong.m4 \ 
    20         nls.m4 \ 
    21         pkg.m4 \ 
    22         po.m4 \ 
    23         printf-posix.m4 \ 
    24         progtest.m4 \ 
    25         signed.m4 \ 
    26         size_max.m4 \ 
    27         stdint_h.m4 \ 
    28         uintmax_t.m4 \ 
    29         ulonglong.m4 \ 
    30         wchar_t.m4 \ 
    31         wint_t.m4 \ 
    32         xsize.m4 
    33  
    34 EXTRA_DIST = README $(m4files) 
  • deleted file m4/README

    diff --git a/m4/README b/m4/README
    deleted file mode 100644
    index 0e63819..0000000
    + -  
    1 This directory contains m4 macro files for GNU Midnight Commander. 
    2  
    3 None of those files is maintained here! 
    4 Don't change those files unless: 
    5  
    6 1) you are upgrading them from the latest version of the package where 
    7 they are maintained 
    8  
    9 OR 
    10  
    11 2) the fix is needed right now AND this fix has been submitted to the 
    12 proper maintainer. 
    13  
    14 Otherwise, your changes will be lost. 
  • deleted file m4/codeset.m4

    diff --git a/m4/codeset.m4 b/m4/codeset.m4
    deleted file mode 100644
    index 223955b..0000000
    + -  
    1 # codeset.m4 serial 2 (gettext-0.16) 
    2 dnl Copyright (C) 2000-2002, 2006 Free Software Foundation, Inc. 
    3 dnl This file is free software; the Free Software Foundation 
    4 dnl gives unlimited permission to copy and/or distribute it, 
    5 dnl with or without modifications, as long as this notice is preserved. 
    6  
    7 dnl From Bruno Haible. 
    8  
    9 AC_DEFUN([AM_LANGINFO_CODESET], 
    10 [ 
    11   AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset, 
    12     [AC_TRY_LINK([#include <langinfo.h>], 
    13       [char* cs = nl_langinfo(CODESET); return !cs;], 
    14       am_cv_langinfo_codeset=yes, 
    15       am_cv_langinfo_codeset=no) 
    16     ]) 
    17   if test $am_cv_langinfo_codeset = yes; then 
    18     AC_DEFINE(HAVE_LANGINFO_CODESET, 1, 
    19       [Define if you have <langinfo.h> and nl_langinfo(CODESET).]) 
    20   fi 
    21 ]) 
  • deleted file m4/fstypename.m4

    diff --git a/m4/fstypename.m4 b/m4/fstypename.m4
    deleted file mode 100644
    index aa676f3..0000000
    + -  
    1 #serial 6 
    2  
    3 dnl From Jim Meyering. 
    4 dnl 
    5 dnl See if struct statfs has the f_fstypename member. 
    6 dnl If so, define HAVE_STRUCT_STATFS_F_FSTYPENAME. 
    7 dnl 
    8  
    9 # Copyright (C) 1998, 1999, 2001, 2004, 2006 Free Software Foundation, Inc. 
    10 # This file is free software; the Free Software Foundation 
    11 # gives unlimited permission to copy and/or distribute it, 
    12 # with or without modifications, as long as this notice is preserved. 
    13  
    14 AC_DEFUN([gl_FSTYPENAME], 
    15 [ 
    16   AC_CHECK_MEMBERS([struct statfs.f_fstypename],,, 
    17     [ 
    18       #include <sys/types.h> 
    19       #include <sys/param.h> 
    20       #include <sys/mount.h> 
    21     ]) 
    22 ]) 
  • deleted file m4/fsusage.m4

    diff --git a/m4/fsusage.m4 b/m4/fsusage.m4
    deleted file mode 100644
    index a8df1d5..0000000
    + -  
    1 #serial 23 
    2 # Obtaining file system usage information. 
    3  
    4 # Copyright (C) 1997, 1998, 2000, 2001, 2003-2007 Free Software Foundation, Inc. 
    5 # 
    6 # This file is free software; the Free Software Foundation 
    7 # gives unlimited permission to copy and/or distribute it, 
    8 # with or without modifications, as long as this notice is preserved. 
    9  
    10 # Written by Jim Meyering. 
    11  
    12 AC_DEFUN([gl_FSUSAGE], 
    13 [ 
    14   AC_LIBSOURCES([fsusage.c, fsusage.h]) 
    15  
    16   AC_CHECK_HEADERS_ONCE(sys/param.h) 
    17   AC_CHECK_HEADERS_ONCE(sys/vfs.h sys/fs_types.h) 
    18   AC_CHECK_HEADERS(sys/mount.h, [], [], 
    19     [AC_INCLUDES_DEFAULT 
    20      [#if HAVE_SYS_PARAM_H 
    21        #include <sys/param.h> 
    22       #endif]]) 
    23   gl_FILE_SYSTEM_USAGE([gl_cv_fs_space=yes], [gl_cv_fs_space=no]) 
    24   if test $gl_cv_fs_space = yes; then 
    25     AC_LIBOBJ(fsusage) 
    26     gl_PREREQ_FSUSAGE_EXTRA 
    27   fi 
    28 ]) 
    29  
    30 # Try to determine how a program can obtain file system usage information. 
    31 # If successful, define the appropriate symbol (see fsusage.c) and 
    32 # execute ACTION-IF-FOUND.  Otherwise, execute ACTION-IF-NOT-FOUND. 
    33 # 
    34 # gl_FILE_SYSTEM_USAGE([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) 
    35  
    36 AC_DEFUN([gl_FILE_SYSTEM_USAGE], 
    37 [ 
    38  
    39 AC_MSG_NOTICE([checking how to get file system space usage]) 
    40 ac_fsusage_space=no 
    41  
    42 # Perform only the link test since it seems there are no variants of the 
    43 # statvfs function.  This check is more than just AC_CHECK_FUNCS(statvfs) 
    44 # because that got a false positive on SCO OSR5.  Adding the declaration 
    45 # of a `struct statvfs' causes this test to fail (as it should) on such 
    46 # systems.  That system is reported to work fine with STAT_STATFS4 which 
    47 # is what it gets when this test fails. 
    48 if test $ac_fsusage_space = no; then 
    49   # SVR4 
    50   AC_CACHE_CHECK([for statvfs function (SVR4)], fu_cv_sys_stat_statvfs, 
    51                  [AC_TRY_LINK([#include <sys/types.h> 
    52 #if defined __GLIBC__ && !defined __BEOS__ 
    53 Do not use statvfs on systems with GNU libc, because that function stats 
    54 all preceding entries in /proc/mounts, and that makes df hang if even 
    55 one of the corresponding file systems is hard-mounted, but not available. 
    56 statvfs in GNU libc on BeOS operates differently: it only makes a system 
    57 call. 
    58 #endif 
    59  
    60 #ifdef __osf__ 
    61 "Do not use Tru64's statvfs implementation" 
    62 #endif 
    63  
    64 #include <sys/statvfs.h>], 
    65                               [struct statvfs fsd; statvfs (0, &fsd);], 
    66                               fu_cv_sys_stat_statvfs=yes, 
    67                               fu_cv_sys_stat_statvfs=no)]) 
    68   if test $fu_cv_sys_stat_statvfs = yes; then 
    69     ac_fsusage_space=yes 
    70     AC_DEFINE(STAT_STATVFS, 1, 
    71               [  Define if there is a function named statvfs.  (SVR4)]) 
    72   fi 
    73 fi 
    74  
    75 if test $ac_fsusage_space = no; then 
    76   # DEC Alpha running OSF/1 
    77   AC_MSG_CHECKING([for 3-argument statfs function (DEC OSF/1)]) 
    78   AC_CACHE_VAL(fu_cv_sys_stat_statfs3_osf1, 
    79   [AC_TRY_RUN([ 
    80 #include <sys/param.h> 
    81 #include <sys/types.h> 
    82 #include <sys/mount.h> 
    83   int 
    84   main () 
    85   { 
    86     struct statfs fsd; 
    87     fsd.f_fsize = 0; 
    88     return statfs (".", &fsd, sizeof (struct statfs)) != 0; 
    89   }], 
    90   fu_cv_sys_stat_statfs3_osf1=yes, 
    91   fu_cv_sys_stat_statfs3_osf1=no, 
    92   fu_cv_sys_stat_statfs3_osf1=no)]) 
    93   AC_MSG_RESULT($fu_cv_sys_stat_statfs3_osf1) 
    94   if test $fu_cv_sys_stat_statfs3_osf1 = yes; then 
    95     ac_fsusage_space=yes 
    96     AC_DEFINE(STAT_STATFS3_OSF1, 1, 
    97               [   Define if  statfs takes 3 args.  (DEC Alpha running OSF/1)]) 
    98   fi 
    99 fi 
    100  
    101 if test $ac_fsusage_space = no; then 
    102 # AIX 
    103   AC_MSG_CHECKING([for two-argument statfs with statfs.bsize dnl 
    104 member (AIX, 4.3BSD)]) 
    105   AC_CACHE_VAL(fu_cv_sys_stat_statfs2_bsize, 
    106   [AC_TRY_RUN([ 
    107 #ifdef HAVE_SYS_PARAM_H 
    108 #include <sys/param.h> 
    109 #endif 
    110 #ifdef HAVE_SYS_MOUNT_H 
    111 #include <sys/mount.h> 
    112 #endif 
    113 #ifdef HAVE_SYS_VFS_H 
    114 #include <sys/vfs.h> 
    115 #endif 
    116   int 
    117   main () 
    118   { 
    119   struct statfs fsd; 
    120   fsd.f_bsize = 0; 
    121   return statfs (".", &fsd) != 0; 
    122   }], 
    123   fu_cv_sys_stat_statfs2_bsize=yes, 
    124   fu_cv_sys_stat_statfs2_bsize=no, 
    125   fu_cv_sys_stat_statfs2_bsize=no)]) 
    126   AC_MSG_RESULT($fu_cv_sys_stat_statfs2_bsize) 
    127   if test $fu_cv_sys_stat_statfs2_bsize = yes; then 
    128     ac_fsusage_space=yes 
    129     AC_DEFINE(STAT_STATFS2_BSIZE, 1, 
    130 [  Define if statfs takes 2 args and struct statfs has a field named f_bsize. 
    131    (4.3BSD, SunOS 4, HP-UX, AIX PS/2)]) 
    132   fi 
    133 fi 
    134  
    135 if test $ac_fsusage_space = no; then 
    136 # SVR3 
    137   AC_MSG_CHECKING([for four-argument statfs (AIX-3.2.5, SVR3)]) 
    138   AC_CACHE_VAL(fu_cv_sys_stat_statfs4, 
    139   [AC_TRY_RUN([#include <sys/types.h> 
    140 #include <sys/statfs.h> 
    141   int 
    142   main () 
    143   { 
    144   struct statfs fsd; 
    145   return statfs (".", &fsd, sizeof fsd, 0) != 0; 
    146   }], 
    147     fu_cv_sys_stat_statfs4=yes, 
    148     fu_cv_sys_stat_statfs4=no, 
    149     fu_cv_sys_stat_statfs4=no)]) 
    150   AC_MSG_RESULT($fu_cv_sys_stat_statfs4) 
    151   if test $fu_cv_sys_stat_statfs4 = yes; then 
    152     ac_fsusage_space=yes 
    153     AC_DEFINE(STAT_STATFS4, 1, 
    154               [  Define if statfs takes 4 args.  (SVR3, Dynix, Irix, Dolphin)]) 
    155   fi 
    156 fi 
    157  
    158 if test $ac_fsusage_space = no; then 
    159 # 4.4BSD and NetBSD 
    160   AC_MSG_CHECKING([for two-argument statfs with statfs.fsize dnl 
    161 member (4.4BSD and NetBSD)]) 
    162   AC_CACHE_VAL(fu_cv_sys_stat_statfs2_fsize, 
    163   [AC_TRY_RUN([#include <sys/types.h> 
    164 #ifdef HAVE_SYS_PARAM_H 
    165 #include <sys/param.h> 
    166 #endif 
    167 #ifdef HAVE_SYS_MOUNT_H 
    168 #include <sys/mount.h> 
    169 #endif 
    170   int 
    171   main () 
    172   { 
    173   struct statfs fsd; 
    174   fsd.f_fsize = 0; 
    175   return statfs (".", &fsd) != 0; 
    176   }], 
    177   fu_cv_sys_stat_statfs2_fsize=yes, 
    178   fu_cv_sys_stat_statfs2_fsize=no, 
    179   fu_cv_sys_stat_statfs2_fsize=no)]) 
    180   AC_MSG_RESULT($fu_cv_sys_stat_statfs2_fsize) 
    181   if test $fu_cv_sys_stat_statfs2_fsize = yes; then 
    182     ac_fsusage_space=yes 
    183     AC_DEFINE(STAT_STATFS2_FSIZE, 1, 
    184 [  Define if statfs takes 2 args and struct statfs has a field named f_fsize. 
    185    (4.4BSD, NetBSD)]) 
    186   fi 
    187 fi 
    188  
    189 if test $ac_fsusage_space = no; then 
    190   # Ultrix 
    191   AC_MSG_CHECKING([for two-argument statfs with struct fs_data (Ultrix)]) 
    192   AC_CACHE_VAL(fu_cv_sys_stat_fs_data, 
    193   [AC_TRY_RUN([#include <sys/types.h> 
    194 #ifdef HAVE_SYS_PARAM_H 
    195 #include <sys/param.h> 
    196 #endif 
    197 #ifdef HAVE_SYS_MOUNT_H 
    198 #include <sys/mount.h> 
    199 #endif 
    200 #ifdef HAVE_SYS_FS_TYPES_H 
    201 #include <sys/fs_types.h> 
    202 #endif 
    203   int 
    204   main () 
    205   { 
    206   struct fs_data fsd; 
    207   /* Ultrix's statfs returns 1 for success, 
    208      0 for not mounted, -1 for failure.  */ 
    209   return statfs (".", &fsd) != 1; 
    210   }], 
    211   fu_cv_sys_stat_fs_data=yes, 
    212   fu_cv_sys_stat_fs_data=no, 
    213   fu_cv_sys_stat_fs_data=no)]) 
    214   AC_MSG_RESULT($fu_cv_sys_stat_fs_data) 
    215   if test $fu_cv_sys_stat_fs_data = yes; then 
    216     ac_fsusage_space=yes 
    217     AC_DEFINE(STAT_STATFS2_FS_DATA, 1, 
    218 [  Define if statfs takes 2 args and the second argument has 
    219    type struct fs_data.  (Ultrix)]) 
    220   fi 
    221 fi 
    222  
    223 if test $ac_fsusage_space = no; then 
    224   # SVR2 
    225   AC_TRY_CPP([#include <sys/filsys.h> 
    226     ], 
    227     AC_DEFINE(STAT_READ_FILSYS, 1, 
    228       [Define if there is no specific function for reading file systems usage 
    229        information and you have the <sys/filsys.h> header file.  (SVR2)]) 
    230     ac_fsusage_space=yes) 
    231 fi 
    232  
    233 AS_IF([test $ac_fsusage_space = yes], [$1], [$2]) 
    234  
    235 ]) 
    236  
    237  
    238 # Check for SunOS statfs brokenness wrt partitions 2GB and larger. 
    239 # If <sys/vfs.h> exists and struct statfs has a member named f_spare, 
    240 # enable the work-around code in fsusage.c. 
    241 AC_DEFUN([gl_STATFS_TRUNCATES], 
    242 [ 
    243   AC_MSG_CHECKING([for statfs that truncates block counts]) 
    244   AC_CACHE_VAL(fu_cv_sys_truncating_statfs, 
    245   [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ 
    246 #if !defined(sun) && !defined(__sun) 
    247 choke -- this is a workaround for a Sun-specific problem 
    248 #endif 
    249 #include <sys/types.h> 
    250 #include <sys/vfs.h>]], 
    251     [[struct statfs t; long c = *(t.f_spare); 
    252       if (c) return 0;]])], 
    253     [fu_cv_sys_truncating_statfs=yes], 
    254     [fu_cv_sys_truncating_statfs=no])]) 
    255   if test $fu_cv_sys_truncating_statfs = yes; then 
    256     AC_DEFINE(STATFS_TRUNCATES_BLOCK_COUNTS, 1, 
    257       [Define if the block counts reported by statfs may be truncated to 2GB 
    258        and the correct values may be stored in the f_spare array. 
    259        (SunOS 4.1.2, 4.1.3, and 4.1.3_U1 are reported to have this problem. 
    260        SunOS 4.1.1 seems not to be affected.)]) 
    261   fi 
    262   AC_MSG_RESULT($fu_cv_sys_truncating_statfs) 
    263 ]) 
    264  
    265  
    266 # Prerequisites of lib/fsusage.c not done by gl_FILE_SYSTEM_USAGE. 
    267 AC_DEFUN([gl_PREREQ_FSUSAGE_EXTRA], 
    268 [ 
    269   AC_REQUIRE([gl_AC_TYPE_UINTMAX_T]) 
    270   AC_CHECK_HEADERS(dustat.h sys/fs/s5param.h sys/filsys.h sys/statfs.h) 
    271   gl_STATFS_TRUNCATES 
    272 ]) 
  • deleted file m4/gettext.m4

    diff --git a/m4/gettext.m4 b/m4/gettext.m4
    deleted file mode 100644
    index 6261026..0000000
    + -  
    1 # gettext.m4 serial 36 (gettext-0.14.3) 
    2 dnl Copyright (C) 1995-2005 Free Software Foundation, Inc. 
    3 dnl This file is free software; the Free Software Foundation 
    4 dnl gives unlimited permission to copy and/or distribute it, 
    5 dnl with or without modifications, as long as this notice is preserved. 
    6 dnl 
    7 dnl This file can can be used in projects which are not available under 
    8 dnl the GNU General Public License or the GNU Library General Public 
    9 dnl License but which still want to provide support for the GNU gettext 
    10 dnl functionality. 
    11 dnl Please note that the actual code of the GNU gettext library is covered 
    12 dnl by the GNU Library General Public License, and the rest of the GNU 
    13 dnl gettext package package is covered by the GNU General Public License. 
    14 dnl They are *not* in the public domain. 
    15  
    16 dnl Authors: 
    17 dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000. 
    18 dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003. 
    19  
    20 dnl Macro to add for using GNU gettext. 
    21  
    22 dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]). 
    23 dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The 
    24 dnl    default (if it is not specified or empty) is 'no-libtool'. 
    25 dnl    INTLSYMBOL should be 'external' for packages with no intl directory, 
    26 dnl    and 'no-libtool' or 'use-libtool' for packages with an intl directory. 
    27 dnl    If INTLSYMBOL is 'use-libtool', then a libtool library 
    28 dnl    $(top_builddir)/intl/libintl.la will be created (shared and/or static, 
    29 dnl    depending on --{enable,disable}-{shared,static} and on the presence of 
    30 dnl    AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library 
    31 dnl    $(top_builddir)/intl/libintl.a will be created. 
    32 dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext 
    33 dnl    implementations (in libc or libintl) without the ngettext() function 
    34 dnl    will be ignored.  If NEEDSYMBOL is specified and is 
    35 dnl    'need-formatstring-macros', then GNU gettext implementations that don't 
    36 dnl    support the ISO C 99 <inttypes.h> formatstring macros will be ignored. 
    37 dnl INTLDIR is used to find the intl libraries.  If empty, 
    38 dnl    the value `$(top_builddir)/intl/' is used. 
    39 dnl 
    40 dnl The result of the configuration is one of three cases: 
    41 dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled 
    42 dnl    and used. 
    43 dnl    Catalog format: GNU --> install in $(datadir) 
    44 dnl    Catalog extension: .mo after installation, .gmo in source tree 
    45 dnl 2) GNU gettext has been found in the system's C library. 
    46 dnl    Catalog format: GNU --> install in $(datadir) 
    47 dnl    Catalog extension: .mo after installation, .gmo in source tree 
    48 dnl 3) No internationalization, always use English msgid. 
    49 dnl    Catalog format: none 
    50 dnl    Catalog extension: none 
    51 dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur. 
    52 dnl The use of .gmo is historical (it was needed to avoid overwriting the 
    53 dnl GNU format catalogs when building on a platform with an X/Open gettext), 
    54 dnl but we keep it in order not to force irrelevant filename changes on the 
    55 dnl maintainers. 
    56 dnl 
    57 AC_DEFUN([AM_GNU_GETTEXT], 
    58 [ 
    59   dnl Argument checking. 
    60   ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], , 
    61     [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT 
    62 ])])])])]) 
    63   ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], , 
    64     [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT 
    65 ])])])]) 
    66   define([gt_included_intl], ifelse([$1], [external], [no], [yes])) 
    67   define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], [])) 
    68  
    69   AC_REQUIRE([AM_PO_SUBDIRS])dnl 
    70   ifelse(gt_included_intl, yes, [ 
    71     AC_REQUIRE([AM_INTL_SUBDIR])dnl 
    72   ]) 
    73  
    74   dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. 
    75   AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) 
    76   AC_REQUIRE([AC_LIB_RPATH]) 
    77  
    78   dnl Sometimes libintl requires libiconv, so first search for libiconv. 
    79   dnl Ideally we would do this search only after the 
    80   dnl      if test "$USE_NLS" = "yes"; then 
    81   dnl        if test "$gt_cv_func_gnugettext_libc" != "yes"; then 
    82   dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT 
    83   dnl the configure script would need to contain the same shell code 
    84   dnl again, outside any 'if'. There are two solutions: 
    85   dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'. 
    86   dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE. 
    87   dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not 
    88   dnl documented, we avoid it. 
    89   ifelse(gt_included_intl, yes, , [ 
    90     AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) 
    91   ]) 
    92  
    93   dnl Sometimes, on MacOS X, libintl requires linking with CoreFoundation. 
    94   gt_INTL_MACOSX 
    95  
    96   dnl Set USE_NLS. 
    97   AM_NLS 
    98  
    99   ifelse(gt_included_intl, yes, [ 
    100     BUILD_INCLUDED_LIBINTL=no 
    101     USE_INCLUDED_LIBINTL=no 
    102   ]) 
    103   LIBINTL= 
    104   LTLIBINTL= 
    105   POSUB= 
    106  
    107   dnl If we use NLS figure out what method 
    108   if test "$USE_NLS" = "yes"; then 
    109     gt_use_preinstalled_gnugettext=no 
    110     ifelse(gt_included_intl, yes, [ 
    111       AC_MSG_CHECKING([whether included gettext is requested]) 
    112       AC_ARG_WITH(included-gettext, 
    113         [  --with-included-gettext use the GNU gettext library included here], 
    114         nls_cv_force_use_gnu_gettext=$withval, 
    115         nls_cv_force_use_gnu_gettext=no) 
    116       AC_MSG_RESULT($nls_cv_force_use_gnu_gettext) 
    117  
    118       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" 
    119       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then 
    120     ]) 
    121         dnl User does not insist on using GNU NLS library.  Figure out what 
    122         dnl to use.  If GNU gettext is available we use this.  Else we have 
    123         dnl to fall back to GNU NLS library. 
    124  
    125         dnl Add a version number to the cache macros. 
    126         define([gt_api_version], ifelse([$2], [need-formatstring-macros], 3, ifelse([$2], [need-ngettext], 2, 1))) 
    127         define([gt_cv_func_gnugettext_libc], [gt_cv_func_gnugettext]gt_api_version[_libc]) 
    128         define([gt_cv_func_gnugettext_libintl], [gt_cv_func_gnugettext]gt_api_version[_libintl]) 
    129  
    130         AC_CACHE_CHECK([for GNU gettext in libc], gt_cv_func_gnugettext_libc, 
    131          [AC_TRY_LINK([#include <libintl.h> 
    132 ]ifelse([$2], [need-formatstring-macros], 
    133 [#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 
    134 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 
    135 #endif 
    136 changequote(,)dnl 
    137 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 
    138 changequote([,])dnl 
    139 ], [])[extern int _nl_msg_cat_cntr; 
    140 extern int *_nl_domain_bindings;], 
    141             [bindtextdomain ("", ""); 
    142 return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_domain_bindings], 
    143             gt_cv_func_gnugettext_libc=yes, 
    144             gt_cv_func_gnugettext_libc=no)]) 
    145  
    146         if test "$gt_cv_func_gnugettext_libc" != "yes"; then 
    147           dnl Sometimes libintl requires libiconv, so first search for libiconv. 
    148           ifelse(gt_included_intl, yes, , [ 
    149             AM_ICONV_LINK 
    150           ]) 
    151           dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL 
    152           dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv]) 
    153           dnl because that would add "-liconv" to LIBINTL and LTLIBINTL 
    154           dnl even if libiconv doesn't exist. 
    155           AC_LIB_LINKFLAGS_BODY([intl]) 
    156           AC_CACHE_CHECK([for GNU gettext in libintl], 
    157             gt_cv_func_gnugettext_libintl, 
    158            [gt_save_CPPFLAGS="$CPPFLAGS" 
    159             CPPFLAGS="$CPPFLAGS $INCINTL" 
    160             gt_save_LIBS="$LIBS" 
    161             LIBS="$LIBS $LIBINTL" 
    162             dnl Now see whether libintl exists and does not depend on libiconv. 
    163             AC_TRY_LINK([#include <libintl.h> 
    164 ]ifelse([$2], [need-formatstring-macros], 
    165 [#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 
    166 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 
    167 #endif 
    168 changequote(,)dnl 
    169 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 
    170 changequote([,])dnl 
    171 ], [])[extern int _nl_msg_cat_cntr; 
    172 extern 
    173 #ifdef __cplusplus 
    174 "C" 
    175 #endif 
    176 const char *_nl_expand_alias (const char *);], 
    177               [bindtextdomain ("", ""); 
    178 return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias ("")], 
    179               gt_cv_func_gnugettext_libintl=yes, 
    180               gt_cv_func_gnugettext_libintl=no) 
    181             dnl Now see whether libintl exists and depends on libiconv. 
    182             if test "$gt_cv_func_gnugettext_libintl" != yes && test -n "$LIBICONV"; then 
    183               LIBS="$LIBS $LIBICONV" 
    184               AC_TRY_LINK([#include <libintl.h> 
    185 ]ifelse([$2], [need-formatstring-macros], 
    186 [#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 
    187 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 
    188 #endif 
    189 changequote(,)dnl 
    190 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 
    191 changequote([,])dnl 
    192 ], [])[extern int _nl_msg_cat_cntr; 
    193 extern 
    194 #ifdef __cplusplus 
    195 "C" 
    196 #endif 
    197 const char *_nl_expand_alias (const char *);], 
    198                 [bindtextdomain ("", ""); 
    199 return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias ("")], 
    200                [LIBINTL="$LIBINTL $LIBICONV" 
    201                 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 
    202                 gt_cv_func_gnugettext_libintl=yes 
    203                ]) 
    204             fi 
    205             CPPFLAGS="$gt_save_CPPFLAGS" 
    206             LIBS="$gt_save_LIBS"]) 
    207         fi 
    208  
    209         dnl If an already present or preinstalled GNU gettext() is found, 
    210         dnl use it.  But if this macro is used in GNU gettext, and GNU 
    211         dnl gettext is already preinstalled in libintl, we update this 
    212         dnl libintl.  (Cf. the install rule in intl/Makefile.in.) 
    213         if test "$gt_cv_func_gnugettext_libc" = "yes" \ 
    214            || { test "$gt_cv_func_gnugettext_libintl" = "yes" \ 
    215                 && test "$PACKAGE" != gettext-runtime \ 
    216                 && test "$PACKAGE" != gettext-tools; }; then 
    217           gt_use_preinstalled_gnugettext=yes 
    218         else 
    219           dnl Reset the values set by searching for libintl. 
    220           LIBINTL= 
    221           LTLIBINTL= 
    222           INCINTL= 
    223         fi 
    224  
    225     ifelse(gt_included_intl, yes, [ 
    226         if test "$gt_use_preinstalled_gnugettext" != "yes"; then 
    227           dnl GNU gettext is not found in the C library. 
    228           dnl Fall back on included GNU gettext library. 
    229           nls_cv_use_gnu_gettext=yes 
    230         fi 
    231       fi 
    232  
    233       if test "$nls_cv_use_gnu_gettext" = "yes"; then 
    234         dnl Mark actions used to generate GNU NLS library. 
    235         BUILD_INCLUDED_LIBINTL=yes 
    236         USE_INCLUDED_LIBINTL=yes 
    237         LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV" 
    238         LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV" 
    239         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` 
    240       fi 
    241  
    242       CATOBJEXT= 
    243       if test "$gt_use_preinstalled_gnugettext" = "yes" \ 
    244          || test "$nls_cv_use_gnu_gettext" = "yes"; then 
    245         dnl Mark actions to use GNU gettext tools. 
    246         CATOBJEXT=.gmo 
    247       fi 
    248     ]) 
    249  
    250     if test -n "$INTL_MACOSX_LIBS"; then 
    251       if test "$gt_use_preinstalled_gnugettext" = "yes" \ 
    252          || test "$nls_cv_use_gnu_gettext" = "yes"; then 
    253         dnl Some extra flags are needed during linking. 
    254         LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" 
    255         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" 
    256       fi 
    257     fi 
    258  
    259     if test "$gt_use_preinstalled_gnugettext" = "yes" \ 
    260        || test "$nls_cv_use_gnu_gettext" = "yes"; then 
    261       AC_DEFINE(ENABLE_NLS, 1, 
    262         [Define to 1 if translation of program messages to the user's native language 
    263    is requested.]) 
    264     else 
    265       USE_NLS=no 
    266     fi 
    267   fi 
    268  
    269   AC_MSG_CHECKING([whether to use NLS]) 
    270   AC_MSG_RESULT([$USE_NLS]) 
    271   if test "$USE_NLS" = "yes"; then 
    272     AC_MSG_CHECKING([where the gettext function comes from]) 
    273     if test "$gt_use_preinstalled_gnugettext" = "yes"; then 
    274       if test "$gt_cv_func_gnugettext_libintl" = "yes"; then 
    275         gt_source="external libintl" 
    276       else 
    277         gt_source="libc" 
    278       fi 
    279     else 
    280       gt_source="included intl directory" 
    281     fi 
    282     AC_MSG_RESULT([$gt_source]) 
    283   fi 
    284  
    285   if test "$USE_NLS" = "yes"; then 
    286  
    287     if test "$gt_use_preinstalled_gnugettext" = "yes"; then 
    288       if test "$gt_cv_func_gnugettext_libintl" = "yes"; then 
    289         AC_MSG_CHECKING([how to link with libintl]) 
    290         AC_MSG_RESULT([$LIBINTL]) 
    291         AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL]) 
    292       fi 
    293  
    294       dnl For backward compatibility. Some packages may be using this. 
    295       AC_DEFINE(HAVE_GETTEXT, 1, 
    296        [Define if the GNU gettext() function is already present or preinstalled.]) 
    297       AC_DEFINE(HAVE_DCGETTEXT, 1, 
    298        [Define if the GNU dcgettext() function is already present or preinstalled.]) 
    299     fi 
    300  
    301     dnl We need to process the po/ directory. 
    302     POSUB=po 
    303   fi 
    304  
    305   ifelse(gt_included_intl, yes, [ 
    306     dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL 
    307     dnl to 'yes' because some of the testsuite requires it. 
    308     if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then 
    309       BUILD_INCLUDED_LIBINTL=yes 
    310     fi 
    311  
    312     dnl Make all variables we use known to autoconf. 
    313     AC_SUBST(BUILD_INCLUDED_LIBINTL) 
    314     AC_SUBST(USE_INCLUDED_LIBINTL) 
    315     AC_SUBST(CATOBJEXT) 
    316  
    317     dnl For backward compatibility. Some configure.ins may be using this. 
    318     nls_cv_header_intl= 
    319     nls_cv_header_libgt= 
    320  
    321     dnl For backward compatibility. Some Makefiles may be using this. 
    322     DATADIRNAME=share 
    323     AC_SUBST(DATADIRNAME) 
    324  
    325     dnl For backward compatibility. Some Makefiles may be using this. 
    326     INSTOBJEXT=.mo 
    327     AC_SUBST(INSTOBJEXT) 
    328  
    329     dnl For backward compatibility. Some Makefiles may be using this. 
    330     GENCAT=gencat 
    331     AC_SUBST(GENCAT) 
    332  
    333     dnl For backward compatibility. Some Makefiles may be using this. 
    334     INTLOBJS= 
    335     if test "$USE_INCLUDED_LIBINTL" = yes; then 
    336       INTLOBJS="\$(GETTOBJS)" 
    337     fi 
    338     AC_SUBST(INTLOBJS) 
    339  
    340     dnl Enable libtool support if the surrounding package wishes it. 
    341     INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix 
    342     AC_SUBST(INTL_LIBTOOL_SUFFIX_PREFIX) 
    343   ]) 
    344  
    345   dnl For backward compatibility. Some Makefiles may be using this. 
    346   INTLLIBS="$LIBINTL" 
    347   AC_SUBST(INTLLIBS) 
    348  
    349   dnl Make all documented variables known to autoconf. 
    350   AC_SUBST(LIBINTL) 
    351   AC_SUBST(LTLIBINTL) 
    352   AC_SUBST(POSUB) 
    353 ]) 
    354  
    355  
    356 dnl Checks for all prerequisites of the intl subdirectory, 
    357 dnl except for INTL_LIBTOOL_SUFFIX_PREFIX (and possibly LIBTOOL), INTLOBJS, 
    358 dnl            USE_INCLUDED_LIBINTL, BUILD_INCLUDED_LIBINTL. 
    359 AC_DEFUN([AM_INTL_SUBDIR], 
    360 [ 
    361   AC_REQUIRE([AC_PROG_INSTALL])dnl 
    362   AC_REQUIRE([AM_MKINSTALLDIRS])dnl 
    363   AC_REQUIRE([AC_PROG_CC])dnl 
    364   AC_REQUIRE([AC_CANONICAL_HOST])dnl 
    365   AC_REQUIRE([gt_GLIBC2])dnl 
    366   AC_REQUIRE([AC_PROG_RANLIB])dnl 
    367   AC_REQUIRE([AC_ISC_POSIX])dnl 
    368   AC_REQUIRE([AC_HEADER_STDC])dnl 
    369   AC_REQUIRE([AC_C_CONST])dnl 
    370   AC_REQUIRE([bh_C_SIGNED])dnl 
    371   AC_REQUIRE([AC_C_INLINE])dnl 
    372   AC_REQUIRE([AC_TYPE_OFF_T])dnl 
    373   AC_REQUIRE([AC_TYPE_SIZE_T])dnl 
    374   AC_REQUIRE([gl_AC_TYPE_LONG_LONG])dnl 
    375   AC_REQUIRE([gt_TYPE_LONGDOUBLE])dnl 
    376   AC_REQUIRE([gt_TYPE_WCHAR_T])dnl 
    377   AC_REQUIRE([gt_TYPE_WINT_T])dnl 
    378   AC_REQUIRE([gl_AC_HEADER_INTTYPES_H]) 
    379   AC_REQUIRE([gl_AC_HEADER_STDINT_H]) 
    380   AC_REQUIRE([gt_TYPE_INTMAX_T]) 
    381   AC_REQUIRE([gt_PRINTF_POSIX]) 
    382   AC_REQUIRE([AC_FUNC_ALLOCA])dnl 
    383   AC_REQUIRE([AC_FUNC_MMAP])dnl 
    384   AC_REQUIRE([gl_GLIBC21])dnl 
    385   AC_REQUIRE([gt_INTDIV0])dnl 
    386   AC_REQUIRE([gl_AC_TYPE_UINTMAX_T])dnl 
    387   AC_REQUIRE([gt_HEADER_INTTYPES_H])dnl 
    388   AC_REQUIRE([gt_INTTYPES_PRI])dnl 
    389   AC_REQUIRE([gl_XSIZE])dnl 
    390   AC_REQUIRE([gt_INTL_MACOSX])dnl 
    391  
    392   AC_CHECK_TYPE([ptrdiff_t], , 
    393     [AC_DEFINE([ptrdiff_t], [long], 
    394        [Define as the type of the result of subtracting two pointers, if the system doesn't define it.]) 
    395     ]) 
    396   AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ 
    397 stdlib.h string.h unistd.h sys/param.h]) 
    398   AC_CHECK_FUNCS([asprintf fwprintf getcwd getegid geteuid getgid getuid \ 
    399 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ 
    400 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ 
    401 __fsetlocking]) 
    402  
    403   dnl Use the _snprintf function only if it is declared (because on NetBSD it 
    404   dnl is defined as a weak alias of snprintf; we prefer to use the latter). 
    405   gt_CHECK_DECL(_snprintf, [#include <stdio.h>]) 
    406   gt_CHECK_DECL(_snwprintf, [#include <stdio.h>]) 
    407  
    408   dnl Use the *_unlocked functions only if they are declared. 
    409   dnl (because some of them were defined without being declared in Solaris 
    410   dnl 2.5.1 but were removed in Solaris 2.6, whereas we want binaries built 
    411   dnl on Solaris 2.5.1 to run on Solaris 2.6). 
    412   dnl Don't use AC_CHECK_DECLS because it isn't supported in autoconf-2.13. 
    413   gt_CHECK_DECL(feof_unlocked, [#include <stdio.h>]) 
    414   gt_CHECK_DECL(fgets_unlocked, [#include <stdio.h>]) 
    415   gt_CHECK_DECL(getc_unlocked, [#include <stdio.h>]) 
    416  
    417   case $gt_cv_func_printf_posix in 
    418     *yes) HAVE_POSIX_PRINTF=1 ;; 
    419     *) HAVE_POSIX_PRINTF=0 ;; 
    420   esac 
    421   AC_SUBST([HAVE_POSIX_PRINTF]) 
    422   if test "$ac_cv_func_asprintf" = yes; then 
    423     HAVE_ASPRINTF=1 
    424   else 
    425     HAVE_ASPRINTF=0 
    426   fi 
    427   AC_SUBST([HAVE_ASPRINTF]) 
    428   if test "$ac_cv_func_snprintf" = yes; then 
    429     HAVE_SNPRINTF=1 
    430   else 
    431     HAVE_SNPRINTF=0 
    432   fi 
    433   AC_SUBST([HAVE_SNPRINTF]) 
    434   if test "$ac_cv_func_wprintf" = yes; then 
    435     HAVE_WPRINTF=1 
    436   else 
    437     HAVE_WPRINTF=0 
    438   fi 
    439   AC_SUBST([HAVE_WPRINTF]) 
    440  
    441   AM_ICONV 
    442   AM_LANGINFO_CODESET 
    443   if test $ac_cv_header_locale_h = yes; then 
    444     gt_LC_MESSAGES 
    445   fi 
    446  
    447   if test -n "$INTL_MACOSX_LIBS"; then 
    448     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers" 
    449   fi 
    450  
    451   dnl intl/plural.c is generated from intl/plural.y. It requires bison, 
    452   dnl because plural.y uses bison specific features. It requires at least 
    453   dnl bison-1.26 because earlier versions generate a plural.c that doesn't 
    454   dnl compile. 
    455   dnl bison is only needed for the maintainer (who touches plural.y). But in 
    456   dnl order to avoid separate Makefiles or --enable-maintainer-mode, we put 
    457   dnl the rule in general Makefile. Now, some people carelessly touch the 
    458   dnl files or have a broken "make" program, hence the plural.c rule will 
    459   dnl sometimes fire. To avoid an error, defines BISON to ":" if it is not 
    460   dnl present or too old. 
    461   AC_CHECK_PROGS([INTLBISON], [bison]) 
    462   if test -z "$INTLBISON"; then 
    463     ac_verc_fail=yes 
    464   else 
    465     dnl Found it, now check the version. 
    466     AC_MSG_CHECKING([version of bison]) 
    467 changequote(<<,>>)dnl 
    468     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` 
    469     case $ac_prog_version in 
    470       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; 
    471       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) 
    472 changequote([,])dnl 
    473          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; 
    474       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; 
    475     esac 
    476     AC_MSG_RESULT([$ac_prog_version]) 
    477   fi 
    478   if test $ac_verc_fail = yes; then 
    479     INTLBISON=: 
    480   fi 
    481 ]) 
    482  
    483  
    484 dnl Checks for special options needed on MacOS X. 
    485 dnl Defines INTL_MACOSX_LIBS. 
    486 AC_DEFUN([gt_INTL_MACOSX], 
    487 [ 
    488   dnl Check for API introduced in MacOS X 10.2. 
    489   AC_CACHE_CHECK([for CFPreferencesCopyAppValue], 
    490     gt_cv_func_CFPreferencesCopyAppValue, 
    491     [gt_save_CPPFLAGS="$CPPFLAGS" 
    492      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers" 
    493      gt_save_LIBS="$LIBS" 
    494      LIBS="$LIBS -framework CoreFoundation" 
    495      AC_TRY_LINK([#include <CFPreferences.h>], 
    496        [CFPreferencesCopyAppValue(NULL, NULL)], 
    497        [gt_cv_func_CFPreferencesCopyAppValue=yes], 
    498        [gt_cv_func_CFPreferencesCopyAppValue=no]) 
    499      CPPFLAGS="$gt_save_CPPFLAGS" 
    500      LIBS="$gt_save_LIBS"]) 
    501   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 
    502     AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], 1, 
    503       [Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.]) 
    504   fi 
    505   dnl Check for API introduced in MacOS X 10.3. 
    506   AC_CACHE_CHECK([for CFLocaleCopyCurrent], gt_cv_func_CFLocaleCopyCurrent, 
    507     [gt_save_CPPFLAGS="$CPPFLAGS" 
    508      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers" 
    509      gt_save_LIBS="$LIBS" 
    510      LIBS="$LIBS -framework CoreFoundation" 
    511      AC_TRY_LINK([#include <CFLocale.h>], [CFLocaleCopyCurrent();], 
    512        [gt_cv_func_CFLocaleCopyCurrent=yes], 
    513        [gt_cv_func_CFLocaleCopyCurrent=no]) 
    514      CPPFLAGS="$gt_save_CPPFLAGS" 
    515      LIBS="$gt_save_LIBS"]) 
    516   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then 
    517     AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], 1, 
    518       [Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.]) 
    519   fi 
    520   INTL_MACOSX_LIBS= 
    521   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then 
    522     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 
    523   fi 
    524   AC_SUBST([INTL_MACOSX_LIBS]) 
    525 ]) 
    526  
    527  
    528 dnl gt_CHECK_DECL(FUNC, INCLUDES) 
    529 dnl Check whether a function is declared. 
    530 AC_DEFUN([gt_CHECK_DECL], 
    531 [ 
    532   AC_CACHE_CHECK([whether $1 is declared], ac_cv_have_decl_$1, 
    533     [AC_TRY_COMPILE([$2], [ 
    534 #ifndef $1 
    535   char *p = (char *) $1; 
    536 #endif 
    537 ], ac_cv_have_decl_$1=yes, ac_cv_have_decl_$1=no)]) 
    538   if test $ac_cv_have_decl_$1 = yes; then 
    539     gt_value=1 
    540   else 
    541     gt_value=0 
    542   fi 
    543   AC_DEFINE_UNQUOTED([HAVE_DECL_]translit($1, [a-z], [A-Z]), [$gt_value], 
    544     [Define to 1 if you have the declaration of `$1', and to 0 if you don't.]) 
    545 ]) 
    546  
    547  
    548 dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version]) 
    549 AC_DEFUN([AM_GNU_GETTEXT_VERSION], []) 
  • deleted file m4/glib.m4

    diff --git a/m4/glib.m4 b/m4/glib.m4
    deleted file mode 100644
    index b3c632b..0000000
    + -  
    1 # Configure paths for GLIB 
    2 # Owen Taylor     97-11-3 
    3  
    4 dnl AM_PATH_GLIB([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]]) 
    5 dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if "gmodule" or  
    6 dnl gthread is specified in MODULES, pass to glib-config 
    7 dnl 
    8 AC_DEFUN([AM_PATH_GLIB], 
    9 [dnl  
    10 dnl Get the cflags and libraries from the glib-config script 
    11 dnl 
    12 AC_ARG_WITH(glib-prefix,[  --with-glib-prefix=PFX   Prefix where GLIB is installed (optional)], 
    13             glib_config_prefix="$withval", glib_config_prefix="") 
    14 AC_ARG_WITH(glib-exec-prefix,[  --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional)], 
    15             glib_config_exec_prefix="$withval", glib_config_exec_prefix="") 
    16 AC_ARG_ENABLE(glibtest, [  --disable-glibtest       Do not try to compile and run a test GLIB program], 
    17                     , enable_glibtest=yes) 
    18  
    19   if test x$glib_config_exec_prefix != x ; then 
    20      glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix" 
    21      if test x${GLIB_CONFIG+set} != xset ; then 
    22         GLIB_CONFIG=$glib_config_exec_prefix/bin/glib-config 
    23      fi 
    24   fi 
    25   if test x$glib_config_prefix != x ; then 
    26      glib_config_args="$glib_config_args --prefix=$glib_config_prefix" 
    27      if test x${GLIB_CONFIG+set} != xset ; then 
    28         GLIB_CONFIG=$glib_config_prefix/bin/glib-config 
    29      fi 
    30   fi 
    31  
    32   for module in . $4 
    33   do 
    34       case "$module" in 
    35          gmodule)  
    36              glib_config_args="$glib_config_args gmodule" 
    37          ;; 
    38          gthread)  
    39              glib_config_args="$glib_config_args gthread" 
    40          ;; 
    41       esac 
    42   done 
    43  
    44   AC_PATH_PROG(GLIB_CONFIG, glib-config, no) 
    45   min_glib_version=ifelse([$1], ,0.99.7,$1) 
    46   AC_MSG_CHECKING(for GLIB - version >= $min_glib_version) 
    47   no_glib="" 
    48   if test "$GLIB_CONFIG" = "no" ; then 
    49     no_glib=yes 
    50   else 
    51     GLIB_CFLAGS=`$GLIB_CONFIG $glib_config_args --cflags` 
    52     GLIB_LIBS=`$GLIB_CONFIG $glib_config_args --libs` 
    53     glib_config_major_version=`$GLIB_CONFIG $glib_config_args --version | \ 
    54            sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` 
    55     glib_config_minor_version=`$GLIB_CONFIG $glib_config_args --version | \ 
    56            sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` 
    57     glib_config_micro_version=`$GLIB_CONFIG $glib_config_args --version | \ 
    58            sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` 
    59     if test "x$enable_glibtest" = "xyes" ; then 
    60       ac_save_CFLAGS="$CFLAGS" 
    61       ac_save_LIBS="$LIBS" 
    62       CFLAGS="$CFLAGS $GLIB_CFLAGS" 
    63       LIBS="$GLIB_LIBS $LIBS" 
    64 dnl 
    65 dnl Now check if the installed GLIB is sufficiently new. (Also sanity 
    66 dnl checks the results of glib-config to some extent 
    67 dnl 
    68       rm -f conf.glibtest 
    69       AC_TRY_RUN([ 
    70 #include <glib.h> 
    71 #include <stdio.h> 
    72 #include <stdlib.h> 
    73  
    74 int  
    75 main () 
    76 { 
    77   int major, minor, micro; 
    78   char *tmp_version; 
    79  
    80   system ("touch conf.glibtest"); 
    81  
    82   /* HP/UX 9 (%@#!) writes to sscanf strings */ 
    83   tmp_version = g_strdup("$min_glib_version"); 
    84   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) { 
    85      printf("%s, bad version string\n", "$min_glib_version"); 
    86      exit(1); 
    87    } 
    88  
    89   if ((glib_major_version != $glib_config_major_version) || 
    90       (glib_minor_version != $glib_config_minor_version) || 
    91       (glib_micro_version != $glib_config_micro_version)) 
    92     { 
    93       printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",  
    94              $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version, 
    95              glib_major_version, glib_minor_version, glib_micro_version); 
    96       printf ("*** was found! If glib-config was correct, then it is best\n"); 
    97       printf ("*** to remove the old version of GLIB. You may also be able to fix the error\n"); 
    98       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); 
    99       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); 
    100       printf("*** required on your system.\n"); 
    101       printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n"); 
    102       printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n"); 
    103       printf("*** before re-running configure\n"); 
    104     }  
    105   else if ((glib_major_version != GLIB_MAJOR_VERSION) || 
    106            (glib_minor_version != GLIB_MINOR_VERSION) || 
    107            (glib_micro_version != GLIB_MICRO_VERSION)) 
    108     { 
    109       printf("*** GLIB header files (version %d.%d.%d) do not match\n", 
    110              GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION); 
    111       printf("*** library (version %d.%d.%d)\n", 
    112              glib_major_version, glib_minor_version, glib_micro_version); 
    113     } 
    114   else 
    115     { 
    116       if ((glib_major_version > major) || 
    117         ((glib_major_version == major) && (glib_minor_version > minor)) || 
    118         ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro))) 
    119       { 
    120         return 0; 
    121        } 
    122      else 
    123       { 
    124         printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n", 
    125                glib_major_version, glib_minor_version, glib_micro_version); 
    126         printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n", 
    127                major, minor, micro); 
    128         printf("*** GLIB is always available from ftp://ftp.gtk.org.\n"); 
    129         printf("***\n"); 
    130         printf("*** If you have already installed a sufficiently new version, this error\n"); 
    131         printf("*** probably means that the wrong copy of the glib-config shell script is\n"); 
    132         printf("*** being found. The easiest way to fix this is to remove the old version\n"); 
    133         printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n"); 
    134         printf("*** correct copy of glib-config. (In this case, you will have to\n"); 
    135         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); 
    136         printf("*** so that the correct libraries are found at run-time))\n"); 
    137       } 
    138     } 
    139   return 1; 
    140 } 
    141 ],, no_glib=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) 
    142        CFLAGS="$ac_save_CFLAGS" 
    143        LIBS="$ac_save_LIBS" 
    144      fi 
    145   fi 
    146   if test "x$no_glib" = x ; then 
    147      AC_MSG_RESULT(yes) 
    148      ifelse([$2], , :, [$2])      
    149   else 
    150      AC_MSG_RESULT(no) 
    151      if test "$GLIB_CONFIG" = "no" ; then 
    152        echo "*** The glib-config script installed by GLIB could not be found" 
    153        echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in" 
    154        echo "*** your path, or set the GLIB_CONFIG environment variable to the" 
    155        echo "*** full path to glib-config." 
    156      else 
    157        if test -f conf.glibtest ; then 
    158         : 
    159        else 
    160           echo "*** Could not run GLIB test program, checking why..." 
    161           CFLAGS="$CFLAGS $GLIB_CFLAGS" 
    162           LIBS="$LIBS $GLIB_LIBS" 
    163           AC_TRY_LINK([ 
    164 #include <glib.h> 
    165 #include <stdio.h> 
    166 ],      [ return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); ], 
    167         [ echo "*** The test program compiled, but did not run. This usually means" 
    168           echo "*** that the run-time linker is not finding GLIB or finding the wrong" 
    169           echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your" 
    170           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 
    171           echo "*** to the installed location  Also, make sure you have run ldconfig if that" 
    172           echo "*** is required on your system" 
    173           echo "***" 
    174           echo "*** If you have an old version installed, it is best to remove it, although" 
    175           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 
    176           echo "***" 
    177           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" 
    178           echo "*** came with the system with the command" 
    179           echo "***" 
    180           echo "***    rpm --erase --nodeps gtk gtk-devel" ], 
    181         [ echo "*** The test program failed to compile or link. See the file config.log for the" 
    182           echo "*** exact error that occured. This usually means GLIB was incorrectly installed" 
    183           echo "*** or that you have moved GLIB since it was installed. In the latter case, you" 
    184           echo "*** may want to edit the glib-config script: $GLIB_CONFIG" ]) 
    185           CFLAGS="$ac_save_CFLAGS" 
    186           LIBS="$ac_save_LIBS" 
    187        fi 
    188      fi 
    189      GLIB_CFLAGS="" 
    190      GLIB_LIBS="" 
    191      ifelse([$3], , :, [$3]) 
    192   fi 
    193   AC_SUBST(GLIB_CFLAGS) 
    194   AC_SUBST(GLIB_LIBS) 
    195   rm -f conf.glibtest 
    196 ]) 
  • deleted file m4/glibc2.m4

    diff --git a/m4/glibc2.m4 b/m4/glibc2.m4
    deleted file mode 100644
    index e8f5bfe..0000000
    + -  
    1 # glibc2.m4 serial 1 
    2 dnl Copyright (C) 2000-2002, 2004 Free Software Foundation, Inc. 
    3 dnl This file is free software; the Free Software Foundation 
    4 dnl gives unlimited permission to copy and/or distribute it, 
    5 dnl with or without modifications, as long as this notice is preserved. 
    6  
    7 # Test for the GNU C Library, version 2.0 or newer. 
    8 # From Bruno Haible. 
    9  
    10 AC_DEFUN([gt_GLIBC2], 
    11   [ 
    12     AC_CACHE_CHECK(whether we are using the GNU C Library 2 or newer, 
    13       ac_cv_gnu_library_2, 
    14       [AC_EGREP_CPP([Lucky GNU user], 
    15         [ 
    16 #include <features.h> 
    17 #ifdef __GNU_LIBRARY__ 
    18  #if (__GLIBC__ >= 2) 
    19   Lucky GNU user 
    20  #endif 
    21 #endif 
    22         ], 
    23         ac_cv_gnu_library_2=yes, 
    24         ac_cv_gnu_library_2=no) 
    25       ] 
    26     ) 
    27     AC_SUBST(GLIBC2) 
    28     GLIBC2="$ac_cv_gnu_library_2" 
    29   ] 
    30 ) 
  • deleted file m4/glibc21.m4

    diff --git a/m4/glibc21.m4 b/m4/glibc21.m4
    deleted file mode 100644
    index d95fd98..0000000
    + -  
    1 # glibc21.m4 serial 3 
    2 dnl Copyright (C) 2000-2002, 2004 Free Software Foundation, Inc. 
    3 dnl This file is free software; the Free Software Foundation 
    4 dnl gives unlimited permission to copy and/or distribute it, 
    5 dnl with or without modifications, as long as this notice is preserved. 
    6  
    7 # Test for the GNU C Library, version 2.1 or newer. 
    8 # From Bruno Haible. 
    9  
    10 AC_DEFUN([gl_GLIBC21], 
    11   [ 
    12     AC_CACHE_CHECK(whether we are using the GNU C Library 2.1 or newer, 
    13       ac_cv_gnu_library_2_1, 
    14       [AC_EGREP_CPP([Lucky GNU user], 
    15         [ 
    16 #include <features.h> 
    17 #ifdef __GNU_LIBRARY__ 
    18  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) 
    19   Lucky GNU user 
    20  #endif 
    21 #endif 
    22         ], 
    23         ac_cv_gnu_library_2_1=yes, 
    24         ac_cv_gnu_library_2_1=no) 
    25       ] 
    26     ) 
    27     AC_SUBST(GLIBC21) 
    28     GLIBC21="$ac_cv_gnu_library_2_1" 
    29   ] 
    30 ) 
  • deleted file m4/iconv.m4

    diff --git a/m4/iconv.m4 b/m4/iconv.m4
    deleted file mode 100644
    index 8e36b52..0000000
    + -  
    1 # iconv.m4 serial AM6 (gettext-0.16.2) 
    2 dnl Copyright (C) 2000-2002, 2007 Free Software Foundation, Inc. 
    3 dnl This file is free software; the Free Software Foundation 
    4 dnl gives unlimited permission to copy and/or distribute it, 
    5 dnl with or without modifications, as long as this notice is preserved. 
    6  
    7 dnl From Bruno Haible. 
    8  
    9 AC_DEFUN([AM_ICONV_LINKFLAGS_BODY], 
    10 [ 
    11   dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. 
    12   AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) 
    13   AC_REQUIRE([AC_LIB_RPATH]) 
    14  
    15   dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV 
    16   dnl accordingly. 
    17   AC_LIB_LINKFLAGS_BODY([iconv]) 
    18 ]) 
    19  
    20 AC_DEFUN([AM_ICONV_LINK], 
    21 [ 
    22   dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and 
    23   dnl those with the standalone portable GNU libiconv installed). 
    24   AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles 
    25  
    26   dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV 
    27   dnl accordingly. 
    28   AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) 
    29  
    30   dnl Add $INCICONV to CPPFLAGS before performing the following checks, 
    31   dnl because if the user has installed libiconv and not disabled its use 
    32   dnl via --without-libiconv-prefix, he wants to use it. The first 
    33   dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed. 
    34   am_save_CPPFLAGS="$CPPFLAGS" 
    35   AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV]) 
    36  
    37   AC_CACHE_CHECK([for iconv], am_cv_func_iconv, [ 
    38     am_cv_func_iconv="no, consider installing GNU libiconv" 
    39     am_cv_lib_iconv=no 
    40     AC_TRY_LINK([#include <stdlib.h> 
    41 #include <iconv.h>], 
    42       [iconv_t cd = iconv_open("",""); 
    43        iconv(cd,NULL,NULL,NULL,NULL); 
    44        iconv_close(cd);], 
    45       am_cv_func_iconv=yes) 
    46     if test "$am_cv_func_iconv" != yes; then 
    47       am_save_LIBS="$LIBS" 
    48       LIBS="$LIBS $LIBICONV" 
    49       AC_TRY_LINK([#include <stdlib.h> 
    50 #include <iconv.h>], 
    51         [iconv_t cd = iconv_open("",""); 
    52          iconv(cd,NULL,NULL,NULL,NULL); 
    53          iconv_close(cd);], 
    54         am_cv_lib_iconv=yes 
    55         am_cv_func_iconv=yes) 
    56       LIBS="$am_save_LIBS" 
    57     fi 
    58   ]) 
    59   if test "$am_cv_func_iconv" = yes; then 
    60     AC_CACHE_CHECK([for working iconv], am_cv_func_iconv_works, [ 
    61       dnl This tests against bugs in AIX 5.1 and HP-UX 11.11. 
    62       am_save_LIBS="$LIBS" 
    63       if test $am_cv_lib_iconv = yes; then 
    64         LIBS="$LIBS $LIBICONV" 
    65       fi 
    66       AC_TRY_RUN([ 
    67 #include <iconv.h> 
    68 #include <string.h> 
    69 int main () 
    70 { 
    71   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful 
    72      returns.  */ 
    73   { 
    74     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 
    75     if (cd_utf8_to_88591 != (iconv_t)(-1)) 
    76       { 
    77         static const char input[] = "\342\202\254"; /* EURO SIGN */ 
    78         char buf[10]; 
    79         const char *inptr = input; 
    80         size_t inbytesleft = strlen (input); 
    81         char *outptr = buf; 
    82         size_t outbytesleft = sizeof (buf); 
    83         size_t res = iconv (cd_utf8_to_88591, 
    84                             (char **) &inptr, &inbytesleft, 
    85                             &outptr, &outbytesleft); 
    86         if (res == 0) 
    87           return 1; 
    88       } 
    89   } 
    90 #if 0 /* This bug could be worked around by the caller.  */ 
    91   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */ 
    92   { 
    93     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 
    94     if (cd_88591_to_utf8 != (iconv_t)(-1)) 
    95       { 
    96         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 
    97         char buf[50]; 
    98         const char *inptr = input; 
    99         size_t inbytesleft = strlen (input); 
    100         char *outptr = buf; 
    101         size_t outbytesleft = sizeof (buf); 
    102         size_t res = iconv (cd_88591_to_utf8, 
    103                             (char **) &inptr, &inbytesleft, 
    104                             &outptr, &outbytesleft); 
    105         if ((int)res > 0) 
    106           return 1; 
    107       } 
    108   } 
    109 #endif 
    110   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 
    111      provided.  */ 
    112   if (/* Try standardized names.  */ 
    113       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) 
    114       /* Try IRIX, OSF/1 names.  */ 
    115       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) 
    116       /* Try AIX names.  */ 
    117       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) 
    118       /* Try HP-UX names.  */ 
    119       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) 
    120     return 1; 
    121   return 0; 
    122 }], [am_cv_func_iconv_works=yes], [am_cv_func_iconv_works=no], 
    123         [case "$host_os" in 
    124            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 
    125            *)            am_cv_func_iconv_works="guessing yes" ;; 
    126          esac]) 
    127       LIBS="$am_save_LIBS" 
    128     ]) 
    129     case "$am_cv_func_iconv_works" in 
    130       *no) am_func_iconv=no am_cv_lib_iconv=no ;; 
    131       *)   am_func_iconv=yes ;; 
    132     esac 
    133   else 
    134     am_func_iconv=no am_cv_lib_iconv=no 
    135   fi 
    136   if test "$am_func_iconv" = yes; then 
    137     AC_DEFINE(HAVE_ICONV, 1, 
    138       [Define if you have the iconv() function and it works.]) 
    139   fi 
    140   if test "$am_cv_lib_iconv" = yes; then 
    141     AC_MSG_CHECKING([how to link with libiconv]) 
    142     AC_MSG_RESULT([$LIBICONV]) 
    143   else 
    144     dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV 
    145     dnl either. 
    146     CPPFLAGS="$am_save_CPPFLAGS" 
    147     LIBICONV= 
    148     LTLIBICONV= 
    149   fi 
    150   AC_SUBST(LIBICONV) 
    151   AC_SUBST(LTLIBICONV) 
    152 ]) 
    153  
    154 AC_DEFUN([AM_ICONV], 
    155 [ 
    156   AM_ICONV_LINK 
    157   if test "$am_cv_func_iconv" = yes; then 
    158     AC_MSG_CHECKING([for iconv declaration]) 
    159     AC_CACHE_VAL(am_cv_proto_iconv, [ 
    160       AC_TRY_COMPILE([ 
    161 #include <stdlib.h> 
    162 #include <iconv.h> 
    163 extern 
    164 #ifdef __cplusplus 
    165 "C" 
    166 #endif 
    167 #if defined(__STDC__) || defined(__cplusplus) 
    168 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 
    169 #else 
    170 size_t iconv(); 
    171 #endif 
    172 ], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const") 
    173       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"]) 
    174     am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 
    175     AC_MSG_RESULT([$]{ac_t:- 
    176          }[$]am_cv_proto_iconv) 
    177     AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1, 
    178       [Define as const if the declaration of iconv() needs const.]) 
    179   fi 
    180 ]) 
  • deleted file m4/intdiv0.m4

    diff --git a/m4/intdiv0.m4 b/m4/intdiv0.m4
    deleted file mode 100644
    index 534134a..0000000
    + -  
    1 # intdiv0.m4 serial 2 (gettext-0.16.2) 
    2 dnl Copyright (C) 2002, 2007 Free Software Foundation, Inc. 
    3 dnl This file is free software; the Free Software Foundation 
    4 dnl gives unlimited permission to copy and/or distribute it, 
    5 dnl with or without modifications, as long as this notice is preserved. 
    6  
    7 dnl From Bruno Haible. 
    8  
    9 AC_DEFUN([gt_INTDIV0], 
    10 [ 
    11   AC_REQUIRE([AC_PROG_CC])dnl 
    12   AC_REQUIRE([AC_CANONICAL_HOST])dnl 
    13  
    14   AC_CACHE_CHECK([whether integer division by zero raises SIGFPE], 
    15     gt_cv_int_divbyzero_sigfpe, 
    16     [ 
    17       gt_cv_int_divbyzero_sigfpe= 
    18 changequote(,)dnl 
    19       case "$host_os" in 
    20         macos* | darwin[6-9]* | darwin[1-9][0-9]*) 
    21           # On MacOS X 10.2 or newer, just assume the same as when cross- 
    22           # compiling. If we were to perform the real test, 1 Crash Report 
    23           # dialog window would pop up. 
    24           case "$host_cpu" in 
    25             i[34567]86 | x86_64) 
    26               gt_cv_int_divbyzero_sigfpe="guessing yes" ;; 
    27           esac 
    28           ;; 
    29       esac 
    30 changequote([,])dnl 
    31       if test -z "$gt_cv_int_divbyzero_sigfpe"; then 
    32         AC_TRY_RUN([ 
    33 #include <stdlib.h> 
    34 #include <signal.h> 
    35  
    36 static void 
    37 sigfpe_handler (int sig) 
    38 { 
    39   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */ 
    40   exit (sig != SIGFPE); 
    41 } 
    42  
    43 int x = 1; 
    44 int y = 0; 
    45 int z; 
    46 int nan; 
    47  
    48 int main () 
    49 { 
    50   signal (SIGFPE, sigfpe_handler); 
    51 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */ 
    52 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) 
    53   signal (SIGTRAP, sigfpe_handler); 
    54 #endif 
    55 /* Linux/SPARC yields signal SIGILL.  */ 
    56 #if defined (__sparc__) && defined (__linux__) 
    57   signal (SIGILL, sigfpe_handler); 
    58 #endif 
    59  
    60   z = x / y; 
    61   nan = y / y; 
    62   exit (1); 
    63 } 
    64 ], gt_cv_int_divbyzero_sigfpe=yes, gt_cv_int_divbyzero_sigfpe=no, 
    65           [ 
    66             # Guess based on the CPU. 
    67 changequote(,)dnl 
    68             case "$host_cpu" in 
    69               alpha* | i[34567]86 | x86_64 | m68k | s390*) 
    70                 gt_cv_int_divbyzero_sigfpe="guessing yes";; 
    71               *) 
    72                 gt_cv_int_divbyzero_sigfpe="guessing no";; 
    73             esac 
    74 changequote([,])dnl 
    75           ]) 
    76       fi 
    77     ]) 
    78   case "$gt_cv_int_divbyzero_sigfpe" in 
    79     *yes) value=1;; 
    80     *) value=0;; 
    81   esac 
    82   AC_DEFINE_UNQUOTED(INTDIV0_RAISES_SIGFPE, $value, 
    83     [Define if integer division by zero raises signal SIGFPE.]) 
    84 ]) 
  • deleted file m4/intmax.m4

    diff --git a/m4/intmax.m4 b/m4/intmax.m4
    deleted file mode 100644
    index ce7a8a4..0000000
    + -  
    1 # intmax.m4 serial 3 (gettext-0.16) 
    2 dnl Copyright (C) 2002-2005 Free Software Foundation, Inc. 
    3 dnl This file is free software; the Free Software Foundation 
    4 dnl gives unlimited permission to copy and/or distribute it, 
    5 dnl with or without modifications, as long as this notice is preserved. 
    6  
    7 dnl From Bruno Haible. 
    8 dnl Test whether the system has the 'intmax_t' type, but don't attempt to 
    9 dnl find a replacement if it is lacking. 
    10  
    11 AC_DEFUN([gt_TYPE_INTMAX_T], 
    12 [ 
    13   AC_REQUIRE([gl_AC_HEADER_INTTYPES_H]) 
    14   AC_REQUIRE([gl_AC_HEADER_STDINT_H]) 
    15   AC_CACHE_CHECK(for intmax_t, gt_cv_c_intmax_t, 
    16     [AC_TRY_COMPILE([ 
    17 #include <stddef.h> 
    18 #include <stdlib.h> 
    19 #if HAVE_STDINT_H_WITH_UINTMAX 
    20 #include <stdint.h> 
    21 #endif 
    22 #if HAVE_INTTYPES_H_WITH_UINTMAX 
    23 #include <inttypes.h> 
    24 #endif 
    25 ],     [intmax_t x = -1; 
    26         return !x;], 
    27        gt_cv_c_intmax_t=yes, 
    28        gt_cv_c_intmax_t=no)]) 
    29   if test $gt_cv_c_intmax_t = yes; then 
    30     AC_DEFINE(HAVE_INTMAX_T, 1, 
    31       [Define if you have the 'intmax_t' type in <stdint.h> or <inttypes.h>.]) 
    32   fi 
    33 ]) 
  • deleted file m4/inttypes-pri.m4

    diff --git a/m4/inttypes-pri.m4 b/m4/inttypes-pri.m4
    deleted file mode 100644
    index 7c7f894..0000000
    + -  
    1 # inttypes-pri.m4 serial 4 (gettext-0.16) 
    2 dnl Copyright (C) 1997-2002, 2006 Free Software Foundation, Inc. 
    3 dnl This file is free software; the Free Software Foundation 
    4 dnl gives unlimited permission to copy and/or distribute it, 
    5 dnl with or without modifications, as long as this notice is preserved. 
    6  
    7 dnl From Bruno Haible. 
    8  
    9 AC_PREREQ(2.52) 
    10  
    11 # Define PRI_MACROS_BROKEN if <inttypes.h> exists and defines the PRI* 
    12 # macros to non-string values.  This is the case on AIX 4.3.3. 
    13  
    14 AC_DEFUN([gt_INTTYPES_PRI], 
    15 [ 
    16   AC_CHECK_HEADERS([inttypes.h]) 
    17   if test $ac_cv_header_inttypes_h = yes; then 
    18     AC_CACHE_CHECK([whether the inttypes.h PRIxNN macros are broken], 
    19       gt_cv_inttypes_pri_broken, 
    20       [ 
    21         AC_TRY_COMPILE([#include <inttypes.h> 
    22 #ifdef PRId32 
    23 char *p = PRId32; 
    24 #endif 
    25 ], [], gt_cv_inttypes_pri_broken=no, gt_cv_inttypes_pri_broken=yes) 
    26       ]) 
    27   fi 
    28   if test "$gt_cv_inttypes_pri_broken" = yes; then 
    29     AC_DEFINE_UNQUOTED(PRI_MACROS_BROKEN, 1, 
    30       [Define if <inttypes.h> exists and defines unusable PRI* macros.]) 
    31     PRI_MACROS_BROKEN=1 
    32   else 
    33     PRI_MACROS_BROKEN=0 
    34   fi 
    35   AC_SUBST([PRI_MACROS_BROKEN]) 
    36 ]) 
  • deleted file m4/inttypes.m4

    diff --git a/m4/inttypes.m4 b/m4/inttypes.m4
    deleted file mode 100644
    index 779bcea..0000000
    + -  
    1 # inttypes.m4 serial 1 (gettext-0.11.4) 
    2 dnl Copyright (C) 1997-2002 Free Software Foundation, Inc. 
    3 dnl This file is free software; the Free Software Foundation 
    4 dnl gives unlimited permission to copy and/or distribute it, 
    5 dnl with or without modifications, as long as this notice is preserved. 
    6  
    7 dnl From Paul Eggert. 
    8  
    9 # Define HAVE_INTTYPES_H if <inttypes.h> exists and doesn't clash with 
    10 # <sys/types.h>. 
    11  
    12 AC_DEFUN([gt_HEADER_INTTYPES_H], 
    13 [ 
    14   AC_CACHE_CHECK([for inttypes.h], gt_cv_header_inttypes_h, 
    15   [ 
    16     AC_TRY_COMPILE( 
    17       [#include <sys/types.h> 
    18 #include <inttypes.h>], 
    19       [], gt_cv_header_inttypes_h=yes, gt_cv_header_inttypes_h=no) 
    20   ]) 
    21   if test $gt_cv_header_inttypes_h = yes; then 
    22     AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H, 1, 
    23       [Define if <inttypes.h> exists and doesn't clash with <sys/types.h>.]) 
    24   fi 
    25 ]) 
  • deleted file m4/inttypes_h.m4

    diff --git a/m4/inttypes_h.m4 b/m4/inttypes_h.m4
    deleted file mode 100644
    index edc8ecb..0000000
    + -  
    1 # inttypes_h.m4 serial 7 
    2 dnl Copyright (C) 1997-2004, 2006 Free Software Foundation, Inc. 
    3 dnl This file is free software; the Free Software Foundation 
    4 dnl gives unlimited permission to copy and/or distribute it, 
    5 dnl with or without modifications, as long as this notice is preserved. 
    6  
    7 dnl From Paul Eggert. 
    8  
    9 # Define HAVE_INTTYPES_H_WITH_UINTMAX if <inttypes.h> exists, 
    10 # doesn't clash with <sys/types.h>, and declares uintmax_t. 
    11  
    12 AC_DEFUN([gl_AC_HEADER_INTTYPES_H], 
    13 [ 
    14   AC_CACHE_CHECK([for inttypes.h], gl_cv_header_inttypes_h, 
    15   [AC_TRY_COMPILE( 
    16     [#include <sys/types.h> 
    17 #include <inttypes.h>], 
    18     [uintmax_t i = (uintmax_t) -1; return !i;], 
    19     gl_cv_header_inttypes_h=yes, 
    20     gl_cv_header_inttypes_h=no)]) 
    21   if test $gl_cv_header_inttypes_h = yes; then 
    22     AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H_WITH_UINTMAX, 1, 
    23       [Define if <inttypes.h> exists, doesn't clash with <sys/types.h>, 
    24        and declares uintmax_t. ]) 
    25   fi 
    26 ]) 
  • deleted file m4/lcmessage.m4

    diff --git a/m4/lcmessage.m4 b/m4/lcmessage.m4
    deleted file mode 100644
    index 19aa77e..0000000
    + -  
    1 # lcmessage.m4 serial 4 (gettext-0.14.2) 
    2 dnl Copyright (C) 1995-2002, 2004-2005 Free Software Foundation, Inc. 
    3 dnl This file is free software; the Free Software Foundation 
    4 dnl gives unlimited permission to copy and/or distribute it, 
    5 dnl with or without modifications, as long as this notice is preserved. 
    6 dnl 
    7 dnl This file can can be used in projects which are not available under 
    8 dnl the GNU General Public License or the GNU Library General Public 
    9 dnl License but which still want to provide support for the GNU gettext 
    10 dnl functionality. 
    11 dnl Please note that the actual code of the GNU gettext library is covered 
    12 dnl by the GNU Library General Public License, and the rest of the GNU 
    13 dnl gettext package package is covered by the GNU General Public License. 
    14 dnl They are *not* in the public domain. 
    15  
    16 dnl Authors: 
    17 dnl   Ulrich Drepper <drepper@cygnus.com>, 1995. 
    18  
    19 # Check whether LC_MESSAGES is available in <locale.h>. 
    20  
    21 AC_DEFUN([gt_LC_MESSAGES], 
    22 [ 
    23   AC_CACHE_CHECK([for LC_MESSAGES], gt_cv_val_LC_MESSAGES, 
    24     [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES], 
    25        gt_cv_val_LC_MESSAGES=yes, gt_cv_val_LC_MESSAGES=no)]) 
    26   if test $gt_cv_val_LC_MESSAGES = yes; then 
    27     AC_DEFINE(HAVE_LC_MESSAGES, 1, 
    28       [Define if your <locale.h> file defines LC_MESSAGES.]) 
    29   fi 
    30 ]) 
  • deleted file m4/lib-ld.m4

    diff --git a/m4/lib-ld.m4 b/m4/lib-ld.m4
    deleted file mode 100644
    index 96c4e2c..0000000
    + -  
    1 # lib-ld.m4 serial 3 (gettext-0.13) 
    2 dnl Copyright (C) 1996-2003 Free Software Foundation, Inc. 
    3 dnl This file is free software; the Free Software Foundation 
    4 dnl gives unlimited permission to copy and/or distribute it, 
    5 dnl with or without modifications, as long as this notice is preserved. 
    6  
    7 dnl Subroutines of libtool.m4, 
    8 dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision 
    9 dnl with libtool.m4. 
    10  
    11 dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no. 
    12 AC_DEFUN([AC_LIB_PROG_LD_GNU], 
    13 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld, 
    14 [# I'd rather use --version here, but apparently some GNU ld's only accept -v. 
    15 case `$LD -v 2>&1 </dev/null` in 
    16 *GNU* | *'with BFD'*) 
    17   acl_cv_prog_gnu_ld=yes ;; 
    18 *) 
    19   acl_cv_prog_gnu_ld=no ;; 
    20 esac]) 
    21 with_gnu_ld=$acl_cv_prog_gnu_ld 
    22 ]) 
    23  
    24 dnl From libtool-1.4. Sets the variable LD. 
    25 AC_DEFUN([AC_LIB_PROG_LD], 
    26 [AC_ARG_WITH(gnu-ld, 
    27 [  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]], 
    28 test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no) 
    29 AC_REQUIRE([AC_PROG_CC])dnl 
    30 AC_REQUIRE([AC_CANONICAL_HOST])dnl 
    31 # Prepare PATH_SEPARATOR. 
    32 # The user is always right. 
    33 if test "${PATH_SEPARATOR+set}" != set; then 
    34   echo "#! /bin/sh" >conf$$.sh 
    35   echo  "exit 0"   >>conf$$.sh 
    36   chmod +x conf$$.sh 
    37   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 
    38     PATH_SEPARATOR=';' 
    39   else 
    40     PATH_SEPARATOR=: 
    41   fi 
    42   rm -f conf$$.sh 
    43 fi 
    44 ac_prog=ld 
    45 if test "$GCC" = yes; then 
    46   # Check if gcc -print-prog-name=ld gives a path. 
    47   AC_MSG_CHECKING([for ld used by GCC]) 
    48   case $host in 
    49   *-*-mingw*) 
    50     # gcc leaves a trailing carriage return which upsets mingw 
    51     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 
    52   *) 
    53     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 
    54   esac 
    55   case $ac_prog in 
    56     # Accept absolute paths. 
    57     [[\\/]* | [A-Za-z]:[\\/]*)] 
    58       [re_direlt='/[^/][^/]*/\.\./'] 
    59       # Canonicalize the path of ld 
    60       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 
    61       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 
    62         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 
    63       done 
    64       test -z "$LD" && LD="$ac_prog" 
    65       ;; 
    66   "") 
    67     # If it fails, then pretend we aren't using GCC. 
    68     ac_prog=ld 
    69     ;; 
    70   *) 
    71     # If it is relative, then search for the first ld in PATH. 
    72     with_gnu_ld=unknown 
    73     ;; 
    74   esac 
    75 elif test "$with_gnu_ld" = yes; then 
    76   AC_MSG_CHECKING([for GNU ld]) 
    77 else 
    78   AC_MSG_CHECKING([for non-GNU ld]) 
    79 fi 
    80 AC_CACHE_VAL(acl_cv_path_LD, 
    81 [if test -z "$LD"; then 
    82   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 
    83   for ac_dir in $PATH; do 
    84     test -z "$ac_dir" && ac_dir=. 
    85     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 
    86       acl_cv_path_LD="$ac_dir/$ac_prog" 
    87       # Check to see if the program is GNU ld.  I'd rather use --version, 
    88       # but apparently some GNU ld's only accept -v. 
    89       # Break only if it was the GNU/non-GNU ld that we prefer. 
    90       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in 
    91       *GNU* | *'with BFD'*) 
    92         test "$with_gnu_ld" != no && break ;; 
    93       *) 
    94         test "$with_gnu_ld" != yes && break ;; 
    95       esac 
    96     fi 
    97   done 
    98   IFS="$ac_save_ifs" 
    99 else 
    100   acl_cv_path_LD="$LD" # Let the user override the test with a path. 
    101 fi]) 
    102 LD="$acl_cv_path_LD" 
    103 if test -n "$LD"; then 
    104   AC_MSG_RESULT($LD) 
    105 else 
    106   AC_MSG_RESULT(no) 
    107 fi 
    108 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 
    109 AC_LIB_PROG_LD_GNU 
    110 ]) 
  • deleted file m4/lib-link.m4

    diff --git a/m4/lib-link.m4 b/m4/lib-link.m4
    deleted file mode 100644
    index f157d98..0000000
    + -  
    1 # lib-link.m4 serial 13 (gettext-0.16.2) 
    2 dnl Copyright (C) 2001-2007 Free Software Foundation, Inc. 
    3 dnl This file is free software; the Free Software Foundation 
    4 dnl gives unlimited permission to copy and/or distribute it, 
    5 dnl with or without modifications, as long as this notice is preserved. 
    6  
    7 dnl From Bruno Haible. 
    8  
    9 AC_PREREQ(2.54) 
    10  
    11 dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and 
    12 dnl the libraries corresponding to explicit and implicit dependencies. 
    13 dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and 
    14 dnl augments the CPPFLAGS variable. 
    15 dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname 
    16 dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. 
    17 AC_DEFUN([AC_LIB_LINKFLAGS], 
    18 [ 
    19   AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) 
    20   AC_REQUIRE([AC_LIB_RPATH]) 
    21   define([Name],[translit([$1],[./-], [___])]) 
    22   define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], 
    23                                [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) 
    24   AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [ 
    25     AC_LIB_LINKFLAGS_BODY([$1], [$2]) 
    26     ac_cv_lib[]Name[]_libs="$LIB[]NAME" 
    27     ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME" 
    28     ac_cv_lib[]Name[]_cppflags="$INC[]NAME" 
    29     ac_cv_lib[]Name[]_prefix="$LIB[]NAME[]_PREFIX" 
    30   ]) 
    31   LIB[]NAME="$ac_cv_lib[]Name[]_libs" 
    32   LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs" 
    33   INC[]NAME="$ac_cv_lib[]Name[]_cppflags" 
    34   LIB[]NAME[]_PREFIX="$ac_cv_lib[]Name[]_prefix" 
    35   AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) 
    36   AC_SUBST([LIB]NAME) 
    37   AC_SUBST([LTLIB]NAME) 
    38   AC_SUBST([LIB]NAME[_PREFIX]) 
    39   dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the 
    40   dnl results of this search when this library appears as a dependency. 
    41   HAVE_LIB[]NAME=yes 
    42   undefine([Name]) 
    43   undefine([NAME]) 
    44 ]) 
    45  
    46 dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode) 
    47 dnl searches for libname and the libraries corresponding to explicit and 
    48 dnl implicit dependencies, together with the specified include files and 
    49 dnl the ability to compile and link the specified testcode. If found, it 
    50 dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and 
    51 dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and 
    52 dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs 
    53 dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty. 
    54 dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname 
    55 dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. 
    56 AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], 
    57 [ 
    58   AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) 
    59   AC_REQUIRE([AC_LIB_RPATH]) 
    60   define([Name],[translit([$1],[./-], [___])]) 
    61   define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], 
    62                                [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) 
    63  
    64   dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME 
    65   dnl accordingly. 
    66   AC_LIB_LINKFLAGS_BODY([$1], [$2]) 
    67  
    68   dnl Add $INC[]NAME to CPPFLAGS before performing the following checks, 
    69   dnl because if the user has installed lib[]Name and not disabled its use 
    70   dnl via --without-lib[]Name-prefix, he wants to use it. 
    71   ac_save_CPPFLAGS="$CPPFLAGS" 
    72   AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) 
    73  
    74   AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [ 
    75     ac_save_LIBS="$LIBS" 
    76     LIBS="$LIBS $LIB[]NAME" 
    77     AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no]) 
    78     LIBS="$ac_save_LIBS" 
    79   ]) 
    80   if test "$ac_cv_lib[]Name" = yes; then 
    81     HAVE_LIB[]NAME=yes 
    82     AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.]) 
    83     AC_MSG_CHECKING([how to link with lib[]$1]) 
    84     AC_MSG_RESULT([$LIB[]NAME]) 
    85   else 
    86     HAVE_LIB[]NAME=no 
    87     dnl If $LIB[]NAME didn't lead to a usable library, we don't need 
    88     dnl $INC[]NAME either. 
    89     CPPFLAGS="$ac_save_CPPFLAGS" 
    90     LIB[]NAME= 
    91     LTLIB[]NAME= 
    92     LIB[]NAME[]_PREFIX= 
    93   fi 
    94   AC_SUBST([HAVE_LIB]NAME) 
    95   AC_SUBST([LIB]NAME) 
    96   AC_SUBST([LTLIB]NAME) 
    97   AC_SUBST([LIB]NAME[_PREFIX]) 
    98   undefine([Name]) 
    99   undefine([NAME]) 
    100 ]) 
    101  
    102 dnl Determine the platform dependent parameters needed to use rpath: 
    103 dnl   acl_libext, 
    104 dnl   acl_shlibext, 
    105 dnl   acl_hardcode_libdir_flag_spec, 
    106 dnl   acl_hardcode_libdir_separator, 
    107 dnl   acl_hardcode_direct, 
    108 dnl   acl_hardcode_minus_L. 
    109 AC_DEFUN([AC_LIB_RPATH], 
    110 [ 
    111   dnl Tell automake >= 1.10 to complain if config.rpath is missing. 
    112   m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])]) 
    113   AC_REQUIRE([AC_PROG_CC])                dnl we use $CC, $GCC, $LDFLAGS 
    114   AC_REQUIRE([AC_LIB_PROG_LD])            dnl we use $LD, $with_gnu_ld 
    115   AC_REQUIRE([AC_CANONICAL_HOST])         dnl we use $host 
    116   AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir 
    117   AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [ 
    118     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 
    119     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 
    120     . ./conftest.sh 
    121     rm -f ./conftest.sh 
    122     acl_cv_rpath=done 
    123   ]) 
    124   wl="$acl_cv_wl" 
    125   acl_libext="$acl_cv_libext" 
    126   acl_shlibext="$acl_cv_shlibext" 
    127   acl_libname_spec="$acl_cv_libname_spec" 
    128   acl_library_names_spec="$acl_cv_library_names_spec" 
    129   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 
    130   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 
    131   acl_hardcode_direct="$acl_cv_hardcode_direct" 
    132   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" 
    133   dnl Determine whether the user wants rpath handling at all. 
    134   AC_ARG_ENABLE(rpath, 
    135     [  --disable-rpath         do not hardcode runtime library paths], 
    136     :, enable_rpath=yes) 
    137 ]) 
    138  
    139 dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and 
    140 dnl the libraries corresponding to explicit and implicit dependencies. 
    141 dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. 
    142 dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found 
    143 dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem. 
    144 AC_DEFUN([AC_LIB_LINKFLAGS_BODY], 
    145 [ 
    146   AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) 
    147   define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], 
    148                                [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) 
    149   dnl Autoconf >= 2.61 supports dots in --with options. 
    150   define([N_A_M_E],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[translit([$1],[.],[_])],[$1])]) 
    151   dnl By default, look in $includedir and $libdir. 
    152   use_additional=yes 
    153   AC_LIB_WITH_FINAL_PREFIX([ 
    154     eval additional_includedir=\"$includedir\" 
    155     eval additional_libdir=\"$libdir\" 
    156   ]) 
    157   AC_LIB_ARG_WITH([lib]N_A_M_E[-prefix], 
    158 [  --with-lib]N_A_M_E[-prefix[=DIR]  search for lib$1 in DIR/include and DIR/lib 
    159   --without-lib]N_A_M_E[-prefix     don't search for lib$1 in includedir and libdir], 
    160 [ 
    161     if test "X$withval" = "Xno"; then 
    162       use_additional=no 
    163     else 
    164       if test "X$withval" = "X"; then 
    165         AC_LIB_WITH_FINAL_PREFIX([ 
    166           eval additional_includedir=\"$includedir\" 
    167           eval additional_libdir=\"$libdir\" 
    168         ]) 
    169       else 
    170         additional_includedir="$withval/include" 
    171         additional_libdir="$withval/$acl_libdirstem" 
    172       fi 
    173     fi 
    174 ]) 
    175   dnl Search the library and its dependencies in $additional_libdir and 
    176   dnl $LDFLAGS. Using breadth-first-seach. 
    177   LIB[]NAME= 
    178   LTLIB[]NAME= 
    179   INC[]NAME= 
    180   LIB[]NAME[]_PREFIX= 
    181   rpathdirs= 
    182   ltrpathdirs= 
    183   names_already_handled= 
    184   names_next_round='$1 $2' 
    185   while test -n "$names_next_round"; do 
    186     names_this_round="$names_next_round" 
    187     names_next_round= 
    188     for name in $names_this_round; do 
    189       already_handled= 
    190       for n in $names_already_handled; do 
    191         if test "$n" = "$name"; then 
    192           already_handled=yes 
    193           break 
    194         fi 
    195       done 
    196       if test -z "$already_handled"; then 
    197         names_already_handled="$names_already_handled $name" 
    198         dnl See if it was already located by an earlier AC_LIB_LINKFLAGS 
    199         dnl or AC_LIB_HAVE_LINKFLAGS call. 
    200         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 
    201         eval value=\"\$HAVE_LIB$uppername\" 
    202         if test -n "$value"; then 
    203           if test "$value" = yes; then 
    204             eval value=\"\$LIB$uppername\" 
    205             test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value" 
    206             eval value=\"\$LTLIB$uppername\" 
    207             test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value" 
    208           else 
    209             dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined 
    210             dnl that this library doesn't exist. So just drop it. 
    211             : 
    212           fi 
    213         else 
    214           dnl Search the library lib$name in $additional_libdir and $LDFLAGS 
    215           dnl and the already constructed $LIBNAME/$LTLIBNAME. 
    216           found_dir= 
    217           found_la= 
    218           found_so= 
    219           found_a= 
    220           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name 
    221           if test -n "$acl_shlibext"; then 
    222             shrext=".$acl_shlibext"             # typically: shrext=.so 
    223           else 
    224             shrext= 
    225           fi 
    226           if test $use_additional = yes; then 
    227             dir="$additional_libdir" 
    228             dnl The same code as in the loop below: 
    229             dnl First look for a shared library. 
    230             if test -n "$acl_shlibext"; then 
    231               if test -f "$dir/$libname$shrext"; then 
    232                 found_dir="$dir" 
    233                 found_so="$dir/$libname$shrext" 
    234               else 
    235                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 
    236                   ver=`(cd "$dir" && \ 
    237                         for f in "$libname$shrext".*; do echo "$f"; done \ 
    238                         | sed -e "s,^$libname$shrext\\\\.,," \ 
    239                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 
    240                         | sed 1q ) 2>/dev/null` 
    241                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 
    242                     found_dir="$dir" 
    243                     found_so="$dir/$libname$shrext.$ver" 
    244                   fi 
    245                 else 
    246                   eval library_names=\"$acl_library_names_spec\" 
    247                   for f in $library_names; do 
    248                     if test -f "$dir/$f"; then 
    249                       found_dir="$dir" 
    250                       found_so="$dir/$f" 
    251                       break 
    252                     fi 
    253                   done 
    254                 fi 
    255               fi 
    256             fi 
    257             dnl Then look for a static library. 
    258             if test "X$found_dir" = "X"; then 
    259               if test -f "$dir/$libname.$acl_libext"; then 
    260                 found_dir="$dir" 
    261                 found_a="$dir/$libname.$acl_libext" 
    262               fi 
    263             fi 
    264             if test "X$found_dir" != "X"; then 
    265               if test -f "$dir/$libname.la"; then 
    266                 found_la="$dir/$libname.la" 
    267               fi 
    268             fi 
    269           fi 
    270           if test "X$found_dir" = "X"; then 
    271             for x in $LDFLAGS $LTLIB[]NAME; do 
    272               AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) 
    273               case "$x" in 
    274                 -L*) 
    275                   dir=`echo "X$x" | sed -e 's/^X-L//'` 
    276                   dnl First look for a shared library. 
    277                   if test -n "$acl_shlibext"; then 
    278                     if test -f "$dir/$libname$shrext"; then 
    279                       found_dir="$dir" 
    280                       found_so="$dir/$libname$shrext" 
    281                     else 
    282                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 
    283                         ver=`(cd "$dir" && \ 
    284                               for f in "$libname$shrext".*; do echo "$f"; done \ 
    285                               | sed -e "s,^$libname$shrext\\\\.,," \ 
    286                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 
    287                               | sed 1q ) 2>/dev/null` 
    288                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 
    289                           found_dir="$dir" 
    290                           found_so="$dir/$libname$shrext.$ver" 
    291                         fi 
    292                       else 
    293                         eval library_names=\"$acl_library_names_spec\" 
    294                         for f in $library_names; do 
    295                           if test -f "$dir/$f"; then 
    296                             found_dir="$dir" 
    297                             found_so="$dir/$f" 
    298                             break 
    299                           fi 
    300                         done 
    301                       fi 
    302                     fi 
    303                   fi 
    304                   dnl Then look for a static library. 
    305                   if test "X$found_dir" = "X"; then 
    306                     if test -f "$dir/$libname.$acl_libext"; then 
    307                       found_dir="$dir" 
    308                       found_a="$dir/$libname.$acl_libext" 
    309                     fi 
    310                   fi 
    311                   if test "X$found_dir" != "X"; then 
    312                     if test -f "$dir/$libname.la"; then 
    313                       found_la="$dir/$libname.la" 
    314                     fi 
    315                   fi 
    316                   ;; 
    317               esac 
    318               if test "X$found_dir" != "X"; then 
    319                 break 
    320               fi 
    321             done 
    322           fi 
    323           if test "X$found_dir" != "X"; then 
    324             dnl Found the library. 
    325             LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name" 
    326             if test "X$found_so" != "X"; then 
    327               dnl Linking with a shared library. We attempt to hardcode its 
    328               dnl directory into the executable's runpath, unless it's the 
    329               dnl standard /usr/lib. 
    330               if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then 
    331                 dnl No hardcoding is needed. 
    332                 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" 
    333               else 
    334                 dnl Use an explicit option to hardcode DIR into the resulting 
    335                 dnl binary. 
    336                 dnl Potentially add DIR to ltrpathdirs. 
    337                 dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. 
    338                 haveit= 
    339                 for x in $ltrpathdirs; do 
    340                   if test "X$x" = "X$found_dir"; then 
    341                     haveit=yes 
    342                     break 
    343                   fi 
    344                 done 
    345                 if test -z "$haveit"; then 
    346                   ltrpathdirs="$ltrpathdirs $found_dir" 
    347                 fi 
    348                 dnl The hardcoding into $LIBNAME is system dependent. 
    349                 if test "$acl_hardcode_direct" = yes; then 
    350                   dnl Using DIR/libNAME.so during linking hardcodes DIR into the 
    351                   dnl resulting binary. 
    352                   LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" 
    353                 else 
    354                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 
    355                     dnl Use an explicit option to hardcode DIR into the resulting 
    356                     dnl binary. 
    357                     LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" 
    358                     dnl Potentially add DIR to rpathdirs. 
    359                     dnl The rpathdirs will be appended to $LIBNAME at the end. 
    360                     haveit= 
    361                     for x in $rpathdirs; do 
    362                       if test "X$x" = "X$found_dir"; then 
    363                         haveit=yes 
    364                         break 
    365                       fi 
    366                     done 
    367                     if test -z "$haveit"; then 
    368                       rpathdirs="$rpathdirs $found_dir" 
    369                     fi 
    370                   else 
    371                     dnl Rely on "-L$found_dir". 
    372                     dnl But don't add it if it's already contained in the LDFLAGS 
    373                     dnl or the already constructed $LIBNAME 
    374                     haveit= 
    375                     for x in $LDFLAGS $LIB[]NAME; do 
    376                       AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) 
    377                       if test "X$x" = "X-L$found_dir"; then 
    378                         haveit=yes 
    379                         break 
    380                       fi 
    381                     done 
    382                     if test -z "$haveit"; then 
    383                       LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir" 
    384                     fi 
    385                     if test "$acl_hardcode_minus_L" != no; then 
    386                       dnl FIXME: Not sure whether we should use 
    387                       dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" 
    388                       dnl here. 
    389                       LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" 
    390                     else 
    391                       dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH 
    392                       dnl here, because this doesn't fit in flags passed to the 
    393                       dnl compiler. So give up. No hardcoding. This affects only 
    394                       dnl very old systems. 
    395                       dnl FIXME: Not sure whether we should use 
    396                       dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" 
    397                       dnl here. 
    398                       LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" 
    399                     fi 
    400                   fi 
    401                 fi 
    402               fi 
    403             else 
    404               if test "X$found_a" != "X"; then 
    405                 dnl Linking with a static library. 
    406                 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a" 
    407               else 
    408                 dnl We shouldn't come here, but anyway it's good to have a 
    409                 dnl fallback. 
    410                 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name" 
    411               fi 
    412             fi 
    413             dnl Assume the include files are nearby. 
    414             additional_includedir= 
    415             case "$found_dir" in 
    416               */$acl_libdirstem | */$acl_libdirstem/) 
    417                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 
    418                 LIB[]NAME[]_PREFIX="$basedir" 
    419                 additional_includedir="$basedir/include" 
    420                 ;; 
    421             esac 
    422             if test "X$additional_includedir" != "X"; then 
    423               dnl Potentially add $additional_includedir to $INCNAME. 
    424               dnl But don't add it 
    425               dnl   1. if it's the standard /usr/include, 
    426               dnl   2. if it's /usr/local/include and we are using GCC on Linux, 
    427               dnl   3. if it's already present in $CPPFLAGS or the already 
    428               dnl      constructed $INCNAME, 
    429               dnl   4. if it doesn't exist as a directory. 
    430               if test "X$additional_includedir" != "X/usr/include"; then 
    431                 haveit= 
    432                 if test "X$additional_includedir" = "X/usr/local/include"; then 
    433                   if test -n "$GCC"; then 
    434                     case $host_os in 
    435                       linux* | gnu* | k*bsd*-gnu) haveit=yes;; 
    436                     esac 
    437                   fi 
    438                 fi 
    439                 if test -z "$haveit"; then 
    440                   for x in $CPPFLAGS $INC[]NAME; do 
    441                     AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) 
    442                     if test "X$x" = "X-I$additional_includedir"; then 
    443                       haveit=yes 
    444                       break 
    445                     fi 
    446                   done 
    447                   if test -z "$haveit"; then 
    448                     if test -d "$additional_includedir"; then 
    449                       dnl Really add $additional_includedir to $INCNAME. 
    450                       INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir" 
    451                     fi 
    452                   fi 
    453                 fi 
    454               fi 
    455             fi 
    456             dnl Look for dependencies. 
    457             if test -n "$found_la"; then 
    458               dnl Read the .la file. It defines the variables 
    459               dnl dlname, library_names, old_library, dependency_libs, current, 
    460               dnl age, revision, installed, dlopen, dlpreopen, libdir. 
    461               save_libdir="$libdir" 
    462               case "$found_la" in 
    463                 */* | *\\*) . "$found_la" ;; 
    464                 *) . "./$found_la" ;; 
    465               esac 
    466               libdir="$save_libdir" 
    467               dnl We use only dependency_libs. 
    468               for dep in $dependency_libs; do 
    469                 case "$dep" in 
    470                   -L*) 
    471                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 
    472                     dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME. 
    473                     dnl But don't add it 
    474                     dnl   1. if it's the standard /usr/lib, 
    475                     dnl   2. if it's /usr/local/lib and we are using GCC on Linux, 
    476                     dnl   3. if it's already present in $LDFLAGS or the already 
    477                     dnl      constructed $LIBNAME, 
    478                     dnl   4. if it doesn't exist as a directory. 
    479                     if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then 
    480                       haveit= 
    481                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then 
    482                         if test -n "$GCC"; then 
    483                           case $host_os in 
    484                             linux* | gnu* | k*bsd*-gnu) haveit=yes;; 
    485                           esac 
    486                         fi 
    487                       fi 
    488                       if test -z "$haveit"; then 
    489                         haveit= 
    490                         for x in $LDFLAGS $LIB[]NAME; do 
    491                           AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) 
    492                           if test "X$x" = "X-L$additional_libdir"; then 
    493                             haveit=yes 
    494                             break 
    495                           fi 
    496                         done 
    497                         if test -z "$haveit"; then 
    498                           if test -d "$additional_libdir"; then 
    499                             dnl Really add $additional_libdir to $LIBNAME. 
    500                             LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir" 
    501                           fi 
    502                         fi 
    503                         haveit= 
    504                         for x in $LDFLAGS $LTLIB[]NAME; do 
    505                           AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) 
    506                           if test "X$x" = "X-L$additional_libdir"; then 
    507                             haveit=yes 
    508                             break 
    509                           fi 
    510                         done 
    511                         if test -z "$haveit"; then 
    512                           if test -d "$additional_libdir"; then 
    513                             dnl Really add $additional_libdir to $LTLIBNAME. 
    514                             LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir" 
    515                           fi 
    516                         fi 
    517                       fi 
    518                     fi 
    519                     ;; 
    520                   -R*) 
    521                     dir=`echo "X$dep" | sed -e 's/^X-R//'` 
    522                     if test "$enable_rpath" != no; then 
    523                       dnl Potentially add DIR to rpathdirs. 
    524                       dnl The rpathdirs will be appended to $LIBNAME at the end. 
    525                       haveit= 
    526                       for x in $rpathdirs; do 
    527                         if test "X$x" = "X$dir"; then 
    528                           haveit=yes 
    529                           break 
    530                         fi 
    531                       done 
    532                       if test -z "$haveit"; then 
    533                         rpathdirs="$rpathdirs $dir" 
    534                       fi 
    535                       dnl Potentially add DIR to ltrpathdirs. 
    536                       dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. 
    537                       haveit= 
    538                       for x in $ltrpathdirs; do 
    539                         if test "X$x" = "X$dir"; then 
    540                           haveit=yes 
    541                           break 
    542                         fi 
    543                       done 
    544                       if test -z "$haveit"; then 
    545                         ltrpathdirs="$ltrpathdirs $dir" 
    546                       fi 
    547                     fi 
    548                     ;; 
    549                   -l*) 
    550                     dnl Handle this in the next round. 
    551                     names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 
    552                     ;; 
    553                   *.la) 
    554                     dnl Handle this in the next round. Throw away the .la's 
    555                     dnl directory; it is already contained in a preceding -L 
    556                     dnl option. 
    557                     names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 
    558                     ;; 
    559                   *) 
    560                     dnl Most likely an immediate library name. 
    561                     LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep" 
    562                     LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep" 
    563                     ;; 
    564                 esac 
    565               done 
    566             fi 
    567           else 
    568             dnl Didn't find the library; assume it is in the system directories 
    569             dnl known to the linker and runtime loader. (All the system 
    570             dnl directories known to the linker should also be known to the 
    571             dnl runtime loader, otherwise the system is severely misconfigured.) 
    572             LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" 
    573             LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name" 
    574           fi 
    575         fi 
    576       fi 
    577     done 
    578   done 
    579   if test "X$rpathdirs" != "X"; then 
    580     if test -n "$acl_hardcode_libdir_separator"; then 
    581       dnl Weird platform: only the last -rpath option counts, the user must 
    582       dnl pass all path elements in one option. We can arrange that for a 
    583       dnl single library, but not when more than one $LIBNAMEs are used. 
    584       alldirs= 
    585       for found_dir in $rpathdirs; do 
    586         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 
    587       done 
    588       dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl. 
    589       acl_save_libdir="$libdir" 
    590       libdir="$alldirs" 
    591       eval flag=\"$acl_hardcode_libdir_flag_spec\" 
    592       libdir="$acl_save_libdir" 
    593       LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" 
    594     else 
    595       dnl The -rpath options are cumulative. 
    596       for found_dir in $rpathdirs; do 
    597         acl_save_libdir="$libdir" 
    598         libdir="$found_dir" 
    599         eval flag=\"$acl_hardcode_libdir_flag_spec\" 
    600         libdir="$acl_save_libdir" 
    601         LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" 
    602       done 
    603     fi 
    604   fi 
    605   if test "X$ltrpathdirs" != "X"; then 
    606     dnl When using libtool, the option that works for both libraries and 
    607     dnl executables is -R. The -R options are cumulative. 
    608     for found_dir in $ltrpathdirs; do 
    609       LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir" 
    610     done 
    611   fi 
    612 ]) 
    613  
    614 dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR, 
    615 dnl unless already present in VAR. 
    616 dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes 
    617 dnl contains two or three consecutive elements that belong together. 
    618 AC_DEFUN([AC_LIB_APPENDTOVAR], 
    619 [ 
    620   for element in [$2]; do 
    621     haveit= 
    622     for x in $[$1]; do 
    623       AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) 
    624       if test "X$x" = "X$element"; then 
    625         haveit=yes 
    626         break 
    627       fi 
    628     done 
    629     if test -z "$haveit"; then 
    630       [$1]="${[$1]}${[$1]:+ }$element" 
    631     fi 
    632   done 
    633 ]) 
    634  
    635 dnl For those cases where a variable contains several -L and -l options 
    636 dnl referring to unknown libraries and directories, this macro determines the 
    637 dnl necessary additional linker options for the runtime path. 
    638 dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL]) 
    639 dnl sets LDADDVAR to linker options needed together with LIBSVALUE. 
    640 dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed, 
    641 dnl otherwise linking without libtool is assumed. 
    642 AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS], 
    643 [ 
    644   AC_REQUIRE([AC_LIB_RPATH]) 
    645   AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) 
    646   $1= 
    647   if test "$enable_rpath" != no; then 
    648     if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 
    649       dnl Use an explicit option to hardcode directories into the resulting 
    650       dnl binary. 
    651       rpathdirs= 
    652       next= 
    653       for opt in $2; do 
    654         if test -n "$next"; then 
    655           dir="$next" 
    656           dnl No need to hardcode the standard /usr/lib. 
    657           if test "X$dir" != "X/usr/$acl_libdirstem"; then 
    658             rpathdirs="$rpathdirs $dir" 
    659           fi 
    660           next= 
    661         else 
    662           case $opt in 
    663             -L) next=yes ;; 
    664             -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'` 
    665                  dnl No need to hardcode the standard /usr/lib. 
    666                  if test "X$dir" != "X/usr/$acl_libdirstem"; then 
    667                    rpathdirs="$rpathdirs $dir" 
    668                  fi 
    669                  next= ;; 
    670             *) next= ;; 
    671           esac 
    672         fi 
    673       done 
    674       if test "X$rpathdirs" != "X"; then 
    675         if test -n ""$3""; then 
    676           dnl libtool is used for linking. Use -R options. 
    677           for dir in $rpathdirs; do 
    678             $1="${$1}${$1:+ }-R$dir" 
    679           done 
    680         else 
    681           dnl The linker is used for linking directly. 
    682           if test -n "$acl_hardcode_libdir_separator"; then 
    683             dnl Weird platform: only the last -rpath option counts, the user 
    684             dnl must pass all path elements in one option. 
    685             alldirs= 
    686             for dir in $rpathdirs; do 
    687               alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir" 
    688             done 
    689             acl_save_libdir="$libdir" 
    690             libdir="$alldirs" 
    691             eval flag=\"$acl_hardcode_libdir_flag_spec\" 
    692             libdir="$acl_save_libdir" 
    693             $1="$flag" 
    694           else 
    695             dnl The -rpath options are cumulative. 
    696             for dir in $rpathdirs; do 
    697               acl_save_libdir="$libdir" 
    698               libdir="$dir" 
    699               eval flag=\"$acl_hardcode_libdir_flag_spec\" 
    700               libdir="$acl_save_libdir" 
    701               $1="${$1}${$1:+ }$flag" 
    702             done 
    703           fi 
    704         fi 
    705       fi 
    706     fi 
    707   fi 
    708   AC_SUBST([$1]) 
    709 ]) 
  • deleted file m4/lib-prefix.m4

    diff --git a/m4/lib-prefix.m4 b/m4/lib-prefix.m4
    deleted file mode 100644
    index a8684e1..0000000
    + -  
    1 # lib-prefix.m4 serial 5 (gettext-0.15) 
    2 dnl Copyright (C) 2001-2005 Free Software Foundation, Inc. 
    3 dnl This file is free software; the Free Software Foundation 
    4 dnl gives unlimited permission to copy and/or distribute it, 
    5 dnl with or without modifications, as long as this notice is preserved. 
    6  
    7 dnl From Bruno Haible. 
    8  
    9 dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and 
    10 dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't 
    11 dnl require excessive bracketing. 
    12 ifdef([AC_HELP_STRING], 
    13 [AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])], 
    14 [AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])]) 
    15  
    16 dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed 
    17 dnl to access previously installed libraries. The basic assumption is that 
    18 dnl a user will want packages to use other packages he previously installed 
    19 dnl with the same --prefix option. 
    20 dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate 
    21 dnl libraries, but is otherwise very convenient. 
    22 AC_DEFUN([AC_LIB_PREFIX], 
    23 [ 
    24   AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) 
    25   AC_REQUIRE([AC_PROG_CC]) 
    26   AC_REQUIRE([AC_CANONICAL_HOST]) 
    27   AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) 
    28   AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) 
    29   dnl By default, look in $includedir and $libdir. 
    30   use_additional=yes 
    31   AC_LIB_WITH_FINAL_PREFIX([ 
    32     eval additional_includedir=\"$includedir\" 
    33     eval additional_libdir=\"$libdir\" 
    34   ]) 
    35   AC_LIB_ARG_WITH([lib-prefix], 
    36 [  --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib 
    37   --without-lib-prefix    don't search for libraries in includedir and libdir], 
    38 [ 
    39     if test "X$withval" = "Xno"; then 
    40       use_additional=no 
    41     else 
    42       if test "X$withval" = "X"; then 
    43         AC_LIB_WITH_FINAL_PREFIX([ 
    44           eval additional_includedir=\"$includedir\" 
    45           eval additional_libdir=\"$libdir\" 
    46         ]) 
    47       else 
    48         additional_includedir="$withval/include" 
    49         additional_libdir="$withval/$acl_libdirstem" 
    50       fi 
    51     fi 
    52 ]) 
    53   if test $use_additional = yes; then 
    54     dnl Potentially add $additional_includedir to $CPPFLAGS. 
    55     dnl But don't add it 
    56     dnl   1. if it's the standard /usr/include, 
    57     dnl   2. if it's already present in $CPPFLAGS, 
    58     dnl   3. if it's /usr/local/include and we are using GCC on Linux, 
    59     dnl   4. if it doesn't exist as a directory. 
    60     if test "X$additional_includedir" != "X/usr/include"; then 
    61       haveit= 
    62       for x in $CPPFLAGS; do 
    63         AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) 
    64         if test "X$x" = "X-I$additional_includedir"; then 
    65           haveit=yes 
    66           break 
    67         fi 
    68       done 
    69       if test -z "$haveit"; then 
    70         if test "X$additional_includedir" = "X/usr/local/include"; then 
    71           if test -n "$GCC"; then 
    72             case $host_os in 
    73               linux* | gnu* | k*bsd*-gnu) haveit=yes;; 
    74             esac 
    75           fi 
    76         fi 
    77         if test -z "$haveit"; then 
    78           if test -d "$additional_includedir"; then 
    79             dnl Really add $additional_includedir to $CPPFLAGS. 
    80             CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir" 
    81           fi 
    82         fi 
    83       fi 
    84     fi 
    85     dnl Potentially add $additional_libdir to $LDFLAGS. 
    86     dnl But don't add it 
    87     dnl   1. if it's the standard /usr/lib, 
    88     dnl   2. if it's already present in $LDFLAGS, 
    89     dnl   3. if it's /usr/local/lib and we are using GCC on Linux, 
    90     dnl   4. if it doesn't exist as a directory. 
    91     if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then 
    92       haveit= 
    93       for x in $LDFLAGS; do 
    94         AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) 
    95         if test "X$x" = "X-L$additional_libdir"; then 
    96           haveit=yes 
    97           break 
    98         fi 
    99       done 
    100       if test -z "$haveit"; then 
    101         if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then 
    102           if test -n "$GCC"; then 
    103             case $host_os in 
    104               linux*) haveit=yes;; 
    105             esac 
    106           fi 
    107         fi 
    108         if test -z "$haveit"; then 
    109           if test -d "$additional_libdir"; then 
    110             dnl Really add $additional_libdir to $LDFLAGS. 
    111             LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir" 
    112           fi 
    113         fi 
    114       fi 
    115     fi 
    116   fi 
    117 ]) 
    118  
    119 dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix, 
    120 dnl acl_final_exec_prefix, containing the values to which $prefix and 
    121 dnl $exec_prefix will expand at the end of the configure script. 
    122 AC_DEFUN([AC_LIB_PREPARE_PREFIX], 
    123 [ 
    124   dnl Unfortunately, prefix and exec_prefix get only finally determined 
    125   dnl at the end of configure. 
    126   if test "X$prefix" = "XNONE"; then 
    127     acl_final_prefix="$ac_default_prefix" 
    128   else 
    129     acl_final_prefix="$prefix" 
    130   fi 
    131   if test "X$exec_prefix" = "XNONE"; then 
    132     acl_final_exec_prefix='${prefix}' 
    133   else 
    134     acl_final_exec_prefix="$exec_prefix" 
    135   fi 
    136   acl_save_prefix="$prefix" 
    137   prefix="$acl_final_prefix" 
    138   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 
    139   prefix="$acl_save_prefix" 
    140 ]) 
    141  
    142 dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the 
    143 dnl variables prefix and exec_prefix bound to the values they will have 
    144 dnl at the end of the configure script. 
    145 AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], 
    146 [ 
    147   acl_save_prefix="$prefix" 
    148   prefix="$acl_final_prefix" 
    149   acl_save_exec_prefix="$exec_prefix" 
    150   exec_prefix="$acl_final_exec_prefix" 
    151   $1 
    152   exec_prefix="$acl_save_exec_prefix" 
    153   prefix="$acl_save_prefix" 
    154 ]) 
    155  
    156 dnl AC_LIB_PREPARE_MULTILIB creates a variable acl_libdirstem, containing 
    157 dnl the basename of the libdir, either "lib" or "lib64". 
    158 AC_DEFUN([AC_LIB_PREPARE_MULTILIB], 
    159 [ 
    160   dnl There is no formal standard regarding lib and lib64. The current 
    161   dnl practice is that on a system supporting 32-bit and 64-bit instruction 
    162   dnl sets or ABIs, 64-bit libraries go under $prefix/lib64 and 32-bit 
    163   dnl libraries go under $prefix/lib. We determine the compiler's default 
    164   dnl mode by looking at the compiler's library search path. If at least 
    165   dnl of its elements ends in /lib64 or points to a directory whose absolute 
    166   dnl pathname ends in /lib64, we assume a 64-bit ABI. Otherwise we use the 
    167   dnl default, namely "lib". 
    168   acl_libdirstem=lib 
    169   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 
    170   if test -n "$searchpath"; then 
    171     acl_save_IFS="${IFS=        }"; IFS=":" 
    172     for searchdir in $searchpath; do 
    173       if test -d "$searchdir"; then 
    174         case "$searchdir" in 
    175           */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; 
    176           *) searchdir=`cd "$searchdir" && pwd` 
    177              case "$searchdir" in 
    178                */lib64 ) acl_libdirstem=lib64 ;; 
    179              esac ;; 
    180         esac 
    181       fi 
    182     done 
    183     IFS="$acl_save_IFS" 
    184   fi 
    185 ]) 
  • deleted file m4/longdouble.m4

    diff --git a/m4/longdouble.m4 b/m4/longdouble.m4
    deleted file mode 100644
    index 40cd7ce..0000000
    + -  
    1 # longdouble.m4 serial 1 (gettext-0.12) 
    2 dnl Copyright (C) 2002-2003 Free Software Foundation, Inc. 
    3 dnl This file is free software; the Free Software Foundation 
    4 dnl gives unlimited permission to copy and/or distribute it, 
    5 dnl with or without modifications, as long as this notice is preserved. 
    6  
    7 dnl From Bruno Haible. 
    8 dnl Test whether the compiler supports the 'long double' type. 
    9 dnl Prerequisite: AC_PROG_CC 
    10  
    11 AC_DEFUN([gt_TYPE_LONGDOUBLE], 
    12 [ 
    13   AC_CACHE_CHECK([for long double], gt_cv_c_long_double, 
    14     [if test "$GCC" = yes; then 
    15        gt_cv_c_long_double=yes 
    16      else 
    17        AC_TRY_COMPILE([ 
    18          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */ 
    19          long double foo = 0.0; 
    20          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */ 
    21          int array [2*(sizeof(long double) >= sizeof(double)) - 1]; 
    22          ], , 
    23          gt_cv_c_long_double=yes, gt_cv_c_long_double=no) 
    24      fi]) 
    25   if test $gt_cv_c_long_double = yes; then 
    26     AC_DEFINE(HAVE_LONG_DOUBLE, 1, [Define if you have the 'long double' type.]) 
    27   fi 
    28 ]) 
  • deleted file m4/longlong.m4

    diff --git a/m4/longlong.m4 b/m4/longlong.m4
    deleted file mode 100644
    index 1f9e862..0000000
    + -  
    1 # longlong.m4 serial 10 
    2 dnl Copyright (C) 1999-2006 Free Software Foundation, Inc. 
    3 dnl This file is free software; the Free Software Foundation 
    4 dnl gives unlimited permission to copy and/or distribute it, 
    5 dnl with or without modifications, as long as this notice is preserved. 
    6  
    7 dnl From Paul Eggert. 
    8  
    9 # Define HAVE_LONG_LONG_INT if 'long long int' works. 
    10 # This fixes a bug in Autoconf 2.60, but can be removed once we 
    11 # assume 2.61 everywhere. 
    12  
    13 # Note: If the type 'long long int' exists but is only 32 bits large 
    14 # (as on some very old compilers), HAVE_LONG_LONG_INT will not be 
    15 # defined. In this case you can treat 'long long int' like 'long int'. 
    16  
    17 AC_DEFUN([AC_TYPE_LONG_LONG_INT], 
    18 [ 
    19   AC_CACHE_CHECK([for long long int], [ac_cv_type_long_long_int], 
    20     [AC_LINK_IFELSE( 
    21        [AC_LANG_PROGRAM( 
    22           [[long long int ll = 9223372036854775807ll; 
    23             long long int nll = -9223372036854775807LL; 
    24             typedef int a[((-9223372036854775807LL < 0 
    25                             && 0 < 9223372036854775807ll) 
    26                            ? 1 : -1)]; 
    27             int i = 63;]], 
    28           [[long long int llmax = 9223372036854775807ll; 
    29             return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 
    30                     | (llmax / ll) | (llmax % ll));]])], 
    31        [dnl This catches a bug in Tandem NonStop Kernel (OSS) cc -O circa 2004. 
    32         dnl If cross compiling, assume the bug isn't important, since 
    33         dnl nobody cross compiles for this platform as far as we know. 
    34         AC_RUN_IFELSE( 
    35           [AC_LANG_PROGRAM( 
    36              [[@%:@include <limits.h> 
    37                @%:@ifndef LLONG_MAX 
    38                @%:@ define HALF \ 
    39                         (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 
    40                @%:@ define LLONG_MAX (HALF - 1 + HALF) 
    41                @%:@endif]], 
    42              [[long long int n = 1; 
    43                int i; 
    44                for (i = 0; ; i++) 
    45                  { 
    46                    long long int m = n << i; 
    47                    if (m >> i != n) 
    48                      return 1; 
    49                    if (LLONG_MAX / 2 < m) 
    50                      break; 
    51                  } 
    52                return 0;]])], 
    53           [ac_cv_type_long_long_int=yes], 
    54           [ac_cv_type_long_long_int=no], 
    55           [ac_cv_type_long_long_int=yes])], 
    56        [ac_cv_type_long_long_int=no])]) 
    57   if test $ac_cv_type_long_long_int = yes; then 
    58     AC_DEFINE([HAVE_LONG_LONG_INT], 1, 
    59       [Define to 1 if the system has the type `long long int'.]) 
    60   fi 
    61 ]) 
    62  
    63 # This macro is obsolescent and should go away soon. 
    64 AC_DEFUN([gl_AC_TYPE_LONG_LONG], 
    65 [ 
    66   AC_REQUIRE([AC_TYPE_LONG_LONG_INT]) 
    67   ac_cv_type_long_long=$ac_cv_type_long_long_int 
    68   if test $ac_cv_type_long_long = yes; then 
    69     AC_DEFINE(HAVE_LONG_LONG, 1, 
    70       [Define if you have the 'long long' type.]) 
    71   fi 
    72 ]) 
  • deleted file m4/ls-mntd-fs.m4

    diff --git a/m4/ls-mntd-fs.m4 b/m4/ls-mntd-fs.m4
    deleted file mode 100644
    index 21ac4e7..0000000
    + -  
    1 #serial 26 
    2 # How to list mounted file systems. 
    3  
    4 # Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2006 Free Software 
    5 # Foundation, Inc. 
    6 # 
    7 # This file is free software; the Free Software Foundation 
    8 # gives unlimited permission to copy and/or distribute it, 
    9 # with or without modifications, as long as this notice is preserved. 
    10  
    11 dnl From Jim Meyering. 
    12 dnl 
    13 dnl This is not pretty.  I've just taken the autoconf code and wrapped 
    14 dnl it in an AC_DEFUN and made some other fixes. 
    15 dnl 
    16  
    17 # Replace Autoconf's AC_FUNC_GETMNTENT to work around a bug in Autoconf 
    18 # through Autoconf 2.59.  We can remove this once we assume Autoconf 2.60 
    19 # or later. 
    20 AC_DEFUN([AC_FUNC_GETMNTENT], 
    21 [# getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, 
    22 # -lseq on Dynix/PTX, -lgen on Unixware. 
    23 AC_SEARCH_LIBS(getmntent, [sun seq gen]) 
    24 AC_CHECK_FUNCS(getmntent) 
    25 ]) 
    26  
    27 # gl_LIST_MOUNTED_FILE_SYSTEMS([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) 
    28 AC_DEFUN([gl_LIST_MOUNTED_FILE_SYSTEMS], 
    29   [ 
    30 AC_CHECK_FUNCS(listmntent getmntinfo) 
    31 AC_CHECK_HEADERS_ONCE(sys/param.h sys/statvfs.h) 
    32  
    33 # We must include grp.h before ucred.h on OSF V4.0, since ucred.h uses 
    34 # NGROUPS (as the array dimension for a struct member) without a definition. 
    35 AC_CHECK_HEADERS(sys/ucred.h, [], [], [#include <grp.h>]) 
    36  
    37 AC_CHECK_HEADERS(sys/mount.h, [], [], 
    38   [AC_INCLUDES_DEFAULT 
    39    [#if HAVE_SYS_PARAM_H 
    40      #include <sys/param.h> 
    41     #endif]]) 
    42  
    43 AC_CHECK_HEADERS(mntent.h sys/fs_types.h) 
    44     getfsstat_includes="\ 
    45 $ac_includes_default 
    46 #if HAVE_SYS_PARAM_H 
    47 # include <sys/param.h> /* needed by powerpc-apple-darwin1.3.7 */ 
    48 #endif 
    49 #if HAVE_SYS_UCRED_H 
    50 # include <grp.h> /* needed for definition of NGROUPS */ 
    51 # include <sys/ucred.h> /* needed by powerpc-apple-darwin1.3.7 */ 
    52 #endif 
    53 #if HAVE_SYS_MOUNT_H 
    54 # include <sys/mount.h> 
    55 #endif 
    56 #if HAVE_SYS_FS_TYPES_H 
    57 # include <sys/fs_types.h> /* needed by powerpc-apple-darwin1.3.7 */ 
    58 #endif 
    59 " 
    60 AC_CHECK_MEMBERS([struct fsstat.f_fstypename],,,[$getfsstat_includes]) 
    61  
    62 # Determine how to get the list of mounted file systems. 
    63 ac_list_mounted_fs= 
    64  
    65 # If the getmntent function is available but not in the standard library, 
    66 # make sure LIBS contains the appropriate -l option. 
    67 AC_FUNC_GETMNTENT 
    68  
    69 # This test must precede the ones for getmntent because Unicos-9 is 
    70 # reported to have the getmntent function, but its support is incompatible 
    71 # with other getmntent implementations. 
    72  
    73 # NOTE: Normally, I wouldn't use a check for system type as I've done for 
    74 # `CRAY' below since that goes against the whole autoconf philosophy.  But 
    75 # I think there is too great a chance that some non-Cray system has a 
    76 # function named listmntent to risk the false positive. 
    77  
    78 if test -z "$ac_list_mounted_fs"; then 
    79   # Cray UNICOS 9 
    80   AC_MSG_CHECKING([for listmntent of Cray/Unicos-9]) 
    81   AC_CACHE_VAL(fu_cv_sys_mounted_cray_listmntent, 
    82     [fu_cv_sys_mounted_cray_listmntent=no 
    83       AC_EGREP_CPP(yes, 
    84         [#ifdef _CRAY 
    85 yes 
    86 #endif 
    87         ], [test $ac_cv_func_listmntent = yes \ 
    88             && fu_cv_sys_mounted_cray_listmntent=yes] 
    89       ) 
    90     ] 
    91   ) 
    92   AC_MSG_RESULT($fu_cv_sys_mounted_cray_listmntent) 
    93   if test $fu_cv_sys_mounted_cray_listmntent = yes; then 
    94     ac_list_mounted_fs=found 
    95     AC_DEFINE(MOUNTED_LISTMNTENT, 1, 
    96       [Define if there is a function named listmntent that can be used to 
    97        list all mounted file systems.  (UNICOS)]) 
    98   fi 
    99 fi 
    100  
    101 if test -z "$ac_list_mounted_fs"; then 
    102   # AIX. 
    103   AC_MSG_CHECKING([for mntctl function and struct vmount]) 
    104   AC_CACHE_VAL(fu_cv_sys_mounted_vmount, 
    105   [AC_TRY_CPP([#include <fshelp.h>], 
    106     fu_cv_sys_mounted_vmount=yes, 
    107     fu_cv_sys_mounted_vmount=no)]) 
    108   AC_MSG_RESULT($fu_cv_sys_mounted_vmount) 
    109   if test $fu_cv_sys_mounted_vmount = yes; then 
    110     ac_list_mounted_fs=found 
    111     AC_DEFINE(MOUNTED_VMOUNT, 1, 
    112         [Define if there is a function named mntctl that can be used to read 
    113          the list of mounted file systems, and there is a system header file 
    114          that declares `struct vmount.'  (AIX)]) 
    115   fi 
    116 fi 
    117  
    118 if test $ac_cv_func_getmntent = yes; then 
    119  
    120   # This system has the getmntent function. 
    121   # Determine whether it's the one-argument variant or the two-argument one. 
    122  
    123   if test -z "$ac_list_mounted_fs"; then 
    124     # 4.3BSD, SunOS, HP-UX, Dynix, Irix 
    125     AC_MSG_CHECKING([for one-argument getmntent function]) 
    126     AC_CACHE_VAL(fu_cv_sys_mounted_getmntent1, 
    127                  [AC_TRY_COMPILE([ 
    128 /* SunOS 4.1.x /usr/include/mntent.h needs this for FILE */ 
    129 #include <stdio.h> 
    130  
    131 #include <mntent.h> 
    132 #if !defined MOUNTED 
    133 # if defined _PATH_MOUNTED      /* GNU libc  */ 
    134 #  define MOUNTED _PATH_MOUNTED 
    135 # endif 
    136 # if defined MNT_MNTTAB /* HP-UX.  */ 
    137 #  define MOUNTED MNT_MNTTAB 
    138 # endif 
    139 # if defined MNTTABNAME /* Dynix.  */ 
    140 #  define MOUNTED MNTTABNAME 
    141 # endif 
    142 #endif 
    143 ], 
    144                     [ struct mntent *mnt = 0; char *table = MOUNTED; 
    145                       if (sizeof mnt && sizeof table) return 0;], 
    146                     fu_cv_sys_mounted_getmntent1=yes, 
    147                     fu_cv_sys_mounted_getmntent1=no)]) 
    148     AC_MSG_RESULT($fu_cv_sys_mounted_getmntent1) 
    149     if test $fu_cv_sys_mounted_getmntent1 = yes; then 
    150       ac_list_mounted_fs=found 
    151       AC_DEFINE(MOUNTED_GETMNTENT1, 1, 
    152         [Define if there is a function named getmntent for reading the list 
    153          of mounted file systems, and that function takes a single argument. 
    154          (4.3BSD, SunOS, HP-UX, Dynix, Irix)]) 
    155     fi 
    156   fi 
    157  
    158   if test -z "$ac_list_mounted_fs"; then 
    159     # SVR4 
    160     AC_MSG_CHECKING([for two-argument getmntent function]) 
    161     AC_CACHE_VAL(fu_cv_sys_mounted_getmntent2, 
    162     [AC_EGREP_HEADER(getmntent, sys/mnttab.h, 
    163       fu_cv_sys_mounted_getmntent2=yes, 
    164       fu_cv_sys_mounted_getmntent2=no)]) 
    165     AC_MSG_RESULT($fu_cv_sys_mounted_getmntent2) 
    166     if test $fu_cv_sys_mounted_getmntent2 = yes; then 
    167       ac_list_mounted_fs=found 
    168       AC_DEFINE(MOUNTED_GETMNTENT2, 1, 
    169         [Define if there is a function named getmntent for reading the list of 
    170          mounted file systems, and that function takes two arguments.  (SVR4)]) 
    171       AC_CHECK_FUNCS(hasmntopt) 
    172     fi 
    173   fi 
    174  
    175 fi 
    176  
    177 if test -z "$ac_list_mounted_fs"; then 
    178   # DEC Alpha running OSF/1, and Apple Darwin 1.3. 
    179   # powerpc-apple-darwin1.3.7 needs sys/param.h sys/ucred.h sys/fs_types.h 
    180  
    181   AC_MSG_CHECKING([for getfsstat function]) 
    182   AC_CACHE_VAL(fu_cv_sys_mounted_getfsstat, 
    183   [AC_TRY_LINK([ 
    184 #include <sys/types.h> 
    185 #if HAVE_STRUCT_FSSTAT_F_FSTYPENAME 
    186 # define FS_TYPE(Ent) ((Ent).f_fstypename) 
    187 #else 
    188 # define FS_TYPE(Ent) mnt_names[(Ent).f_type] 
    189 #endif 
    190 ]$getfsstat_includes 
    191 , 
    192   [struct statfs *stats; 
    193    int numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT); 
    194    char *t = FS_TYPE (*stats); ], 
    195     fu_cv_sys_mounted_getfsstat=yes, 
    196     fu_cv_sys_mounted_getfsstat=no)]) 
    197   AC_MSG_RESULT($fu_cv_sys_mounted_getfsstat) 
    198   if test $fu_cv_sys_mounted_getfsstat = yes; then 
    199     ac_list_mounted_fs=found 
    200     AC_DEFINE(MOUNTED_GETFSSTAT, 1, 
    201               [Define if there is a function named getfsstat for reading the 
    202                list of mounted file systems.  (DEC Alpha running OSF/1)]) 
    203   fi 
    204 fi 
    205  
    206 if test -z "$ac_list_mounted_fs"; then 
    207   # SVR3 
    208   AC_MSG_CHECKING([for FIXME existence of three headers]) 
    209   AC_CACHE_VAL(fu_cv_sys_mounted_fread_fstyp, 
    210     [AC_TRY_CPP([ 
    211 #include <sys/statfs.h> 
    212 #include <sys/fstyp.h> 
    213 #include <mnttab.h>], 
    214                 fu_cv_sys_mounted_fread_fstyp=yes, 
    215                 fu_cv_sys_mounted_fread_fstyp=no)]) 
    216   AC_MSG_RESULT($fu_cv_sys_mounted_fread_fstyp) 
    217   if test $fu_cv_sys_mounted_fread_fstyp = yes; then 
    218     ac_list_mounted_fs=found 
    219     AC_DEFINE(MOUNTED_FREAD_FSTYP, 1, 
    220       [Define if (like SVR2) there is no specific function for reading the 
    221        list of mounted file systems, and your system has these header files: 
    222        <sys/fstyp.h> and <sys/statfs.h>.  (SVR3)]) 
    223   fi 
    224 fi 
    225  
    226 if test -z "$ac_list_mounted_fs"; then 
    227   # 4.4BSD and DEC OSF/1. 
    228   AC_MSG_CHECKING([for getmntinfo function]) 
    229   AC_CACHE_VAL(fu_cv_sys_mounted_getmntinfo, 
    230     [ 
    231       test "$ac_cv_func_getmntinfo" = yes \ 
    232           && fu_cv_sys_mounted_getmntinfo=yes \ 
    233           || fu_cv_sys_mounted_getmntinfo=no 
    234     ]) 
    235   AC_MSG_RESULT($fu_cv_sys_mounted_getmntinfo) 
    236   if test $fu_cv_sys_mounted_getmntinfo = yes; then 
    237     AC_MSG_CHECKING([whether getmntinfo returns statvfs structures]) 
    238     AC_CACHE_VAL(fu_cv_sys_mounted_getmntinfo2, 
    239       [ 
    240         AC_TRY_COMPILE([ 
    241 #if HAVE_SYS_PARAM_H 
    242 # include <sys/param.h> 
    243 #endif 
    244 #include <sys/types.h> 
    245 #if HAVE_SYS_MOUNT_H 
    246 # include <sys/mount.h> 
    247 #endif 
    248 #if HAVE_SYS_STATVFS_H 
    249 # include <sys/statvfs.h> 
    250 #endif 
    251 extern int getmntinfo (struct statfs **, int); 
    252           ], [], 
    253           [fu_cv_sys_mounted_getmntinfo2=no], 
    254           [fu_cv_sys_mounted_getmntinfo2=yes]) 
    255       ]) 
    256     AC_MSG_RESULT([$fu_cv_sys_mounted_getmntinfo2]) 
    257     if test $fu_cv_sys_mounted_getmntinfo2 = no; then 
    258       ac_list_mounted_fs=found 
    259       AC_DEFINE(MOUNTED_GETMNTINFO, 1, 
    260                 [Define if there is a function named getmntinfo for reading the 
    261                  list of mounted file systems and it returns an array of 
    262                  'struct statfs'.  (4.4BSD, Darwin)]) 
    263     else 
    264       ac_list_mounted_fs=found 
    265       AC_DEFINE(MOUNTED_GETMNTINFO2, 1, 
    266                 [Define if there is a function named getmntinfo for reading the 
    267                  list of mounted file systems and it returns an array of 
    268                  'struct statvfs'.  (NetBSD 3.0)]) 
    269     fi 
    270   fi 
    271 fi 
    272  
    273 if test -z "$ac_list_mounted_fs"; then 
    274   # Ultrix 
    275   AC_MSG_CHECKING([for getmnt function]) 
    276   AC_CACHE_VAL(fu_cv_sys_mounted_getmnt, 
    277     [AC_TRY_CPP([ 
    278 #include <sys/fs_types.h> 
    279 #include <sys/mount.h>], 
    280                 fu_cv_sys_mounted_getmnt=yes, 
    281                 fu_cv_sys_mounted_getmnt=no)]) 
    282   AC_MSG_RESULT($fu_cv_sys_mounted_getmnt) 
    283   if test $fu_cv_sys_mounted_getmnt = yes; then 
    284     ac_list_mounted_fs=found 
    285     AC_DEFINE(MOUNTED_GETMNT, 1, 
    286       [Define if there is a function named getmnt for reading the list of 
    287        mounted file systems.  (Ultrix)]) 
    288   fi 
    289 fi 
    290  
    291 if test -z "$ac_list_mounted_fs"; then 
    292   # BeOS 
    293   AC_CHECK_FUNCS(next_dev fs_stat_dev) 
    294   AC_CHECK_HEADERS(fs_info.h) 
    295   AC_MSG_CHECKING([for BEOS mounted file system support functions]) 
    296   if test $ac_cv_header_fs_info_h = yes \ 
    297       && test $ac_cv_func_next_dev = yes \ 
    298         && test $ac_cv_func_fs_stat_dev = yes; then 
    299     fu_result=yes 
    300   else 
    301     fu_result=no 
    302   fi 
    303   AC_MSG_RESULT($fu_result) 
    304   if test $fu_result = yes; then 
    305     ac_list_mounted_fs=found 
    306     AC_DEFINE(MOUNTED_FS_STAT_DEV, 1, 
    307       [Define if there are functions named next_dev and fs_stat_dev for 
    308        reading the list of mounted file systems.  (BeOS)]) 
    309   fi 
    310 fi 
    311  
    312 if test -z "$ac_list_mounted_fs"; then 
    313   # SVR2 
    314   AC_MSG_CHECKING([whether it is possible to resort to fread on /etc/mnttab]) 
    315   AC_CACHE_VAL(fu_cv_sys_mounted_fread, 
    316     [AC_TRY_CPP([#include <mnttab.h>], 
    317                 fu_cv_sys_mounted_fread=yes, 
    318                 fu_cv_sys_mounted_fread=no)]) 
    319   AC_MSG_RESULT($fu_cv_sys_mounted_fread) 
    320   if test $fu_cv_sys_mounted_fread = yes; then 
    321     ac_list_mounted_fs=found 
    322     AC_DEFINE(MOUNTED_FREAD, 1, 
    323               [Define if there is no specific function for reading the list of 
    324                mounted file systems.  fread will be used to read /etc/mnttab. 
    325                (SVR2) ]) 
    326   fi 
    327 fi 
    328  
    329 if test -z "$ac_list_mounted_fs"; then 
    330   AC_MSG_ERROR([could not determine how to read list of mounted file systems]) 
    331   # FIXME -- no need to abort building the whole package 
    332   # Can't build mountlist.c or anything that needs its functions 
    333 fi 
    334  
    335 AS_IF([test $ac_list_mounted_fs = found], [$1], [$2]) 
    336  
    337   ]) 
  • deleted file m4/nls.m4

    diff --git a/m4/nls.m4 b/m4/nls.m4
    deleted file mode 100644
    index 2082c3b..0000000
    + -  
    1 # nls.m4 serial 2 (gettext-0.14.3) 
    2 dnl Copyright (C) 1995-2003, 2005 Free Software Foundation, Inc. 
    3 dnl This file is free software; the Free Software Foundation 
    4 dnl gives unlimited permission to copy and/or distribute it, 
    5 dnl with or without modifications, as long as this notice is preserved. 
    6 dnl 
    7 dnl This file can can be used in projects which are not available under 
    8 dnl the GNU General Public License or the GNU Library General Public 
    9 dnl License but which still want to provide support for the GNU gettext 
    10 dnl functionality. 
    11 dnl Please note that the actual code of the GNU gettext library is covered 
    12 dnl by the GNU Library General Public License, and the rest of the GNU 
    13 dnl gettext package package is covered by the GNU General Public License. 
    14 dnl They are *not* in the public domain. 
    15  
    16 dnl Authors: 
    17 dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000. 
    18 dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003. 
    19  
    20 AC_PREREQ(2.50) 
    21  
    22 AC_DEFUN([AM_NLS], 
    23 [ 
    24   AC_MSG_CHECKING([whether NLS is requested]) 
    25   dnl Default is enabled NLS 
    26   AC_ARG_ENABLE(nls, 
    27     [  --disable-nls           do not use Native Language Support], 
    28     USE_NLS=$enableval, USE_NLS=yes) 
    29   AC_MSG_RESULT($USE_NLS) 
    30   AC_SUBST(USE_NLS) 
    31 ]) 
    32  
    33 AC_DEFUN([AM_MKINSTALLDIRS], 
    34 [ 
    35   dnl Tell automake >= 1.10 to complain if mkinstalldirs is missing. 
    36   m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([mkinstalldirs])]) 
    37   dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly 
    38   dnl find the mkinstalldirs script in another subdir but $(top_srcdir). 
    39   dnl Try to locate it. 
    40   MKINSTALLDIRS= 
    41   if test -n "$ac_aux_dir"; then 
    42     case "$ac_aux_dir" in 
    43       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; 
    44       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; 
    45     esac 
    46   fi 
    47   if test -z "$MKINSTALLDIRS"; then 
    48     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 
    49   fi 
    50   AC_SUBST(MKINSTALLDIRS) 
    51 ]) 
  • deleted file m4/onceonly.m4

    diff --git a/m4/onceonly.m4 b/m4/onceonly.m4
    deleted file mode 100644
    index b86700f..0000000
    + -  
    1 # onceonly.m4 serial 5 (gettext-0.15) 
    2 dnl Copyright (C) 2002-2003, 2006 Free Software Foundation, Inc. 
    3 dnl This file is free software; the Free Software Foundation 
    4 dnl gives unlimited permission to copy and/or distribute it, 
    5 dnl with or without modifications, as long as this notice is preserved. 
    6  
    7 dnl This file defines some "once only" variants of standard autoconf macros. 
    8 dnl   AC_CHECK_HEADERS_ONCE          like  AC_CHECK_HEADERS 
    9 dnl   AC_CHECK_FUNCS_ONCE            like  AC_CHECK_FUNCS 
    10 dnl   AC_CHECK_DECLS_ONCE            like  AC_CHECK_DECLS 
    11 dnl   AC_REQUIRE([AC_FUNC_STRCOLL])  like  AC_FUNC_STRCOLL 
    12 dnl The advantage is that the check for each of the headers/functions/decls 
    13 dnl will be put only once into the 'configure' file. It keeps the size of 
    14 dnl the 'configure' file down, and avoids redundant output when 'configure' 
    15 dnl is run. 
    16 dnl The drawback is that the checks cannot be conditionalized. If you write 
    17 dnl   if some_condition; then gl_CHECK_HEADERS(stdlib.h); fi 
    18 dnl inside an AC_DEFUNed function, the gl_CHECK_HEADERS macro call expands to 
    19 dnl empty, and the check will be inserted before the body of the AC_DEFUNed 
    20 dnl function. 
    21  
    22 dnl This file is only needed in autoconf <= 2.59.  Newer versions of autoconf 
    23 dnl have this macro built-in.  But about AC_CHECK_DECLS_ONCE: note that in 
    24 dnl autoconf >= 2.60 the symbol separator is a comma, whereas here it is 
    25 dnl whitespace. 
    26  
    27 dnl Autoconf version 2.57 or newer is recommended. 
    28 AC_PREREQ(2.54) 
    29  
    30 # AC_CHECK_HEADERS_ONCE(HEADER1 HEADER2 ...) is a once-only variant of 
    31 # AC_CHECK_HEADERS(HEADER1 HEADER2 ...). 
    32 AC_DEFUN([AC_CHECK_HEADERS_ONCE], [ 
    33   : 
    34   AC_FOREACH([gl_HEADER_NAME], [$1], [ 
    35     AC_DEFUN([gl_CHECK_HEADER_]m4_quote(translit(m4_defn([gl_HEADER_NAME]), 
    36                                                  [-./], [___])), [ 
    37       AC_CHECK_HEADERS(gl_HEADER_NAME) 
    38     ]) 
    39     AC_REQUIRE([gl_CHECK_HEADER_]m4_quote(translit(gl_HEADER_NAME, 
    40                                                    [-./], [___]))) 
    41   ]) 
    42 ]) 
    43  
    44 # AC_CHECK_FUNCS_ONCE(FUNC1 FUNC2 ...) is a once-only variant of 
    45 # AC_CHECK_FUNCS(FUNC1 FUNC2 ...). 
    46 AC_DEFUN([AC_CHECK_FUNCS_ONCE], [ 
    47   : 
    48   AC_FOREACH([gl_FUNC_NAME], [$1], [ 
    49     AC_DEFUN([gl_CHECK_FUNC_]m4_defn([gl_FUNC_NAME]), [ 
    50       AC_CHECK_FUNCS(m4_defn([gl_FUNC_NAME])) 
    51     ]) 
    52     AC_REQUIRE([gl_CHECK_FUNC_]m4_defn([gl_FUNC_NAME])) 
    53   ]) 
    54 ]) 
    55  
    56 # AC_CHECK_DECLS_ONCE(DECL1 DECL2 ...) is a once-only variant of 
    57 # AC_CHECK_DECLS(DECL1, DECL2, ...). 
    58 AC_DEFUN([AC_CHECK_DECLS_ONCE], [ 
    59   : 
    60   AC_FOREACH([gl_DECL_NAME], [$1], [ 
    61     AC_DEFUN([gl_CHECK_DECL_]m4_defn([gl_DECL_NAME]), [ 
    62       AC_CHECK_DECLS(m4_defn([gl_DECL_NAME])) 
    63     ]) 
    64     AC_REQUIRE([gl_CHECK_DECL_]m4_defn([gl_DECL_NAME])) 
    65   ]) 
    66 ]) 
  • deleted file m4/pkg.m4

    diff --git a/m4/pkg.m4 b/m4/pkg.m4
    deleted file mode 100644
    index f2bfc2d..0000000
    + -  
    1  
    2 dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not) 
    3 dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page 
    4 dnl also defines GSTUFF_PKG_ERRORS on error 
    5 AC_DEFUN([PKG_CHECK_MODULES], [ 
    6   succeeded=no 
    7  
    8   if test -z "$PKG_CONFIG"; then 
    9     AC_PATH_PROG(PKG_CONFIG, pkg-config, no) 
    10   fi 
    11  
    12   if test "$PKG_CONFIG" = "no" ; then 
    13      echo "*** The pkg-config script could not be found. Make sure it is" 
    14      echo "*** in your path, or set the PKG_CONFIG environment variable" 
    15      echo "*** to the full path to pkg-config." 
    16      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." 
    17   else 
    18      PKG_CONFIG_MIN_VERSION=0.9.0 
    19      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 
    20         AC_MSG_CHECKING(for $2) 
    21  
    22         if $PKG_CONFIG --exists "$2" ; then 
    23             AC_MSG_RESULT(yes) 
    24             succeeded=yes 
    25  
    26             AC_MSG_CHECKING($1_CFLAGS) 
    27             $1_CFLAGS=`$PKG_CONFIG --cflags "$2"` 
    28             AC_MSG_RESULT($$1_CFLAGS) 
    29  
    30             AC_MSG_CHECKING($1_LIBS) 
    31             $1_LIBS=`$PKG_CONFIG --libs "$2"` 
    32             AC_MSG_RESULT($$1_LIBS) 
    33         else 
    34             $1_CFLAGS="" 
    35             $1_LIBS="" 
    36             ## If we have a custom action on failure, don't print errors, but  
    37             ## do set a variable so people can do so. 
    38             $1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` 
    39             ifelse([$4], ,echo $$1_PKG_ERRORS,) 
    40         fi 
    41  
    42         AC_SUBST($1_CFLAGS) 
    43         AC_SUBST($1_LIBS) 
    44      else 
    45         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." 
    46         echo "*** See http://www.freedesktop.org/software/pkgconfig" 
    47      fi 
    48   fi 
    49  
    50   if test $succeeded = yes; then 
    51      ifelse([$3], , :, [$3]) 
    52   else 
    53      ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4]) 
    54   fi 
    55 ]) 
    56  
    57  
  • deleted file m4/po.m4

    diff --git a/m4/po.m4 b/m4/po.m4
    deleted file mode 100644
    index f2795ee..0000000
    + -  
    1 # po.m4 serial 7 (gettext-0.14.3) 
    2 dnl Copyright (C) 1995-2005 Free Software Foundation, Inc. 
    3 dnl This file is free software; the Free Software Foundation 
    4 dnl gives unlimited permission to copy and/or distribute it, 
    5 dnl with or without modifications, as long as this notice is preserved. 
    6 dnl 
    7 dnl This file can can be used in projects which are not available under 
    8 dnl the GNU General Public License or the GNU Library General Public 
    9 dnl License but which still want to provide support for the GNU gettext 
    10 dnl functionality. 
    11 dnl Please note that the actual code of the GNU gettext library is covered 
    12 dnl by the GNU Library General Public License, and the rest of the GNU 
    13 dnl gettext package package is covered by the GNU General Public License. 
    14 dnl They are *not* in the public domain. 
    15  
    16 dnl Authors: 
    17 dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000. 
    18 dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003. 
    19  
    20 AC_PREREQ(2.50) 
    21  
    22 dnl Checks for all prerequisites of the po subdirectory. 
    23 AC_DEFUN([AM_PO_SUBDIRS], 
    24 [ 
    25   AC_REQUIRE([AC_PROG_MAKE_SET])dnl 
    26   AC_REQUIRE([AC_PROG_INSTALL])dnl 
    27   AC_REQUIRE([AM_MKINSTALLDIRS])dnl 
    28   AC_REQUIRE([AM_NLS])dnl 
    29  
    30   dnl Perform the following tests also if --disable-nls has been given, 
    31   dnl because they are needed for "make dist" to work. 
    32  
    33   dnl Search for GNU msgfmt in the PATH. 
    34   dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions. 
    35   dnl The second test excludes FreeBSD msgfmt. 
    36   AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, 
    37     [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && 
    38      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], 
    39     :) 
    40   AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) 
    41  
    42   dnl Search for GNU xgettext 0.12 or newer in the PATH. 
    43   dnl The first test excludes Solaris xgettext and early GNU xgettext versions. 
    44   dnl The second test excludes FreeBSD xgettext. 
    45   AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, 
    46     [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && 
    47      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], 
    48     :) 
    49   dnl Remove leftover from FreeBSD xgettext call. 
    50   rm -f messages.po 
    51  
    52   dnl Search for GNU msgmerge 0.11 or newer in the PATH. 
    53   AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge, 
    54     [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :) 
    55  
    56   dnl This could go away some day; the PATH_PROG_WITH_TEST already does it. 
    57   dnl Test whether we really found GNU msgfmt. 
    58   if test "$GMSGFMT" != ":"; then 
    59     dnl If it is no GNU msgfmt we define it as : so that the 
    60     dnl Makefiles still can work. 
    61     if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && 
    62        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 
    63       : ; 
    64     else 
    65       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` 
    66       AC_MSG_RESULT( 
    67         [found $GMSGFMT program is not GNU msgfmt; ignore it]) 
    68       GMSGFMT=":" 
    69     fi 
    70   fi 
    71  
    72   dnl This could go away some day; the PATH_PROG_WITH_TEST already does it. 
    73   dnl Test whether we really found GNU xgettext. 
    74   if test "$XGETTEXT" != ":"; then 
    75     dnl If it is no GNU xgettext we define it as : so that the 
    76     dnl Makefiles still can work. 
    77     if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 
    78        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 
    79       : ; 
    80     else 
    81       AC_MSG_RESULT( 
    82         [found xgettext program is not GNU xgettext; ignore it]) 
    83       XGETTEXT=":" 
    84     fi 
    85     dnl Remove leftover from FreeBSD xgettext call. 
    86     rm -f messages.po 
    87   fi 
    88  
    89   AC_OUTPUT_COMMANDS([ 
    90     for ac_file in $CONFIG_FILES; do 
    91       # Support "outfile[:infile[:infile...]]" 
    92       case "$ac_file" in 
    93         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 
    94       esac 
    95       # PO directories have a Makefile.in generated from Makefile.in.in. 
    96       case "$ac_file" in */Makefile.in) 
    97         # Adjust a relative srcdir. 
    98         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 
    99         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 
    100         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 
    101         # In autoconf-2.13 it is called $ac_given_srcdir. 
    102         # In autoconf-2.50 it is called $srcdir. 
    103         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 
    104         case "$ac_given_srcdir" in 
    105           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 
    106           /*) top_srcdir="$ac_given_srcdir" ;; 
    107           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;; 
    108         esac 
    109         # Treat a directory as a PO directory if and only if it has a 
    110         # POTFILES.in file. This allows packages to have multiple PO 
    111         # directories under different names or in different locations. 
    112         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 
    113           rm -f "$ac_dir/POTFILES" 
    114           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 
    115           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 
    116           POMAKEFILEDEPS="POTFILES.in" 
    117           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 
    118           # on $ac_dir but don't depend on user-specified configuration 
    119           # parameters. 
    120           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 
    121             # The LINGUAS file contains the set of available languages. 
    122             if test -n "$OBSOLETE_ALL_LINGUAS"; then 
    123               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 
    124             fi 
    125             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` 
    126             # Hide the ALL_LINGUAS assigment from automake. 
    127             eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 
    128             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 
    129           else 
    130             # The set of available languages was given in configure.in. 
    131             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 
    132           fi 
    133           # Compute POFILES 
    134           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 
    135           # Compute UPDATEPOFILES 
    136           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 
    137           # Compute DUMMYPOFILES 
    138           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 
    139           # Compute GMOFILES 
    140           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 
    141           case "$ac_given_srcdir" in 
    142             .) srcdirpre= ;; 
    143             *) srcdirpre='$(srcdir)/' ;; 
    144           esac 
    145           POFILES= 
    146           UPDATEPOFILES= 
    147           DUMMYPOFILES= 
    148           GMOFILES= 
    149           for lang in $ALL_LINGUAS; do 
    150             POFILES="$POFILES $srcdirpre$lang.po" 
    151             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 
    152             DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 
    153             GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 
    154           done 
    155           # CATALOGS depends on both $ac_dir and the user's LINGUAS 
    156           # environment variable. 
    157           INST_LINGUAS= 
    158           if test -n "$ALL_LINGUAS"; then 
    159             for presentlang in $ALL_LINGUAS; do 
    160               useit=no 
    161               if test "%UNSET%" != "$LINGUAS"; then 
    162                 desiredlanguages="$LINGUAS" 
    163               else 
    164                 desiredlanguages="$ALL_LINGUAS" 
    165               fi 
    166               for desiredlang in $desiredlanguages; do 
    167                 # Use the presentlang catalog if desiredlang is 
    168                 #   a. equal to presentlang, or 
    169                 #   b. a variant of presentlang (because in this case, 
    170                 #      presentlang can be used as a fallback for messages 
    171                 #      which are not translated in the desiredlang catalog). 
    172                 case "$desiredlang" in 
    173                   "$presentlang"*) useit=yes;; 
    174                 esac 
    175               done 
    176               if test $useit = yes; then 
    177                 INST_LINGUAS="$INST_LINGUAS $presentlang" 
    178               fi 
    179             done 
    180           fi 
    181           CATALOGS= 
    182           if test -n "$INST_LINGUAS"; then 
    183             for lang in $INST_LINGUAS; do 
    184               CATALOGS="$CATALOGS $lang.gmo" 
    185             done 
    186           fi 
    187           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 
    188           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" 
    189           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 
    190             if test -f "$f"; then 
    191               case "$f" in 
    192                 *.orig | *.bak | *~) ;; 
    193                 *) cat "$f" >> "$ac_dir/Makefile" ;; 
    194               esac 
    195             fi 
    196           done 
    197         fi 
    198         ;; 
    199       esac 
    200     done], 
    201    [# Capture the value of obsolete ALL_LINGUAS because we need it to compute 
    202     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it 
    203     # from automake. 
    204     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 
    205     # Capture the value of LINGUAS because we need it to compute CATALOGS. 
    206     LINGUAS="${LINGUAS-%UNSET%}" 
    207    ]) 
    208 ]) 
    209  
    210 dnl Postprocesses a Makefile in a directory containing PO files. 
    211 AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE], 
    212 [ 
    213   # When this code is run, in config.status, two variables have already been 
    214   # set: 
    215   # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in, 
    216   # - LINGUAS is the value of the environment variable LINGUAS at configure 
    217   #   time. 
    218  
    219 changequote(,)dnl 
    220   # Adjust a relative srcdir. 
    221   ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 
    222   ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 
    223   ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 
    224   # In autoconf-2.13 it is called $ac_given_srcdir. 
    225   # In autoconf-2.50 it is called $srcdir. 
    226   test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 
    227   case "$ac_given_srcdir" in 
    228     .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 
    229     /*) top_srcdir="$ac_given_srcdir" ;; 
    230     *)  top_srcdir="$ac_dots$ac_given_srcdir" ;; 
    231   esac 
    232  
    233   # Find a way to echo strings without interpreting backslash. 
    234   if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then 
    235     gt_echo='echo' 
    236   else 
    237     if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then 
    238       gt_echo='printf %s\n' 
    239     else 
    240       echo_func () { 
    241         cat <<EOT 
    242 $* 
    243 EOT 
    244       } 
    245       gt_echo='echo_func' 
    246     fi 
    247   fi 
    248  
    249   # A sed script that extracts the value of VARIABLE from a Makefile. 
    250   sed_x_variable=' 
    251 # Test if the hold space is empty. 
    252 x 
    253 s/P/P/ 
    254 x 
    255 ta 
    256 # Yes it was empty. Look if we have the expected variable definition. 
    257 /^[      ]*VARIABLE[     ]*=/{ 
    258   # Seen the first line of the variable definition. 
    259   s/^[   ]*VARIABLE[     ]*=// 
    260   ba 
    261 } 
    262 bd 
    263 :a 
    264 # Here we are processing a line from the variable definition. 
    265 # Remove comment, more precisely replace it with a space. 
    266 s/#.*$/ / 
    267 # See if the line ends in a backslash. 
    268 tb 
    269 :b 
    270 s/\\$// 
    271 # Print the line, without the trailing backslash. 
    272 p 
    273 tc 
    274 # There was no trailing backslash. The end of the variable definition is 
    275 # reached. Clear the hold space. 
    276 s/^.*$// 
    277 x 
    278 bd 
    279 :c 
    280 # A trailing backslash means that the variable definition continues in the 
    281 # next line. Put a nonempty string into the hold space to indicate this. 
    282 s/^.*$/P/ 
    283 x 
    284 :d 
    285 ' 
    286 changequote([,])dnl 
    287  
    288   # Set POTFILES to the value of the Makefile variable POTFILES. 
    289   sed_x_POTFILES="`$gt_echo \"$sed_x_variable\" | sed -e '/^ *#/d' -e 's/VARIABLE/POTFILES/g'`" 
    290   POTFILES=`sed -n -e "$sed_x_POTFILES" < "$ac_file"` 
    291   # Compute POTFILES_DEPS as 
    292   #   $(foreach file, $(POTFILES), $(top_srcdir)/$(file)) 
    293   POTFILES_DEPS= 
    294   for file in $POTFILES; do 
    295     POTFILES_DEPS="$POTFILES_DEPS "'$(top_srcdir)/'"$file" 
    296   done 
    297   POMAKEFILEDEPS="" 
    298  
    299   if test -n "$OBSOLETE_ALL_LINGUAS"; then 
    300     test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 
    301   fi 
    302   if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 
    303     # The LINGUAS file contains the set of available languages. 
    304     ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` 
    305     POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 
    306   else 
    307     # Set ALL_LINGUAS to the value of the Makefile variable LINGUAS. 
    308     sed_x_LINGUAS="`$gt_echo \"$sed_x_variable\" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'`" 
    309     ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"` 
    310   fi 
    311   # Hide the ALL_LINGUAS assigment from automake. 
    312   eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 
    313   # Compute POFILES 
    314   # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 
    315   # Compute UPDATEPOFILES 
    316   # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 
    317   # Compute DUMMYPOFILES 
    318   # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 
    319   # Compute GMOFILES 
    320   # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 
    321   # Compute PROPERTIESFILES 
    322   # as      $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).properties) 
    323   # Compute CLASSFILES 
    324   # as      $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).class) 
    325   # Compute QMFILES 
    326   # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).qm) 
    327   # Compute MSGFILES 
    328   # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang)).msg) 
    329   # Compute RESOURCESDLLFILES 
    330   # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang))/$(DOMAIN).resources.dll) 
    331   case "$ac_given_srcdir" in 
    332     .) srcdirpre= ;; 
    333     *) srcdirpre='$(srcdir)/' ;; 
    334   esac 
    335   POFILES= 
    336   UPDATEPOFILES= 
    337   DUMMYPOFILES= 
    338   GMOFILES= 
    339   PROPERTIESFILES= 
    340   CLASSFILES= 
    341   QMFILES= 
    342   MSGFILES= 
    343   RESOURCESDLLFILES= 
    344   for lang in $ALL_LINGUAS; do 
    345     POFILES="$POFILES $srcdirpre$lang.po" 
    346     UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 
    347     DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 
    348     GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 
    349     PROPERTIESFILES="$PROPERTIESFILES \$(top_srcdir)/\$(DOMAIN)_$lang.properties" 
    350     CLASSFILES="$CLASSFILES \$(top_srcdir)/\$(DOMAIN)_$lang.class" 
    351     QMFILES="$QMFILES $srcdirpre$lang.qm" 
    352     frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` 
    353     MSGFILES="$MSGFILES $srcdirpre$frobbedlang.msg" 
    354     frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'` 
    355     RESOURCESDLLFILES="$RESOURCESDLLFILES $srcdirpre$frobbedlang/\$(DOMAIN).resources.dll" 
    356   done 
    357   # CATALOGS depends on both $ac_dir and the user's LINGUAS 
    358   # environment variable. 
    359   INST_LINGUAS= 
    360   if test -n "$ALL_LINGUAS"; then 
    361     for presentlang in $ALL_LINGUAS; do 
    362       useit=no 
    363       if test "%UNSET%" != "$LINGUAS"; then 
    364         desiredlanguages="$LINGUAS" 
    365       else 
    366         desiredlanguages="$ALL_LINGUAS" 
    367       fi 
    368       for desiredlang in $desiredlanguages; do 
    369         # Use the presentlang catalog if desiredlang is 
    370         #   a. equal to presentlang, or 
    371         #   b. a variant of presentlang (because in this case, 
    372         #      presentlang can be used as a fallback for messages 
    373         #      which are not translated in the desiredlang catalog). 
    374         case "$desiredlang" in 
    375           "$presentlang"*) useit=yes;; 
    376         esac 
    377       done 
    378       if test $useit = yes; then 
    379         INST_LINGUAS="$INST_LINGUAS $presentlang" 
    380       fi 
    381     done 
    382   fi 
    383   CATALOGS= 
    384   JAVACATALOGS= 
    385   QTCATALOGS= 
    386   TCLCATALOGS= 
    387   CSHARPCATALOGS= 
    388   if test -n "$INST_LINGUAS"; then 
    389     for lang in $INST_LINGUAS; do 
    390       CATALOGS="$CATALOGS $lang.gmo" 
    391       JAVACATALOGS="$JAVACATALOGS \$(DOMAIN)_$lang.properties" 
    392       QTCATALOGS="$QTCATALOGS $lang.qm" 
    393       frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` 
    394       TCLCATALOGS="$TCLCATALOGS $frobbedlang.msg" 
    395       frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'` 
    396       CSHARPCATALOGS="$CSHARPCATALOGS $frobbedlang/\$(DOMAIN).resources.dll" 
    397     done 
    398   fi 
    399  
    400   sed -e "s|@POTFILES_DEPS@|$POTFILES_DEPS|g" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@PROPERTIESFILES@|$PROPERTIESFILES|g" -e "s|@CLASSFILES@|$CLASSFILES|g" -e "s|@QMFILES@|$QMFILES|g" -e "s|@MSGFILES@|$MSGFILES|g" -e "s|@RESOURCESDLLFILES@|$RESOURCESDLLFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@JAVACATALOGS@|$JAVACATALOGS|g" -e "s|@QTCATALOGS@|$QTCATALOGS|g" -e "s|@TCLCATALOGS@|$TCLCATALOGS|g" -e "s|@CSHARPCATALOGS@|$CSHARPCATALOGS|g" -e 's,^#distdir:,distdir:,' < "$ac_file" > "$ac_file.tmp" 
    401   if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then 
    402     # Add dependencies that cannot be formulated as a simple suffix rule. 
    403     for lang in $ALL_LINGUAS; do 
    404       frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` 
    405       cat >> "$ac_file.tmp" <<EOF 
    406 $frobbedlang.msg: $lang.po 
    407         @echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \ 
    408         \$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; } 
    409 EOF 
    410     done 
    411   fi 
    412   if grep -l '@CSHARPCATALOGS@' "$ac_file" > /dev/null; then 
    413     # Add dependencies that cannot be formulated as a simple suffix rule. 
    414     for lang in $ALL_LINGUAS; do 
    415       frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'` 
    416       cat >> "$ac_file.tmp" <<EOF 
    417 $frobbedlang/\$(DOMAIN).resources.dll: $lang.po 
    418         @echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \ 
    419         \$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; } 
    420 EOF 
    421     done 
    422   fi 
    423   if test -n "$POMAKEFILEDEPS"; then 
    424     cat >> "$ac_file.tmp" <<EOF 
    425 Makefile: $POMAKEFILEDEPS 
    426 EOF 
    427   fi 
    428   mv "$ac_file.tmp" "$ac_file" 
    429 ]) 
  • deleted file m4/printf-posix.m4

    diff --git a/m4/printf-posix.m4 b/m4/printf-posix.m4
    deleted file mode 100644
    index 33e387c..0000000
    + -  
    1 # printf-posix.m4 serial 3 (gettext-0.16.2) 
    2 dnl Copyright (C) 2003, 2007 Free Software Foundation, Inc. 
    3 dnl This file is free software; the Free Software Foundation 
    4 dnl gives unlimited permission to copy and/or distribute it, 
    5 dnl with or without modifications, as long as this notice is preserved. 
    6  
    7 dnl From Bruno Haible. 
    8 dnl Test whether the printf() function supports POSIX/XSI format strings with 
    9 dnl positions. 
    10  
    11 AC_DEFUN([gt_PRINTF_POSIX], 
    12 [ 
    13   AC_REQUIRE([AC_PROG_CC]) 
    14   AC_CACHE_CHECK([whether printf() supports POSIX/XSI format strings], 
    15     gt_cv_func_printf_posix, 
    16     [ 
    17       AC_TRY_RUN([ 
    18 #include <stdio.h> 
    19 #include <string.h> 
    20 /* The string "%2$d %1$d", with dollar characters protected from the shell's 
    21    dollar expansion (possibly an autoconf bug).  */ 
    22 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; 
    23 static char buf[100]; 
    24 int main () 
    25 { 
    26   sprintf (buf, format, 33, 55); 
    27   return (strcmp (buf, "55 33") != 0); 
    28 }], gt_cv_func_printf_posix=yes, gt_cv_func_printf_posix=no, 
    29       [ 
    30         AC_EGREP_CPP(notposix, [ 
    31 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ 
    32   notposix 
    33 #endif 
    34         ], gt_cv_func_printf_posix="guessing no", 
    35            gt_cv_func_printf_posix="guessing yes") 
    36       ]) 
    37     ]) 
    38   case $gt_cv_func_printf_posix in 
    39     *yes) 
    40       AC_DEFINE(HAVE_POSIX_PRINTF, 1, 
    41         [Define if your printf() function supports format strings with positions.]) 
    42       ;; 
    43   esac 
    44 ]) 
  • deleted file m4/progtest.m4

    diff --git a/m4/progtest.m4 b/m4/progtest.m4
    deleted file mode 100644
    index a56365c..0000000
    + -  
    1 # progtest.m4 serial 4 (gettext-0.14.2) 
    2 dnl Copyright (C) 1996-2003, 2005 Free Software Foundation, Inc. 
    3 dnl This file is free software; the Free Software Foundation 
    4 dnl gives unlimited permission to copy and/or distribute it, 
    5 dnl with or without modifications, as long as this notice is preserved. 
    6 dnl 
    7 dnl This file can can be used in projects which are not available under 
    8 dnl the GNU General Public License or the GNU Library General Public 
    9 dnl License but which still want to provide support for the GNU gettext 
    10 dnl functionality. 
    11 dnl Please note that the actual code of the GNU gettext library is covered 
    12 dnl by the GNU Library General Public License, and the rest of the GNU 
    13 dnl gettext package package is covered by the GNU General Public License. 
    14 dnl They are *not* in the public domain. 
    15  
    16 dnl Authors: 
    17 dnl   Ulrich Drepper <drepper@cygnus.com>, 1996. 
    18  
    19 AC_PREREQ(2.50) 
    20  
    21 # Search path for a program which passes the given test. 
    22  
    23 dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, 
    24 dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) 
    25 AC_DEFUN([AM_PATH_PROG_WITH_TEST], 
    26 [ 
    27 # Prepare PATH_SEPARATOR. 
    28 # The user is always right. 
    29 if test "${PATH_SEPARATOR+set}" != set; then 
    30   echo "#! /bin/sh" >conf$$.sh 
    31   echo  "exit 0"   >>conf$$.sh 
    32   chmod +x conf$$.sh 
    33   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 
    34     PATH_SEPARATOR=';' 
    35   else 
    36     PATH_SEPARATOR=: 
    37   fi 
    38   rm -f conf$$.sh 
    39 fi 
    40  
    41 # Find out how to test for executable files. Don't use a zero-byte file, 
    42 # as systems may use methods other than mode bits to determine executability. 
    43 cat >conf$$.file <<_ASEOF 
    44 #! /bin/sh 
    45 exit 0 
    46 _ASEOF 
    47 chmod +x conf$$.file 
    48 if test -x conf$$.file >/dev/null 2>&1; then 
    49   ac_executable_p="test -x" 
    50 else 
    51   ac_executable_p="test -f" 
    52 fi 
    53 rm -f conf$$.file 
    54  
    55 # Extract the first word of "$2", so it can be a program name with args. 
    56 set dummy $2; ac_word=[$]2 
    57 AC_MSG_CHECKING([for $ac_word]) 
    58 AC_CACHE_VAL(ac_cv_path_$1, 
    59 [case "[$]$1" in 
    60   [[\\/]]* | ?:[[\\/]]*) 
    61     ac_cv_path_$1="[$]$1" # Let the user override the test with a path. 
    62     ;; 
    63   *) 
    64     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 
    65     for ac_dir in ifelse([$5], , $PATH, [$5]); do 
    66       IFS="$ac_save_IFS" 
    67       test -z "$ac_dir" && ac_dir=. 
    68       for ac_exec_ext in '' $ac_executable_extensions; do 
    69         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 
    70           echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD 
    71           if [$3]; then 
    72             ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext" 
    73             break 2 
    74           fi 
    75         fi 
    76       done 
    77     done 
    78     IFS="$ac_save_IFS" 
    79 dnl If no 4th arg is given, leave the cache variable unset, 
    80 dnl so AC_PATH_PROGS will keep looking. 
    81 ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" 
    82 ])dnl 
    83     ;; 
    84 esac])dnl 
    85 $1="$ac_cv_path_$1" 
    86 if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then 
    87   AC_MSG_RESULT([$]$1) 
    88 else 
    89   AC_MSG_RESULT(no) 
    90 fi 
    91 AC_SUBST($1)dnl 
    92 ]) 
  • deleted file m4/signed.m4

    diff --git a/m4/signed.m4 b/m4/signed.m4
    deleted file mode 100644
    index 048f593..0000000
    + -  
    1 # signed.m4 serial 1 (gettext-0.10.40) 
    2 dnl Copyright (C) 2001-2002 Free Software Foundation, Inc. 
    3 dnl This file is free software; the Free Software Foundation 
    4 dnl gives unlimited permission to copy and/or distribute it, 
    5 dnl with or without modifications, as long as this notice is preserved. 
    6  
    7 dnl From Bruno Haible. 
    8  
    9 AC_DEFUN([bh_C_SIGNED], 
    10 [ 
    11   AC_CACHE_CHECK([for signed], bh_cv_c_signed, 
    12    [AC_TRY_COMPILE(, [signed char x;], bh_cv_c_signed=yes, bh_cv_c_signed=no)]) 
    13   if test $bh_cv_c_signed = no; then 
    14     AC_DEFINE(signed, , 
    15               [Define to empty if the C compiler doesn't support this keyword.]) 
    16   fi 
    17 ]) 
  • deleted file m4/size_max.m4

    diff --git a/m4/size_max.m4 b/m4/size_max.m4
    deleted file mode 100644
    index 6cb4868..0000000
    + -  
    1 # size_max.m4 serial 6 
    2 dnl Copyright (C) 2003, 2005-2006 Free Software Foundation, Inc. 
    3 dnl This file is free software; the Free Software Foundation 
    4 dnl gives unlimited permission to copy and/or distribute it, 
    5 dnl with or without modifications, as long as this notice is preserved. 
    6  
    7 dnl From Bruno Haible. 
    8  
    9 AC_DEFUN([gl_SIZE_MAX], 
    10 [ 
    11   AC_CHECK_HEADERS(stdint.h) 
    12   dnl First test whether the system already has SIZE_MAX. 
    13   AC_MSG_CHECKING([for SIZE_MAX]) 
    14   AC_CACHE_VAL([gl_cv_size_max], [ 
    15     gl_cv_size_max= 
    16     AC_EGREP_CPP([Found it], [ 
    17 #include <limits.h> 
    18 #if HAVE_STDINT_H 
    19 #include <stdint.h> 
    20 #endif 
    21 #ifdef SIZE_MAX 
    22 Found it 
    23 #endif 
    24 ], gl_cv_size_max=yes) 
    25     if test -z "$gl_cv_size_max"; then 
    26       dnl Define it ourselves. Here we assume that the type 'size_t' is not wider 
    27       dnl than the type 'unsigned long'. Try hard to find a definition that can 
    28       dnl be used in a preprocessor #if, i.e. doesn't contain a cast. 
    29       AC_COMPUTE_INT([size_t_bits_minus_1], [sizeof (size_t) * CHAR_BIT - 1], 
    30         [#include <stddef.h> 
    31 #include <limits.h>], size_t_bits_minus_1=) 
    32       AC_COMPUTE_INT([fits_in_uint], [sizeof (size_t) <= sizeof (unsigned int)], 
    33         [#include <stddef.h>], fits_in_uint=) 
    34       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then 
    35         if test $fits_in_uint = 1; then 
    36           dnl Even though SIZE_MAX fits in an unsigned int, it must be of type 
    37           dnl 'unsigned long' if the type 'size_t' is the same as 'unsigned long'. 
    38           AC_TRY_COMPILE([#include <stddef.h> 
    39             extern size_t foo; 
    40             extern unsigned long foo; 
    41             ], [], fits_in_uint=0) 
    42         fi 
    43         dnl We cannot use 'expr' to simplify this expression, because 'expr' 
    44         dnl works only with 'long' integers in the host environment, while we 
    45         dnl might be cross-compiling from a 32-bit platform to a 64-bit platform. 
    46         if test $fits_in_uint = 1; then 
    47           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)" 
    48         else 
    49           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)" 
    50         fi 
    51       else 
    52         dnl Shouldn't happen, but who knows... 
    53         gl_cv_size_max='((size_t)~(size_t)0)' 
    54       fi 
    55     fi 
    56   ]) 
    57   AC_MSG_RESULT([$gl_cv_size_max]) 
    58   if test "$gl_cv_size_max" != yes; then 
    59     AC_DEFINE_UNQUOTED([SIZE_MAX], [$gl_cv_size_max], 
    60       [Define as the maximum value of type 'size_t', if the system doesn't define it.]) 
    61   fi 
    62 ]) 
    63  
    64 dnl Autoconf >= 2.61 has AC_COMPUTE_INT built-in. 
    65 dnl Remove this when we can assume autoconf >= 2.61. 
    66 m4_ifdef([AC_COMPUTE_INT], [], [ 
    67   AC_DEFUN([AC_COMPUTE_INT], [_AC_COMPUTE_INT([$2],[$1],[$3],[$4])]) 
    68 ]) 
  • deleted file m4/stdint_h.m4

    diff --git a/m4/stdint_h.m4 b/m4/stdint_h.m4
    deleted file mode 100644
    index db9a8ac..0000000
    + -  
    1 # stdint_h.m4 serial 6 
    2 dnl Copyright (C) 1997-2004, 2006 Free Software Foundation, Inc. 
    3 dnl This file is free software; the Free Software Foundation 
    4 dnl gives unlimited permission to copy and/or distribute it, 
    5 dnl with or without modifications, as long as this notice is preserved. 
    6  
    7 dnl From Paul Eggert. 
    8  
    9 # Define HAVE_STDINT_H_WITH_UINTMAX if <stdint.h> exists, 
    10 # doesn't clash with <sys/types.h>, and declares uintmax_t. 
    11  
    12 AC_DEFUN([gl_AC_HEADER_STDINT_H], 
    13 [ 
    14   AC_CACHE_CHECK([for stdint.h], gl_cv_header_stdint_h, 
    15   [AC_TRY_COMPILE( 
    16     [#include <sys/types.h> 
    17 #include <stdint.h>], 
    18     [uintmax_t i = (uintmax_t) -1; return !i;], 
    19     gl_cv_header_stdint_h=yes, 
    20     gl_cv_header_stdint_h=no)]) 
    21   if test $gl_cv_header_stdint_h = yes; then 
    22     AC_DEFINE_UNQUOTED(HAVE_STDINT_H_WITH_UINTMAX, 1, 
    23       [Define if <stdint.h> exists, doesn't clash with <sys/types.h>, 
    24        and declares uintmax_t. ]) 
    25   fi 
    26 ]) 
  • deleted file m4/uintmax_t.m4

    diff --git a/m4/uintmax_t.m4 b/m4/uintmax_t.m4
    deleted file mode 100644
    index bf83ed7..0000000
    + -  
    1 # uintmax_t.m4 serial 9 
    2 dnl Copyright (C) 1997-2004 Free Software Foundation, Inc. 
    3 dnl This file is free software; the Free Software Foundation 
    4 dnl gives unlimited permission to copy and/or distribute it, 
    5 dnl with or without modifications, as long as this notice is preserved. 
    6  
    7 dnl From Paul Eggert. 
    8  
    9 AC_PREREQ(2.13) 
    10  
    11 # Define uintmax_t to 'unsigned long' or 'unsigned long long' 
    12 # if it is not already defined in <stdint.h> or <inttypes.h>. 
    13  
    14 AC_DEFUN([gl_AC_TYPE_UINTMAX_T], 
    15 [ 
    16   AC_REQUIRE([gl_AC_HEADER_INTTYPES_H]) 
    17   AC_REQUIRE([gl_AC_HEADER_STDINT_H]) 
    18   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then 
    19     AC_REQUIRE([gl_AC_TYPE_UNSIGNED_LONG_LONG]) 
    20     test $ac_cv_type_unsigned_long_long = yes \ 
    21       && ac_type='unsigned long long' \ 
    22       || ac_type='unsigned long' 
    23     AC_DEFINE_UNQUOTED(uintmax_t, $ac_type, 
    24       [Define to unsigned long or unsigned long long 
    25        if <stdint.h> and <inttypes.h> don't define.]) 
    26   else 
    27     AC_DEFINE(HAVE_UINTMAX_T, 1, 
    28       [Define if you have the 'uintmax_t' type in <stdint.h> or <inttypes.h>.]) 
    29   fi 
    30 ]) 
  • deleted file m4/ulonglong.m4

    diff --git a/m4/ulonglong.m4 b/m4/ulonglong.m4
    deleted file mode 100644
    index 9fae98e..0000000
    + -  
    1 # ulonglong.m4 serial 6 
    2 dnl Copyright (C) 1999-2006 Free Software Foundation, Inc. 
    3 dnl This file is free software; the Free Software Foundation 
    4 dnl gives unlimited permission to copy and/or distribute it, 
    5 dnl with or without modifications, as long as this notice is preserved. 
    6  
    7 dnl From Paul Eggert. 
    8  
    9 # Define HAVE_UNSIGNED_LONG_LONG_INT if 'unsigned long long int' works. 
    10 # This fixes a bug in Autoconf 2.60, but can be removed once we 
    11 # assume 2.61 everywhere. 
    12  
    13 # Note: If the type 'unsigned long long int' exists but is only 32 bits 
    14 # large (as on some very old compilers), AC_TYPE_UNSIGNED_LONG_LONG_INT 
    15 # will not be defined. In this case you can treat 'unsigned long long int' 
    16 # like 'unsigned long int'. 
    17  
    18 AC_DEFUN([AC_TYPE_UNSIGNED_LONG_LONG_INT], 
    19 [ 
    20   AC_CACHE_CHECK([for unsigned long long int], 
    21     [ac_cv_type_unsigned_long_long_int], 
    22     [AC_LINK_IFELSE( 
    23        [AC_LANG_PROGRAM( 
    24           [[unsigned long long int ull = 18446744073709551615ULL; 
    25             typedef int a[(18446744073709551615ULL <= (unsigned long long int) -1 
    26                            ? 1 : -1)]; 
    27            int i = 63;]], 
    28           [[unsigned long long int ullmax = 18446744073709551615ull; 
    29             return (ull << 63 | ull >> 63 | ull << i | ull >> i 
    30                     | ullmax / ull | ullmax % ull);]])], 
    31        [ac_cv_type_unsigned_long_long_int=yes], 
    32        [ac_cv_type_unsigned_long_long_int=no])]) 
    33   if test $ac_cv_type_unsigned_long_long_int = yes; then 
    34     AC_DEFINE([HAVE_UNSIGNED_LONG_LONG_INT], 1, 
    35       [Define to 1 if the system has the type `unsigned long long int'.]) 
    36   fi 
    37 ]) 
    38  
    39 # This macro is obsolescent and should go away soon. 
    40 AC_DEFUN([gl_AC_TYPE_UNSIGNED_LONG_LONG], 
    41 [ 
    42   AC_REQUIRE([AC_TYPE_UNSIGNED_LONG_LONG_INT]) 
    43   ac_cv_type_unsigned_long_long=$ac_cv_type_unsigned_long_long_int 
    44   if test $ac_cv_type_unsigned_long_long = yes; then 
    45     AC_DEFINE(HAVE_UNSIGNED_LONG_LONG, 1, 
    46       [Define if you have the 'unsigned long long' type.]) 
    47   fi 
    48 ]) 
  • deleted file m4/wchar_t.m4

    diff --git a/m4/wchar_t.m4 b/m4/wchar_t.m4
    deleted file mode 100644
    index cde2129..0000000
    + -  
    1 # wchar_t.m4 serial 1 (gettext-0.12) 
    2 dnl Copyright (C) 2002-2003 Free Software Foundation, Inc. 
    3 dnl This file is free software; the Free Software Foundation 
    4 dnl gives unlimited permission to copy and/or distribute it, 
    5 dnl with or without modifications, as long as this notice is preserved. 
    6  
    7 dnl From Bruno Haible. 
    8 dnl Test whether <stddef.h> has the 'wchar_t' type. 
    9 dnl Prerequisite: AC_PROG_CC 
    10  
    11 AC_DEFUN([gt_TYPE_WCHAR_T], 
    12 [ 
    13   AC_CACHE_CHECK([for wchar_t], gt_cv_c_wchar_t, 
    14     [AC_TRY_COMPILE([#include <stddef.h> 
    15        wchar_t foo = (wchar_t)'\0';], , 
    16        gt_cv_c_wchar_t=yes, gt_cv_c_wchar_t=no)]) 
    17   if test $gt_cv_c_wchar_t = yes; then 
    18     AC_DEFINE(HAVE_WCHAR_T, 1, [Define if you have the 'wchar_t' type.]) 
    19   fi 
    20 ]) 
  • deleted file m4/wint_t.m4

    diff --git a/m4/wint_t.m4 b/m4/wint_t.m4
    deleted file mode 100644
    index 2cac1a7..0000000
    + -  
    1 # wint_t.m4 serial 2 (gettext-0.16.2) 
    2 dnl Copyright (C) 2003, 2007 Free Software Foundation, Inc. 
    3 dnl This file is free software; the Free Software Foundation 
    4 dnl gives unlimited permission to copy and/or distribute it, 
    5 dnl with or without modifications, as long as this notice is preserved. 
    6  
    7 dnl From Bruno Haible. 
    8 dnl Test whether <wchar.h> has the 'wint_t' type. 
    9 dnl Prerequisite: AC_PROG_CC 
    10  
    11 AC_DEFUN([gt_TYPE_WINT_T], 
    12 [ 
    13   AC_CACHE_CHECK([for wint_t], gt_cv_c_wint_t, 
    14     [AC_TRY_COMPILE([ 
    15 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 
    16    <wchar.h>. 
    17    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included 
    18    before <wchar.h>.  */ 
    19 #include <stddef.h> 
    20 #include <stdio.h> 
    21 #include <time.h> 
    22 #include <wchar.h> 
    23        wint_t foo = (wchar_t)'\0';], , 
    24        gt_cv_c_wint_t=yes, gt_cv_c_wint_t=no)]) 
    25   if test $gt_cv_c_wint_t = yes; then 
    26     AC_DEFINE(HAVE_WINT_T, 1, [Define if you have the 'wint_t' type.]) 
    27   fi 
    28 ]) 
  • deleted file m4/xsize.m4

    diff --git a/m4/xsize.m4 b/m4/xsize.m4
    deleted file mode 100644
    index 85bb721..0000000
    + -  
    1 # xsize.m4 serial 3 
    2 dnl Copyright (C) 2003-2004 Free Software Foundation, Inc. 
    3 dnl This file is free software; the Free Software Foundation 
    4 dnl gives unlimited permission to copy and/or distribute it, 
    5 dnl with or without modifications, as long as this notice is preserved. 
    6  
    7 AC_DEFUN([gl_XSIZE], 
    8 [ 
    9   dnl Prerequisites of lib/xsize.h. 
    10   AC_REQUIRE([gl_SIZE_MAX]) 
    11   AC_REQUIRE([AC_C_INLINE]) 
    12   AC_CHECK_HEADERS(stdint.h) 
    13 ])