Ticket #145: 145_update_m4_files-rev2.patch
File 145_update_m4_files-rev2.patch, 175.3 KB (added by slavazanko, 16 years ago) |
---|
-
ChangeLog
diff --git a/ChangeLog b/ChangeLog index cfb459d..cf0787d 100644
a b 1 2009-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 1 9 2009-01-11 Enrico Weigelt, metux ITS <weigelt@metux.de> 2 10 3 11 * FAQ HACKING README man/*: new HQ url -
Makefile.am
diff --git a/Makefile.am b/Makefile.am index f7adf26..a667383 100644
a b 2 2 3 3 AUTOMAKE_OPTIONS = 1.5 4 4 5 SUBDIRS = intl po m4vfs slang edit src lib doc syntax5 SUBDIRS = intl po vfs slang edit src lib doc syntax 6 6 7 7 EXTRA_DIST = FAQ HACKING INSTALL.FAST MAINTAINERS README.QNX TODO pkginfo.in prototype.in mc.qpg mc.spec 8 8 -
acinclude.m4
diff --git a/acinclude.m4 b/acinclude.m4 index f4c0e3b..5d49ff5 100644
a b dnl Check for ext2fs undel support. 3 3 dnl Set shell variable ext2fs_undel to "yes" if we have it, 4 4 dnl "no" otherwise. May define USE_EXT2FSLIB for cpp. 5 5 dnl Will set EXT2FS_UNDEL_LIBS to required libraries. 6 7 6 AC_DEFUN([MC_UNDELFS_CHECKS], [ 8 7 ext2fs_undel=no 9 8 EXT2FS_UNDEL_LIBS= … … AC_DEFUN([MC_VFS_CHECKS],[ 266 265 esac 267 266 ]) 268 267 268 # Obtaining file system usage information. 269 270 AC_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 294 AC_DEFUN([gl_FILE_SYSTEM_USAGE], 295 [ 296 297 AC_MSG_NOTICE([checking how to get file system space usage]) 298 ac_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. 306 if 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__ 311 Do not use statvfs on systems with GNU libc, because that function stats 312 all preceding entries in /proc/mounts, and that makes df hang if even 313 one of the corresponding file systems is hard-mounted, but not available. 314 statvfs in GNU libc on BeOS operates differently: it only makes a system 315 call. 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 331 fi 332 333 if 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 357 fi 358 359 if test $ac_fsusage_space = no; then 360 # AIX 361 AC_MSG_CHECKING([for two-argument statfs with statfs.bsize dnl 362 member (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 391 fi 392 393 if 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 414 fi 415 416 if test $ac_fsusage_space = no; then 417 # 4.4BSD and NetBSD 418 AC_MSG_CHECKING([for two-argument statfs with statfs.fsize dnl 419 member (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 445 fi 446 447 if 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 479 fi 480 481 if 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) 489 fi 490 491 AS_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. 499 AC_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) 505 choke -- 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. 525 AC_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 532 AC_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 ]) 269 541 270 542 271 543 dnl … … dnl 274 546 dnl To get information about the disk, mount points, etc. 275 547 dnl 276 548 549 dnl From Jim Meyering. 550 dnl 551 dnl This is not pretty. I've just taken the autoconf code and wrapped 552 dnl it in an AC_DEFUN and made some other fixes. 553 dnl 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. 558 AC_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. 561 AC_SEARCH_LIBS(getmntent, [sun seq gen]) 562 AC_CHECK_FUNCS(getmntent) 563 ]) 564 565 # gl_LIST_MOUNTED_FILE_SYSTEMS([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) 566 AC_DEFUN([gl_LIST_MOUNTED_FILE_SYSTEMS], 567 [ 568 AC_CHECK_FUNCS(listmntent getmntinfo) 569 AC_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. 573 AC_CHECK_HEADERS(sys/ucred.h, [], [], [#include <grp.h>]) 574 575 AC_CHECK_HEADERS(sys/mount.h, [], [], 576 [AC_INCLUDES_DEFAULT 577 [#if HAVE_SYS_PARAM_H 578 #include <sys/param.h> 579 #endif]]) 580 581 AC_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 " 598 AC_CHECK_MEMBERS([struct fsstat.f_fstypename],,,[$getfsstat_includes]) 599 600 # Determine how to get the list of mounted file systems. 601 ac_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. 605 AC_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 616 if 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 623 yes 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 637 fi 638 639 if 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 654 fi 655 656 if 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 713 fi 714 715 if 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 742 fi 743 744 if 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 762 fi 763 764 if 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 789 extern 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 809 fi 810 811 if 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 827 fi 828 829 if 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 848 fi 849 850 if 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 865 fi 866 867 if 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 871 fi 872 873 AS_IF([test $ac_list_mounted_fs = found], [$1], [$2]) 874 875 ]) 876 877 277 878 AC_DEFUN([AC_GET_FS_INFO], [ 278 879 AC_CHECK_HEADERS([fcntl.h utime.h]) 279 880 -
autogen.sh
diff --git a/autogen.sh b/autogen.sh index a2b4f92..7aabb18 100755
a b test -f configure || \ 57 57 58 58 # Workaround for Automake 1.5 to ensure that depcomp is distributed. 59 59 if test "`$AUTOMAKE --version|awk '{print $NF;exit}'`" = '1.5' ; then 60 $AUTOMAKE - a src/Makefile60 $AUTOMAKE --add-missing -a src/Makefile 61 61 fi 62 $AUTOMAKE - a62 $AUTOMAKE --add-missing -a 63 63 test -f Makefile.in || \ 64 64 { echo "automake failed to generate Makefile.in" >&2; exit 1; } 65 65 -
configure.ac
diff --git a/configure.ac b/configure.ac index 0066dbf..ee6097c 100644
a b src/Makefile 590 590 slang/Makefile 591 591 edit/Makefile 592 592 syntax/Makefile 593 m4/Makefile594 593 lib/mc.ext 595 594 vfs/extfs/a 596 595 vfs/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.m433 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 where7 they are maintained8 9 OR10 11 2) the fix is needed right now AND this fix has been submitted to the12 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 Foundation4 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; then18 AC_DEFINE(HAVE_LANGINFO_CODESET, 1,19 [Define if you have <langinfo.h> and nl_langinfo(CODESET).])20 fi21 ]) -
deleted file m4/fstypename.m4
diff --git a/m4/fstypename.m4 b/m4/fstypename.m4 deleted file mode 100644 index aa676f3..0000000
+ - 1 #serial 62 3 dnl From Jim Meyering.4 dnl5 dnl See if struct statfs has the f_fstypename member.6 dnl If so, define HAVE_STRUCT_STATFS_F_FSTYPENAME.7 dnl8 9 # Copyright (C) 1998, 1999, 2001, 2004, 2006 Free Software Foundation, Inc.10 # This file is free software; the Free Software Foundation11 # 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 232 # 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 Foundation7 # 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_DEFAULT20 [#if HAVE_SYS_PARAM_H21 #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; then25 AC_LIBOBJ(fsusage)26 gl_PREREQ_FSUSAGE_EXTRA27 fi28 ])29 30 # Try to determine how a program can obtain file system usage information.31 # If successful, define the appropriate symbol (see fsusage.c) and32 # 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=no41 42 # Perform only the link test since it seems there are no variants of the43 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)44 # because that got a false positive on SCO OSR5. Adding the declaration45 # of a `struct statvfs' causes this test to fail (as it should) on such46 # systems. That system is reported to work fine with STAT_STATFS4 which47 # is what it gets when this test fails.48 if test $ac_fsusage_space = no; then49 # SVR450 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 stats54 all preceding entries in /proc/mounts, and that makes df hang if even55 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 system57 call.58 #endif59 60 #ifdef __osf__61 "Do not use Tru64's statvfs implementation"62 #endif63 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; then69 ac_fsusage_space=yes70 AC_DEFINE(STAT_STATVFS, 1,71 [ Define if there is a function named statvfs. (SVR4)])72 fi73 fi74 75 if test $ac_fsusage_space = no; then76 # DEC Alpha running OSF/177 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 int84 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; then95 ac_fsusage_space=yes96 AC_DEFINE(STAT_STATFS3_OSF1, 1,97 [ Define if statfs takes 3 args. (DEC Alpha running OSF/1)])98 fi99 fi100 101 if test $ac_fsusage_space = no; then102 # AIX103 AC_MSG_CHECKING([for two-argument statfs with statfs.bsize dnl104 member (AIX, 4.3BSD)])105 AC_CACHE_VAL(fu_cv_sys_stat_statfs2_bsize,106 [AC_TRY_RUN([107 #ifdef HAVE_SYS_PARAM_H108 #include <sys/param.h>109 #endif110 #ifdef HAVE_SYS_MOUNT_H111 #include <sys/mount.h>112 #endif113 #ifdef HAVE_SYS_VFS_H114 #include <sys/vfs.h>115 #endif116 int117 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; then128 ac_fsusage_space=yes129 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 fi133 fi134 135 if test $ac_fsusage_space = no; then136 # SVR3137 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 int142 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; then152 ac_fsusage_space=yes153 AC_DEFINE(STAT_STATFS4, 1,154 [ Define if statfs takes 4 args. (SVR3, Dynix, Irix, Dolphin)])155 fi156 fi157 158 if test $ac_fsusage_space = no; then159 # 4.4BSD and NetBSD160 AC_MSG_CHECKING([for two-argument statfs with statfs.fsize dnl161 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_H165 #include <sys/param.h>166 #endif167 #ifdef HAVE_SYS_MOUNT_H168 #include <sys/mount.h>169 #endif170 int171 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; then182 ac_fsusage_space=yes183 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 fi187 fi188 189 if test $ac_fsusage_space = no; then190 # Ultrix191 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_H195 #include <sys/param.h>196 #endif197 #ifdef HAVE_SYS_MOUNT_H198 #include <sys/mount.h>199 #endif200 #ifdef HAVE_SYS_FS_TYPES_H201 #include <sys/fs_types.h>202 #endif203 int204 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; then216 ac_fsusage_space=yes217 AC_DEFINE(STAT_STATFS2_FS_DATA, 1,218 [ Define if statfs takes 2 args and the second argument has219 type struct fs_data. (Ultrix)])220 fi221 fi222 223 if test $ac_fsusage_space = no; then224 # SVR2225 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 usage229 information and you have the <sys/filsys.h> header file. (SVR2)])230 ac_fsusage_space=yes)231 fi232 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 problem248 #endif249 #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; then256 AC_DEFINE(STATFS_TRUNCATES_BLOCK_COUNTS, 1,257 [Define if the block counts reported by statfs may be truncated to 2GB258 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 fi262 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_TRUNCATES272 ]) -
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 Foundation4 dnl gives unlimited permission to copy and/or distribute it,5 dnl with or without modifications, as long as this notice is preserved.6 dnl7 dnl This file can can be used in projects which are not available under8 dnl the GNU General Public License or the GNU Library General Public9 dnl License but which still want to provide support for the GNU gettext10 dnl functionality.11 dnl Please note that the actual code of the GNU gettext library is covered12 dnl by the GNU Library General Public License, and the rest of the GNU13 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'. The24 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 library28 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 of30 dnl AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library31 dnl $(top_builddir)/intl/libintl.a will be created.32 dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext33 dnl implementations (in libc or libintl) without the ngettext() function34 dnl will be ignored. If NEEDSYMBOL is specified and is35 dnl 'need-formatstring-macros', then GNU gettext implementations that don't36 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 dnl40 dnl The result of the configuration is one of three cases:41 dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled42 dnl and used.43 dnl Catalog format: GNU --> install in $(datadir)44 dnl Catalog extension: .mo after installation, .gmo in source tree45 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 tree48 dnl 3) No internationalization, always use English msgid.49 dnl Catalog format: none50 dnl Catalog extension: none51 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 the53 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 the55 dnl maintainers.56 dnl57 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_GETTEXT62 ])])])])])63 ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], ,64 [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT65 ])])])])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])dnl70 ifelse(gt_included_intl, yes, [71 AC_REQUIRE([AM_INTL_SUBDIR])dnl72 ])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 the80 dnl if test "$USE_NLS" = "yes"; then81 dnl if test "$gt_cv_func_gnugettext_libc" != "yes"; then82 dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT83 dnl the configure script would need to contain the same shell code84 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 not88 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_MACOSX95 96 dnl Set USE_NLS.97 AM_NLS98 99 ifelse(gt_included_intl, yes, [100 BUILD_INCLUDED_LIBINTL=no101 USE_INCLUDED_LIBINTL=no102 ])103 LIBINTL=104 LTLIBINTL=105 POSUB=106 107 dnl If we use NLS figure out what method108 if test "$USE_NLS" = "yes"; then109 gt_use_preinstalled_gnugettext=no110 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"; then120 ])121 dnl User does not insist on using GNU NLS library. Figure out what122 dnl to use. If GNU gettext is available we use this. Else we have123 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_REVISION134 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)135 #endif136 changequote(,)dnl137 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];138 changequote([,])dnl139 ], [])[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"; then147 dnl Sometimes libintl requires libiconv, so first search for libiconv.148 ifelse(gt_included_intl, yes, , [149 AM_ICONV_LINK150 ])151 dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL152 dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv])153 dnl because that would add "-liconv" to LIBINTL and LTLIBINTL154 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_REVISION166 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)167 #endif168 changequote(,)dnl169 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];170 changequote([,])dnl171 ], [])[extern int _nl_msg_cat_cntr;172 extern173 #ifdef __cplusplus174 "C"175 #endif176 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"; then183 LIBS="$LIBS $LIBICONV"184 AC_TRY_LINK([#include <libintl.h>185 ]ifelse([$2], [need-formatstring-macros],186 [#ifndef __GNU_GETTEXT_SUPPORTED_REVISION187 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)188 #endif189 changequote(,)dnl190 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];191 changequote([,])dnl192 ], [])[extern int _nl_msg_cat_cntr;193 extern194 #ifdef __cplusplus195 "C"196 #endif197 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=yes203 ])204 fi205 CPPFLAGS="$gt_save_CPPFLAGS"206 LIBS="$gt_save_LIBS"])207 fi208 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 GNU211 dnl gettext is already preinstalled in libintl, we update this212 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; }; then217 gt_use_preinstalled_gnugettext=yes218 else219 dnl Reset the values set by searching for libintl.220 LIBINTL=221 LTLIBINTL=222 INCINTL=223 fi224 225 ifelse(gt_included_intl, yes, [226 if test "$gt_use_preinstalled_gnugettext" != "yes"; then227 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=yes230 fi231 fi232 233 if test "$nls_cv_use_gnu_gettext" = "yes"; then234 dnl Mark actions used to generate GNU NLS library.235 BUILD_INCLUDED_LIBINTL=yes236 USE_INCLUDED_LIBINTL=yes237 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 fi241 242 CATOBJEXT=243 if test "$gt_use_preinstalled_gnugettext" = "yes" \244 || test "$nls_cv_use_gnu_gettext" = "yes"; then245 dnl Mark actions to use GNU gettext tools.246 CATOBJEXT=.gmo247 fi248 ])249 250 if test -n "$INTL_MACOSX_LIBS"; then251 if test "$gt_use_preinstalled_gnugettext" = "yes" \252 || test "$nls_cv_use_gnu_gettext" = "yes"; then253 dnl Some extra flags are needed during linking.254 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"255 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"256 fi257 fi258 259 if test "$gt_use_preinstalled_gnugettext" = "yes" \260 || test "$nls_cv_use_gnu_gettext" = "yes"; then261 AC_DEFINE(ENABLE_NLS, 1,262 [Define to 1 if translation of program messages to the user's native language263 is requested.])264 else265 USE_NLS=no266 fi267 fi268 269 AC_MSG_CHECKING([whether to use NLS])270 AC_MSG_RESULT([$USE_NLS])271 if test "$USE_NLS" = "yes"; then272 AC_MSG_CHECKING([where the gettext function comes from])273 if test "$gt_use_preinstalled_gnugettext" = "yes"; then274 if test "$gt_cv_func_gnugettext_libintl" = "yes"; then275 gt_source="external libintl"276 else277 gt_source="libc"278 fi279 else280 gt_source="included intl directory"281 fi282 AC_MSG_RESULT([$gt_source])283 fi284 285 if test "$USE_NLS" = "yes"; then286 287 if test "$gt_use_preinstalled_gnugettext" = "yes"; then288 if test "$gt_cv_func_gnugettext_libintl" = "yes"; then289 AC_MSG_CHECKING([how to link with libintl])290 AC_MSG_RESULT([$LIBINTL])291 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL])292 fi293 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 fi300 301 dnl We need to process the po/ directory.302 POSUB=po303 fi304 305 ifelse(gt_included_intl, yes, [306 dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL307 dnl to 'yes' because some of the testsuite requires it.308 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then309 BUILD_INCLUDED_LIBINTL=yes310 fi311 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=share323 AC_SUBST(DATADIRNAME)324 325 dnl For backward compatibility. Some Makefiles may be using this.326 INSTOBJEXT=.mo327 AC_SUBST(INSTOBJEXT)328 329 dnl For backward compatibility. Some Makefiles may be using this.330 GENCAT=gencat331 AC_SUBST(GENCAT)332 333 dnl For backward compatibility. Some Makefiles may be using this.334 INTLOBJS=335 if test "$USE_INCLUDED_LIBINTL" = yes; then336 INTLOBJS="\$(GETTOBJS)"337 fi338 AC_SUBST(INTLOBJS)339 340 dnl Enable libtool support if the surrounding package wishes it.341 INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix342 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])dnl362 AC_REQUIRE([AM_MKINSTALLDIRS])dnl363 AC_REQUIRE([AC_PROG_CC])dnl364 AC_REQUIRE([AC_CANONICAL_HOST])dnl365 AC_REQUIRE([gt_GLIBC2])dnl366 AC_REQUIRE([AC_PROG_RANLIB])dnl367 AC_REQUIRE([AC_ISC_POSIX])dnl368 AC_REQUIRE([AC_HEADER_STDC])dnl369 AC_REQUIRE([AC_C_CONST])dnl370 AC_REQUIRE([bh_C_SIGNED])dnl371 AC_REQUIRE([AC_C_INLINE])dnl372 AC_REQUIRE([AC_TYPE_OFF_T])dnl373 AC_REQUIRE([AC_TYPE_SIZE_T])dnl374 AC_REQUIRE([gl_AC_TYPE_LONG_LONG])dnl375 AC_REQUIRE([gt_TYPE_LONGDOUBLE])dnl376 AC_REQUIRE([gt_TYPE_WCHAR_T])dnl377 AC_REQUIRE([gt_TYPE_WINT_T])dnl378 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])dnl383 AC_REQUIRE([AC_FUNC_MMAP])dnl384 AC_REQUIRE([gl_GLIBC21])dnl385 AC_REQUIRE([gt_INTDIV0])dnl386 AC_REQUIRE([gl_AC_TYPE_UINTMAX_T])dnl387 AC_REQUIRE([gt_HEADER_INTTYPES_H])dnl388 AC_REQUIRE([gt_INTTYPES_PRI])dnl389 AC_REQUIRE([gl_XSIZE])dnl390 AC_REQUIRE([gt_INTL_MACOSX])dnl391 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 it404 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 Solaris410 dnl 2.5.1 but were removed in Solaris 2.6, whereas we want binaries built411 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 in418 *yes) HAVE_POSIX_PRINTF=1 ;;419 *) HAVE_POSIX_PRINTF=0 ;;420 esac421 AC_SUBST([HAVE_POSIX_PRINTF])422 if test "$ac_cv_func_asprintf" = yes; then423 HAVE_ASPRINTF=1424 else425 HAVE_ASPRINTF=0426 fi427 AC_SUBST([HAVE_ASPRINTF])428 if test "$ac_cv_func_snprintf" = yes; then429 HAVE_SNPRINTF=1430 else431 HAVE_SNPRINTF=0432 fi433 AC_SUBST([HAVE_SNPRINTF])434 if test "$ac_cv_func_wprintf" = yes; then435 HAVE_WPRINTF=1436 else437 HAVE_WPRINTF=0438 fi439 AC_SUBST([HAVE_WPRINTF])440 441 AM_ICONV442 AM_LANGINFO_CODESET443 if test $ac_cv_header_locale_h = yes; then444 gt_LC_MESSAGES445 fi446 447 if test -n "$INTL_MACOSX_LIBS"; then448 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"449 fi450 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 least453 dnl bison-1.26 because earlier versions generate a plural.c that doesn't454 dnl compile.455 dnl bison is only needed for the maintainer (who touches plural.y). But in456 dnl order to avoid separate Makefiles or --enable-maintainer-mode, we put457 dnl the rule in general Makefile. Now, some people carelessly touch the458 dnl files or have a broken "make" program, hence the plural.c rule will459 dnl sometimes fire. To avoid an error, defines BISON to ":" if it is not460 dnl present or too old.461 AC_CHECK_PROGS([INTLBISON], [bison])462 if test -z "$INTLBISON"; then463 ac_verc_fail=yes464 else465 dnl Found it, now check the version.466 AC_MSG_CHECKING([version of bison])467 changequote(<<,>>)dnl468 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`469 case $ac_prog_version in470 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;471 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)472 changequote([,])dnl473 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;474 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;475 esac476 AC_MSG_RESULT([$ac_prog_version])477 fi478 if test $ac_verc_fail = yes; then479 INTLBISON=:480 fi481 ])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; then502 AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], 1,503 [Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.])504 fi505 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; then517 AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], 1,518 [Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.])519 fi520 INTL_MACOSX_LIBS=521 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then522 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"523 fi524 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 $1535 char *p = (char *) $1;536 #endif537 ], ac_cv_have_decl_$1=yes, ac_cv_have_decl_$1=no)])538 if test $ac_cv_have_decl_$1 = yes; then539 gt_value=1540 else541 gt_value=0542 fi543 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 GLIB2 # Owen Taylor 97-11-33 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" or6 dnl gthread is specified in MODULES, pass to glib-config7 dnl8 AC_DEFUN([AM_PATH_GLIB],9 [dnl10 dnl Get the cflags and libraries from the glib-config script11 dnl12 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 ; then20 glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix"21 if test x${GLIB_CONFIG+set} != xset ; then22 GLIB_CONFIG=$glib_config_exec_prefix/bin/glib-config23 fi24 fi25 if test x$glib_config_prefix != x ; then26 glib_config_args="$glib_config_args --prefix=$glib_config_prefix"27 if test x${GLIB_CONFIG+set} != xset ; then28 GLIB_CONFIG=$glib_config_prefix/bin/glib-config29 fi30 fi31 32 for module in . $433 do34 case "$module" in35 gmodule)36 glib_config_args="$glib_config_args gmodule"37 ;;38 gthread)39 glib_config_args="$glib_config_args gthread"40 ;;41 esac42 done43 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" ; then49 no_glib=yes50 else51 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" ; then60 ac_save_CFLAGS="$CFLAGS"61 ac_save_LIBS="$LIBS"62 CFLAGS="$CFLAGS $GLIB_CFLAGS"63 LIBS="$GLIB_LIBS $LIBS"64 dnl65 dnl Now check if the installed GLIB is sufficiently new. (Also sanity66 dnl checks the results of glib-config to some extent67 dnl68 rm -f conf.glibtest69 AC_TRY_RUN([70 #include <glib.h>71 #include <stdio.h>72 #include <stdlib.h>73 74 int75 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, µ) != 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 else115 {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 else123 {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 fi145 fi146 if test "x$no_glib" = x ; then147 AC_MSG_RESULT(yes)148 ifelse([$2], , :, [$2])149 else150 AC_MSG_RESULT(no)151 if test "$GLIB_CONFIG" = "no" ; then152 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 else157 if test -f conf.glibtest ; then158 :159 else160 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 fi188 fi189 GLIB_CFLAGS=""190 GLIB_LIBS=""191 ifelse([$3], , :, [$3])192 fi193 AC_SUBST(GLIB_CFLAGS)194 AC_SUBST(GLIB_LIBS)195 rm -f conf.glibtest196 ]) -
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 12 dnl Copyright (C) 2000-2002, 2004 Free Software Foundation, Inc.3 dnl This file is free software; the Free Software Foundation4 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 user20 #endif21 #endif22 ],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 32 dnl Copyright (C) 2000-2002, 2004 Free Software Foundation, Inc.3 dnl This file is free software; the Free Software Foundation4 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 user20 #endif21 #endif22 ],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 Foundation4 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 INCICONV16 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 and23 dnl those with the standalone portable GNU libiconv installed).24 AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles25 26 dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV27 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 use32 dnl via --without-libiconv-prefix, he wants to use it. The first33 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=no40 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; then47 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=yes55 am_cv_func_iconv=yes)56 LIBS="$am_save_LIBS"57 fi58 ])59 if test "$am_cv_func_iconv" = yes; then60 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; then64 LIBS="$LIBS $LIBICONV"65 fi66 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 successful72 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 #endif110 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is111 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" in124 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" in130 *no) am_func_iconv=no am_cv_lib_iconv=no ;;131 *) am_func_iconv=yes ;;132 esac133 else134 am_func_iconv=no am_cv_lib_iconv=no135 fi136 if test "$am_func_iconv" = yes; then137 AC_DEFINE(HAVE_ICONV, 1,138 [Define if you have the iconv() function and it works.])139 fi140 if test "$am_cv_lib_iconv" = yes; then141 AC_MSG_CHECKING([how to link with libiconv])142 AC_MSG_RESULT([$LIBICONV])143 else144 dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV145 dnl either.146 CPPFLAGS="$am_save_CPPFLAGS"147 LIBICONV=148 LTLIBICONV=149 fi150 AC_SUBST(LIBICONV)151 AC_SUBST(LTLIBICONV)152 ])153 154 AC_DEFUN([AM_ICONV],155 [156 AM_ICONV_LINK157 if test "$am_cv_func_iconv" = yes; then158 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 extern164 #ifdef __cplusplus165 "C"166 #endif167 #if defined(__STDC__) || defined(__cplusplus)168 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);169 #else170 size_t iconv();171 #endif172 ], [], 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 fi180 ]) -
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 Foundation4 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])dnl12 AC_REQUIRE([AC_CANONICAL_HOST])dnl13 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(,)dnl19 case "$host_os" in20 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 Report23 # dialog window would pop up.24 case "$host_cpu" in25 i[34567]86 | x86_64)26 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;27 esac28 ;;29 esac30 changequote([,])dnl31 if test -z "$gt_cv_int_divbyzero_sigfpe"; then32 AC_TRY_RUN([33 #include <stdlib.h>34 #include <signal.h>35 36 static void37 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 #endif55 /* Linux/SPARC yields signal SIGILL. */56 #if defined (__sparc__) && defined (__linux__)57 signal (SIGILL, sigfpe_handler);58 #endif59 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(,)dnl68 case "$host_cpu" in69 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 esac74 changequote([,])dnl75 ])76 fi77 ])78 case "$gt_cv_int_divbyzero_sigfpe" in79 *yes) value=1;;80 *) value=0;;81 esac82 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 Foundation4 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 to9 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_UINTMAX20 #include <stdint.h>21 #endif22 #if HAVE_INTTYPES_H_WITH_UINTMAX23 #include <inttypes.h>24 #endif25 ], [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; then30 AC_DEFINE(HAVE_INTMAX_T, 1,31 [Define if you have the 'intmax_t' type in <stdint.h> or <inttypes.h>.])32 fi33 ]) -
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 Foundation4 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; then18 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 PRId3223 char *p = PRId32;24 #endif25 ], [], gt_cv_inttypes_pri_broken=no, gt_cv_inttypes_pri_broken=yes)26 ])27 fi28 if test "$gt_cv_inttypes_pri_broken" = yes; then29 AC_DEFINE_UNQUOTED(PRI_MACROS_BROKEN, 1,30 [Define if <inttypes.h> exists and defines unusable PRI* macros.])31 PRI_MACROS_BROKEN=132 else33 PRI_MACROS_BROKEN=034 fi35 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 Foundation4 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 with10 # <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; then22 AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H, 1,23 [Define if <inttypes.h> exists and doesn't clash with <sys/types.h>.])24 fi25 ]) -
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 72 dnl Copyright (C) 1997-2004, 2006 Free Software Foundation, Inc.3 dnl This file is free software; the Free Software Foundation4 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; then22 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 fi26 ]) -
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 Foundation4 dnl gives unlimited permission to copy and/or distribute it,5 dnl with or without modifications, as long as this notice is preserved.6 dnl7 dnl This file can can be used in projects which are not available under8 dnl the GNU General Public License or the GNU Library General Public9 dnl License but which still want to provide support for the GNU gettext10 dnl functionality.11 dnl Please note that the actual code of the GNU gettext library is covered12 dnl by the GNU Library General Public License, and the rest of the GNU13 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; then27 AC_DEFINE(HAVE_LC_MESSAGES, 1,28 [Define if your <locale.h> file defines LC_MESSAGES.])29 fi30 ]) -
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 Foundation4 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 collision9 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` in16 *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_ld22 ])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])dnl30 AC_REQUIRE([AC_CANONICAL_HOST])dnl31 # Prepare PATH_SEPARATOR.32 # The user is always right.33 if test "${PATH_SEPARATOR+set}" != set; then34 echo "#! /bin/sh" >conf$$.sh35 echo "exit 0" >>conf$$.sh36 chmod +x conf$$.sh37 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then38 PATH_SEPARATOR=';'39 else40 PATH_SEPARATOR=:41 fi42 rm -f conf$$.sh43 fi44 ac_prog=ld45 if test "$GCC" = yes; then46 # Check if gcc -print-prog-name=ld gives a path.47 AC_MSG_CHECKING([for ld used by GCC])48 case $host in49 *-*-mingw*)50 # gcc leaves a trailing carriage return which upsets mingw51 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;52 *)53 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;54 esac55 case $ac_prog in56 # Accept absolute paths.57 [[\\/]* | [A-Za-z]:[\\/]*)]58 [re_direlt='/[^/][^/]*/\.\./']59 # Canonicalize the path of ld60 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`61 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do62 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`63 done64 test -z "$LD" && LD="$ac_prog"65 ;;66 "")67 # If it fails, then pretend we aren't using GCC.68 ac_prog=ld69 ;;70 *)71 # If it is relative, then search for the first ld in PATH.72 with_gnu_ld=unknown73 ;;74 esac75 elif test "$with_gnu_ld" = yes; then76 AC_MSG_CHECKING([for GNU ld])77 else78 AC_MSG_CHECKING([for non-GNU ld])79 fi80 AC_CACHE_VAL(acl_cv_path_LD,81 [if test -z "$LD"; then82 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"83 for ac_dir in $PATH; do84 test -z "$ac_dir" && ac_dir=.85 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then86 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` in91 *GNU* | *'with BFD'*)92 test "$with_gnu_ld" != no && break ;;93 *)94 test "$with_gnu_ld" != yes && break ;;95 esac96 fi97 done98 IFS="$ac_save_ifs"99 else100 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"; then104 AC_MSG_RESULT($LD)105 else106 AC_MSG_RESULT(no)107 fi108 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])109 AC_LIB_PROG_LD_GNU110 ]) -
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 Foundation4 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 and12 dnl the libraries corresponding to explicit and implicit dependencies.13 dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and14 dnl augments the CPPFLAGS variable.15 dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname16 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 the40 dnl results of this search when this library appears as a dependency.41 HAVE_LIB[]NAME=yes42 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 and48 dnl implicit dependencies, together with the specified include files and49 dnl the ability to compile and link the specified testcode. If found, it50 dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and51 dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and52 dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs53 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 libname55 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[]NAME65 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 use70 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; then81 HAVE_LIB[]NAME=yes82 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 else86 HAVE_LIB[]NAME=no87 dnl If $LIB[]NAME didn't lead to a usable library, we don't need88 dnl $INC[]NAME either.89 CPPFLAGS="$ac_save_CPPFLAGS"90 LIB[]NAME=91 LTLIB[]NAME=92 LIB[]NAME[]_PREFIX=93 fi94 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, $LDFLAGS114 AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld115 AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host116 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir117 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.sh120 . ./conftest.sh121 rm -f ./conftest.sh122 acl_cv_rpath=done123 ])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 and140 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 found143 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=yes153 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/lib159 --without-lib]N_A_M_E[-prefix don't search for lib$1 in includedir and libdir],160 [161 if test "X$withval" = "Xno"; then162 use_additional=no163 else164 if test "X$withval" = "X"; then165 AC_LIB_WITH_FINAL_PREFIX([166 eval additional_includedir=\"$includedir\"167 eval additional_libdir=\"$libdir\"168 ])169 else170 additional_includedir="$withval/include"171 additional_libdir="$withval/$acl_libdirstem"172 fi173 fi174 ])175 dnl Search the library and its dependencies in $additional_libdir and176 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"; do186 names_this_round="$names_next_round"187 names_next_round=188 for name in $names_this_round; do189 already_handled=190 for n in $names_already_handled; do191 if test "$n" = "$name"; then192 already_handled=yes193 break194 fi195 done196 if test -z "$already_handled"; then197 names_already_handled="$names_already_handled $name"198 dnl See if it was already located by an earlier AC_LIB_LINKFLAGS199 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"; then203 if test "$value" = yes; then204 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 else209 dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined210 dnl that this library doesn't exist. So just drop it.211 :212 fi213 else214 dnl Search the library lib$name in $additional_libdir and $LDFLAGS215 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$name221 if test -n "$acl_shlibext"; then222 shrext=".$acl_shlibext" # typically: shrext=.so223 else224 shrext=225 fi226 if test $use_additional = yes; then227 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"; then231 if test -f "$dir/$libname$shrext"; then232 found_dir="$dir"233 found_so="$dir/$libname$shrext"234 else235 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then236 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"; then242 found_dir="$dir"243 found_so="$dir/$libname$shrext.$ver"244 fi245 else246 eval library_names=\"$acl_library_names_spec\"247 for f in $library_names; do248 if test -f "$dir/$f"; then249 found_dir="$dir"250 found_so="$dir/$f"251 break252 fi253 done254 fi255 fi256 fi257 dnl Then look for a static library.258 if test "X$found_dir" = "X"; then259 if test -f "$dir/$libname.$acl_libext"; then260 found_dir="$dir"261 found_a="$dir/$libname.$acl_libext"262 fi263 fi264 if test "X$found_dir" != "X"; then265 if test -f "$dir/$libname.la"; then266 found_la="$dir/$libname.la"267 fi268 fi269 fi270 if test "X$found_dir" = "X"; then271 for x in $LDFLAGS $LTLIB[]NAME; do272 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])273 case "$x" in274 -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"; then278 if test -f "$dir/$libname$shrext"; then279 found_dir="$dir"280 found_so="$dir/$libname$shrext"281 else282 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then283 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"; then289 found_dir="$dir"290 found_so="$dir/$libname$shrext.$ver"291 fi292 else293 eval library_names=\"$acl_library_names_spec\"294 for f in $library_names; do295 if test -f "$dir/$f"; then296 found_dir="$dir"297 found_so="$dir/$f"298 break299 fi300 done301 fi302 fi303 fi304 dnl Then look for a static library.305 if test "X$found_dir" = "X"; then306 if test -f "$dir/$libname.$acl_libext"; then307 found_dir="$dir"308 found_a="$dir/$libname.$acl_libext"309 fi310 fi311 if test "X$found_dir" != "X"; then312 if test -f "$dir/$libname.la"; then313 found_la="$dir/$libname.la"314 fi315 fi316 ;;317 esac318 if test "X$found_dir" != "X"; then319 break320 fi321 done322 fi323 if test "X$found_dir" != "X"; then324 dnl Found the library.325 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"326 if test "X$found_so" != "X"; then327 dnl Linking with a shared library. We attempt to hardcode its328 dnl directory into the executable's runpath, unless it's the329 dnl standard /usr/lib.330 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then331 dnl No hardcoding is needed.332 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"333 else334 dnl Use an explicit option to hardcode DIR into the resulting335 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; do340 if test "X$x" = "X$found_dir"; then341 haveit=yes342 break343 fi344 done345 if test -z "$haveit"; then346 ltrpathdirs="$ltrpathdirs $found_dir"347 fi348 dnl The hardcoding into $LIBNAME is system dependent.349 if test "$acl_hardcode_direct" = yes; then350 dnl Using DIR/libNAME.so during linking hardcodes DIR into the351 dnl resulting binary.352 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"353 else354 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then355 dnl Use an explicit option to hardcode DIR into the resulting356 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; do362 if test "X$x" = "X$found_dir"; then363 haveit=yes364 break365 fi366 done367 if test -z "$haveit"; then368 rpathdirs="$rpathdirs $found_dir"369 fi370 else371 dnl Rely on "-L$found_dir".372 dnl But don't add it if it's already contained in the LDFLAGS373 dnl or the already constructed $LIBNAME374 haveit=375 for x in $LDFLAGS $LIB[]NAME; do376 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])377 if test "X$x" = "X-L$found_dir"; then378 haveit=yes379 break380 fi381 done382 if test -z "$haveit"; then383 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"384 fi385 if test "$acl_hardcode_minus_L" != no; then386 dnl FIXME: Not sure whether we should use387 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 else391 dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH392 dnl here, because this doesn't fit in flags passed to the393 dnl compiler. So give up. No hardcoding. This affects only394 dnl very old systems.395 dnl FIXME: Not sure whether we should use396 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 fi400 fi401 fi402 fi403 else404 if test "X$found_a" != "X"; then405 dnl Linking with a static library.406 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"407 else408 dnl We shouldn't come here, but anyway it's good to have a409 dnl fallback.410 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"411 fi412 fi413 dnl Assume the include files are nearby.414 additional_includedir=415 case "$found_dir" in416 */$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 esac422 if test "X$additional_includedir" != "X"; then423 dnl Potentially add $additional_includedir to $INCNAME.424 dnl But don't add it425 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 already428 dnl constructed $INCNAME,429 dnl 4. if it doesn't exist as a directory.430 if test "X$additional_includedir" != "X/usr/include"; then431 haveit=432 if test "X$additional_includedir" = "X/usr/local/include"; then433 if test -n "$GCC"; then434 case $host_os in435 linux* | gnu* | k*bsd*-gnu) haveit=yes;;436 esac437 fi438 fi439 if test -z "$haveit"; then440 for x in $CPPFLAGS $INC[]NAME; do441 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])442 if test "X$x" = "X-I$additional_includedir"; then443 haveit=yes444 break445 fi446 done447 if test -z "$haveit"; then448 if test -d "$additional_includedir"; then449 dnl Really add $additional_includedir to $INCNAME.450 INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"451 fi452 fi453 fi454 fi455 fi456 dnl Look for dependencies.457 if test -n "$found_la"; then458 dnl Read the .la file. It defines the variables459 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" in463 */* | *\\*) . "$found_la" ;;464 *) . "./$found_la" ;;465 esac466 libdir="$save_libdir"467 dnl We use only dependency_libs.468 for dep in $dependency_libs; do469 case "$dep" in470 -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 it474 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 already477 dnl constructed $LIBNAME,478 dnl 4. if it doesn't exist as a directory.479 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then480 haveit=481 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then482 if test -n "$GCC"; then483 case $host_os in484 linux* | gnu* | k*bsd*-gnu) haveit=yes;;485 esac486 fi487 fi488 if test -z "$haveit"; then489 haveit=490 for x in $LDFLAGS $LIB[]NAME; do491 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])492 if test "X$x" = "X-L$additional_libdir"; then493 haveit=yes494 break495 fi496 done497 if test -z "$haveit"; then498 if test -d "$additional_libdir"; then499 dnl Really add $additional_libdir to $LIBNAME.500 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"501 fi502 fi503 haveit=504 for x in $LDFLAGS $LTLIB[]NAME; do505 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])506 if test "X$x" = "X-L$additional_libdir"; then507 haveit=yes508 break509 fi510 done511 if test -z "$haveit"; then512 if test -d "$additional_libdir"; then513 dnl Really add $additional_libdir to $LTLIBNAME.514 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"515 fi516 fi517 fi518 fi519 ;;520 -R*)521 dir=`echo "X$dep" | sed -e 's/^X-R//'`522 if test "$enable_rpath" != no; then523 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; do527 if test "X$x" = "X$dir"; then528 haveit=yes529 break530 fi531 done532 if test -z "$haveit"; then533 rpathdirs="$rpathdirs $dir"534 fi535 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; do539 if test "X$x" = "X$dir"; then540 haveit=yes541 break542 fi543 done544 if test -z "$haveit"; then545 ltrpathdirs="$ltrpathdirs $dir"546 fi547 fi548 ;;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's555 dnl directory; it is already contained in a preceding -L556 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 esac565 done566 fi567 else568 dnl Didn't find the library; assume it is in the system directories569 dnl known to the linker and runtime loader. (All the system570 dnl directories known to the linker should also be known to the571 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 fi575 fi576 fi577 done578 done579 if test "X$rpathdirs" != "X"; then580 if test -n "$acl_hardcode_libdir_separator"; then581 dnl Weird platform: only the last -rpath option counts, the user must582 dnl pass all path elements in one option. We can arrange that for a583 dnl single library, but not when more than one $LIBNAMEs are used.584 alldirs=585 for found_dir in $rpathdirs; do586 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"587 done588 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 else595 dnl The -rpath options are cumulative.596 for found_dir in $rpathdirs; do597 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 done603 fi604 fi605 if test "X$ltrpathdirs" != "X"; then606 dnl When using libtool, the option that works for both libraries and607 dnl executables is -R. The -R options are cumulative.608 for found_dir in $ltrpathdirs; do609 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"610 done611 fi612 ])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 sometimes617 dnl contains two or three consecutive elements that belong together.618 AC_DEFUN([AC_LIB_APPENDTOVAR],619 [620 for element in [$2]; do621 haveit=622 for x in $[$1]; do623 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])624 if test "X$x" = "X$element"; then625 haveit=yes626 break627 fi628 done629 if test -z "$haveit"; then630 [$1]="${[$1]}${[$1]:+ }$element"631 fi632 done633 ])634 635 dnl For those cases where a variable contains several -L and -l options636 dnl referring to unknown libraries and directories, this macro determines the637 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; then648 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then649 dnl Use an explicit option to hardcode directories into the resulting650 dnl binary.651 rpathdirs=652 next=653 for opt in $2; do654 if test -n "$next"; then655 dir="$next"656 dnl No need to hardcode the standard /usr/lib.657 if test "X$dir" != "X/usr/$acl_libdirstem"; then658 rpathdirs="$rpathdirs $dir"659 fi660 next=661 else662 case $opt in663 -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"; then667 rpathdirs="$rpathdirs $dir"668 fi669 next= ;;670 *) next= ;;671 esac672 fi673 done674 if test "X$rpathdirs" != "X"; then675 if test -n ""$3""; then676 dnl libtool is used for linking. Use -R options.677 for dir in $rpathdirs; do678 $1="${$1}${$1:+ }-R$dir"679 done680 else681 dnl The linker is used for linking directly.682 if test -n "$acl_hardcode_libdir_separator"; then683 dnl Weird platform: only the last -rpath option counts, the user684 dnl must pass all path elements in one option.685 alldirs=686 for dir in $rpathdirs; do687 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir"688 done689 acl_save_libdir="$libdir"690 libdir="$alldirs"691 eval flag=\"$acl_hardcode_libdir_flag_spec\"692 libdir="$acl_save_libdir"693 $1="$flag"694 else695 dnl The -rpath options are cumulative.696 for dir in $rpathdirs; do697 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 done703 fi704 fi705 fi706 fi707 fi708 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 Foundation4 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, and10 dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't11 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 needed17 dnl to access previously installed libraries. The basic assumption is that18 dnl a user will want packages to use other packages he previously installed19 dnl with the same --prefix option.20 dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate21 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=yes31 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/lib37 --without-lib-prefix don't search for libraries in includedir and libdir],38 [39 if test "X$withval" = "Xno"; then40 use_additional=no41 else42 if test "X$withval" = "X"; then43 AC_LIB_WITH_FINAL_PREFIX([44 eval additional_includedir=\"$includedir\"45 eval additional_libdir=\"$libdir\"46 ])47 else48 additional_includedir="$withval/include"49 additional_libdir="$withval/$acl_libdirstem"50 fi51 fi52 ])53 if test $use_additional = yes; then54 dnl Potentially add $additional_includedir to $CPPFLAGS.55 dnl But don't add it56 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"; then61 haveit=62 for x in $CPPFLAGS; do63 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])64 if test "X$x" = "X-I$additional_includedir"; then65 haveit=yes66 break67 fi68 done69 if test -z "$haveit"; then70 if test "X$additional_includedir" = "X/usr/local/include"; then71 if test -n "$GCC"; then72 case $host_os in73 linux* | gnu* | k*bsd*-gnu) haveit=yes;;74 esac75 fi76 fi77 if test -z "$haveit"; then78 if test -d "$additional_includedir"; then79 dnl Really add $additional_includedir to $CPPFLAGS.80 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"81 fi82 fi83 fi84 fi85 dnl Potentially add $additional_libdir to $LDFLAGS.86 dnl But don't add it87 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"; then92 haveit=93 for x in $LDFLAGS; do94 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])95 if test "X$x" = "X-L$additional_libdir"; then96 haveit=yes97 break98 fi99 done100 if test -z "$haveit"; then101 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then102 if test -n "$GCC"; then103 case $host_os in104 linux*) haveit=yes;;105 esac106 fi107 fi108 if test -z "$haveit"; then109 if test -d "$additional_libdir"; then110 dnl Really add $additional_libdir to $LDFLAGS.111 LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"112 fi113 fi114 fi115 fi116 fi117 ])118 119 dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,120 dnl acl_final_exec_prefix, containing the values to which $prefix and121 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 determined125 dnl at the end of configure.126 if test "X$prefix" = "XNONE"; then127 acl_final_prefix="$ac_default_prefix"128 else129 acl_final_prefix="$prefix"130 fi131 if test "X$exec_prefix" = "XNONE"; then132 acl_final_exec_prefix='${prefix}'133 else134 acl_final_exec_prefix="$exec_prefix"135 fi136 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 the143 dnl variables prefix and exec_prefix bound to the values they will have144 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 $1152 exec_prefix="$acl_save_exec_prefix"153 prefix="$acl_save_prefix"154 ])155 156 dnl AC_LIB_PREPARE_MULTILIB creates a variable acl_libdirstem, containing157 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 current161 dnl practice is that on a system supporting 32-bit and 64-bit instruction162 dnl sets or ABIs, 64-bit libraries go under $prefix/lib64 and 32-bit163 dnl libraries go under $prefix/lib. We determine the compiler's default164 dnl mode by looking at the compiler's library search path. If at least165 dnl of its elements ends in /lib64 or points to a directory whose absolute166 dnl pathname ends in /lib64, we assume a 64-bit ABI. Otherwise we use the167 dnl default, namely "lib".168 acl_libdirstem=lib169 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"; then171 acl_save_IFS="${IFS= }"; IFS=":"172 for searchdir in $searchpath; do173 if test -d "$searchdir"; then174 case "$searchdir" in175 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;176 *) searchdir=`cd "$searchdir" && pwd`177 case "$searchdir" in178 */lib64 ) acl_libdirstem=lib64 ;;179 esac ;;180 esac181 fi182 done183 IFS="$acl_save_IFS"184 fi185 ]) -
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 Foundation4 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_CC10 11 AC_DEFUN([gt_TYPE_LONGDOUBLE],12 [13 AC_CACHE_CHECK([for long double], gt_cv_c_long_double,14 [if test "$GCC" = yes; then15 gt_cv_c_long_double=yes16 else17 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; then26 AC_DEFINE(HAVE_LONG_DOUBLE, 1, [Define if you have the 'long double' type.])27 fi28 ]) -
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 102 dnl Copyright (C) 1999-2006 Free Software Foundation, Inc.3 dnl This file is free software; the Free Software Foundation4 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 we11 # assume 2.61 everywhere.12 13 # Note: If the type 'long long int' exists but is only 32 bits large14 # (as on some very old compilers), HAVE_LONG_LONG_INT will not be15 # 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 < 025 && 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, since33 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_MAX38 @%:@ 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; then58 AC_DEFINE([HAVE_LONG_LONG_INT], 1,59 [Define to 1 if the system has the type `long long int'.])60 fi61 ])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_int68 if test $ac_cv_type_long_long = yes; then69 AC_DEFINE(HAVE_LONG_LONG, 1,70 [Define if you have the 'long long' type.])71 fi72 ]) -
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 262 # How to list mounted file systems.3 4 # Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2006 Free Software5 # Foundation, Inc.6 #7 # This file is free software; the Free Software Foundation8 # 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 dnl13 dnl This is not pretty. I've just taken the autoconf code and wrapped14 dnl it in an AC_DEFUN and made some other fixes.15 dnl16 17 # Replace Autoconf's AC_FUNC_GETMNTENT to work around a bug in Autoconf18 # through Autoconf 2.59. We can remove this once we assume Autoconf 2.6019 # 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 uses34 # 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_DEFAULT39 [#if HAVE_SYS_PARAM_H40 #include <sys/param.h>41 #endif]])42 43 AC_CHECK_HEADERS(mntent.h sys/fs_types.h)44 getfsstat_includes="\45 $ac_includes_default46 #if HAVE_SYS_PARAM_H47 # include <sys/param.h> /* needed by powerpc-apple-darwin1.3.7 */48 #endif49 #if HAVE_SYS_UCRED_H50 # include <grp.h> /* needed for definition of NGROUPS */51 # include <sys/ucred.h> /* needed by powerpc-apple-darwin1.3.7 */52 #endif53 #if HAVE_SYS_MOUNT_H54 # include <sys/mount.h>55 #endif56 #if HAVE_SYS_FS_TYPES_H57 # include <sys/fs_types.h> /* needed by powerpc-apple-darwin1.3.7 */58 #endif59 "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_GETMNTENT68 69 # This test must precede the ones for getmntent because Unicos-9 is70 # reported to have the getmntent function, but its support is incompatible71 # with other getmntent implementations.72 73 # NOTE: Normally, I wouldn't use a check for system type as I've done for74 # `CRAY' below since that goes against the whole autoconf philosophy. But75 # I think there is too great a chance that some non-Cray system has a76 # function named listmntent to risk the false positive.77 78 if test -z "$ac_list_mounted_fs"; then79 # Cray UNICOS 980 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=no83 AC_EGREP_CPP(yes,84 [#ifdef _CRAY85 yes86 #endif87 ], [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; then94 ac_list_mounted_fs=found95 AC_DEFINE(MOUNTED_LISTMNTENT, 1,96 [Define if there is a function named listmntent that can be used to97 list all mounted file systems. (UNICOS)])98 fi99 fi100 101 if test -z "$ac_list_mounted_fs"; then102 # 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; then110 ac_list_mounted_fs=found111 AC_DEFINE(MOUNTED_VMOUNT, 1,112 [Define if there is a function named mntctl that can be used to read113 the list of mounted file systems, and there is a system header file114 that declares `struct vmount.' (AIX)])115 fi116 fi117 118 if test $ac_cv_func_getmntent = yes; then119 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"; then124 # 4.3BSD, SunOS, HP-UX, Dynix, Irix125 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 MOUNTED133 # if defined _PATH_MOUNTED /* GNU libc */134 # define MOUNTED _PATH_MOUNTED135 # endif136 # if defined MNT_MNTTAB /* HP-UX. */137 # define MOUNTED MNT_MNTTAB138 # endif139 # if defined MNTTABNAME /* Dynix. */140 # define MOUNTED MNTTABNAME141 # endif142 #endif143 ],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; then150 ac_list_mounted_fs=found151 AC_DEFINE(MOUNTED_GETMNTENT1, 1,152 [Define if there is a function named getmntent for reading the list153 of mounted file systems, and that function takes a single argument.154 (4.3BSD, SunOS, HP-UX, Dynix, Irix)])155 fi156 fi157 158 if test -z "$ac_list_mounted_fs"; then159 # SVR4160 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; then167 ac_list_mounted_fs=found168 AC_DEFINE(MOUNTED_GETMNTENT2, 1,169 [Define if there is a function named getmntent for reading the list of170 mounted file systems, and that function takes two arguments. (SVR4)])171 AC_CHECK_FUNCS(hasmntopt)172 fi173 fi174 175 fi176 177 if test -z "$ac_list_mounted_fs"; then178 # 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.h180 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_FSTYPENAME186 # define FS_TYPE(Ent) ((Ent).f_fstypename)187 #else188 # define FS_TYPE(Ent) mnt_names[(Ent).f_type]189 #endif190 ]$getfsstat_includes191 ,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; then199 ac_list_mounted_fs=found200 AC_DEFINE(MOUNTED_GETFSSTAT, 1,201 [Define if there is a function named getfsstat for reading the202 list of mounted file systems. (DEC Alpha running OSF/1)])203 fi204 fi205 206 if test -z "$ac_list_mounted_fs"; then207 # SVR3208 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; then218 ac_list_mounted_fs=found219 AC_DEFINE(MOUNTED_FREAD_FSTYP, 1,220 [Define if (like SVR2) there is no specific function for reading the221 list of mounted file systems, and your system has these header files:222 <sys/fstyp.h> and <sys/statfs.h>. (SVR3)])223 fi224 fi225 226 if test -z "$ac_list_mounted_fs"; then227 # 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=no234 ])235 AC_MSG_RESULT($fu_cv_sys_mounted_getmntinfo)236 if test $fu_cv_sys_mounted_getmntinfo = yes; then237 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_H242 # include <sys/param.h>243 #endif244 #include <sys/types.h>245 #if HAVE_SYS_MOUNT_H246 # include <sys/mount.h>247 #endif248 #if HAVE_SYS_STATVFS_H249 # include <sys/statvfs.h>250 #endif251 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; then258 ac_list_mounted_fs=found259 AC_DEFINE(MOUNTED_GETMNTINFO, 1,260 [Define if there is a function named getmntinfo for reading the261 list of mounted file systems and it returns an array of262 'struct statfs'. (4.4BSD, Darwin)])263 else264 ac_list_mounted_fs=found265 AC_DEFINE(MOUNTED_GETMNTINFO2, 1,266 [Define if there is a function named getmntinfo for reading the267 list of mounted file systems and it returns an array of268 'struct statvfs'. (NetBSD 3.0)])269 fi270 fi271 fi272 273 if test -z "$ac_list_mounted_fs"; then274 # Ultrix275 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; then284 ac_list_mounted_fs=found285 AC_DEFINE(MOUNTED_GETMNT, 1,286 [Define if there is a function named getmnt for reading the list of287 mounted file systems. (Ultrix)])288 fi289 fi290 291 if test -z "$ac_list_mounted_fs"; then292 # BeOS293 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; then299 fu_result=yes300 else301 fu_result=no302 fi303 AC_MSG_RESULT($fu_result)304 if test $fu_result = yes; then305 ac_list_mounted_fs=found306 AC_DEFINE(MOUNTED_FS_STAT_DEV, 1,307 [Define if there are functions named next_dev and fs_stat_dev for308 reading the list of mounted file systems. (BeOS)])309 fi310 fi311 312 if test -z "$ac_list_mounted_fs"; then313 # SVR2314 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; then321 ac_list_mounted_fs=found322 AC_DEFINE(MOUNTED_FREAD, 1,323 [Define if there is no specific function for reading the list of324 mounted file systems. fread will be used to read /etc/mnttab.325 (SVR2) ])326 fi327 fi328 329 if test -z "$ac_list_mounted_fs"; then330 AC_MSG_ERROR([could not determine how to read list of mounted file systems])331 # FIXME -- no need to abort building the whole package332 # Can't build mountlist.c or anything that needs its functions333 fi334 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 Foundation4 dnl gives unlimited permission to copy and/or distribute it,5 dnl with or without modifications, as long as this notice is preserved.6 dnl7 dnl This file can can be used in projects which are not available under8 dnl the GNU General Public License or the GNU Library General Public9 dnl License but which still want to provide support for the GNU gettext10 dnl functionality.11 dnl Please note that the actual code of the GNU gettext library is covered12 dnl by the GNU Library General Public License, and the rest of the GNU13 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 NLS26 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 possibly38 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"; then42 case "$ac_aux_dir" in43 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;44 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;45 esac46 fi47 if test -z "$MKINSTALLDIRS"; then48 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"49 fi50 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 Foundation4 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_HEADERS9 dnl AC_CHECK_FUNCS_ONCE like AC_CHECK_FUNCS10 dnl AC_CHECK_DECLS_ONCE like AC_CHECK_DECLS11 dnl AC_REQUIRE([AC_FUNC_STRCOLL]) like AC_FUNC_STRCOLL12 dnl The advantage is that the check for each of the headers/functions/decls13 dnl will be put only once into the 'configure' file. It keeps the size of14 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 write17 dnl if some_condition; then gl_CHECK_HEADERS(stdlib.h); fi18 dnl inside an AC_DEFUNed function, the gl_CHECK_HEADERS macro call expands to19 dnl empty, and the check will be inserted before the body of the AC_DEFUNed20 dnl function.21 22 dnl This file is only needed in autoconf <= 2.59. Newer versions of autoconf23 dnl have this macro built-in. But about AC_CHECK_DECLS_ONCE: note that in24 dnl autoconf >= 2.60 the symbol separator is a comma, whereas here it is25 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 of31 # 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 of45 # 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 of57 # 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 page4 dnl also defines GSTUFF_PKG_ERRORS on error5 AC_DEFUN([PKG_CHECK_MODULES], [6 succeeded=no7 8 if test -z "$PKG_CONFIG"; then9 AC_PATH_PROG(PKG_CONFIG, pkg-config, no)10 fi11 12 if test "$PKG_CONFIG" = "no" ; then13 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 else18 PKG_CONFIG_MIN_VERSION=0.9.019 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then20 AC_MSG_CHECKING(for $2)21 22 if $PKG_CONFIG --exists "$2" ; then23 AC_MSG_RESULT(yes)24 succeeded=yes25 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 else34 $1_CFLAGS=""35 $1_LIBS=""36 ## If we have a custom action on failure, don't print errors, but37 ## 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 fi41 42 AC_SUBST($1_CFLAGS)43 AC_SUBST($1_LIBS)44 else45 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 fi48 fi49 50 if test $succeeded = yes; then51 ifelse([$3], , :, [$3])52 else53 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 fi55 ])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 Foundation4 dnl gives unlimited permission to copy and/or distribute it,5 dnl with or without modifications, as long as this notice is preserved.6 dnl7 dnl This file can can be used in projects which are not available under8 dnl the GNU General Public License or the GNU Library General Public9 dnl License but which still want to provide support for the GNU gettext10 dnl functionality.11 dnl Please note that the actual code of the GNU gettext library is covered12 dnl by the GNU Library General Public License, and the rest of the GNU13 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])dnl26 AC_REQUIRE([AC_PROG_INSTALL])dnl27 AC_REQUIRE([AM_MKINSTALLDIRS])dnl28 AC_REQUIRE([AM_NLS])dnl29 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.po51 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" != ":"; then59 dnl If it is no GNU msgfmt we define it as : so that the60 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); then63 : ;64 else65 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`66 AC_MSG_RESULT(67 [found $GMSGFMT program is not GNU msgfmt; ignore it])68 GMSGFMT=":"69 fi70 fi71 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" != ":"; then75 dnl If it is no GNU xgettext we define it as : so that the76 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); then79 : ;80 else81 AC_MSG_RESULT(82 [found xgettext program is not GNU xgettext; ignore it])83 XGETTEXT=":"84 fi85 dnl Remove leftover from FreeBSD xgettext call.86 rm -f messages.po87 fi88 89 AC_OUTPUT_COMMANDS([90 for ac_file in $CONFIG_FILES; do91 # Support "outfile[:infile[:infile...]]"92 case "$ac_file" in93 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;94 esac95 # 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" in105 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;106 /*) top_srcdir="$ac_given_srcdir" ;;107 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;108 esac109 # Treat a directory as a PO directory if and only if it has a110 # POTFILES.in file. This allows packages to have multiple PO111 # directories under different names or in different locations.112 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then113 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 depend118 # on $ac_dir but don't depend on user-specified configuration119 # parameters.120 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then121 # The LINGUAS file contains the set of available languages.122 if test -n "$OBSOLETE_ALL_LINGUAS"; then123 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 fi125 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 else130 # The set of available languages was given in configure.in.131 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'132 fi133 # Compute POFILES134 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)135 # Compute UPDATEPOFILES136 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)137 # Compute DUMMYPOFILES138 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)139 # Compute GMOFILES140 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)141 case "$ac_given_srcdir" in142 .) srcdirpre= ;;143 *) srcdirpre='$(srcdir)/' ;;144 esac145 POFILES=146 UPDATEPOFILES=147 DUMMYPOFILES=148 GMOFILES=149 for lang in $ALL_LINGUAS; do150 POFILES="$POFILES $srcdirpre$lang.po"151 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"152 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"153 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"154 done155 # CATALOGS depends on both $ac_dir and the user's LINGUAS156 # environment variable.157 INST_LINGUAS=158 if test -n "$ALL_LINGUAS"; then159 for presentlang in $ALL_LINGUAS; do160 useit=no161 if test "%UNSET%" != "$LINGUAS"; then162 desiredlanguages="$LINGUAS"163 else164 desiredlanguages="$ALL_LINGUAS"165 fi166 for desiredlang in $desiredlanguages; do167 # Use the presentlang catalog if desiredlang is168 # a. equal to presentlang, or169 # b. a variant of presentlang (because in this case,170 # presentlang can be used as a fallback for messages171 # which are not translated in the desiredlang catalog).172 case "$desiredlang" in173 "$presentlang"*) useit=yes;;174 esac175 done176 if test $useit = yes; then177 INST_LINGUAS="$INST_LINGUAS $presentlang"178 fi179 done180 fi181 CATALOGS=182 if test -n "$INST_LINGUAS"; then183 for lang in $INST_LINGUAS; do184 CATALOGS="$CATALOGS $lang.gmo"185 done186 fi187 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-*; do190 if test -f "$f"; then191 case "$f" in192 *.orig | *.bak | *~) ;;193 *) cat "$f" >> "$ac_dir/Makefile" ;;194 esac195 fi196 done197 fi198 ;;199 esac200 done],201 [# Capture the value of obsolete ALL_LINGUAS because we need it to compute202 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it203 # 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 been214 # 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 configure217 # time.218 219 changequote(,)dnl220 # 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" in228 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;229 /*) top_srcdir="$ac_given_srcdir" ;;230 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;231 esac232 233 # Find a way to echo strings without interpreting backslash.234 if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then235 gt_echo='echo'236 else237 if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then238 gt_echo='printf %s\n'239 else240 echo_func () {241 cat <<EOT242 $*243 EOT244 }245 gt_echo='echo_func'246 fi247 fi248 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 x253 s/P/P/254 x255 ta256 # 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 ba261 }262 bd263 :a264 # 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 tb269 :b270 s/\\$//271 # Print the line, without the trailing backslash.272 p273 tc274 # There was no trailing backslash. The end of the variable definition is275 # reached. Clear the hold space.276 s/^.*$//277 x278 bd279 :c280 # A trailing backslash means that the variable definition continues in the281 # next line. Put a nonempty string into the hold space to indicate this.282 s/^.*$/P/283 x284 :d285 '286 changequote([,])dnl287 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 as292 # $(foreach file, $(POTFILES), $(top_srcdir)/$(file))293 POTFILES_DEPS=294 for file in $POTFILES; do295 POTFILES_DEPS="$POTFILES_DEPS "'$(top_srcdir)/'"$file"296 done297 POMAKEFILEDEPS=""298 299 if test -n "$OBSOLETE_ALL_LINGUAS"; then300 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 fi302 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then303 # 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 else307 # 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 fi311 # Hide the ALL_LINGUAS assigment from automake.312 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'313 # Compute POFILES314 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)315 # Compute UPDATEPOFILES316 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)317 # Compute DUMMYPOFILES318 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)319 # Compute GMOFILES320 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)321 # Compute PROPERTIESFILES322 # as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).properties)323 # Compute CLASSFILES324 # as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).class)325 # Compute QMFILES326 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).qm)327 # Compute MSGFILES328 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang)).msg)329 # Compute RESOURCESDLLFILES330 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang))/$(DOMAIN).resources.dll)331 case "$ac_given_srcdir" in332 .) srcdirpre= ;;333 *) srcdirpre='$(srcdir)/' ;;334 esac335 POFILES=336 UPDATEPOFILES=337 DUMMYPOFILES=338 GMOFILES=339 PROPERTIESFILES=340 CLASSFILES=341 QMFILES=342 MSGFILES=343 RESOURCESDLLFILES=344 for lang in $ALL_LINGUAS; do345 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 done357 # CATALOGS depends on both $ac_dir and the user's LINGUAS358 # environment variable.359 INST_LINGUAS=360 if test -n "$ALL_LINGUAS"; then361 for presentlang in $ALL_LINGUAS; do362 useit=no363 if test "%UNSET%" != "$LINGUAS"; then364 desiredlanguages="$LINGUAS"365 else366 desiredlanguages="$ALL_LINGUAS"367 fi368 for desiredlang in $desiredlanguages; do369 # Use the presentlang catalog if desiredlang is370 # a. equal to presentlang, or371 # b. a variant of presentlang (because in this case,372 # presentlang can be used as a fallback for messages373 # which are not translated in the desiredlang catalog).374 case "$desiredlang" in375 "$presentlang"*) useit=yes;;376 esac377 done378 if test $useit = yes; then379 INST_LINGUAS="$INST_LINGUAS $presentlang"380 fi381 done382 fi383 CATALOGS=384 JAVACATALOGS=385 QTCATALOGS=386 TCLCATALOGS=387 CSHARPCATALOGS=388 if test -n "$INST_LINGUAS"; then389 for lang in $INST_LINGUAS; do390 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 done398 fi399 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; then402 # Add dependencies that cannot be formulated as a simple suffix rule.403 for lang in $ALL_LINGUAS; do404 frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`405 cat >> "$ac_file.tmp" <<EOF406 $frobbedlang.msg: $lang.po407 @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 EOF410 done411 fi412 if grep -l '@CSHARPCATALOGS@' "$ac_file" > /dev/null; then413 # Add dependencies that cannot be formulated as a simple suffix rule.414 for lang in $ALL_LINGUAS; do415 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" <<EOF417 $frobbedlang/\$(DOMAIN).resources.dll: $lang.po418 @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 EOF421 done422 fi423 if test -n "$POMAKEFILEDEPS"; then424 cat >> "$ac_file.tmp" <<EOF425 Makefile: $POMAKEFILEDEPS426 EOF427 fi428 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 Foundation4 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 with9 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's21 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 notposix33 #endif34 ], gt_cv_func_printf_posix="guessing no",35 gt_cv_func_printf_posix="guessing yes")36 ])37 ])38 case $gt_cv_func_printf_posix in39 *yes)40 AC_DEFINE(HAVE_POSIX_PRINTF, 1,41 [Define if your printf() function supports format strings with positions.])42 ;;43 esac44 ]) -
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 Foundation4 dnl gives unlimited permission to copy and/or distribute it,5 dnl with or without modifications, as long as this notice is preserved.6 dnl7 dnl This file can can be used in projects which are not available under8 dnl the GNU General Public License or the GNU Library General Public9 dnl License but which still want to provide support for the GNU gettext10 dnl functionality.11 dnl Please note that the actual code of the GNU gettext library is covered12 dnl by the GNU Library General Public License, and the rest of the GNU13 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; then30 echo "#! /bin/sh" >conf$$.sh31 echo "exit 0" >>conf$$.sh32 chmod +x conf$$.sh33 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then34 PATH_SEPARATOR=';'35 else36 PATH_SEPARATOR=:37 fi38 rm -f conf$$.sh39 fi40 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 <<_ASEOF44 #! /bin/sh45 exit 046 _ASEOF47 chmod +x conf$$.file48 if test -x conf$$.file >/dev/null 2>&1; then49 ac_executable_p="test -x"50 else51 ac_executable_p="test -f"52 fi53 rm -f conf$$.file54 55 # Extract the first word of "$2", so it can be a program name with args.56 set dummy $2; ac_word=[$]257 AC_MSG_CHECKING([for $ac_word])58 AC_CACHE_VAL(ac_cv_path_$1,59 [case "[$]$1" in60 [[\\/]]* | ?:[[\\/]]*)61 ac_cv_path_$1="[$]$1" # Let the user override the test with a path.62 ;;63 *)64 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR65 for ac_dir in ifelse([$5], , $PATH, [$5]); do66 IFS="$ac_save_IFS"67 test -z "$ac_dir" && ac_dir=.68 for ac_exec_ext in '' $ac_executable_extensions; do69 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then70 echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD71 if [$3]; then72 ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext"73 break 274 fi75 fi76 done77 done78 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 ])dnl83 ;;84 esac])dnl85 $1="$ac_cv_path_$1"86 if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then87 AC_MSG_RESULT([$]$1)88 else89 AC_MSG_RESULT(no)90 fi91 AC_SUBST($1)dnl92 ]) -
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 Foundation4 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; then14 AC_DEFINE(signed, ,15 [Define to empty if the C compiler doesn't support this keyword.])16 fi17 ]) -
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 62 dnl Copyright (C) 2003, 2005-2006 Free Software Foundation, Inc.3 dnl This file is free software; the Free Software Foundation4 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_H19 #include <stdint.h>20 #endif21 #ifdef SIZE_MAX22 Found it23 #endif24 ], gl_cv_size_max=yes)25 if test -z "$gl_cv_size_max"; then26 dnl Define it ourselves. Here we assume that the type 'size_t' is not wider27 dnl than the type 'unsigned long'. Try hard to find a definition that can28 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"; then35 if test $fits_in_uint = 1; then36 dnl Even though SIZE_MAX fits in an unsigned int, it must be of type37 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 fi43 dnl We cannot use 'expr' to simplify this expression, because 'expr'44 dnl works only with 'long' integers in the host environment, while we45 dnl might be cross-compiling from a 32-bit platform to a 64-bit platform.46 if test $fits_in_uint = 1; then47 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"48 else49 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"50 fi51 else52 dnl Shouldn't happen, but who knows...53 gl_cv_size_max='((size_t)~(size_t)0)'54 fi55 fi56 ])57 AC_MSG_RESULT([$gl_cv_size_max])58 if test "$gl_cv_size_max" != yes; then59 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 fi62 ])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 62 dnl Copyright (C) 1997-2004, 2006 Free Software Foundation, Inc.3 dnl This file is free software; the Free Software Foundation4 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; then22 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 fi26 ]) -
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 92 dnl Copyright (C) 1997-2004 Free Software Foundation, Inc.3 dnl This file is free software; the Free Software Foundation4 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; then19 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 long25 if <stdint.h> and <inttypes.h> don't define.])26 else27 AC_DEFINE(HAVE_UINTMAX_T, 1,28 [Define if you have the 'uintmax_t' type in <stdint.h> or <inttypes.h>.])29 fi30 ]) -
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 62 dnl Copyright (C) 1999-2006 Free Software Foundation, Inc.3 dnl This file is free software; the Free Software Foundation4 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 we11 # assume 2.61 everywhere.12 13 # Note: If the type 'unsigned long long int' exists but is only 32 bits14 # large (as on some very old compilers), AC_TYPE_UNSIGNED_LONG_LONG_INT15 # 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) -126 ? 1 : -1)];27 int i = 63;]],28 [[unsigned long long int ullmax = 18446744073709551615ull;29 return (ull << 63 | ull >> 63 | ull << i | ull >> i30 | 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; then34 AC_DEFINE([HAVE_UNSIGNED_LONG_LONG_INT], 1,35 [Define to 1 if the system has the type `unsigned long long int'.])36 fi37 ])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_int44 if test $ac_cv_type_unsigned_long_long = yes; then45 AC_DEFINE(HAVE_UNSIGNED_LONG_LONG, 1,46 [Define if you have the 'unsigned long long' type.])47 fi48 ]) -
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 Foundation4 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_CC10 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; then18 AC_DEFINE(HAVE_WCHAR_T, 1, [Define if you have the 'wchar_t' type.])19 fi20 ]) -
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 Foundation4 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_CC10 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 before16 <wchar.h>.17 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included18 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; then26 AC_DEFINE(HAVE_WINT_T, 1, [Define if you have the 'wint_t' type.])27 fi28 ]) -
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 32 dnl Copyright (C) 2003-2004 Free Software Foundation, Inc.3 dnl This file is free software; the Free Software Foundation4 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 ])