source: packages/libs/popt/patches/001-missing-macros.patch @ 24379

Last change on this file since 24379 was 24379, checked in by jow, 5 years ago

[packages] popt: remove private libtool copy, provide missing macros, force full autoreconf

File size: 20.7 KB
  • new file acinclude.m4

    - +  
     1# lib-ld.m4 serial 1 (gettext-0.11) 
     2dnl Copyright (C) 1996-2002 Free Software Foundation, Inc. 
     3dnl This file is free software, distributed under the terms of the GNU 
     4dnl General Public License.  As a special exception to the GNU General 
     5dnl Public License, this file may be distributed as part of a program 
     6dnl that contains a configuration script generated by Autoconf, under 
     7dnl the same distribution terms as the rest of that program. 
     8 
     9dnl Subroutines of libtool.m4, 
     10dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision 
     11dnl with libtool.m4. 
     12 
     13dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no. 
     14AC_DEFUN([AC_LIB_PROG_LD_GNU], 
     15[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld, 
     16[# I'd rather use --version here, but apparently some GNU ld's only accept -v. 
     17if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 
     18  acl_cv_prog_gnu_ld=yes 
     19else 
     20  acl_cv_prog_gnu_ld=no 
     21fi]) 
     22with_gnu_ld=$acl_cv_prog_gnu_ld 
     23]) 
     24 
     25dnl From libtool-1.4. Sets the variable LD. 
     26AC_DEFUN([AC_LIB_PROG_LD], 
     27[AC_ARG_WITH(gnu-ld, 
     28[  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]], 
     29test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no) 
     30AC_REQUIRE([AC_PROG_CC])dnl 
     31AC_REQUIRE([AC_CANONICAL_HOST])dnl 
     32ac_prog=ld 
     33if test "$GCC" = yes; then 
     34  # Check if gcc -print-prog-name=ld gives a path. 
     35  AC_MSG_CHECKING([for ld used by GCC]) 
     36  case $host in 
     37  *-*-mingw*) 
     38    # gcc leaves a trailing carriage return which upsets mingw 
     39    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 
     40  *) 
     41    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 
     42  esac 
     43  case $ac_prog in 
     44    # Accept absolute paths. 
     45    [[\\/]* | [A-Za-z]:[\\/]*)] 
     46      [re_direlt='/[^/][^/]*/\.\./'] 
     47      # Canonicalize the path of ld 
     48      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 
     49      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 
     50        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 
     51      done 
     52      test -z "$LD" && LD="$ac_prog" 
     53      ;; 
     54  "") 
     55    # If it fails, then pretend we aren't using GCC. 
     56    ac_prog=ld 
     57    ;; 
     58  *) 
     59    # If it is relative, then search for the first ld in PATH. 
     60    with_gnu_ld=unknown 
     61    ;; 
     62  esac 
     63elif test "$with_gnu_ld" = yes; then 
     64  AC_MSG_CHECKING([for GNU ld]) 
     65else 
     66  AC_MSG_CHECKING([for non-GNU ld]) 
     67fi 
     68AC_CACHE_VAL(acl_cv_path_LD, 
     69[if test -z "$LD"; then 
     70  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 
     71  for ac_dir in $PATH; do 
     72    test -z "$ac_dir" && ac_dir=. 
     73    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 
     74      acl_cv_path_LD="$ac_dir/$ac_prog" 
     75      # Check to see if the program is GNU ld.  I'd rather use --version, 
     76      # but apparently some GNU ld's only accept -v. 
     77      # Break only if it was the GNU/non-GNU ld that we prefer. 
     78      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 
     79        test "$with_gnu_ld" != no && break 
     80      else 
     81        test "$with_gnu_ld" != yes && break 
     82      fi 
     83    fi 
     84  done 
     85  IFS="$ac_save_ifs" 
     86else 
     87  acl_cv_path_LD="$LD" # Let the user override the test with a path. 
     88fi]) 
     89LD="$acl_cv_path_LD" 
     90if test -n "$LD"; then 
     91  AC_MSG_RESULT($LD) 
     92else 
     93  AC_MSG_RESULT(no) 
     94fi 
     95test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 
     96AC_LIB_PROG_LD_GNU 
     97]) 
     98 
     99# iconv.m4 serial AM4 (gettext-0.11.3) 
     100dnl Copyright (C) 2000-2002 Free Software Foundation, Inc. 
     101dnl This file is free software, distributed under the terms of the GNU 
     102dnl General Public License.  As a special exception to the GNU General 
     103dnl Public License, this file may be distributed as part of a program 
     104dnl that contains a configuration script generated by Autoconf, under 
     105dnl the same distribution terms as the rest of that program. 
     106 
     107dnl From Bruno Haible. 
     108 
     109AC_DEFUN([AM_ICONV_LINKFLAGS_BODY], 
     110[ 
     111  dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. 
     112  AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) 
     113  AC_REQUIRE([AC_LIB_RPATH]) 
     114 
     115  dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV 
     116  dnl accordingly. 
     117  AC_LIB_LINKFLAGS_BODY([iconv]) 
     118]) 
     119 
     120AC_DEFUN([AM_ICONV_LINK], 
     121[ 
     122  dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and 
     123  dnl those with the standalone portable GNU libiconv installed). 
     124 
     125  dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV 
     126  dnl accordingly. 
     127  AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) 
     128 
     129  dnl Add $INCICONV to CPPFLAGS before performing the following checks, 
     130  dnl because if the user has installed libiconv and not disabled its use 
     131  dnl via --without-libiconv-prefix, he wants to use it. The first 
     132  dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed. 
     133  am_save_CPPFLAGS="$CPPFLAGS" 
     134  AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV]) 
     135 
     136  AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [ 
     137    am_cv_func_iconv="no, consider installing GNU libiconv" 
     138    am_cv_lib_iconv=no 
     139    AC_TRY_LINK([#include <stdlib.h> 
     140#include <iconv.h>], 
     141      [iconv_t cd = iconv_open("",""); 
     142       iconv(cd,NULL,NULL,NULL,NULL); 
     143       iconv_close(cd);], 
     144      am_cv_func_iconv=yes) 
     145    if test "$am_cv_func_iconv" != yes; then 
     146      am_save_LIBS="$LIBS" 
     147      LIBS="$LIBS $LIBICONV" 
     148      AC_TRY_LINK([#include <stdlib.h> 
     149#include <iconv.h>], 
     150        [iconv_t cd = iconv_open("",""); 
     151         iconv(cd,NULL,NULL,NULL,NULL); 
     152         iconv_close(cd);], 
     153        am_cv_lib_iconv=yes 
     154        am_cv_func_iconv=yes) 
     155      LIBS="$am_save_LIBS" 
     156    fi 
     157  ]) 
     158  if test "$am_cv_func_iconv" = yes; then 
     159    AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.]) 
     160  fi 
     161  if test "$am_cv_lib_iconv" = yes; then 
     162    AC_MSG_CHECKING([how to link with libiconv]) 
     163    AC_MSG_RESULT([$LIBICONV]) 
     164  else 
     165    dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV 
     166    dnl either. 
     167    CPPFLAGS="$am_save_CPPFLAGS" 
     168    LIBICONV= 
     169    LTLIBICONV= 
     170  fi 
     171  AC_SUBST(LIBICONV) 
     172  AC_SUBST(LTLIBICONV) 
     173]) 
     174 
     175AC_DEFUN([AM_ICONV], 
     176[ 
     177  AM_ICONV_LINK 
     178  if test "$am_cv_func_iconv" = yes; then 
     179    AC_MSG_CHECKING([for iconv declaration]) 
     180    AC_CACHE_VAL(am_cv_proto_iconv, [ 
     181      AC_TRY_COMPILE([ 
     182#include <stdlib.h> 
     183#include <iconv.h> 
     184extern 
     185#ifdef __cplusplus 
     186"C" 
     187#endif 
     188#if defined(__STDC__) || defined(__cplusplus) 
     189size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 
     190#else 
     191size_t iconv(); 
     192#endif 
     193], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const") 
     194      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);"]) 
     195    am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 
     196    AC_MSG_RESULT([$]{ac_t:- 
     197         }[$]am_cv_proto_iconv) 
     198    AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1, 
     199      [Define as const if the declaration of iconv() needs const.]) 
     200  fi 
     201]) 
     202 
     203# progtest.m4 serial 2 (gettext-0.10.40) 
     204dnl Copyright (C) 1996-2002 Free Software Foundation, Inc. 
     205dnl This file is free software, distributed under the terms of the GNU 
     206dnl General Public License.  As a special exception to the GNU General 
     207dnl Public License, this file may be distributed as part of a program 
     208dnl that contains a configuration script generated by Autoconf, under 
     209dnl the same distribution terms as the rest of that program. 
     210dnl 
     211dnl This file can can be used in projects which are not available under 
     212dnl the GNU General Public License or the GNU Library General Public 
     213dnl License but which still want to provide support for the GNU gettext 
     214dnl functionality. 
     215dnl Please note that the actual code of the GNU gettext library is covered 
     216dnl by the GNU Library General Public License, and the rest of the GNU 
     217dnl gettext package package is covered by the GNU General Public License. 
     218dnl They are *not* in the public domain. 
     219 
     220dnl Authors: 
     221dnl   Ulrich Drepper <drepper@cygnus.com>, 1996. 
     222 
     223# Search path for a program which passes the given test. 
     224 
     225dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, 
     226dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) 
     227AC_DEFUN([AM_PATH_PROG_WITH_TEST], 
     228[# Extract the first word of "$2", so it can be a program name with args. 
     229set dummy $2; ac_word=[$]2 
     230AC_MSG_CHECKING([for $ac_word]) 
     231AC_CACHE_VAL(ac_cv_path_$1, 
     232[case "[$]$1" in 
     233  /*) 
     234  ac_cv_path_$1="[$]$1" # Let the user override the test with a path. 
     235  ;; 
     236  *) 
     237  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 
     238  for ac_dir in ifelse([$5], , $PATH, [$5]); do 
     239    test -z "$ac_dir" && ac_dir=. 
     240    if test -f $ac_dir/$ac_word; then 
     241      if [$3]; then 
     242        ac_cv_path_$1="$ac_dir/$ac_word" 
     243        break 
     244      fi 
     245    fi 
     246  done 
     247  IFS="$ac_save_ifs" 
     248dnl If no 4th arg is given, leave the cache variable unset, 
     249dnl so AC_PATH_PROGS will keep looking. 
     250ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" 
     251])dnl 
     252  ;; 
     253esac])dnl 
     254$1="$ac_cv_path_$1" 
     255if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then 
     256  AC_MSG_RESULT([$]$1) 
     257else 
     258  AC_MSG_RESULT(no) 
     259fi 
     260AC_SUBST($1)dnl 
     261]) 
     262 
     263# glibc21.m4 serial 2 (fileutils-4.1.3, gettext-0.10.40) 
     264dnl Copyright (C) 2000-2002 Free Software Foundation, Inc. 
     265dnl This file is free software, distributed under the terms of the GNU 
     266dnl General Public License.  As a special exception to the GNU General 
     267dnl Public License, this file may be distributed as part of a program 
     268dnl that contains a configuration script generated by Autoconf, under 
     269dnl the same distribution terms as the rest of that program. 
     270 
     271# Test for the GNU C Library, version 2.1 or newer. 
     272# From Bruno Haible. 
     273 
     274AC_DEFUN([jm_GLIBC21], 
     275  [ 
     276    AC_CACHE_CHECK(whether we are using the GNU C Library 2.1 or newer, 
     277      ac_cv_gnu_library_2_1, 
     278      [AC_EGREP_CPP([Lucky GNU user], 
     279        [ 
     280#include <features.h> 
     281#ifdef __GNU_LIBRARY__ 
     282 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) 
     283  Lucky GNU user 
     284 #endif 
     285#endif 
     286        ], 
     287        ac_cv_gnu_library_2_1=yes, 
     288        ac_cv_gnu_library_2_1=no) 
     289      ] 
     290    ) 
     291    AC_SUBST(GLIBC21) 
     292    GLIBC21="$ac_cv_gnu_library_2_1" 
     293  ] 
     294) 
     295 
     296# intdiv0.m4 serial 1 (gettext-0.11.3) 
     297dnl Copyright (C) 2002 Free Software Foundation, Inc. 
     298dnl This file is free software, distributed under the terms of the GNU 
     299dnl General Public License.  As a special exception to the GNU General 
     300dnl Public License, this file may be distributed as part of a program 
     301dnl that contains a configuration script generated by Autoconf, under 
     302dnl the same distribution terms as the rest of that program. 
     303 
     304dnl From Bruno Haible. 
     305 
     306AC_DEFUN([gt_INTDIV0], 
     307[ 
     308  AC_REQUIRE([AC_PROG_CC])dnl 
     309  AC_REQUIRE([AC_CANONICAL_HOST])dnl 
     310 
     311  AC_CACHE_CHECK([whether integer division by zero raises SIGFPE], 
     312    gt_cv_int_divbyzero_sigfpe, 
     313    [ 
     314      AC_TRY_RUN([ 
     315#include <stdlib.h> 
     316#include <signal.h> 
     317 
     318static void 
     319#ifdef __cplusplus 
     320sigfpe_handler (int sig) 
     321#else 
     322sigfpe_handler (sig) int sig; 
     323#endif 
     324{ 
     325  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */ 
     326  exit (sig != SIGFPE); 
     327} 
     328 
     329int x = 1; 
     330int y = 0; 
     331int z; 
     332int nan; 
     333 
     334int main () 
     335{ 
     336  signal (SIGFPE, sigfpe_handler); 
     337/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */ 
     338#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) 
     339  signal (SIGTRAP, sigfpe_handler); 
     340#endif 
     341/* Linux/SPARC yields signal SIGILL.  */ 
     342#if defined (__sparc__) && defined (__linux__) 
     343  signal (SIGILL, sigfpe_handler); 
     344#endif 
     345 
     346  z = x / y; 
     347  nan = y / y; 
     348  exit (1); 
     349} 
     350], gt_cv_int_divbyzero_sigfpe=yes, gt_cv_int_divbyzero_sigfpe=no, 
     351        [ 
     352          # Guess based on the CPU. 
     353          case "$host_cpu" in 
     354            alpha* | i[34567]86 | m68k | s390*) 
     355              gt_cv_int_divbyzero_sigfpe="guessing yes";; 
     356            *) 
     357              gt_cv_int_divbyzero_sigfpe="guessing no";; 
     358          esac 
     359        ]) 
     360    ]) 
     361  case "$gt_cv_int_divbyzero_sigfpe" in 
     362    *yes) value=1;; 
     363    *) value=0;; 
     364  esac 
     365  AC_DEFINE_UNQUOTED(INTDIV0_RAISES_SIGFPE, $value, 
     366    [Define if integer division by zero raises signal SIGFPE.]) 
     367]) 
     368 
     369# uintmax_t.m4 serial 6 (gettext-0.11) 
     370dnl Copyright (C) 1997-2002 Free Software Foundation, Inc. 
     371dnl This file is free software, distributed under the terms of the GNU 
     372dnl General Public License.  As a special exception to the GNU General 
     373dnl Public License, this file may be distributed as part of a program 
     374dnl that contains a configuration script generated by Autoconf, under 
     375dnl the same distribution terms as the rest of that program. 
     376 
     377dnl From Paul Eggert. 
     378 
     379AC_PREREQ(2.13) 
     380 
     381# Define uintmax_t to `unsigned long' or `unsigned long long' 
     382# if <inttypes.h> does not exist. 
     383 
     384AC_DEFUN([jm_AC_TYPE_UINTMAX_T], 
     385[ 
     386  AC_REQUIRE([jm_AC_HEADER_INTTYPES_H]) 
     387  AC_REQUIRE([jm_AC_HEADER_STDINT_H]) 
     388  if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then 
     389    AC_REQUIRE([jm_AC_TYPE_UNSIGNED_LONG_LONG]) 
     390    test $ac_cv_type_unsigned_long_long = yes \ 
     391      && ac_type='unsigned long long' \ 
     392      || ac_type='unsigned long' 
     393    AC_DEFINE_UNQUOTED(uintmax_t, $ac_type, 
     394  [Define to unsigned long or unsigned long long 
     395   if <inttypes.h> and <stdint.h> don't define.]) 
     396  fi 
     397]) 
     398 
     399# inttypes_h.m4 serial 4 (gettext-0.11.4) 
     400dnl Copyright (C) 1997-2002 Free Software Foundation, Inc. 
     401dnl This file is free software, distributed under the terms of the GNU 
     402dnl General Public License.  As a special exception to the GNU General 
     403dnl Public License, this file may be distributed as part of a program 
     404dnl that contains a configuration script generated by Autoconf, under 
     405dnl the same distribution terms as the rest of that program. 
     406 
     407dnl From Paul Eggert. 
     408 
     409# Define HAVE_INTTYPES_H_WITH_UINTMAX if <inttypes.h> exists, 
     410# doesn't clash with <sys/types.h>, and declares uintmax_t. 
     411 
     412AC_DEFUN([jm_AC_HEADER_INTTYPES_H], 
     413[ 
     414  AC_CACHE_CHECK([for inttypes.h], jm_ac_cv_header_inttypes_h, 
     415  [AC_TRY_COMPILE( 
     416    [#include <sys/types.h> 
     417#include <inttypes.h>], 
     418    [uintmax_t i = (uintmax_t) -1;], 
     419    jm_ac_cv_header_inttypes_h=yes, 
     420    jm_ac_cv_header_inttypes_h=no)]) 
     421  if test $jm_ac_cv_header_inttypes_h = yes; then 
     422    AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H_WITH_UINTMAX, 1, 
     423[Define if <inttypes.h> exists, doesn't clash with <sys/types.h>, 
     424   and declares uintmax_t. ]) 
     425  fi 
     426]) 
     427 
     428# stdint_h.m4 serial 2 (gettext-0.11.4) 
     429dnl Copyright (C) 1997-2002 Free Software Foundation, Inc. 
     430dnl This file is free software, distributed under the terms of the GNU 
     431dnl General Public License.  As a special exception to the GNU General 
     432dnl Public License, this file may be distributed as part of a program 
     433dnl that contains a configuration script generated by Autoconf, under 
     434dnl the same distribution terms as the rest of that program. 
     435 
     436dnl From Paul Eggert. 
     437 
     438# Define HAVE_STDINT_H_WITH_UINTMAX if <stdint.h> exists, 
     439# doesn't clash with <sys/types.h>, and declares uintmax_t. 
     440 
     441AC_DEFUN([jm_AC_HEADER_STDINT_H], 
     442[ 
     443  AC_CACHE_CHECK([for stdint.h], jm_ac_cv_header_stdint_h, 
     444  [AC_TRY_COMPILE( 
     445    [#include <sys/types.h> 
     446#include <stdint.h>], 
     447    [uintmax_t i = (uintmax_t) -1;], 
     448    jm_ac_cv_header_stdint_h=yes, 
     449    jm_ac_cv_header_stdint_h=no)]) 
     450  if test $jm_ac_cv_header_stdint_h = yes; then 
     451    AC_DEFINE_UNQUOTED(HAVE_STDINT_H_WITH_UINTMAX, 1, 
     452[Define if <stdint.h> exists, doesn't clash with <sys/types.h>, 
     453   and declares uintmax_t. ]) 
     454  fi 
     455]) 
     456 
     457# ulonglong.m4 serial 2 (fileutils-4.0.32, gettext-0.10.40) 
     458dnl Copyright (C) 1999-2002 Free Software Foundation, Inc. 
     459dnl This file is free software, distributed under the terms of the GNU 
     460dnl General Public License.  As a special exception to the GNU General 
     461dnl Public License, this file may be distributed as part of a program 
     462dnl that contains a configuration script generated by Autoconf, under 
     463dnl the same distribution terms as the rest of that program. 
     464 
     465dnl From Paul Eggert. 
     466 
     467AC_DEFUN([jm_AC_TYPE_UNSIGNED_LONG_LONG], 
     468[ 
     469  AC_CACHE_CHECK([for unsigned long long], ac_cv_type_unsigned_long_long, 
     470  [AC_TRY_LINK([unsigned long long ull = 1; int i = 63;], 
     471    [unsigned long long ullmax = (unsigned long long) -1; 
     472     return ull << i | ull >> i | ullmax / ull | ullmax % ull;], 
     473    ac_cv_type_unsigned_long_long=yes, 
     474    ac_cv_type_unsigned_long_long=no)]) 
     475  if test $ac_cv_type_unsigned_long_long = yes; then 
     476    AC_DEFINE(HAVE_UNSIGNED_LONG_LONG, 1, 
     477      [Define if you have the unsigned long long type.]) 
     478  fi 
     479]) 
     480 
     481# inttypes.m4 serial 1 (gettext-0.11.4) 
     482dnl Copyright (C) 1997-2002 Free Software Foundation, Inc. 
     483dnl This file is free software, distributed under the terms of the GNU 
     484dnl General Public License.  As a special exception to the GNU General 
     485dnl Public License, this file may be distributed as part of a program 
     486dnl that contains a configuration script generated by Autoconf, under 
     487dnl the same distribution terms as the rest of that program. 
     488 
     489dnl From Paul Eggert. 
     490 
     491# Define HAVE_INTTYPES_H if <inttypes.h> exists and doesn't clash with 
     492# <sys/types.h>. 
     493 
     494AC_DEFUN([gt_HEADER_INTTYPES_H], 
     495[ 
     496  AC_CACHE_CHECK([for inttypes.h], gt_cv_header_inttypes_h, 
     497  [ 
     498    AC_TRY_COMPILE( 
     499      [#include <sys/types.h> 
     500#include <inttypes.h>], 
     501      [], gt_cv_header_inttypes_h=yes, gt_cv_header_inttypes_h=no) 
     502  ]) 
     503  if test $gt_cv_header_inttypes_h = yes; then 
     504    AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H, 1, 
     505      [Define if <inttypes.h> exists and doesn't clash with <sys/types.h>.]) 
     506  fi 
     507]) 
     508 
     509# inttypes-pri.m4 serial 1 (gettext-0.11.4) 
     510dnl Copyright (C) 1997-2002 Free Software Foundation, Inc. 
     511dnl This file is free software, distributed under the terms of the GNU 
     512dnl General Public License.  As a special exception to the GNU General 
     513dnl Public License, this file may be distributed as part of a program 
     514dnl that contains a configuration script generated by Autoconf, under 
     515dnl the same distribution terms as the rest of that program. 
     516 
     517dnl From Bruno Haible. 
     518 
     519# Define PRI_MACROS_BROKEN if <inttypes.h> exists and defines the PRI* 
     520# macros to non-string values.  This is the case on AIX 4.3.3. 
     521 
     522AC_DEFUN([gt_INTTYPES_PRI], 
     523[ 
     524  AC_REQUIRE([gt_HEADER_INTTYPES_H]) 
     525  if test $gt_cv_header_inttypes_h = yes; then 
     526    AC_CACHE_CHECK([whether the inttypes.h PRIxNN macros are broken], 
     527      gt_cv_inttypes_pri_broken, 
     528      [ 
     529        AC_TRY_COMPILE([#include <inttypes.h> 
     530#ifdef PRId32 
     531char *p = PRId32; 
     532#endif 
     533], [], gt_cv_inttypes_pri_broken=no, gt_cv_inttypes_pri_broken=yes) 
     534      ]) 
     535  fi 
     536  if test "$gt_cv_inttypes_pri_broken" = yes; then 
     537    AC_DEFINE_UNQUOTED(PRI_MACROS_BROKEN, 1, 
     538      [Define if <inttypes.h> exists and defines unusable PRI* macros.]) 
     539  fi 
     540]) 
     541 
     542# codeset.m4 serial AM1 (gettext-0.10.40) 
     543dnl Copyright (C) 2000-2002 Free Software Foundation, Inc. 
     544dnl This file is free software, distributed under the terms of the GNU 
     545dnl General Public License.  As a special exception to the GNU General 
     546dnl Public License, this file may be distributed as part of a program 
     547dnl that contains a configuration script generated by Autoconf, under 
     548dnl the same distribution terms as the rest of that program. 
     549 
     550dnl From Bruno Haible. 
     551 
     552AC_DEFUN([AM_LANGINFO_CODESET], 
     553[ 
     554  AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset, 
     555    [AC_TRY_LINK([#include <langinfo.h>], 
     556      [char* cs = nl_langinfo(CODESET);], 
     557      am_cv_langinfo_codeset=yes, 
     558      am_cv_langinfo_codeset=no) 
     559    ]) 
     560  if test $am_cv_langinfo_codeset = yes; then 
     561    AC_DEFINE(HAVE_LANGINFO_CODESET, 1, 
     562      [Define if you have <langinfo.h> and nl_langinfo(CODESET).]) 
     563  fi 
     564]) 
     565 
     566# lcmessage.m4 serial 3 (gettext-0.11.3) 
     567dnl Copyright (C) 1995-2002 Free Software Foundation, Inc. 
     568dnl This file is free software, distributed under the terms of the GNU 
     569dnl General Public License.  As a special exception to the GNU General 
     570dnl Public License, this file may be distributed as part of a program 
     571dnl that contains a configuration script generated by Autoconf, under 
     572dnl the same distribution terms as the rest of that program. 
     573dnl 
     574dnl This file can can be used in projects which are not available under 
     575dnl the GNU General Public License or the GNU Library General Public 
     576dnl License but which still want to provide support for the GNU gettext 
     577dnl functionality. 
     578dnl Please note that the actual code of the GNU gettext library is covered 
     579dnl by the GNU Library General Public License, and the rest of the GNU 
     580dnl gettext package package is covered by the GNU General Public License. 
     581dnl They are *not* in the public domain. 
     582 
     583dnl Authors: 
     584dnl   Ulrich Drepper <drepper@cygnus.com>, 1995. 
     585 
     586# Check whether LC_MESSAGES is available in <locale.h>. 
     587 
     588AC_DEFUN([AM_LC_MESSAGES], 
     589[ 
     590  AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, 
     591    [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES], 
     592       am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) 
     593  if test $am_cv_val_LC_MESSAGES = yes; then 
     594    AC_DEFINE(HAVE_LC_MESSAGES, 1, 
     595      [Define if your <locale.h> file defines LC_MESSAGES.]) 
     596  fi 
     597]) 
     598 
  • new file config.rpath

    - +  
     1# stub 
Note: See TracBrowser for help on using the repository browser.